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
Construct the QuoteConvention object from the valuation Customization Parameters, the calculation type, the first settle date, and the redemption value.
public QuoteConvention ( final org.drip.param.valuation.ValuationCustomizationParams valuationCustomizationParams, final java.lang.String strCalculationType, final int iFirstSettleDate, final double dblRedemptionValue, final int iSettleLag, final java.lang.String strSettleCalendar, final int iSettleAdjustMode) { _iFirstSettleDate = iFirstSettleDate; _dblRedemptionValue = dblRedemptionValue; _strCalculationType = strCalculationType; _valuationCustomizationParams = valuationCustomizationParams; _cashSettleParams = new org.drip.param.valuation.CashSettleParams (iSettleLag, strSettleCalendar, iSettleAdjustMode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QuotationDTO getQuotationInformation() throws BusinessException {\n\t\tString temp = null;\n\t\tif (null == quotationDTO)\n\t\t\tquotationDTO = new QuotationDTO();\n\n\t\t//Booking Type\n\t\tquotationDTO.setInward(isInwardType());\t\t\n\n\t\t//Minimum Freight Value\n\t\ttemp = txtMinCF.getText();\n\t\tif (temp.length() > 0) {\n\t\t\tquotationDTO.setMinFreightValue(Float.parseFloat(temp));\n\t\t}\n\n\t\t//Minimum Weight value\n\t\ttemp = txtMinCW.getText();\n\t\tif (temp.length() > 0) {\n\t\t\tquotationDTO.setMinWeightValue(Float.parseFloat(temp));\n\t\t}\n\n\t\t//LR Charge Type\n\t\tquotationDTO.setLrchargeType(getLRChargeIndex());\n\n\t\t//Service Tax\n\t\tif (chkServiceTax.getSelection()) {\n\t\t\tquotationDTO.setServiceTax(true);\n\t\t}else{\n\t\t\tquotationDTO.setServiceTax(false);\n\t\t}\n\n\t\t// GSC Type\n\t\tquotationDTO.setGscType(getGSCIndex());\n\n\t\t//Other Charges\t\t\n\t\tif (quotationDTO.getLrchargeType() == 1 || quotationDTO.getGscType() == 1){\n\t\t\t\n\t\t\totherChargesDTO = getOtherCharges();\t\t\t\n\t\t\t\n\t\t\tif(otherChargesDTO != null){\n\t\t\t\t//System.out.println(\"others on set==>\"+otherChargesDTO.length);\n\t\t\t\tif(quotationDTO.getLrchargeType() != 1){\n\t\t\t\t\totherChargesDTO = deInitializeLRC(otherChargesDTO);\n\t\t\t\t}else if(quotationDTO.getGscType() != 1){\n\t\t\t\t\totherChargesDTO = deInitializeGSC(otherChargesDTO);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tquotationDTO.setOtherCharges(otherChargesDTO);\n\t\t}\n\t\t\t\n\n\t\t//Insurance Type\t\t\n\t\tquotationDTO.setInsuranceChargeType(getInsuranceType());\n\t\t\n\n\t\t//Insurance Charges\n\t\tif (quotationDTO.getInsuranceChargeType() == 1){\n\t\t\tquotationDTO.setInsuranceCharges(insuranceDTO);\t\t\t\n\t\t}\n\t\t\t\n\t\t// DHC\n\t\tquotationDTO.setDhcChargeType(getDHCType());\n\t\t\n\t\tif(quotationDTO.getDhcChargeType() == 1){\n\t\t\tquotationDTO.setDhcDto(dhcDto);\n\t\t}\n\n\t\t//Quotation Details\n\t\tquotationDTO.setQuotationDetails(getQuotationDetails());\n\t\t\n\t\t//Basic Price Index\n\t\ttemp = txtPriceIndex.getText();\n\t\tif (temp.length() > 0) {\n\t\t\tquotationDTO.setPriceIndex(Float.parseFloat(temp));\n\t\t}\n\n\t\t//Round off digits\n\t\ttemp = txtRoundOffDigits.getText();\n\t\tif (temp.length() > 0) {\n\t\t\tquotationDTO.setRoundOffDigits(Integer.parseInt(temp));\n\t\t}\t\t\n\t\t\n\t\treturn quotationDTO;\n\t}", "QuoteType createQuoteType();", "QuoteCoefficient createQuoteCoefficient();", "QuoteAdjustment createQuoteAdjustment();", "Quote createQuote();", "QuoteTerm createQuoteTerm();", "public Quotation(String occasion, int guestNum, boolean cateringService,\n boolean photographyService, boolean decorationService,\n Date startDate, Date endDate, float budget, Hall hall, Customer customer)\n {\n this.occasion = occasion;\n this.guestNum = guestNum;\n this.cateringService = cateringService;\n this.photographyService = photographyService;\n this.decorationService = decorationService;\n this.startDate = startDate;\n this.endDate = endDate;\n this.budget = budget;\n this.hall = hall;\n this.customer = customer;\n this.idOwner = hall.getQuotations().size() + 1;\n this.idCust = customer.getQuotations().size() + 1;\n \n }", "private QuotationDetailsDTO createQuotationDetail(QuotationDetailsDTO detail) throws Exception {\n\t\tString temp = null;\n\n\t\t//Article Name\n\t\tif (txtArticleName.getEnabled()) {\n\t\t\ttemp = txtArticleName.getText();\n\t\t\tif (temp.length() > 0)\n\t\t\t\tdetail.setArticleName(temp);\n\t\t}\n\n\t\t//Charged Weight\n\t\tif (txtCW.getEnabled()) {\n\t\t\ttemp = txtCW.getText();\n\t\t\tif (temp.length() > 0) {\n\t\t\t\tdetail.setChargedWeight(Float.parseFloat(temp));\n\t\t\t} else {\n\t\t\t\tdetail.setChargedWeight(0);\n\t\t\t}\n\t\t}\n\n\t\t//CC Charge Type\n\t\tdetail.setCcchargeType(getCCChargeIndex());\n\n\t\t//CC Charge Value\n\n\t\ttemp = txtCCCValue.getText();\n\t\tif (temp.length() > 0) {\n\t\t\tdetail.setCcchargeValue(Float.parseFloat(temp));\n\t\t} else {\n\t\t\tdetail.setCcchargeValue(0);\n\t\t}\n\n\t\t//DC Charge Type\n\t\tdetail.setDcchargeType(getDCChargeType());\n\n\t\t//DC Charge Value\t\t\n\t\ttemp = txtDCCValue.getText();\n\t\tif (temp.length() > 0) {\n\t\t\tdetail.setDcchargeValue(Float.parseFloat(temp));\n\t\t} else {\n\t\t\tdetail.setDcchargeValue(0);\n\t\t}\n\n\t\t//DD Charge Type\n\t\tdetail.setDdchargeType(getDDChargeType());\n\n\t\t//DD Charge per article\n\n\t\ttemp = txtDDC_chargeArticle.getText();\n\t\tif (temp.length() > 0) {\n\t\t\tdetail.setDdchargeArticle(Float.parseFloat(temp));\n\t\t} else {\n\t\t\tdetail.setDdchargeArticle(0);\n\t\t}\n\n\t\t//Minimum DD Charge value\n\n\t\ttemp = txtDDC_minPerLR.getText();\n\t\tif (temp.length() > 0) {\n\t\t\tdetail.setMinDdchargeValue(Float.parseFloat(temp));\n\t\t} else {\n\t\t\tdetail.setMinDdchargeValue(0);\n\t\t}\n\n\t\t//IE Charge Type\n\t\tdetail.setIechargeType(getIEChargeType());\n\n\t\t//IE Charge Value\n\t\t//if(txtIEC_article.getEnabled()) {\n\t\ttemp = txtIEC_article.getText();\n\t\tif (temp.length() > 0) {\n\t\t\tdetail.setIechargeValue(Float.parseFloat(temp));\n\t\t} else {\n\t\t\tdetail.setIechargeValue(0);\n\t\t}\n\t\t//}\n\n\t\t//LC Charge Type\n\t\tdetail.setLcchargeType(getLCChargeType());\n\n\t\t//LC Charge Value\n\t\t//if(txtLC_article.getEnabled()) {\n\t\ttemp = txtLC_article.getText();\n\t\tif (temp.length() > 0) {\n\t\t\tdetail.setLcchargeValue(Float.parseFloat(temp));\n\t\t} else {\n\t\t\tdetail.setLcchargeValue(0);\n\t\t}\n\t\t//}\n\n\t\treturn detail;\n\t}", "QuoteTypeAttr createQuoteTypeAttr();", "@JsonCreator\n public DefaultCrif(@JsonProperty(\"trade_id\") String tradeId, //\n @JsonProperty(\"valuation_date\") String valuationDate, //\n @JsonProperty(\"end_date\") String endDate, //\n @JsonProperty(\"notional\") String notional, //\n @JsonProperty(\"trade_currency\") String notionalCurrency, //\n @JsonProperty(\"im_model\") String imModel, //\n @JsonProperty(\"product_class\") String productClass, //\n @JsonProperty(\"risk_type\") String riskType, //\n @JsonProperty(\"qualifier\") String qualifier, //\n @JsonProperty(\"bucket\") String bucket, //\n @JsonProperty(\"label1\") String label1, //\n @JsonProperty(\"label2\") String label2, //\n @JsonProperty(\"amount\") String amount, //\n @JsonProperty(\"amount_currency\") String amountCurrency, //\n @JsonProperty(\"amount_usd\") String amountUSD, //\n @JsonProperty(\"post_regulation\") String postRegulation, //\n @JsonProperty(\"collect_regulation\") String collectRegulation) {\n this.valuationDate = valuationDate;\n this.endDate = endDate;\n this.tradeId = tradeId;\n this.imModel = imModel;\n this.productClass = productClass;\n this.riskType = riskType;\n this.qualifier = qualifier;\n this.bucket = bucket;\n this.label1 = label1;\n this.label2 = label2;\n this.amount = amount;\n this.amountCurrency = amountCurrency;\n this.amountUSD = amountUSD;\n this.postRegulation = postRegulation;\n this.collectRegulation = collectRegulation;\n this.notional = notional;\n this.notionalCurrency = notionalCurrency;\n }", "@RequestMapping(value = \"/quote\", method = POST)\n public @ResponseBody Quote quote(@RequestBody Quote quote) {\n Double markup = VehicleHashMap.getMap().get(quote.getVehicle());\n Long price = Math.round(Math.abs((Long.valueOf(quote.getDeliveryPostcode(), 36) - Long.valueOf(quote.getPickupPostcode(), 36))/100000000) * (1 + markup));\n\n return new Quote(quote.getPickupPostcode(), quote.getDeliveryPostcode(),quote.getVehicle() ,price);\n }", "QuoteAttribute createQuoteAttribute();", "CurrencyDateCalculatorBuilder<E> getDefaultCurrencyDateCalculatorBuilder(String ccy1, String ccy2, SpotLag spotLag);", "private RentalAgreement createRentalAgreement(Order order, int discountPercentage, List<LocalDate> holidays) {\n RentalAgreement rentAgree = new RentalAgreement(order, discountPercentage, holidays);\n\n return rentAgree;\n }", "private QuotationDetailsDTO getQuotationDetailsDTO() {\n\t\tQuotationDetailsDTO detail = null;\n\t\ttry {\n\t\t\tif (quotationDTO != null && quotationDTO.getQuotationDetails() != null) {\n\t\t\t\tdetail = quotationDTO.getQuotationDetails()[0];\n\t\t\t\t//bpi changed\n\t\t\t\tif (quotationDTO.getPriceIndex() != Float.parseFloat(txtPriceIndex.getText())) {\n\t\t\t\t\tdetail.setBft(null);\n\t\t\t\t}\n\n\t\t\t\t// round digit changed\n\t\t\t\tif (quotationDTO.getRoundOffDigits() != Integer.parseInt(txtRoundOffDigits.getText())) {\n\t\t\t\t\tdetail.setBft(null);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (txtCW.getText() != EMPTYSTRING) {\n\t\t\t\t\tif (detail.getChargedWeight() != Float.parseFloat(txtCW.getText())) {\n\t\t\t\t\t\tdetail.setBft(null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail = createQuotationDetail(detail);\n\t\t\t} else {\n\t\t\t\tdetail = new QuotationDetailsDTO();\n\n\t\t\t\tdetail = createQuotationDetail(detail);\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn detail;\n\t}", "@Override\n\tpublic Quotation generateQuotation(ClientInfo info) {\n\t\t// Create an initial quotation between 800 and 1000\n\t\tdouble price = generatePrice(800, 200);\n\t\t\n\t\t// 5% discount per penalty point (3 points required for qualification)\n\t\tint discount = (info.points > 3) ? 5*info.points:-50;\n\t\t\n\t\t// Add a no claims discount\n\t\tdiscount += getNoClaimsDiscount(info);\n\t\t\n\t\t// Generate the quotation and send it back\n\t\treturn new Quotation(COMPANY, generateReference(PREFIX), (price * (100-discount)) / 100);\n\t}", "@Override\n public void createPolicyFromQuote(Policy policy, Quote quote) {\n checkCommonData(quote.getCommonData());\n ProductUtils.validateMainInsured(quote);\n\n // There is only one insured at this point\n Insured insured = quote.getInsureds().get(0);\n\n // check main insured stuff\n ProductUtils.checkInsuredAgeInRange(insured, MIN_AGE, MAX_AGE);\n ProductUtils.checkMainInsured(insured);\n checkMainInsured10ECSpecific(insured);\n\n // Recalculate the quote\n //TODO this method do nothing!!!\n calculateQuote(quote, null);\n\n // check for calculated data\n ProductUtils.validateNumberOfCoverages(quote.getCoverages());\n\n // There is only one coverage at this point\n Coverage coverage = quote.getCoverages().get(0);\n\n ProductUtils.checkBeneficiaries(insured, coverage.getBeneficiaries());\n check10ECPremiumsData(quote.getPremiumsData(), insured.getStartDate());\n\n // Copy from quote to Policy\n policy.setQuoteId(quote.getQuoteId());\n policy.setCommonData(SerializationUtils.clone(quote.getCommonData()));\n policy.setPremiumsData(SerializationUtils.clone(quote.getPremiumsData()));\n policy.addCoverage(SerializationUtils.clone(coverage));\n policy.addInsured(SerializationUtils.clone(insured));\n\n // Add payment schedule\n addPayments(policy, DURATION_PAYMENT_IN_YEAR);\n }", "QuoteTermAttribute createQuoteTermAttribute();", "public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}", "public static final org.drip.state.forward.ForwardCurve ShapePreservingForwardCurve (\n\t\tfinal java.lang.String strName,\n\t\tfinal org.drip.state.identifier.ForwardLabel fri,\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParam,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams quotingParam,\n\t\tfinal java.lang.String strBasisType,\n\t\tfinal org.drip.spline.basis.FunctionSetBuilderParams fsbp,\n\t\tfinal org.drip.product.definition.CalibratableComponent[] aCalibComp,\n\t\tfinal java.lang.String strManifestMeasure,\n\t\tfinal double[] adblQuote,\n\t\tfinal double dblEpochResponse)\n\t{\n\t\tif (null == strName || strName.isEmpty() || null == strBasisType || strBasisType.isEmpty() || null ==\n\t\t\tvalParams || null == fsbp || null == strManifestMeasure || strManifestMeasure.isEmpty())\n\t\t\treturn null;\n\n\t\tint iNumQuote = null == adblQuote ? 0 : adblQuote.length;\n\t\tint iNumComp = null == aCalibComp ? 0 : aCalibComp.length;\n\n\t\tif (0 == iNumComp || iNumComp != iNumQuote) return null;\n\n\t\ttry {\n\t\t\torg.drip.state.identifier.ForwardLabel forwardLabel = null;\n\n\t\t\tif (aCalibComp[0] instanceof org.drip.product.rates.DualStreamComponent)\n\t\t\t\tforwardLabel = ((org.drip.product.rates.DualStreamComponent)\n\t\t\t\t\taCalibComp[0]).derivedStream().forwardLabel();\n\t\t\telse {\n\t\t\t\torg.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.state.identifier.ForwardLabel>\n\t\t\t\t\tmapForwardLabel = aCalibComp[0].forwardLabel();\n\n\t\t\t\tif (null != mapForwardLabel && 0 != mapForwardLabel.size())\n\t\t\t\t\tforwardLabel = mapForwardLabel.get (0);\n\t\t\t}\n\n\t\t\torg.drip.state.representation.LatentStateSpecification[] aLSS = new\n\t\t\t\torg.drip.state.representation.LatentStateSpecification[] {new\n\t\t\t\t\torg.drip.state.representation.LatentStateSpecification\n\t\t\t\t\t\t(org.drip.analytics.definition.LatentStateStatic.LATENT_STATE_FORWARD,\n\t\t\t\t\t\t\torg.drip.analytics.definition.LatentStateStatic.FORWARD_QM_FORWARD_RATE,\n\t\t\t\t\t\t\t\tforwardLabel)};\n\n\t\t\torg.drip.state.inference.LatentStateSegmentSpec[] aSegmentSpec = new\n\t\t\t\torg.drip.state.inference.LatentStateSegmentSpec[iNumComp];\n\n\t\t\tfor (int i = 0; i < iNumComp; ++i) {\n\t\t\t\torg.drip.product.calib.ProductQuoteSet pqs = aCalibComp[i].calibQuoteSet (aLSS);\n\n\t\t\t\tif (null == pqs || !pqs.set (strManifestMeasure, adblQuote[i])) return null;\n\n\t\t\t\taSegmentSpec[i] = new org.drip.state.inference.LatentStateSegmentSpec (aCalibComp[i], pqs);\n\t\t\t}\n\n\t\t\torg.drip.state.inference.LatentStateStretchSpec[] aStretchSpec = new\n\t\t\t\torg.drip.state.inference.LatentStateStretchSpec[] {new\n\t\t\t\t\torg.drip.state.inference.LatentStateStretchSpec (strName, aSegmentSpec)};\n\n\t\t\torg.drip.state.inference.LinearLatentStateCalibrator llsc = new\n\t\t\t\torg.drip.state.inference.LinearLatentStateCalibrator (new\n\t\t\t\t\torg.drip.spline.params.SegmentCustomBuilderControl (strBasisType, fsbp,\n\t\t\t\t\t\torg.drip.spline.params.SegmentInelasticDesignControl.Create (2, 2), new\n\t\t\t\t\t\t\torg.drip.spline.params.ResponseScalingShapeControl (true, new\n\t\t\t\t\t\t\t\torg.drip.function.r1tor1.QuadraticRationalShapeControl (0.)), null),\n\t\t\t\t\t\t\t\t\torg.drip.spline.stretch.BoundarySettings.FinancialStandard(),\n\t\t\t\t\t\t\t\t\t\torg.drip.spline.stretch.MultiSegmentSequence.CALIBRATE, null, null);\n\n\t\t\treturn ShapePreservingForwardCurve (llsc, aStretchSpec, fri, valParams, pricerParam, csqs,\n\t\t\t\tquotingParam, dblEpochResponse);\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "public ForexQuote getDccQuote() {\n return dccQuote;\n }", "OBCArgs createOBCArgs();", "private QuotationDetailsDTO createQuotationDetailsForMixedArticle(QuotationDetailsDTO detail, TableItem item) {\n\t\t\n\t\tdetail.setArticleName(item.getText(0));\n\t\tdetail.setChargedWeight(Float.parseFloat(item.getText(1)));\n\n\t\tif (item.getText(2).equalsIgnoreCase(optionB[0])) {\n\t\t\tdetail.setCcchargeType((byte) 0);\n\t\t} else if (item.getText(2).equalsIgnoreCase(optionB[1])) {\n\t\t\tdetail.setCcchargeType((byte) 1);\n\t\t} else if (item.getText(2).equalsIgnoreCase(optionB[2])) {\n\t\t\tdetail.setCcchargeType((byte) 2);\n\t\t} else if (item.getText(2).equalsIgnoreCase(optionB[3])) {\n\t\t\tdetail.setCcchargeType((byte) 3);\n\t\t}\n\t\tif (!item.getText(3).equals(EMPTYSTRING))\n\t\t\tdetail.setCcchargeValue(Float.parseFloat(item.getText(3)));\n\n\t\tif (item.getText(4).equalsIgnoreCase(optionB[0])) {\n\t\t\tdetail.setDcchargeType((byte) 0);\n\t\t} else if (item.getText(4).equalsIgnoreCase(optionB[1])) {\n\t\t\tdetail.setDcchargeType((byte) 1);\n\t\t} else if (item.getText(4).equalsIgnoreCase(optionB[2])) {\n\t\t\tdetail.setDcchargeType((byte) 2);\n\t\t} else if (item.getText(4).equalsIgnoreCase(optionB[3])) {\n\t\t\tdetail.setDcchargeType((byte) 3);\n\t\t}\n\t\tif (!item.getText(5).equals(EMPTYSTRING))\n\t\t\tdetail.setDcchargeValue(Float.parseFloat(item.getText(5)));\n\n\t\tif (item.getText(6).equalsIgnoreCase(optionB[0])) {\n\t\t\tdetail.setIechargeType((byte) 0);\n\t\t} else if (item.getText(6).equalsIgnoreCase(optionB[1])) {\n\t\t\tdetail.setIechargeType((byte) 1);\n\t\t} else if (item.getText(6).equalsIgnoreCase(optionB[3])) {\n\t\t\tdetail.setIechargeType((byte) 3);\n\t\t}\n\t\tif (!item.getText(7).equals(EMPTYSTRING))\n\t\t\tdetail.setIechargeValue(Float.parseFloat(item.getText(7)));\n\n\t\tif (item.getText(8).equalsIgnoreCase(optionB[0])) {\n\t\t\tdetail.setLcchargeType((byte) 0);\n\t\t} else if (item.getText(8).equalsIgnoreCase(optionB[1])) {\n\t\t\tdetail.setLcchargeType((byte) 1);\n\t\t}else if (item.getText(8).equalsIgnoreCase(optionB[3])) {\n\t\t\tdetail.setLcchargeType((byte) 3);\n\t\t}\n\t\tif (!item.getText(9).equals(EMPTYSTRING))\n\t\t\tdetail.setLcchargeValue(Float.parseFloat(item.getText(9)));\n\n\t\tif (item.getText(10).equalsIgnoreCase(optionC[0])) {\n\t\t\tdetail.setDdchargeType((byte) 0);\n\t\t} else if (item.getText(10).equalsIgnoreCase(optionC[1])) {\n\t\t\tdetail.setDdchargeType((byte) 1);\n\t\t} else if (item.getText(10).equalsIgnoreCase(optionC[2])) {\n\t\t\tdetail.setDdchargeType((byte) 2);\n\t\t}\n\t\tif (!item.getText(11).equals(EMPTYSTRING))\n\t\t\tdetail.setMinDdchargeValue(Float.parseFloat(item.getText(11)));\n\t\tif (!item.getText(12).equals(EMPTYSTRING))\n\t\t\tdetail.setDdchargeArticle(Float.parseFloat(item.getText(12)));\n\n\t\treturn detail;\n\t}", "public DiscountedLineItemPrice build() {\n Objects.requireNonNull(value, DiscountedLineItemPrice.class + \": value is missing\");\n Objects.requireNonNull(includedDiscounts, DiscountedLineItemPrice.class + \": includedDiscounts is missing\");\n return new DiscountedLineItemPriceImpl(value, includedDiscounts);\n }", "QuoteItem createQuoteItem();", "private Calendar constructPrincipleSymptomsDate() {\n\t\tCalendar psd = null ;\n\n\t\t//\n\t\t// This is a painfully inefficient way of doing it.\n\t\t// Optimization can wait until later!\n\t\tString sEpiSymponset, sEpiSymponsetHour, sEpiSymponsetMin ;\n\t\tString sEpiSymponsetYear, sEpiSymponsetMonth ;\n\n\t\tsEpiSymponset = od2p.getValue( \"DataSubmissionQuestionnaire\", \"epi_symponset\" ) ;\n\t\tif( sEpiSymponset != null ) {\n\t\t\tsEpiSymponset = od2p.getCorrectedDateTimeValueFromString( sEpiSymponset ) ;\n\t\t\tsEpiSymponsetHour = od2p.getValue( \"DataSubmissionQuestionnaire\", \"epi_symponset_hour\" ) ;\n\t\t\tsEpiSymponsetMin = od2p.getValue( \"DataSubmissionQuestionnaire\", \"epi_symponset_min\" ) ;\n\n\t\t\tXmlDateTime dt = XmlDateTime.Factory.newInstance() ;\n\t\t\tdt.setStringValue( sEpiSymponset ) ;\n\t\t\tpsd = dt.getCalendarValue() ;\n\t\t\tif( sEpiSymponsetHour != null && sEpiSymponsetMin != null) {\n\t\t\t\tpsd.set( Calendar.HOUR_OF_DAY, Integer.valueOf( sEpiSymponsetHour ) ) ;\n\t\t\t\tpsd.set( Calendar.MINUTE, Integer.valueOf( sEpiSymponsetMin ) ) ;\n\t\t\t}\n\t\t\tlog.debug( \"Principle symptoms date. Route1. \" + psd.toString() ) ;\n\t\t\treturn psd ;\n\t\t}\n\t\tsEpiSymponsetYear = od2p.getValue( \"DataSubmissionQuestionnaire\", \"epi_symponset_year\" ) ;\n\t\tif( sEpiSymponsetYear != null ) {\n\t\t\tsEpiSymponsetMonth = od2p.getValue( \"DataSubmissionQuestionnaire\", \"epi_symponset_month\" ) ;\n\t\t\tpsd = Calendar.getInstance() ;\n\t\t\tpsd.setTimeInMillis( 0 ) ;\n\t\t\tpsd.set( Integer.valueOf( sEpiSymponsetYear ), Integer.valueOf( sEpiSymponsetMonth ), 1, 0, 0) ;\n\t\t\tlog.debug( \"Principle symptoms date. Route2. \" + psd.toString() ) ;\n\t\t\treturn psd ;\n\t\t}\n\t\tlog.debug( \"Principle symptoms date. Route3. \" + psd ) ;\n\t\treturn psd ;\t\n\t}", "Concierto createConcierto();", "public Prato criaPrato(String nomePrato, String descricaoPrato, double precoPrato) throws CadastroPratoInvalidoException {\n\t\t\n\t\tVerificaPrato.verificaNomePratovazio(nomePrato);\n\t\tVerificaPrato.verificaDescVazio(descricaoPrato);\n\t\tVerificaPrato.verificaPrecoInvalido(precoPrato);\n\t\t\n\t\treturn new Prato(nomePrato, descricaoPrato, precoPrato);\n\t}", "public ServiceCompany(String name, String nit, String representativeName, String address, String phone, int employeeQuantity, double assetsValue, int creationDay, int creationMonth, int creationYear, int floors, String type){\n\n\t\tsuper(name, nit, representativeName, address, phone, employeeQuantity, assetsValue, creationDay, creationMonth, creationYear, floors, type);\n\n\t\tthis.surveys=new Survey[50];\n\n\t}", "public interface QuoteFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tQuoteFactory eINSTANCE = org.abchip.mimo.biz.model.order.quote.impl.QuoteFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Quote</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Quote</em>'.\n\t * @generated\n\t */\n\tQuote createQuote();\n\n\t/**\n\t * Returns a new object of class '<em>Adjustment</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Adjustment</em>'.\n\t * @generated\n\t */\n\tQuoteAdjustment createQuoteAdjustment();\n\n\t/**\n\t * Returns a new object of class '<em>Attribute</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Attribute</em>'.\n\t * @generated\n\t */\n\tQuoteAttribute createQuoteAttribute();\n\n\t/**\n\t * Returns a new object of class '<em>Coefficient</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Coefficient</em>'.\n\t * @generated\n\t */\n\tQuoteCoefficient createQuoteCoefficient();\n\n\t/**\n\t * Returns a new object of class '<em>Item</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Item</em>'.\n\t * @generated\n\t */\n\tQuoteItem createQuoteItem();\n\n\t/**\n\t * Returns a new object of class '<em>Note</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Note</em>'.\n\t * @generated\n\t */\n\tQuoteNote createQuoteNote();\n\n\t/**\n\t * Returns a new object of class '<em>Role</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Role</em>'.\n\t * @generated\n\t */\n\tQuoteRole createQuoteRole();\n\n\t/**\n\t * Returns a new object of class '<em>Term</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Term</em>'.\n\t * @generated\n\t */\n\tQuoteTerm createQuoteTerm();\n\n\t/**\n\t * Returns a new object of class '<em>Term Attribute</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Term Attribute</em>'.\n\t * @generated\n\t */\n\tQuoteTermAttribute createQuoteTermAttribute();\n\n\t/**\n\t * Returns a new object of class '<em>Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Type</em>'.\n\t * @generated\n\t */\n\tQuoteType createQuoteType();\n\n\t/**\n\t * Returns a new object of class '<em>Type Attr</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Type Attr</em>'.\n\t * @generated\n\t */\n\tQuoteTypeAttr createQuoteTypeAttr();\n\n\t/**\n\t * Returns a new object of class '<em>Work Effort</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Work Effort</em>'.\n\t * @generated\n\t */\n\tQuoteWorkEffort createQuoteWorkEffort();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tQuotePackage getQuotePackage();\n\n}", "public PresentValueForexBlackVolatilityQuoteSensitivityDataBundle quoteSensitivity() {\n final double[][] vegaStrike = getVega().getData();\n final int nbStrike = vegaStrike[0].length;\n final double[][] result = new double[vegaStrike.length][nbStrike];\n final int nbQuote = (vegaStrike[0].length - 1) / 2;\n for (int loopexp = 0; loopexp < vegaStrike.length; loopexp++) {\n result[loopexp][0] = vegaStrike[loopexp][nbQuote]; // ATM\n for (int loopstrike = 0; loopstrike < nbQuote; loopstrike++) {\n result[loopexp][loopstrike + 1] = -vegaStrike[loopexp][loopstrike] / 2.0 + vegaStrike[loopexp][nbStrike - 1 - loopstrike] / 2.0; // Risk Reversal\n result[loopexp][loopstrike + nbQuote + 1] = vegaStrike[loopexp][loopstrike] + vegaStrike[loopexp][nbStrike - 1 - loopstrike]; // Strangle\n result[loopexp][0] += vegaStrike[loopexp][loopstrike] + vegaStrike[loopexp][nbStrike - 1 - loopstrike];\n }\n }\n return new PresentValueForexBlackVolatilityQuoteSensitivityDataBundle(_currencyPair.getFirst(),\n _currencyPair.getSecond(), _expiries.getData(), _delta.getData(), result);\n }", "public Account(String requisites, double value) {\n this.value = value;\n this.requisites = requisites;\n }", "QuoteWorkEffort createQuoteWorkEffort();", "public MOrder( MProject project,boolean IsSOTrx,String DocSubTypeSO ) {\n this( project.getCtx(),0,project.get_TrxName());\n setAD_Client_ID( project.getAD_Client_ID());\n setAD_Org_ID( project.getAD_Org_ID());\n setC_Campaign_ID( project.getC_Campaign_ID());\n setSalesRep_ID( project.getSalesRep_ID());\n\n //\n\n setC_Project_ID( project.getC_Project_ID());\n setDescription( project.getName());\n\n Timestamp ts = project.getDateContract();\n\n if( ts != null ) {\n setDateOrdered( ts );\n }\n\n ts = project.getDateFinish();\n\n if( ts != null ) {\n setDatePromised( ts );\n }\n\n //\n\n setC_BPartner_ID( project.getC_BPartner_ID());\n setC_BPartner_Location_ID( project.getC_BPartner_Location_ID());\n setAD_User_ID( project.getAD_User_ID());\n\n //\n\n setM_Warehouse_ID( project.getM_Warehouse_ID());\n setM_PriceList_ID( project.getM_PriceList_ID());\n setC_PaymentTerm_ID( project.getC_PaymentTerm_ID());\n\n //\n\n setIsSOTrx( IsSOTrx );\n\n if( IsSOTrx ) {\n if( (DocSubTypeSO == null) || (DocSubTypeSO.length() == 0) ) {\n setC_DocTypeTarget_ID( DocSubTypeSO_OnCredit );\n } else {\n setC_DocTypeTarget_ID( DocSubTypeSO );\n }\n } else {\n setC_DocTypeTarget_ID();\n }\n }", "public static final BondStream Create (\n\t\tfinal int iMaturityDate,\n\t\tfinal int iEffectiveDate,\n\t\tfinal int iFinalMaturityDate,\n\t\tfinal int iFirstCouponDate,\n\t\tfinal int iInterestAccrualStartDate,\n\t\tfinal int iFreq,\n\t\tfinal double dblCoupon,\n\t\tfinal java.lang.String strCouponDC,\n\t\tfinal java.lang.String strAccrualDC,\n\t\tfinal org.drip.analytics.daycount.DateAdjustParams dapPay,\n\t\tfinal org.drip.analytics.daycount.DateAdjustParams dapReset,\n\t\tfinal org.drip.analytics.daycount.DateAdjustParams dapMaturity,\n\t\tfinal org.drip.analytics.daycount.DateAdjustParams dapEffective,\n\t\tfinal org.drip.analytics.daycount.DateAdjustParams dapPeriodEnd,\n\t\tfinal org.drip.analytics.daycount.DateAdjustParams dapAccrualEnd,\n\t\tfinal org.drip.analytics.daycount.DateAdjustParams dapPeriodStart,\n\t\tfinal org.drip.analytics.daycount.DateAdjustParams dapAccrualStart,\n\t\tfinal java.lang.String strMaturityType,\n\t\tfinal boolean bPeriodsFromForward,\n\t\tfinal java.lang.String strCalendar,\n\t\tfinal java.lang.String strCurrency,\n\t\tfinal org.drip.state.identifier.FloaterLabel floaterLabel,\n\t\tfinal org.drip.state.identifier.EntityCDSLabel creditLabel)\n\t{\n\t\tboolean bCouponEOMAdj = null == strCouponDC ? false : strCouponDC.toUpperCase().contains (\"EOM\");\n\n\t\tint iCouponDCIndex = null == strCouponDC ? -1 : strCouponDC.indexOf (\" NON\");\n\n\t\tjava.lang.String strCouponDCAdj = -1 != iCouponDCIndex ? strCouponDC.substring (0, iCouponDCIndex) :\n\t\t\tstrCouponDC;\n\n\t\tboolean bAccrualEOMAdj = null == strAccrualDC ? false : strAccrualDC.toUpperCase().contains (\"EOM\");\n\n\t\tint iAccrualDCIndex = null == strAccrualDC ? -1 : strAccrualDC.indexOf (\" NON\");\n\n\t\tjava.lang.String strAccrualDCAdj = -1 != iAccrualDCIndex ? strAccrualDC.substring (0,\n\t\t\tiAccrualDCIndex) : strAccrualDC;\n\n\t\torg.drip.analytics.date.JulianDate dtEffective = new org.drip.analytics.date.JulianDate\n\t\t\t(iEffectiveDate);\n\n\t\torg.drip.analytics.date.JulianDate dtMaturity = new org.drip.analytics.date.JulianDate\n\t\t\t(iMaturityDate);\n\n\t\tjava.lang.String strTenor = (12 / iFreq) + \"M\";\n\t\tjava.util.List<org.drip.analytics.cashflow.CompositePeriod> lsCouponPeriod = null;\n\n\t\ttry {\n\t\t\torg.drip.param.period.UnitCouponAccrualSetting ucas = new\n\t\t\t\torg.drip.param.period.UnitCouponAccrualSetting (iFreq, strCouponDCAdj, bCouponEOMAdj,\n\t\t\t\t\tstrAccrualDCAdj, bAccrualEOMAdj, strCurrency, false,\n\t\t\t\t\t\torg.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);\n\n\t\t\torg.drip.param.period.CompositePeriodSetting cps = new\n\t\t\t\torg.drip.param.period.CompositePeriodSetting (iFreq, strTenor, strCurrency, dapPay, 1., null,\n\t\t\t\t\tnull, null, creditLabel);\n\n\t\t\tjava.util.List<java.lang.Integer> lsStreamEdgeDate = bPeriodsFromForward ?\n\t\t\t\torg.drip.analytics.support.CompositePeriodBuilder.ForwardEdgeDates (dtEffective, dtMaturity,\n\t\t\t\t\tstrTenor, dapAccrualEnd, org.drip.analytics.support.CompositePeriodBuilder.LONG_STUB) :\n\t\t\t\t\t\torg.drip.analytics.support.CompositePeriodBuilder.BackwardEdgeDates (dtEffective,\n\t\t\t\t\t\t\tdtMaturity, strTenor, dapAccrualEnd,\n\t\t\t\t\t\t\t\torg.drip.analytics.support.CompositePeriodBuilder.LONG_STUB);\n\n\t\t\tif (null == floaterLabel) {\n\t\t\t\torg.drip.param.period.ComposableFixedUnitSetting cfus = new\n\t\t\t\t\torg.drip.param.period.ComposableFixedUnitSetting (strTenor,\n\t\t\t\t\t\torg.drip.analytics.support.CompositePeriodBuilder.EDGE_DATE_SEQUENCE_SINGLE, null,\n\t\t\t\t\t\t\tdblCoupon, 0., strCurrency);\n\n\t\t\t\tlsCouponPeriod = org.drip.analytics.support.CompositePeriodBuilder.FixedCompositeUnit\n\t\t\t\t\t(lsStreamEdgeDate, cps, ucas, cfus);\n\t\t\t} else {\n\t\t\t\torg.drip.param.period.ComposableFloatingUnitSetting cfus = new\n\t\t\t\t\torg.drip.param.period.ComposableFloatingUnitSetting (strTenor,\n\t\t\t\t\t\torg.drip.analytics.support.CompositePeriodBuilder.EDGE_DATE_SEQUENCE_SINGLE, null,\n\t\t\t\t\t\t\tfloaterLabel,\n\t\t\t\t\t\t\t\torg.drip.analytics.support.CompositePeriodBuilder.REFERENCE_PERIOD_IN_ADVANCE,\n\t\t\t\t\tdblCoupon);\n\n\t\t\t\tlsCouponPeriod = org.drip.analytics.support.CompositePeriodBuilder.FloatingCompositeUnit\n\t\t\t\t\t(lsStreamEdgeDate, cps, cfus);\n\t\t\t}\n\n\t\t\treturn new BondStream (lsCouponPeriod, iFinalMaturityDate, strMaturityType);\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "@Nonnull\n public static UBL23WriterBuilder <OrderCancellationType> orderCancellation ()\n {\n return UBL23WriterBuilder.create (OrderCancellationType.class);\n }", "public static void main(String[] args) throws SolverException, CloneNotSupportedException {\n\t\tLocalDate referenceDate = LocalDate.of(2018,9,24);\n\n\t\t/*\n\t\t * Define the calibration spec generators for our calibration products\n\t\t */\n\t\tFunction<String,String> frequencyForTenor = (tenor) -> {\n\t\t\tswitch(tenor) {\n\t\t\tcase \"3M\":\n\t\t\t\treturn \"quarterly\";\n\t\t\tcase \"6M\":\n\t\t\t\treturn \"semiannual\";\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(\"Unkown tenor \" + tenor);\n\t\t};\n\n\t\tBiFunction<String, Double, CalibrationSpec> deposit = (maturity, rate) -> {\n\t\t\tScheduleInterface scheduleInterfaceRec = ScheduleGenerator.createScheduleFromConventions(referenceDate, 2, \"0D\", maturity, \"tenor\", \"act/360\", \"first\", \"following\", new BusinessdayCalendarExcludingTARGETHolidays(), 0, 0);\n\t\t\tScheduleInterface scheduleInterfacePay = null;\n\t\t\tdouble calibrationTime = scheduleInterfaceRec.getPayment(scheduleInterfaceRec.getNumberOfPeriods()-1);\n\t\t\tCalibrationSpec calibrationSpec = new CalibratedCurves.CalibrationSpec(\"EUR-OIS-\" + maturity, \"Deposit\", scheduleInterfaceRec, \"\", rate, \"discount-EUR-OIS\", scheduleInterfacePay, null, 0.0, null, \"discount-EUR-OIS\", calibrationTime);\n\t\t\treturn calibrationSpec;\n\t\t};\n\n\t\tBiFunction<String, Double, CalibrationSpec> swapSingleCurve = (maturity, rate) -> {\n\t\t\tScheduleInterface scheduleInterfaceRec = ScheduleGenerator.createScheduleFromConventions(referenceDate, 2, \"0D\", maturity, \"annual\", \"act/360\", \"first\", \"modified_following\", new BusinessdayCalendarExcludingTARGETHolidays(), 0, 1);\n\t\t\tScheduleInterface scheduleInterfacePay = ScheduleGenerator.createScheduleFromConventions(referenceDate, 2, \"0D\", maturity, \"annual\", \"act/360\", \"first\", \"modified_following\", new BusinessdayCalendarExcludingTARGETHolidays(), 0, 1);\n\t\t\tdouble calibrationTime = scheduleInterfaceRec.getPayment(scheduleInterfaceRec.getNumberOfPeriods() - 1);\n\t\t\tCalibrationSpec calibrationSpec = new CalibratedCurves.CalibrationSpec(\"EUR-OIS-\" + maturity, \"Swap\", scheduleInterfaceRec, \"forward-EUR-OIS\", 0.0, \"discount-EUR-OIS\", scheduleInterfacePay, \"\", rate, \"discount-EUR-OIS\", \"discount-EUR-OIS\", calibrationTime);\n\t\t\treturn calibrationSpec;\n\t\t};\n\n\t\tFunction<String,BiFunction<String, Double, CalibrationSpec>> fra = (tenor) -> {\n\t\t\treturn (fixing, rate) -> {\n\t\t\t\tScheduleInterface scheduleInterfaceRec = ScheduleGenerator.createScheduleFromConventions(referenceDate, 2, fixing, tenor, \"tenor\", \"act/360\", \"first\", \"modified_following\", new BusinessdayCalendarExcludingTARGETHolidays(), 0, 0);\n\t\t\t\tdouble calibrationTime = scheduleInterfaceRec.getFixing(scheduleInterfaceRec.getNumberOfPeriods() - 1);\n\t\t\t\tString curveName = \"forward-EUR-\" + tenor;\n\t\t\t\tCalibrationSpec calibrationSpec = new CalibratedCurves.CalibrationSpec(\"EUR-\" + tenor + \"-\" + fixing, \"FRA\", scheduleInterfaceRec, curveName, rate, \"discount-EUR-OIS\", null, null, 0.0, null, curveName, calibrationTime);\n\t\t\t\treturn calibrationSpec;\n\t\t\t};\n\t\t};\n\n\t\tFunction<String,BiFunction<String, Double, CalibrationSpec>> swap = (tenor) -> {\n\t\t\treturn (maturity, rate) -> {\n\t\t\t\tString frequencyRec = frequencyForTenor.apply(tenor);\n\n\t\t\t\tScheduleInterface scheduleInterfaceRec = ScheduleGenerator.createScheduleFromConventions(referenceDate, 2, \"0D\", maturity, frequencyRec, \"act/360\", \"first\", \"following\", new BusinessdayCalendarExcludingTARGETHolidays(), 0, 0);\n\t\t\t\tScheduleInterface scheduleInterfacePay = ScheduleGenerator.createScheduleFromConventions(referenceDate, 2, \"0D\", maturity, \"annual\", \"E30/360\", \"first\", \"following\", new BusinessdayCalendarExcludingTARGETHolidays(), 0, 0);\n\t\t\t\tdouble calibrationTime = scheduleInterfaceRec.getFixing(scheduleInterfaceRec.getNumberOfPeriods() - 1);\n\t\t\t\tString curveName = \"forward-EUR-\" + tenor;\n\t\t\t\tCalibrationSpec calibrationSpec = new CalibratedCurves.CalibrationSpec(\"EUR-\" + tenor + maturity, \"Swap\", scheduleInterfaceRec, curveName, 0.0, \"discount-EUR-OIS\", scheduleInterfacePay, \"\", rate, \"discount-EUR-OIS\", curveName, calibrationTime);\n\t\t\t\treturn calibrationSpec;\n\t\t\t};\n\t\t};\n\n\t\tBiFunction<String,String,BiFunction<String, Double, CalibrationSpec>> swapBasis = (tenorRec,tenorPay) -> {\n\t\t\treturn (maturity, rate) -> {\n\t\t\t\tString curveNameRec = \"forward-EUR-\" + tenorRec;\n\t\t\t\tString curveNamePay = \"forward-EUR-\" + tenorPay;\n\n\t\t\t\tString frequencyRec = frequencyForTenor.apply(tenorRec);\n\t\t\t\tString frequencyPay = frequencyForTenor.apply(tenorPay);\n\n\t\t\t\tScheduleInterface scheduleInterfaceRec = ScheduleGenerator.createScheduleFromConventions(referenceDate, 2, \"0D\", maturity, frequencyRec, \"act/360\", \"first\", \"following\", new BusinessdayCalendarExcludingTARGETHolidays(), 0, 0);\n\t\t\t\tScheduleInterface scheduleInterfacePay = ScheduleGenerator.createScheduleFromConventions(referenceDate, 2, \"0D\", maturity, frequencyPay, \"act/360\", \"first\", \"following\", new BusinessdayCalendarExcludingTARGETHolidays(), 0, 0);\n\t\t\t\tdouble calibrationTime = scheduleInterfaceRec.getFixing(scheduleInterfaceRec.getNumberOfPeriods() - 1);\n\n\t\t\t\tCalibrationSpec calibrationSpec = new CalibratedCurves.CalibrationSpec(\"EUR-\" + tenorRec + \"-\" + tenorPay + maturity, \"Swap\", scheduleInterfaceRec, curveNameRec, 0.0, \"discount-EUR-OIS\", scheduleInterfacePay, curveNamePay, rate, \"discount-EUR-OIS\", curveNameRec, calibrationTime);\n\t\t\t\treturn calibrationSpec;\n\t\t\t};\n\t\t};\n\n\t\t/*\n\t\t * Generate empty curve template (for cloning during calibration)\n\t\t */\n\t\tdouble[] times = { 0.0 };\n\t\tdouble[] discountFactors = { 1.0 };\n\t\tboolean[] isParameter = { false };\n\n\t\tDiscountCurve discountCurveOIS = DiscountCurve.createDiscountCurveFromDiscountFactors(\"discount-EUR-OIS\", referenceDate, times, discountFactors, isParameter, InterpolationMethod.LINEAR, ExtrapolationMethod.CONSTANT, InterpolationEntity.LOG_OF_VALUE);\n\t\tForwardCurveInterface forwardCurveOIS = new ForwardCurveFromDiscountCurve(\"forward-EUR-OIS\", \"discount-EUR-OIS\", referenceDate, \"3M\");\n\t\tForwardCurveInterface forwardCurve3M = new ForwardCurve(\"forward-EUR-3M\", referenceDate, \"3M\", new BusinessdayCalendarExcludingTARGETHolidays(), BusinessdayCalendarInterface.DateRollConvention.FOLLOWING, Curve.InterpolationMethod.LINEAR, Curve.ExtrapolationMethod.CONSTANT, Curve.InterpolationEntity.VALUE,ForwardCurve.InterpolationEntityForward.FORWARD, \"discount-EUR-OIS\");\n\t\tForwardCurveInterface forwardCurve6M = new ForwardCurve(\"forward-EUR-6M\", referenceDate, \"6M\", new BusinessdayCalendarExcludingTARGETHolidays(), BusinessdayCalendarInterface.DateRollConvention.FOLLOWING, Curve.InterpolationMethod.LINEAR, Curve.ExtrapolationMethod.CONSTANT, Curve.InterpolationEntity.VALUE,ForwardCurve.InterpolationEntityForward.FORWARD, \"discount-EUR-OIS\");\n\n\t\tAnalyticModel forwardCurveModel = new AnalyticModel(new CurveInterface[] { discountCurveOIS, forwardCurveOIS, forwardCurve3M, forwardCurve6M });\n\n\t\tList<CalibrationSpec> calibrationSpecs = new LinkedList<>();\n\n\t\t/*\n\t\t * Calibration products for OIS curve: Deposits\n\t\t */\n\t\tcalibrationSpecs.add(deposit.apply(\"1D\", 0.202 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"1W\", 0.195 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"2W\", 0.193 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"3W\", 0.193 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"1M\", 0.191 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"2M\", 0.185 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"3M\", 0.180 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"4M\", 0.170 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"5M\", 0.162 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"6M\", 0.156 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"7M\", 0.150 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"8M\", 0.145 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"9M\", 0.141 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"10M\", 0.136 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"11M\", 0.133 / 100.0));\n\t\tcalibrationSpecs.add(deposit.apply(\"12M\", 0.129 / 100.0));\n\n\t\t/*\n\t\t * Calibration products for OIS curve: Swaps\n\t\t */\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"15M\", 0.118 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"18M\", 0.108 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"21M\", 0.101 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"2Y\", 0.101 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"3Y\", 0.194 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"4Y\", 0.346 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"5Y\", 0.534 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"6Y\", 0.723 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"7Y\", 0.895 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"8Y\", 1.054 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"9Y\", 1.189 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"10Y\", 1.310 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"11Y\", 1.423 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"12Y\", 1.520 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"15Y\", 1.723 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"20Y\", 1.826 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"25Y\", 1.877 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"30Y\", 1.910 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"40Y\", 2.025 / 100.0));\n\t\tcalibrationSpecs.add(swapSingleCurve.apply(\"50Y\", 2.101 / 100.0));\n\n\t\t/*\n\t\t * Calibration products for 3M curve: FRAs\n\t\t */\n\t\tcalibrationSpecs.add(fra.apply(\"3M\").apply(\"0D\", 0.322 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"3M\").apply(\"1M\", 0.329 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"3M\").apply(\"2M\", 0.328 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"3M\").apply(\"3M\", 0.326 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"3M\").apply(\"6M\", 0.323 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"3M\").apply(\"9M\", 0.316 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"3M\").apply(\"12M\", 0.360 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"3M\").apply(\"15M\", 0.390 / 100.0));\n\n\t\t/*\n\t\t * Calibration products for 3M curve: swaps\n\t\t */\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"2Y\", 0.380 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"3Y\", 0.485 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"4Y\", 0.628 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"5Y\", 0.812 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"6Y\", 0.998 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"7Y\", 1.168 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"8Y\", 1.316 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"9Y\", 1.442 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"10Y\", 1.557 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"12Y\", 1.752 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"15Y\", 1.942 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"20Y\", 2.029 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"25Y\", 2.045 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"30Y\", 2.097 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"40Y\", 2.208 / 100.0));\n\t\tcalibrationSpecs.add(swap.apply(\"3M\").apply(\"50Y\", 2.286 / 100.0));\n\n\t\t/*\n\t\t * Calibration products for 6M curve: FRAs\n\t\t */\n\n\t\tcalibrationSpecs.add(fra.apply(\"6M\").apply(\"0D\", 0.590 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"6M\").apply(\"1M\", 0.597 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"6M\").apply(\"2M\", 0.596 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"6M\").apply(\"3M\", 0.594 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"6M\").apply(\"6M\", 0.591 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"6M\").apply(\"9M\", 0.584 / 100.0));\n\t\tcalibrationSpecs.add(fra.apply(\"6M\").apply(\"12M\", 0.584 / 100.0));\n\n\t\t/*\n\t\t * Calibration products for 6M curve: tenor basis swaps\n\t\t * Note: the fixed bases is added to the second argument tenor (here 3M).\n\t\t */\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"2Y\", 0.255 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"3Y\", 0.245 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"4Y\", 0.227 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"5Y\", 0.210 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"6Y\", 0.199 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"7Y\", 0.189 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"8Y\", 0.177 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"9Y\", 0.170 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"10Y\", 0.164 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"12Y\", 0.156 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"15Y\", 0.135 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"20Y\", 0.125 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"25Y\", 0.117 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"30Y\", 0.107 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"40Y\", 0.095 / 100.0));\n\t\tcalibrationSpecs.add(swapBasis.apply(\"6M\",\"3M\").apply(\"50Y\", 0.088 / 100.0));\n\n\t\t/*\n\t\t * Calibrate\n\t\t */\n\t\tCalibratedCurves calibratedCurves = new CalibratedCurves(calibrationSpecs.toArray(new CalibrationSpec[calibrationSpecs.size()]), forwardCurveModel, 1E-15);\n\n\t\t/*\n\t\t * Get the calibrated model\n\t\t */\n\t\tAnalyticModelInterface calibratedModel = calibratedCurves.getModel();\n\t\t\n\t\tdouble[] strikes = {-0.005,\n\t\t\t\t-0.0025,\n\t\t\t\t-0.0013,\n\t\t\t\t0.0,\n\t\t\t\t0.0025,\n\t\t\t\t0.005,\n\t\t\t\t0.01,\n\t\t\t\t0.015,\n\t\t\t\t0.02,\n\t\t\t\t0.03,\n\t\t\t\t0.05};\n\t\t\n\t\n\t\tdouble[][] volatilities = \n\t\t\t{{0.0025,0.0024,0.0027,0.0031,0.0037,0.0043,0.0052,0.0061,0.0069,0.0085,0.0114},\n\t\t\t\t\t{0.0025,0.0024,0.0027,0.0031,0.0037,0.0043,0.0052,0.0061,0.0069,0.0085,0.0114},\n\t\t\t\t\t{0.0025,0.0024,0.0028,0.0031,0.0038,0.0043,0.0052,0.0061,0.0069,0.0085,0.0114},\n\t\t\t\t\t{0.0025,0.0024,0.0027,0.0031,0.0037,0.0043,0.0052,0.0061,0.0069,0.0085,0.0114},\n\t\t\t\t\t{0.0025,0.0024,0.0027,0.0031,0.0038,0.0043,0.0052,0.0061,0.0069,0.0085,0.0114},\n\t\t\t\t\t{0.0040,0.0043,0.0045,0.0047,0.0049,0.0052,0.0058,0.0065,0.0072,0.0087,0.0114},\n\t\t\t\t\t{0.0047,0.0049,0.0051,0.0053,0.0055,0.0057,0.0062,0.0068,0.0075,0.0089,0.0115},\n\t\t\t\t\t{0.0050,0.0052,0.0053,0.0054,0.0056,0.0058,0.0063,0.0069,0.0075,0.0088,0.0113},\n\t\t\t\t\t{0.0055,0.0056,0.0057,0.0058,0.0060,0.0061,0.0065,0.0070,0.0076,0.0088,0.0113},\n\t\t\t\t\t{0.0055,0.0056,0.0057,0.0058,0.0060,0.0061,0.0064,0.0069,0.0074,0.0084,0.0107},\n\t\t\t\t\t{0.0058,0.0059,0.0061,0.0061,0.0062,0.0064,0.0066,0.0070,0.0074,0.0083,0.0103},\n\t\t\t\t\t{0.0058,0.0059,0.0059,0.0060,0.0062,0.0063,0.0066,0.0069,0.0073,0.0081,0.0099},\n\t\t\t\t\t{0.0060,0.0061,0.0062,0.0063,0.0064,0.0065,0.0067,0.0069,0.0072,0.0079,0.0095},\n\t\t\t\t\t{0.0059,0.0060,0.0061,0.0061,0.0063,0.0063,0.0066,0.0068,0.0071,0.0079,0.0095},\n\t\t\t\t\t{0.0061,0.0062,0.0062,0.0062,0.0064,0.0065,0.0066,0.0068,0.0071,0.0077,0.0092},\n\t\t\t\t\t{0.0059,0.0060,0.0061,0.0061,0.0062,0.0063,0.0065,0.0067,0.0070,0.0077,0.0091},\n\t\t\t\t\t{0.0060,0.0061,0.0062,0.0062,0.0063,0.0063,0.0066,0.0067,0.0070,0.0075,0.0089},\n\t\t\t\t\t{0.0060,0.0060,0.0060,0.0061,0.0062,0.0063,0.0064,0.0067,0.0069,0.0075,0.0088},\n\t\t\t\t\t{0.0060,0.0061,0.0061,0.0062,0.0062,0.0063,0.0064,0.0067,0.0068,0.0073,0.0086},\n\t\t\t\t\t{0.0058,0.0058,0.0059,0.0059,0.0060,0.0061,0.0063,0.0065,0.0067,0.0073,0.0085},\n\t\t\t\t\t{0.0058,0.0059,0.0060,0.0060,0.0060,0.0061,0.0063,0.0065,0.0067,0.0071,0.0083},\n\t\t\t\t\t{0.0059,0.0059,0.0060,0.0060,0.0061,0.0061,0.0063,0.0064,0.0066,0.0070,0.0081},\n\t\t\t\t\t{0.0059,0.0060,0.0061,0.0061,0.0061,0.0062,0.0063,0.0064,0.0065,0.0069,0.0079},\n\t\t\t\t\t{0.0056,0.0057,0.0057,0.0057,0.0058,0.0059,0.0060,0.0062,0.0065,0.0069,0.0081},\n\t\t\t\t\t{0.0056,0.0057,0.0057,0.0057,0.0058,0.0059,0.0060,0.0062,0.0064,0.0068,0.0079},\n\t\t\t\t\t{0.0057,0.0057,0.0057,0.0058,0.0058,0.0059,0.0060,0.0061,0.0063,0.0067,0.0077},\n\t\t\t\t\t{0.0057,0.0057,0.0057,0.0058,0.0058,0.0059,0.0060,0.0061,0.0063,0.0066,0.0076},\n\t\t\t\t\t{0.0057,0.0057,0.0058,0.0058,0.0058,0.0059,0.0059,0.0060,0.0062,0.0065,0.0074},\n\t\t\t\t\t{0.0057,0.0058,0.0058,0.0058,0.0059,0.0059,0.0059,0.0060,0.0061,0.0064,0.0073},\n\t\t\t\t\t{0.0054,0.0054,0.0054,0.0055,0.0055,0.0056,0.0058,0.0059,0.0061,0.0065,0.0076},\n\t\t\t\t\t{0.0054,0.0054,0.0054,0.0054,0.0055,0.0056,0.0057,0.0059,0.0060,0.0065,0.0075},\n\t\t\t\t\t{0.0054,0.0053,0.0054,0.0054,0.0055,0.0055,0.0057,0.0058,0.0060,0.0064,0.0074},\n\t\t\t\t\t{0.0053,0.0054,0.0054,0.0054,0.0055,0.0055,0.0056,0.0058,0.0059,0.0063,0.0073},\n\t\t\t\t\t{0.0053,0.0054,0.0054,0.0054,0.0054,0.0055,0.0056,0.0057,0.0059,0.0062,0.0071},\n\t\t\t\t\t{0.0053,0.0054,0.0054,0.0054,0.0054,0.0055,0.0056,0.0057,0.0058,0.0061,0.0070},\n\t\t\t\t\t{0.0053,0.0053,0.0054,0.0054,0.0054,0.0054,0.0055,0.0056,0.0057,0.0061,0.0069},\n\t\t\t\t\t{0.0053,0.0054,0.0054,0.0054,0.0054,0.0054,0.0055,0.0056,0.0057,0.0060,0.0068},\n\t\t\t\t\t{0.0053,0.0054,0.0054,0.0054,0.0054,0.0054,0.0054,0.0055,0.0056,0.0059,0.0067},\n\t\t\t\t\t{0.0053,0.0053,0.0054,0.0054,0.0054,0.0054,0.0054,0.0055,0.0055,0.0058,0.0066},\n\t\t\t\t\t{0.0051,0.0051,0.0051,0.0051,0.0052,0.0053,0.0054,0.0055,0.0057,0.0060,0.0070},\n\t\t\t\t\t{0.0051,0.0051,0.0051,0.0051,0.0052,0.0052,0.0053,0.0055,0.0056,0.0060,0.0069},\n\t\t\t\t\t{0.0051,0.0051,0.0051,0.0051,0.0052,0.0052,0.0053,0.0054,0.0056,0.0059,0.0068},\n\t\t\t\t\t{0.0051,0.0051,0.0051,0.0051,0.0051,0.0052,0.0052,0.0054,0.0055,0.0058,0.0067},\n\t\t\t\t\t{0.0051,0.0051,0.0051,0.0051,0.0051,0.0051,0.0052,0.0053,0.0055,0.0058,0.0066},\n\t\t\t\t\t{0.0050,0.0051,0.0051,0.0050,0.0051,0.0051,0.0052,0.0053,0.0054,0.0057,0.0066},\n\t\t\t\t\t{0.0050,0.0050,0.0051,0.0050,0.0051,0.0051,0.0051,0.0052,0.0054,0.0056,0.0065},\n\t\t\t\t\t{0.0050,0.0050,0.0050,0.0050,0.0051,0.0051,0.0051,0.0052,0.0053,0.0056,0.0064},\n\t\t\t\t\t{0.0050,0.0050,0.0050,0.0050,0.0050,0.0050,0.0050,0.0051,0.0053,0.0055,0.0063},\n\t\t\t\t\t{0.0050,0.0050,0.0050,0.0050,0.0050,0.0050,0.0050,0.0051,0.0052,0.0054,0.0063},\n\t\t\t\t\t{0.0050,0.0049,0.0049,0.0050,0.0050,0.0051,0.0051,0.0052,0.0053,0.0057,0.0065},\n\t\t\t\t\t{0.0049,0.0049,0.0049,0.0050,0.0050,0.0050,0.0051,0.0052,0.0053,0.0057,0.0065},\n\t\t\t\t\t{0.0049,0.0049,0.0049,0.0049,0.0050,0.0050,0.0051,0.0052,0.0053,0.0056,0.0064},\n\t\t\t\t\t{0.0049,0.0049,0.0049,0.0049,0.0049,0.0050,0.0050,0.0051,0.0052,0.0056,0.0064},\n\t\t\t\t\t{0.0049,0.0048,0.0049,0.0049,0.0049,0.0050,0.0050,0.0051,0.0052,0.0056,0.0063},\n\t\t\t\t\t{0.0048,0.0048,0.0048,0.0049,0.0049,0.0049,0.0050,0.0050,0.0051,0.0055,0.0063},\n\t\t\t\t\t{0.0048,0.0048,0.0048,0.0048,0.0049,0.0049,0.0049,0.0050,0.0051,0.0055,0.0062},\n\t\t\t\t\t{0.0048,0.0048,0.0048,0.0048,0.0048,0.0049,0.0049,0.0050,0.0051,0.0054,0.0062},\n\t\t\t\t\t{0.0048,0.0047,0.0048,0.0048,0.0048,0.0048,0.0048,0.0049,0.0050,0.0054,0.0061},\n\t\t\t\t\t{0.0047,0.0047,0.0047,0.0048,0.0048,0.0048,0.0048,0.0049,0.0050,0.0053,0.0061}};\n\t\t\n\t\tdouble[] maturities = {0.5000,1.0000,1.5000,2.0000,2.5000,3.0000,3.5000,4.0000,4.5000,5.0000,\n\t\t\t\t5.5000,6.0000,6.5000,7.0000,7.5000,8.0000,8.5000,9.0000,9.5000,10.0000,\n\t\t\t\t10.5000,11.0000,11.5000,12.0000,12.5000,13.0000,13.5000,14.0000,14.5000,\n\t\t\t\t15.0000,15.5000,16.0000,16.5000,17.0000,17.5000,18.0000,18.5000,19.0000,\n\t\t\t\t19.5000,20.0000,20.5000,21.0000,21.5000,22.0000,22.5000,23.0000,23.5000,\n\t\t\t\t24.0000,24.5000,25.0000,25.5000,26.0000,26.5000,27.0000,27.5000,28.0000,\n\t\t\t\t28.5000,29.0000,29.5000};\n\t\t\n\t\tint[] indeces = {7,9,10,11,12,13,14,15,16,17,18,19}; //chose the index of the maturities we want to calibrate\n\t\t\n\t\t//Target caplet data\n\t\tQuotingConvention convention = QuotingConvention.VOLATILITYNORMAL;\n\t\t\n\t\tArrayList<CapletSmileData> smiles = new ArrayList<CapletSmileData>();\n\t\t\n\t\tfor(int i = 0; i<indeces.length; i++) {\n\t\t\tint index = indeces[i];\n\t\t\tdouble[] values = volatilities[index];\n\t\t\tdouble time = maturities[index];\n\t\t\tCapletSmileData ithSmile = new CapletSmileData(\"forward-EUR-6M\",\"discount-EUR-OIS\",referenceDate,strikes,time, values, convention);\n\t\t\tsmiles.add(ithSmile);\n\t\t}\n\t\t\n\t\tCapletSmileData[] smileArray = new CapletSmileData[smiles.size()];\n\t\tsmileArray = smiles.toArray(new CapletSmileData[smiles.size()]);\n\t\t\n\t\tCapletSurfaceData surface = new CapletSurfaceData(smileArray, calibratedModel);\n\t\t\n\t\tOptimizerFactoryInterface optimizerFactory = new OptimizerFactoryLevenbergMarquardt(300 /* maxIterations */, 8 /* maxThreads */);\n\n\t\t\n\t\tdouble[] initialParameters = new double[] {0.1, 0.2,0.1, 0.3,0.1,0.7,0.4,0.6,0.1,0.2,0.1} /* initialParameters */;\n\t\tdouble[] parameterStep = new double[] {0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01, 0.01} /* parameterStep */;\n\t\t\n\t\tint numberOfPoints = 4096*16;\n\t\tdouble gridSpacing = 0.005;\n\t\tnet.finmath.interpolation.RationalFunctionInterpolation.InterpolationMethod intMethod = net.finmath.interpolation.RationalFunctionInterpolation.InterpolationMethod.LINEAR;\n\t\tnet.finmath.interpolation.RationalFunctionInterpolation.ExtrapolationMethod extMethod = net.finmath.interpolation.RationalFunctionInterpolation.ExtrapolationMethod.CONSTANT;\n\t\t\n\t\tCapletByCarrMadan pricer = new CapletByCarrMadan(\"forward-EUR-6M\", 5.0,strikes,numberOfPoints,gridSpacing,intMethod,extMethod);\n\t\t\t\n\t\t\n\t\tdouble b = 0.3;\n\t\tdouble sigma = 0.08512087176733757;\n\t\tdouble eta = 0.8006437480710635;\n\t\tdouble zeta = 1.9;\n\t\tdouble alpha = 1.0596981657639444;\n\t\tdouble[] initialValues = {0.01, 0.02};\n\t\tdouble[] immigrationRates = {0.1, 0.3};\n\t\tdouble[] lambda = {1, 1};\n\t\n\t\t\n\t\tMultiCurveTenor threeMonth = new MultiCurveTenor(0.25, \"3M\");\n\t\tMultiCurveTenor sixMonth = new MultiCurveTenor(0.5, \"6M\");\n\t\tMultiCurveTenor[] tenors = {threeMonth,sixMonth};\n\t\t\n\t\tdouble[] tenorLengths = {0.25,0.6};\n\t\tString[] tenorNames = {\"3M\", \"6M\"};\n\t\t\n\t\tdouble timeHorizon = 12.0;\t\t\n\t\tint numberOfTimeSteps = 40;\n\t\t\n\t\tScalarParameterInformationInterface[] lambdaInfo = \n\t\t\t{new ScalarParameterInformation(false, new PositivityConstraint()),\n\t\t\t\t\tnew ScalarParameterInformation(false, new PositivityConstraint())};\n\t\tScalarParameterInformationInterface[] immigrationRatesInfo =\n\t\t\t{new ScalarParameterInformation(true, new BoundConstraint(1E-5,10.0)),\n\t\t\t\t\tnew ScalarParameterInformation(true, new BoundConstraint(1E-5,10.0))};\n\t\t\n\t\tScalarParameterInformationInterface bInfo = new ScalarParameterInformation(true, new PositivityConstraint());\n\t\tScalarParameterInformationInterface sigmaInfo = new ScalarParameterInformation(true, new PositivityConstraint());\n\t\tScalarParameterInformationInterface etaInfo = new ScalarParameterInformation(true, new PositivityConstraint());\n\t\tScalarParameterInformationInterface zetaInfo = new ScalarParameterInformation(true, new PositivityConstraint());\n\t\tScalarParameterInformationInterface alphaInfo = new ScalarParameterInformation(true, new BoundConstraint(1, 2));\n\t\t\n\t\tScalarParameterInformationInterface[] initialValuesInfo = \n\t\t\t{new ScalarParameterInformation(true, new PositivityConstraint()),\n\t\t\t\t\tnew ScalarParameterInformation(true, new PositivityConstraint())};\n\t\t\n\t\tboolean functionVConstraint = true;\n\t\tboolean expMomentConstraint = true;\n\t\t\n\t\tCBIProcessInterface cbiProcess = new FlowOfTemperedAlphaStableCBIprocess(timeHorizon, numberOfTimeSteps, initialValues, immigrationRates, b, sigma, \n\t\t\t\t eta, zeta, alpha,lambda, \n\t\t\t\tlambdaInfo, immigrationRatesInfo, \n\t\t\t\tbInfo, sigmaInfo, etaInfo, \n\t\t\t\tzetaInfo, alphaInfo, initialValuesInfo,\n\t\t\t\tfunctionVConstraint, expMomentConstraint);\n\t\t\n\t\tCBIDrivenMultiCurveModel model = new CBIDrivenMultiCurveModel(calibratedModel, cbiProcess, tenorLengths, tenorNames);\n\t\t\n\t\t//CBIDrivenMultiCurveModel model = new CBIDrivenMultiCurveModel(timeHorizon, numberOfTimeSteps, calibratedModel, tenors, initialValues, immigrationRates, b, sigma, eta, zeta, alpha, lambda);\n\t\t\n\t\tCapletCalibrationProblem problem = new CapletCalibrationProblem(surface, model, optimizerFactory, pricer,initialParameters,parameterStep);\n\t\t\n\t\tSystem.out.println(\"Calibration started\");\n\t\t\n\t\tlong startMillis\t= System.currentTimeMillis();\n\t\tnet.finmath.fouriermethod.calibration.CapletCalibrationProblem.OptimizationResult result = problem.runCalibration();\n\t\tlong endMillis\t\t= System.currentTimeMillis();\n\t\t\n\t\tdouble calculationTime = ((endMillis-startMillis)/1000.0);\n\t\t\n\t\tSystem.out.println(\"Calibration completed in: \" +calculationTime + \" seconds\");\n\t\t\n\t\tSystem.out.println(\"The solver required \" + result.getIterations() + \" iterations.\");\n\t\tSystem.out.println(\"RMSQE \" +result.getRootMeanSquaredError());\n\t\t\n\t\tdouble[] parameters = result.getModel().getParameters();\n\t\tfor(int i =0; i<parameters.length; i++) {\n\t\t\tSystem.out.println(parameters[i]);\n\t\t}\n\t\t\n\t\tArrayList<String> errorsOverview = result.getCalibrationOutput();\n\t\t\n\t\tfor(String myString : errorsOverview)\n\t\t\tSystem.out.println(myString);\n\t\t\n\t\tSystem.out.println(result.getModel().getClass());\n\t\t\n\t\t\n\t\tSystem.out.println(\"Finished.\");\n\t\n\t\t\n\t}", "QuoteNote createQuoteNote();", "public CThostFtdcExchangeQuoteField(CThostFtdcExchangeQuoteField other) {\n __isset_bitfield = other.__isset_bitfield;\n this.askPrice = other.askPrice;\n this.bidPrice = other.bidPrice;\n this.askVolume = other.askVolume;\n this.bidVolume = other.bidVolume;\n this.requestID = other.requestID;\n if (other.isSetBusinessUnit()) {\n this.businessUnit = other.businessUnit;\n }\n if (other.isSetAskOffsetFlag()) {\n this.askOffsetFlag = other.askOffsetFlag;\n }\n if (other.isSetBidOffsetFlag()) {\n this.bidOffsetFlag = other.bidOffsetFlag;\n }\n if (other.isSetAskHedgeFlag()) {\n this.askHedgeFlag = other.askHedgeFlag;\n }\n if (other.isSetBidHedgeFlag()) {\n this.bidHedgeFlag = other.bidHedgeFlag;\n }\n if (other.isSetQuoteLocalID()) {\n this.quoteLocalID = other.quoteLocalID;\n }\n if (other.isSetExchangeID()) {\n this.exchangeID = other.exchangeID;\n }\n if (other.isSetParticipantID()) {\n this.participantID = other.participantID;\n }\n if (other.isSetClientID()) {\n this.clientID = other.clientID;\n }\n if (other.isSetExchangeInstID()) {\n this.exchangeInstID = other.exchangeInstID;\n }\n if (other.isSetTraderID()) {\n this.traderID = other.traderID;\n }\n this.installID = other.installID;\n this.notifySequence = other.notifySequence;\n if (other.isSetOrderSubmitStatus()) {\n this.orderSubmitStatus = other.orderSubmitStatus;\n }\n if (other.isSetTradingDay()) {\n this.tradingDay = other.tradingDay;\n }\n this.settlementID = other.settlementID;\n if (other.isSetQuoteSysID()) {\n this.quoteSysID = other.quoteSysID;\n }\n if (other.isSetInsertDate()) {\n this.insertDate = other.insertDate;\n }\n if (other.isSetInsertTime()) {\n this.insertTime = other.insertTime;\n }\n if (other.isSetCancelTime()) {\n this.cancelTime = other.cancelTime;\n }\n if (other.isSetQuoteStatus()) {\n this.quoteStatus = other.quoteStatus;\n }\n if (other.isSetClearingPartID()) {\n this.clearingPartID = other.clearingPartID;\n }\n this.sequenceNo = other.sequenceNo;\n if (other.isSetAskOrderSysID()) {\n this.askOrderSysID = other.askOrderSysID;\n }\n if (other.isSetBidOrderSysID()) {\n this.bidOrderSysID = other.bidOrderSysID;\n }\n }", "private static BemCandidato populate(String[] data) {\n\t\tBemCandidato bc = new BemCandidato();\n\t\tbc.setDataGeracao(data[0]);\n\t\tbc.setHoraGeracao(data[1]);\n\t\tbc.setAnoEleicao(data[2].trim());\n\t\tbc.setDescricaoEleicao(data[3]);\n\t\tbc.setSiglaUF(data[4].trim());\n\t\tbc.setSequencialCandidato(data[5].trim());\n\t\tbc.setDescricao(data[6]);\n\t\tbc.setCdTipoBemCandidato(data[7]);\n\t\tbc.setDsTipoBemCandidato(data[8]);\n\t\tbc.setValorBem(data[9].trim());\n\t\tbc.setDataUltimaAtualizacao(data[10]);\n\t\tbc.setHoraUltimaAtualizacao(data[11]);\n\t\treturn bc;\n\t}", "protected abstract Order createOrder(Cuisine cuisine);", "@Override\n\tprotected DateRangeStore decideType() {\n\t\tif (!anyOpen && onlyQuarters) {\n\t\t\tfinal IntegerParser quarterParser = new IntegerParser(getConfig());\n\t\t\tquarterParser.setLines(getLines());\n\t\t\tquarterParser.setMaxValue(maxValue);\n\t\t\tquarterParser.setMinValue(minValue);\n\n\t\t\treturn new DateRangeTypeQuarter(quarterParser.findBestType());\n\t\t}\n\n\n\t\t// They need to be aligned if they are non-empty.\n\n\t\tif(!minParser.isEmpty()) {\n\t\t\tminParser.setLines(getLines());\n\t\t}\n\n\t\tif(!maxParser.isEmpty()){\n\t\t\tmaxParser.setLines(getLines());\n\t\t}\n\n\t\treturn new DateRangeTypeDateRange(minParser.findBestType(), maxParser.findBestType());\n\t}", "public CDAccount() {\r\n\t\t//termOfCD = 0;\r\n\t\t//maturityDate = new DateInfo();\r\n\t}", "public Competence() {\r\n\t\tsuper();\r\n\t}", "private void populateQuotationDetails(QuotationDetailsDTO detail) {\n\t\t\n\t\tdecimalFormat = new DecimalFormat(\"0.00\");\n\t\t//Article Name\n\t\tif (detail.getArticleName() != null)\n\t\t\ttxtArticleName.setText(detail.getArticleName());\n\n\t\t//Charged Weight\t\t\n\t\ttxtCW.setText(decimalFormat.format(detail.getChargedWeight()));\n\n\t\t//CC Charge Type\n\t\tcbCCC.setText(optionB[detail.getCcchargeType()]);\n\t\ttxtCCCValue.setText(decimalFormat.format(detail.getCcchargeValue()));\n\t\thandleCCCTypeChange();\n\t\t\n\t\t//DC Charge\n\t\tcbDCC.setText(optionB[detail.getDcchargeType()]);\n\t\ttxtDCCValue.setText(decimalFormat.format(detail.getDcchargeValue()));\n\t\thandleDCCTypeChange();\n\t\t\n\t\t//DD Charge\n\t\tcbDDC.setText(optionC[detail.getDdchargeType()]);\t\t\n\t\ttxtDDC_minPerLR.setText(decimalFormat.format(detail.getMinDdchargeValue()));\n\t\ttxtDDC_chargeArticle.setText(decimalFormat.format(detail.getDdchargeArticle()));\n\t\thandleDDCTypeChange();\n\t\t\n\t\t//IE Charge\n\t\tcbIEC.setText(optionB[detail.getIechargeType()]);\n\t\ttxtIEC_article.setText(decimalFormat.format(detail.getIechargeValue()));\n\t\thandleIECTypeChange();\n\t\t\n\t\t//LC Charge\n\t\tcbLoadingCharge.setText(optionB[detail.getLcchargeType()]);\n\t\ttxtLC_article.setText(decimalFormat.format(detail.getLcchargeValue()));\n\t\thandleLCTypeChange();\n\t}", "public QuoteElementStepVO(BigDecimal originalCost, BigDecimal startCapital, BigDecimal endCapital){\n \tthis.originalCost = originalCost;\n \tthis.startCapital = startCapital;\n \tthis.endCapital = endCapital; \t\n }", "public void currencyConvertBeforeCreation() throws FortnoxException {\n\n\t\tif (isDefaultAccountingCurrency()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// First make sure that this payment isn't booked\n\t\tif (this.voucherNumber!=null) {\n\t\t\tthrow new FortnoxException(\"Not allowed to currency convert a booked payment\");\n\t\t}\n\t\t\n\t\tif (!hasWriteOffs() && !hasAmountCurrency()) {\n\t\t\t// There's no currency amount specified to convert\n\t\t\tthrow new FortnoxException(\"There's no amount currency to convert\");\n\t\t}\n\n\t\tif (!hasCurrencyRate()) {\n\t\t\tthrow new FortnoxException(\"There's no currency rate set on the payment\");\n\t\t}\n\n\t\t// Currency convert amount(s) on write-offs\n\t\tcurrencyConvertWriteOffAmounts();\n\t\t\n\t\t// Currency convert main amount\n\t\tthis.amount = this.amountCurrency * this.currencyRate;\n\t\t\n\t}", "public ElectricCar(String mfr, String color, Model model, Vehicle.PowerSource power, \n\t\t double safety, int range, boolean awd, int price, int rch,String batteryType, int VIN)\n{\n\t super(mfr, color, model, Vehicle.PowerSource.ELECTRIC_MOTOR, safety, range, awd, price, VIN);\n\t rechargeTime = rch;\n\t batteryType = \"Lithium\";\n}", "private void constructBid() {\n Bid rawBid;\n double maxDemand = elements.first().demandWatt;\n // Minimum demand is also Max Production.\n double minDemand = elements.last().demandWatt;\n\n double minPriority = 0.0;\n double maxPriority = 1.0;\n\n // First make the ideal, continuous bid, that does not care about discrete running modes.\n rawBid = Bid.create(marketBasis)\n .add(priceOf(minPriority), maxDemand)\n .add(priceOf(maxPriority), minDemand)\n .build();\n\n // Now construct actual bid\n double[] rawDemand = rawBid.getDemand();\n newBid = new UnconstrainedBidElement[rawDemand.length];\n for (int i = 0; i < rawDemand.length; i++) {\n newBid[i] = getClosest(rawDemand[i]);\n }\n }", "void setGetQuote(amdocs.iam.pd.pdwebservices.GetQuoteDocument.GetQuote getQuote);", "public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setSRCCDCOPERNM(java.lang.CharSequence value) {\n validate(fields()[13], value);\n this.SRC_CDC_OPER_NM = value;\n fieldSetFlags()[13] = true;\n return this;\n }", "public Car(String licensePlate, double fuelEconomy){\n this.licensePlate = licensePlate;\n this.fuelEconomy = fuelEconomy;\n}", "public static void constructCurves(final PrintStream out) {\n final ZonedDateTime valuationDate = ZonedDateTime.of(VALUATION_DATE, VALUATION_TIME, VALUATION_ZONE);\n // first construct the builder\n // build the discounting / overnight curve first,\n // then build the 6m EURIBOR curve\n final DiscountingMethodCurveSetUp curveBuilder = DiscountingMethodCurveBuilder.setUp()\n .buildingFirst(DISCOUNTING_NAME)\n .using(DISCOUNTING_NAME).forDiscounting(Currency.EUR).forIndex(EONIA).withInterpolator(INTERPOLATOR_1)\n .thenBuilding(FWD6_NAME)\n .using(FWD6_NAME).forIndex(EURIBOR_6M_INDEX).withInterpolator(INTERPOLATOR_2);\n final Tenor startTenor = Tenor.of(Period.ZERO);\n // add the discounting curve nodes\n IntStream.range(0, OIS_TENORS.length).forEach(\n i -> curveBuilder.addNode(DISCOUNTING_NAME, OIS.toCurveInstrument(valuationDate, startTenor, OIS_TENORS[i], 1, OIS_QUOTES[i])));\n // add the EURIBOR curve nodes\n curveBuilder.addNode(FWD6_NAME, EURIBOR_6M.toCurveInstrument(valuationDate, startTenor, Tenor.SIX_MONTHS, 1, EURIBOR_6M_QUOTE));\n IntStream.range(0, EURIBOR_6M_SWAP_QUOTES.length).forEach(\n i -> curveBuilder.addNode(FWD6_NAME,\n FIXED_EURIBOR_6M.toCurveInstrument(valuationDate, startTenor, EURIBOR_6M_SWAP_TENORS[i], 1, EURIBOR_6M_SWAP_QUOTES[i])));\n // build the curves\n final Pair<MulticurveProviderDiscount, CurveBuildingBlockBundle> result = curveBuilder.getBuilder().buildCurves(valuationDate);\n final MulticurveProviderDiscount curves = result.getFirst();\n final CurveBuildingBlockBundle inverseJacobians = result.getSecond();\n\n out.println(\"\\n\" + curves.getAllNames());\n curves.getAllCurves().entrySet().stream().forEach(e -> CurvePrintUtils.printAtNodes(out, e.getKey(), e.getValue()));\n CurvePrintUtils.printJacobians(out, inverseJacobians, curveBuilder.getBuilder());\n }", "public Competence(){\n this(1,new BigValue(Constant.EXP_CHAR));\n }", "@Nonnull\n public static UBL23WriterBuilder <QuotationType> quotation ()\n {\n return UBL23WriterBuilder.create (QuotationType.class);\n }", "public Builder setScheduling(io.opencannabis.schema.commerce.CommercialOrder.SchedulingType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n scheduling_ = value.getNumber();\n onChanged();\n return this;\n }", "private AcquisitionParameters(ControlVocabularyManager cvManager) {\n\t\tsuper(cvManager);\n\t\tString[] parentAccessionsTMP = { \"MS:1000441\", \"MS:1000480\", \"MS:1000487\", \"MS:1000481\",\n\t\t\t\t\"MS:1000027\", \"MS:1000482\", ACQUISITION_PARAMETER_ACCESSION };\n\t\tthis.parentAccessions = parentAccessionsTMP;\n\t\tString[] explicitAccessionsTMP = { \"MS:1000032\" };\n\t\tthis.explicitAccessions = explicitAccessionsTMP;\n\n\t}", "public SddOrderCancelRequest fromPaylineRequest(ResetRequest paylineRequest) throws InvalidRequestException {\n this.checkInputRequest(paylineRequest);\n\n return new SddOrderCancelRequest(\n paylineRequest.getContractConfiguration().getContractProperties().get(CONTRACT_CONFIG_CREDITOR_ID).getValue(),\n new PaymentResponseSuccessAdditionalData.Builder().fromJson(paylineRequest.getTransactionAdditionalData()).getMandateRum(),\n paylineRequest.getPartnerTransactionId()\n );\n\n }", "public CinemaDate() {\n }", "public PurchaseSchedule(String shoeType, int tick) {\r\n\t\tthis.shoeType = shoeType;\r\n\t\tthis.tick = tick;\r\n\t}", "public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }", "public org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double> value (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp)\n\t{\n\t\tif (null == valParams || null == csqs) return null;\n\n\t\torg.drip.state.discount.MergedDiscountForwardCurve dcFunding = csqs.fundingState (fundingLabel());\n\n\t\tif (null == dcFunding) return null;\n\n\t\tlong lStart = System.nanoTime();\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tdouble dblAccrued01 = 0.;\n\t\tdouble dblTotalCoupon = 0.;\n\t\tdouble dblCumulativeCouponDCF = 0.;\n\t\tdouble dblCumulativeCouponAmount = 0.;\n\t\tdouble dblAccrualCoupon = java.lang.Double.NaN;\n\t\tdouble dblUnadjustedDirtyPV = 0.;\n\t\tdouble dblUnadjustedDirtyDV01 = 0.;\n\t\tdouble dblCompoundingAdjustedDirtyPV = 0.;\n\t\tdouble dblCompoundingAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCashPayDF = java.lang.Double.NaN;\n\t\tint iResetDate = java.lang.Integer.MIN_VALUE;\n\t\tdouble dblFXAdjustedValueNotional = java.lang.Double.NaN;\n\t\tdouble dblCreditForwardConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCreditForwardConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCreditFundingConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCreditFundingConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCreditFXConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCreditFXConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCumulativeConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCumulativeConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblForwardFundingConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblForwardFundingConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblForwardFXConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblForwardFXConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblFundingFXConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblFundingFXConvexityAdjustedDirtyDV01 = 0.;\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tdouble dblPeriodFX = java.lang.Double.NaN;\n\t\t\tdouble dblPeriodNotional = java.lang.Double.NaN;\n\t\t\tdouble dblUnadjustedDirtyPeriodDV01 = java.lang.Double.NaN;\n\n\t\t\tint iPeriodPayDate = period.payDate();\n\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\ttry {\n\t\t\t\tdblPeriodNotional = period.notional (iPeriodEndDate) * period.couponFactor (iPeriodEndDate);\n\n\t\t\t\tdblPeriodFX = period.fx (csqs);\n\t\t\t} catch (java.lang.Exception e) {\n\t\t\t\te.printStackTrace();\n\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif (iPeriodPayDate < iValueDate) {\n\t\t\t\torg.drip.analytics.output.CompositePeriodCouponMetrics cpcm = period.couponMetrics\n\t\t\t\t\t(iPeriodEndDate, csqs);\n\n\t\t\t\tif (null == cpcm) return null;\n\n\t\t\t\tdouble dblPeriodDCF = cpcm.dcf();\n\n\t\t\t\tdblCumulativeCouponDCF += dblPeriodDCF;\n\n\t\t\t\tdblCumulativeCouponAmount += dblPeriodNotional * dblPeriodFX * cpcm.rate() * dblPeriodDCF;\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\torg.drip.analytics.output.CompositePeriodCouponMetrics cpcm = period.couponMetrics (iValueDate,\n\t\t\t\tcsqs);\n\n\t\t\tif (null == cpcm) return null;\n\n\t\t\tdouble dblPeriodDCF = cpcm.dcf();\n\n\t\t\tdouble dblPeriodFullRate = cpcm.rate();\n\n\t\t\torg.drip.analytics.output.CompositePeriodAccrualMetrics cpam = period.accrualMetrics (iValueDate,\n\t\t\t\tcsqs);\n\n\t\t\ttry {\n\t\t\t\tif (null != cpam) {\n\t\t\t\t\tdblAccrualCoupon = cpam.rate();\n\n\t\t\t\t\tiResetDate = cpam.resetDate();\n\n\t\t\t\t\tdouble dblPeriodAccrualDCF = cpam.dcf();\n\n\t\t\t\t\tdblCumulativeCouponDCF += dblPeriodAccrualDCF;\n\t\t\t\t\tdblAccrued01 = 0.0001 * dblPeriodAccrualDCF * dblPeriodNotional * dblPeriodFX;\n\n\t\t\t\t\tdblCumulativeCouponAmount += dblPeriodNotional * dblPeriodFX * dblAccrualCoupon *\n\t\t\t\t\t\tdblPeriodAccrualDCF;\n\t\t\t\t}\n\n\t\t\t\tdblUnadjustedDirtyPeriodDV01 = 0.0001 * dblPeriodDCF * dblPeriodNotional * dblPeriodFX *\n\t\t\t\t\tperiod.survival (csqs) * period.df (csqs);\n\t\t\t} catch (java.lang.Exception e) {\n\t\t\t\te.printStackTrace();\n\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tdouble dblCompoundingAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 * cpcm.compounding();\n\n\t\t\tdouble dblCreditForwardConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.creditForward();\n\n\t\t\tdouble dblCreditFundingConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.creditFunding();\n\n\t\t\tdouble dblCreditFXConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.creditFX();\n\n\t\t\tdouble dblCumulativeConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.cumulative();\n\n\t\t\tdouble dblForwardFundingConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.forwardFunding();\n\n\t\t\tdouble dblForwardFXConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.forwardFX();\n\n\t\t\tdouble dblFundingFXConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.fundingFX();\n\n\t\t\tdblTotalCoupon += dblPeriodFullRate;\n\t\t\tdblUnadjustedDirtyDV01 += dblUnadjustedDirtyPeriodDV01;\n\t\t\tdblUnadjustedDirtyPV += dblUnadjustedDirtyPeriodDV01 * 10000. * dblPeriodFullRate;\n\t\t\tdblCompoundingAdjustedDirtyDV01 += dblCompoundingAdjustedDirtyPeriodDV01;\n\t\t\tdblCompoundingAdjustedDirtyPV += dblCompoundingAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblCreditForwardConvexityAdjustedDirtyDV01 += dblCreditForwardConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCreditForwardConvexityAdjustedDirtyPV += dblCreditForwardConvexityAdjustedDirtyPeriodDV01 *\n\t\t\t\t10000. * dblPeriodFullRate;\n\t\t\tdblCreditFundingConvexityAdjustedDirtyDV01 += dblCreditFundingConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCreditFundingConvexityAdjustedDirtyPV += dblCreditFundingConvexityAdjustedDirtyPeriodDV01 *\n\t\t\t\t10000. * dblPeriodFullRate;\n\t\t\tdblCreditFXConvexityAdjustedDirtyDV01 += dblCreditFXConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCreditFXConvexityAdjustedDirtyPV += dblCreditFXConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblCumulativeConvexityAdjustedDirtyDV01 += dblCumulativeConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCumulativeConvexityAdjustedDirtyPV += dblCumulativeConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblForwardFundingConvexityAdjustedDirtyDV01 += dblForwardFundingConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblForwardFundingConvexityAdjustedDirtyPV += dblForwardFundingConvexityAdjustedDirtyPeriodDV01 *\n\t\t\t\t10000. * dblPeriodFullRate;\n\t\t\tdblForwardFXConvexityAdjustedDirtyDV01 += dblForwardFXConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblForwardFXConvexityAdjustedDirtyPV += dblForwardFXConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblFundingFXConvexityAdjustedDirtyDV01 += dblFundingFXConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblFundingFXConvexityAdjustedDirtyPV += dblFundingFXConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t}\n\n\t\ttry {\n\t\t\tdblCashPayDF = dcFunding.df (iValueDate);\n\n\t\t\tdblFXAdjustedValueNotional = fxAdjustedNotional (iValueDate, csqs);\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\tdblUnadjustedDirtyPV /= dblCashPayDF;\n\t\tdblUnadjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCompoundingAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCompoundingAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCreditForwardConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCreditForwardConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCreditFundingConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCreditFundingConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCreditFXConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCreditFXConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCumulativeConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCumulativeConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblForwardFundingConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblForwardFundingConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblForwardFXConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblForwardFXConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblFundingFXConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblFundingFXConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdouble dblAccrued = 0. == dblAccrued01 ? 0. : dblAccrued01 * 10000. * dblAccrualCoupon;\n\t\tdouble dblUnadjustedCleanPV = dblUnadjustedDirtyPV - dblAccrued;\n\t\tdouble dblUnadjustedCleanDV01 = dblUnadjustedDirtyDV01 - dblAccrued01;\n\t\tdouble dblUnadjustedFairPremium = 0.0001 * dblUnadjustedCleanPV / dblUnadjustedCleanDV01;\n\t\tdouble dblCompoundingAdjustedCleanPV = dblCompoundingAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblCompoundingAdjustedCleanDV01 = dblCompoundingAdjustedDirtyDV01 - dblAccrued01;\n\t\tdouble dblCompoundingAdjustedFairPremium = 0.0001 * dblCompoundingAdjustedCleanPV /\n\t\t\tdblCompoundingAdjustedCleanDV01;\n\t\tdouble dblCreditForwardConvexityAdjustedCleanPV = dblCreditForwardConvexityAdjustedDirtyPV -\n\t\t\tdblAccrued;\n\t\tdouble dblCreditForwardConvexityAdjustedCleanDV01 = dblCreditForwardConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblCreditForwardConvexityAdjustedFairPremium = 0.0001 *\n\t\t\tdblCreditForwardConvexityAdjustedCleanPV / dblCreditForwardConvexityAdjustedCleanDV01;\n\t\tdouble dblCreditFundingConvexityAdjustedCleanPV = dblCreditFundingConvexityAdjustedDirtyPV -\n\t\t\tdblAccrued;\n\t\tdouble dblCreditFundingConvexityAdjustedCleanDV01 = dblCreditFundingConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblCreditFundingConvexityAdjustedFairPremium = 0.0001 *\n\t\t\tdblCreditFundingConvexityAdjustedCleanPV / dblCreditFundingConvexityAdjustedCleanDV01;\n\t\tdouble dblCreditFXConvexityAdjustedCleanPV = dblCreditFXConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblCreditFXConvexityAdjustedCleanDV01 = dblCreditFXConvexityAdjustedDirtyDV01 - dblAccrued01;\n\t\tdouble dblCreditFXConvexityAdjustedFairPremium = 0.0001 * dblCreditFXConvexityAdjustedCleanPV /\n\t\t\tdblCreditFXConvexityAdjustedCleanDV01;\n\t\tdouble dblCumulativeConvexityAdjustedCleanPV = dblCumulativeConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblCumulativeConvexityAdjustedCleanDV01 = dblCumulativeConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblCumulativeConvexityAdjustedFairPremium = 0.0001 * dblCumulativeConvexityAdjustedCleanPV /\n\t\t\tdblCumulativeConvexityAdjustedCleanDV01;\n\t\tdouble dblForwardFundingConvexityAdjustedCleanPV = dblForwardFundingConvexityAdjustedDirtyPV -\n\t\t\tdblAccrued;\n\t\tdouble dblForwardFundingConvexityAdjustedCleanDV01 = dblForwardFundingConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblForwardFundingConvexityAdjustedFairPremium = 0.0001 *\n\t\t\tdblForwardFundingConvexityAdjustedCleanPV / dblForwardFundingConvexityAdjustedCleanDV01;\n\t\tdouble dblForwardFXConvexityAdjustedCleanPV = dblForwardFXConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblForwardFXConvexityAdjustedCleanDV01 = dblForwardFXConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblForwardFXConvexityAdjustedFairPremium = 0.0001 * dblForwardFXConvexityAdjustedCleanPV /\n\t\t\tdblForwardFXConvexityAdjustedCleanDV01;\n\t\tdouble dblFundingFXConvexityAdjustedCleanPV = dblFundingFXConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblFundingFXConvexityAdjustedCleanDV01 = dblFundingFXConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblFundingFXConvexityAdjustedFairPremium = 0.0001 * dblFundingFXConvexityAdjustedCleanPV /\n\t\t\tdblFundingFXConvexityAdjustedCleanDV01;\n\n\t\torg.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double> mapResult = new\n\t\t\torg.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double>();\n\n\t\tmapResult.put (\"AccrualCoupon\", dblAccrualCoupon);\n\n\t\tmapResult.put (\"Accrued\", dblAccrued);\n\n\t\tmapResult.put (\"Accrued01\", dblAccrued01);\n\n\t\tmapResult.put (\"CleanDV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CleanPV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedCleanDV01\", dblCompoundingAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CompoundingAdjustedCleanPV\", dblCompoundingAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyPV\", dblCompoundingAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyDV01\", dblCompoundingAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyPV\", dblCompoundingAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedFairPremium\", dblCompoundingAdjustedFairPremium);\n\n\t\tmapResult.put (\"CompoundingAdjustedParRate\", dblCompoundingAdjustedFairPremium);\n\n\t\tmapResult.put (\"CompoundingAdjustedPV\", dblCompoundingAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedRate\", dblCompoundingAdjustedFairPremium);\n\n\t\tmapResult.put (\"CompoundingAdjustedUpfront\", dblCompoundingAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustmentFactor\", dblCompoundingAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CompoundingAdjustmentPremium\", dblCompoundingAdjustedCleanPV - dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustmentPremiumUpfront\", (dblCompoundingAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedCleanDV01\",\n\t\t\tdblCreditForwardConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedCleanPV\", dblCreditForwardConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDirtyDV01\",\n\t\t\tdblCreditForwardConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDirtyPV\", dblCreditForwardConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDV01\", dblCreditForwardConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedFairPremium\",\n\t\t\tdblCreditForwardConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedParRate\",\n\t\t\tdblCreditForwardConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedPV\", dblCreditForwardConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedRate\", dblCreditForwardConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedUpfront\", dblCreditForwardConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustmentFactor\", dblCreditForwardConvexityAdjustedDirtyDV01\n\t\t\t/ dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustmentPremium\", dblCreditForwardConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustmentPremiumUpfront\",\n\t\t\t(dblCreditForwardConvexityAdjustedCleanPV - dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedCleanDV01\",\n\t\t\tdblCreditFundingConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedCleanPV\", dblCreditFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDirtyDV01\",\n\t\t\tdblCreditFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDirtyPV\", dblCreditFundingConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDV01\", dblCreditFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedFairPremium\",\n\t\t\tdblCreditFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedParRate\",\n\t\t\tdblCreditFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedPV\", dblCreditFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedRate\", dblCreditFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedUpfront\", dblCreditFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustmentFactor\", dblCreditFundingConvexityAdjustedDirtyDV01\n\t\t\t/ dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustmentPremium\", dblCreditFundingConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustmentPremiumUpfront\",\n\t\t\t(dblCreditFundingConvexityAdjustedCleanPV - dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedCleanDV01\", dblCreditFXConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedCleanPV\", dblCreditFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDirtyDV01\", dblCreditFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDirtyPV\", dblCreditFXConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDV01\", dblCreditFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedFairPremium\", dblCreditFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedParRate\", dblCreditFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedPV\", dblCreditFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedRate\", dblCreditFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedUpfront\", dblCreditFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustmentFactor\", dblCreditFXConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustmentPremium\", dblCreditFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustmentPremiumUpfront\", (dblCreditFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedCleanDV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedCleanPV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDirtyDV01\", dblCumulativeConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDirtyPV\", dblCumulativeConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDV01\", dblCumulativeConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedFairPremium\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedParRate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedPV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedRate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedUpfront\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustmentFactor\", dblCumulativeConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustmentPremium\", dblCumulativeConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustmentPremiumUpfront\", (dblCumulativeConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CumulativeCouponAmount\", dblCumulativeCouponAmount);\n\n\t\tmapResult.put (\"CumulativeCouponDCF\", dblCumulativeCouponDCF);\n\n\t\tmapResult.put (\"CV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"DirtyDV01\", dblCumulativeConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"DirtyPV\", dblCumulativeConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"DV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"FairPremium\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"Fixing01\", dblAccrued01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedCleanDV01\",\n\t\t\tdblForwardFundingConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedCleanPV\", dblForwardFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDirtyDV01\",\n\t\t\tdblForwardFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDirtyPV\", dblForwardFundingConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDV01\", dblForwardFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedFairPremium\",\n\t\t\tdblForwardFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedParRate\",\n\t\t\tdblForwardFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedPV\", dblForwardFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedRate\", dblForwardFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedUpfront\", dblForwardFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustmentFactor\", dblForwardFundingConvexityAdjustedDirtyDV01\n\t\t\t/ dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustmentPremium\", dblForwardFundingConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustmentPremiumUpfront\",\n\t\t\t(dblForwardFundingConvexityAdjustedCleanPV - dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedCleanDV01\", dblForwardFXConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedCleanPV\", dblForwardFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDirtyDV01\", dblForwardFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDirtyPV\", dblForwardFXConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDV01\", dblForwardFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedFairPremium\", dblForwardFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedParRate\", dblForwardFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedPV\", dblForwardFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedRate\", dblForwardFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedUpfront\", dblForwardFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustmentFactor\", dblForwardFXConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustmentPremium\", dblForwardFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustmentPremiumUpfront\", (dblForwardFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedCleanDV01\", dblFundingFXConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedCleanPV\", dblFundingFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDirtyDV01\", dblFundingFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDirtyPV\", dblFundingFXConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDV01\", dblFundingFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedFairPremium\", dblFundingFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedParRate\", dblFundingFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedPV\", dblFundingFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedRate\", dblFundingFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedUpfront\", dblFundingFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustmentFactor\", dblFundingFXConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustmentPremium\", dblFundingFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustmentPremiumUpfront\", (dblFundingFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"ParRate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"PV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"Rate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ResetDate\", (double) iResetDate);\n\n\t\tmapResult.put (\"ResetRate\", dblAccrualCoupon - basis());\n\n\t\tmapResult.put (\"TotalCoupon\", dblTotalCoupon);\n\n\t\tmapResult.put (\"UnadjustedCleanDV01\", dblUnadjustedCleanDV01);\n\n\t\tmapResult.put (\"UnadjustedCleanPV\", dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"UnadjustedDirtyDV01\", dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"UnadjustedDirtyPV\", dblUnadjustedDirtyPV);\n\n\t\tmapResult.put (\"UnadjustedFairPremium\", dblUnadjustedFairPremium);\n\n\t\tmapResult.put (\"UnadjustedParRate\", dblUnadjustedFairPremium);\n\n\t\tmapResult.put (\"UnadjustedPV\", dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"UnadjustedRate\", dblUnadjustedFairPremium);\n\n\t\tmapResult.put (\"UnadjustedUpfront\", dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"Upfront\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tdouble dblCompoundingAdjustedCleanPrice = 100. * (1. + (dblCompoundingAdjustedCleanPV /\n\t\t\tdblFXAdjustedValueNotional));\n\t\tdouble dblCreditForwardConvexityAdjustedCleanPrice = 100. * (1. +\n\t\t\t(dblCreditForwardConvexityAdjustedCleanPV / dblFXAdjustedValueNotional));\n\t\tdouble dblCreditFundingConvexityAdjustedCleanPrice = 100. * (1. +\n\t\t\t(dblCreditFundingConvexityAdjustedCleanPV / dblFXAdjustedValueNotional));\n\t\tdouble dblCreditFXConvexityAdjustedCleanPrice = 100. * (1. + (dblCreditFXConvexityAdjustedCleanPV\n\t\t\t/ dblFXAdjustedValueNotional));\n\t\tdouble dblCumulativeConvexityAdjustedCleanPrice = 100. * (1. + (dblCumulativeConvexityAdjustedCleanPV\n\t\t\t/ dblFXAdjustedValueNotional));\n\t\tdouble dblForwardFundingConvexityAdjustedCleanPrice = 100. * (1. +\n\t\t\t(dblForwardFundingConvexityAdjustedCleanPV / dblFXAdjustedValueNotional));\n\t\tdouble dblForwardFXConvexityAdjustedCleanPrice = 100. * (1. + (dblForwardFXConvexityAdjustedCleanPV /\n\t\t\tdblFXAdjustedValueNotional));\n\t\tdouble dblFundingFXConvexityAdjustedCleanPrice = 100. * (1. + (dblFundingFXConvexityAdjustedCleanPV /\n\t\t\tdblFXAdjustedValueNotional));\n\t\tdouble dblUnadjustedCleanPrice = 100. * (1. + (dblUnadjustedCleanPV / dblFXAdjustedValueNotional));\n\n\t\tmapResult.put (\"CleanPrice\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CompoundingAdjustedCleanPrice\", dblCompoundingAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyPrice\", 100. * (1. + (dblCompoundingAdjustedDirtyPV /\n\t\t\tdblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CompoundingAdjustedPrice\", dblCompoundingAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedCleanPrice\",\n\t\t\tdblCreditForwardConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCreditForwardConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedPrice\", dblCreditForwardConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedCleanPrice\",\n\t\t\tdblCreditFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCreditFundingConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedPrice\", dblCreditFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedCleanPrice\", dblCreditFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCreditFXConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedPrice\", dblCreditFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedCleanPrice\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCumulativeConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedPrice\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"DirtyPrice\", 100. * (1. + (dblCumulativeConvexityAdjustedDirtyPV /\n\t\t\tdblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedCleanPrice\",\n\t\t\tdblForwardFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblForwardFundingConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedPrice\", dblForwardFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedCleanPrice\", dblForwardFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblForwardFXConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedPrice\", dblForwardFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedCleanPrice\", dblFundingFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblFundingFXConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedPrice\", dblFundingFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"Price\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"UnadjustedCleanPrice\", dblUnadjustedCleanPrice);\n\n\t\tmapResult.put (\"UnadjustedDirtyPrice\", 100. * (1. + (dblUnadjustedDirtyPV /\n\t\t\tdblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"UnadjustedPrice\", dblUnadjustedCleanPrice);\n\n\t\tmapResult.put (\"CalcTime\", (System.nanoTime() - lStart) * 1.e-09);\n\n\t\treturn mapResult;\n\t}", "InvoiceSpecification createInvoiceSpecification();", "CurrencyDateCalculator<E> getDefaultCurrencyDateCalculator(String ccy1, String ccy2, SpotLag spotLag);", "@Override\n\tpublic RptParams getCustomCondition() {\n\t\tRptParams params = new RptParams();\n\n\t\tDate sd = (Date) this.pkStartDate.getValue();\n\t\tDate ed = (Date) this.pkEndDate.getValue();\n\n\t\tparams.setObject(\"startDate\", sd);\n\t\tparams.setObject(\"endDate\", ed);\n\n\t\treturn params;\n\t}", "public int settleDate (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams)\n\t\tthrows java.lang.Exception\n\t{\n\t\tif (null == valParams)\n\t\t\tthrow new java.lang.Exception (\"QuoteConvention::settleDate => Invalid inputs\");\n\n\t\treturn _cashSettleParams.cashSettleDate (valParams.valueDate());\n\t}", "public static Order createOrder() {\n OrderFactory orderFactory;\n Cuisine cuisine = ORDERING_FACADE.askForCuisine(); // choosing cuisine\n Meal mealType = ORDERING_FACADE.askForMealType(); // choosing meal type\n if (mealType.equals(Meal.LUNCH)) { // setting factory for meal choosen\n orderFactory = LUNCH_FACTORY;\n \n } else {\n orderFactory = DRINK_FACTORY;\n \n }\n return orderFactory.createOrder(cuisine); // creating and returning concrete meal order\n }", "private RentSettings() throws DateFormatException {\r\n \tthis.rentDate = \"\";\r\n \tthis.dueDate = \"\";\r\n }", "public PeriodicityBean() {\n\t\twhen = from = to = null;\n\t\tperiodicity = \"\";\n\t}", "EDataType getConductance();", "public PrescriptionDetailCreator() {\n detail=new PrescriptionDetail();\n\n }", "public XpeDccNewContractSetupROVORowImpl() {\n }", "public CD (double principal, double interest, int maturity, String compMode)\n {\n // initialize instance var's\n this.compMode = compMode;\n this.interest = interest;\n this.maturity = maturity;\n this.principal = principal;\n }", "public Case(String CPR, String info) {\n this.CPR = CPR;\n this.info = info;\n creationDate = Business.getInstance().getCalendar().formatToString(new Date());\n dailyNotes = new ArrayList<>();\n medicineList = new ArrayList<>();\n }", "public CXLContract(double cededPremiumFixed, double attachmentPoint, double limit, double aggregateDeductible,\n double aggregateLimit, IStabilizationStrategy stabilization,\n List<Double> reinstatementPremiumFactors, IRIPremiumSplitStrategy riPremiumSplit,\n IBoundaryIndexStrategy boundaryIndex, List<FactorsPacket> factors, IPeriodCounter periodCounter) {\n super(cededPremiumFixed, attachmentPoint, limit, aggregateDeductible, aggregateLimit, stabilization,\n reinstatementPremiumFactors, riPremiumSplit, boundaryIndex, factors, periodCounter);\n }", "public fashionStock(String nameofstock, double valueofstock, String riskofstock, String demandofstock, String trend) {\n super(nameofstock, valueofstock, riskofstock, demandofstock);\n trending = trend;\n }", "public org.drip.product.calib.ProductQuoteSet calibQuoteSet (\n\t\tfinal org.drip.state.representation.LatentStateSpecification[] aLSS)\n\t{\n\t\ttry {\n\t\t\treturn null == floaterLabel() ? new org.drip.product.calib.FixedStreamQuoteSet (aLSS) : new\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet (aLSS);\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "public Appliction()\r\n {\r\n date=LocalDate.of(2020,1,1);//just a start point for the calendar\r\n Appliction p=new Appliction(date.getYear(),date.getMonthValue());\r\n }", "private String createReversalVoucher() throws ParseException {\n\n final String appConfigKey = \"GJV_FOR_RCPT_CHQ_DISHON\";\n final AppConfigValues appConfigValues = appConfigValuesService.getConfigValuesByModuleAndKey(\n FinancialConstants.MODULE_NAME_APPCONFIG, appConfigKey).get(0);\n appConfigValues.getValue();\n CVoucherHeader voucherHeader = null;\n // DishonoredEntriesDelegate delegat e = new DishonoredEntriesDelegate();\n\n // Create bank charges\n if (dishonorChequeView.getBankChargesAmt().compareTo(BigDecimal.ZERO) > 0)\n try {\n bankChargesReversalVoucher = createBankReversalVoucher();\n } catch (final HibernateException e) {\n LOGGER.error(e.getMessage(), e);\n final List<ValidationError> errors = new ArrayList<ValidationError>();\n errors.add(new ValidationError(\"exception\", e.getMessage()));\n throw new ValidationException(errors);\n } catch (final TaskFailedException e) {\n LOGGER.error(e.getMessage(), e);\n final List<ValidationError> errors = new ArrayList<ValidationError>();\n errors.add(new ValidationError(\"exception\", e.getMessage()));\n throw new ValidationException(errors);\n } catch (final SQLException e) {\n LOGGER.error(e.getMessage(), e);\n final List<ValidationError> errors = new ArrayList<ValidationError>();\n errors.add(new ValidationError(\"exception\", e.getMessage()));\n throw new ValidationException(errors);\n }\n // Create bank charges receipt reversal voucher\n if (null != dishonorChequeView.getOriginalVoucherHeader().getType()\n && dishonorChequeView.getOriginalVoucherHeader().getType().equalsIgnoreCase(RECEIPT)\n || JOURNAL_VOUCHER.equalsIgnoreCase(dishonorChequeView.getOriginalVoucherHeader().getType())) {\n if (LOGGER.isDebugEnabled())\n LOGGER.debug(\"CREATING RECEIPT Reversal >>>>>>>>>>\");\n\n voucherHeader = createVoucherHeader(FinancialConstants.STANDARD_VOUCHER_TYPE_JOURNAL,\n dishonorChequeView.getInstrumentDishonorReason());\n /*\n * //If reversal for receipt, then according to appconfig value get the prefix for voucher. if\n * (dishonorChequeView.getOriginalVoucherHeader().getType().equalsIgnoreCase(RECEIPT) &&\n * gjvForRcpt.equalsIgnoreCase(\"Y\")){ voucherHeader =\n * createVoucherHeader(FinancialConstants.STANDARD_VOUCHER_TYPE_JOURNAL\n * ,dishonorChequeView.getInstrumentDishonorReason()); } else { voucherHeader =\n * createVoucherHeader(FinancialConstants.\n * STANDARD_VOUCHER_TYPE_PAYMENT,dishonorChequeView.getInstrumentDishonorReason()); }\n */\n if (!(null == dishonorChequeView.getInstrumentDishonorReason() && dishonorChequeView.getInstrumentDishonorReason()\n .equals(\"\"))) {\n final String narration = \"Reversal Voucher Entry for receipt number \"\n + dishonorChequeView.getOriginalVoucherHeader().getVoucherNumber() +\n \", Cheque Number \" + dishonorChequeView.getInstrumentHeader().getInstrumentNumber() + \" Cheque Dated :\"\n + getFormattedDate(dishonorChequeView.getInstrumentHeader().getInstrumentDate());\n voucherHeader.setDescription(narration);\n } else\n voucherHeader.setDescription(dishonorChequeView.getInstrumentDishonorReason());\n final List<InstrumentHeader> instrument = instrumentService.addToInstrument(createInstruments(\"1\", getTotalAmount(),\n FinancialConstants.INSTRUMENT_TYPE_BANK_TO_BANK));\n instrument.get(0).setStatusId(getReconciledStatus());\n instrumentHeaderService.persist(instrument.get(0));\n // if(LOGGER.isInfoEnabled()) LOGGER.info(\"---------------------------\"+debitAmount.toString());\n instrumentService.updateInstrumentOtherDetailsStatus(instrument.get(0), dishonorChequeView.getTransactionDate(),\n getTotalAmount());\n voucherHeader.setName(\"Receipt Reversal\");\n // voucherHeader.setDescription(dishonorChequeView.getInstrumentDishonorReason());\n final HashMap<String, Object> headerDetails = createHeaderAndMisDetails(voucherHeader);\n paymentVoucher = createVoucher(voucherHeader, headerDetails, \"Receipt Reversal\");\n // String reversalVhIdValue = paymentVoucher.getId().toString();\n instrumentService.addToBankReconcilation(voucherHeader, instrument.get(0));\n updateInstrumentVoucherReference(instrument, paymentVoucher);\n\n }\n\n return \"view\";\n }", "public DefaultCurveMetadata build() {\n return new DefaultCurveMetadata(curveName, xValueType, yValueType, info, parameterMetadata);\n }", "public static Quote createQuotesFromJsonObject(JSONObject _jsonObject) throws JSONException {\n //Parse fields\n\n int quotesQuoteId = _jsonObject.getInt(\"QuoteId\");\n int quotesMinPrice = _jsonObject.getInt(\"MinPrice\");\n boolean quotesDirect = _jsonObject.getBoolean(\"Direct\");\n JourneyLeg quotesOutboundLeg = parseJourneyLeg(_jsonObject.getJSONObject(\"OutboundLeg\"));\n JourneyLeg quotesInboundLeg = null;\n if (_jsonObject.has(\"InboundLeg\")) {\n quotesInboundLeg = parseJourneyLeg(_jsonObject.getJSONObject(\"InboundLeg\"));\n }\n String quotesQuoteDateTime = _jsonObject.getString(\"QuoteDateTime\");\n\n //Construct result\n Quote result = new Quote(quotesQuoteId, quotesMinPrice, quotesDirect, quotesOutboundLeg,\n quotesInboundLeg, quotesQuoteDateTime);\n\n return result;\n }", "QuoteRole createQuoteRole();", "private CartReceiptRequest buildRequestFromParameters(String[] requestParameters) throws ParseException {\n CartReceiptRequest receiptRequest = new CartReceiptRequest();\n LOGGER.debug(\"localeParam =\" + requestParameters[2] + \" \\t applicationId =\" + requestParameters[1]);\n /* Building request for the Reprint API */\n receiptRequest.setUserId(Long.valueOf(requestParameters[0]));\n receiptRequest.setApplicationId(Long.valueOf(requestParameters[1]));\n receiptRequest.setLocale(requestParameters[2]);\n receiptRequest.setCartId(Long.valueOf(requestParameters[3]));\n Long milliSeconds = Long.parseLong(requestParameters[4]);\n Date date = new Date(milliSeconds);\n receiptRequest.setCartDate(date);\n /* Returning constructed API request*/\n return receiptRequest;\n }", "public edu.nps.moves.jaxb.dis.DetonationPdu initializeJaxbObject(edu.nps.moves.jaxb.dis.DetonationPdu x)\n {\n super.initializeJaxbObject(x); // Call superclass initializer\n\n ObjectFactory factory = new ObjectFactory();\n\n x.setMunitionID( this.getMunitionID().initializeJaxbObject(factory.createEntityID()) );\n x.setEventID( this.getEventID().initializeJaxbObject(factory.createEventID()) );\n x.setVelocity( this.getVelocity().initializeJaxbObject(factory.createVector3Float()) );\n x.setLocationInWorldCoordinates( this.getLocationInWorldCoordinates().initializeJaxbObject(factory.createVector3Double()) );\n x.setBurstDescriptor( this.getBurstDescriptor().initializeJaxbObject(factory.createBurstDescriptor()) );\n x.setDetonationResult( this.getDetonationResult() );\n x.setNumberOfArticulationParameters( this.getNumberOfArticulationParameters() );\n x.setPad( this.getPad() );\n\n List articulationParameters_1 = x.getArticulationParameters();\n for(int idx = 0; idx < articulationParameters.size(); idx++)\n {\n ArticulationParameter a = (edu.nps.moves.dis.ArticulationParameter)articulationParameters.get(idx);\n articulationParameters_1.add(a.initializeJaxbObject(factory.createArticulationParameter()));\n }\n return x;\n }", "public Chargeur(int reference, String intitule, float prix, Set<String> marques, Types type) {\r\n\t\tsuper(reference, intitule, prix, marques);\r\n\t\tthis.type = type;\r\n\t}", "protected void sequence_CommCase_CommClause(ISerializationContext context, CommCase semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public void createValue() {\r\n value = new qa.gov.mol.ProcessAcknowledgment();\r\n }", "public Refueling(int orderID, String ownerID, String carNumber, String gasStation, String address, String gasType,\r\n\t\t\tString rateForLiter, String qunatity, String price, String date, String pumpNumber, String service,\r\n\t\t\tString time, String saleID) {\r\n\t\tsuper();\r\n\t\tOrderID = orderID;\r\n\t\tthis.ownerID = ownerID;\r\n\t\tCarNumber = carNumber;\r\n\t\tGasStation = gasStation;\r\n\t\tthis.address = address;\r\n\t\tGasType = gasType;\r\n\t\tRateForLiter = rateForLiter;\r\n\t\tQunatity = qunatity;\r\n\t\tPrice = price;\r\n\t\tDate = date;\r\n\t\tthis.pumpNumber = pumpNumber;\r\n\t\tthis.service = service;\r\n\t\tthis.time = time;\r\n\t\tthis.saleID = saleID;\r\n\t}", "private void copyValues(Convention conventions)\r\n {\n _PrimaryKeyName = conventions._PrimaryKeyName;\r\n _CreatedName = conventions._CreatedName;\r\n _LastUpdatedName = conventions._LastUpdatedName;\r\n _DeletedName = conventions._DeletedName;\r\n _ForeignKeyNamePostfix = conventions._ForeignKeyNamePostfix;\r\n // _Prefix = conventions._Prefix;\r\n _ColumnNamingConventionStr = conventions._ColumnNamingConventionStr;\r\n // _DBColumnNameTranslation = conventions._DBColumnNameTranslation;\r\n\r\n // Defaults are optional and can be overridden.\r\n if (TextUtil.isNullOrEmpty(_DefaultModeStr) == true)\r\n _DefaultModeStr = conventions._DefaultModeStr;\r\n if (TextUtil.isNullOrEmpty(_DefaultLCStr) == true)\r\n _DefaultLCStr = conventions._DefaultLCStr;\r\n\r\n _CaseSensitiveColumns = conventions._CaseSensitiveColumns;\r\n\r\n }", "public static <X> FuturePriceCurveDefinition.Builder<X> builder() {\n return new FuturePriceCurveDefinition.Builder<X>();\n }", "public Income() {\r\n\t\t//this.customer = customer;\r\n\t\tperiod = 31;\t\t\t\t//sets the default payment period to 31 days\r\n\t\tvalue = 1000;\t\t\t\t//sets the default income value to 1000\r\n\t\t\r\n\t}", "private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }", "public org.drip.param.valuation.CashSettleParams cashSettleParams()\n\t{\n\t\treturn _cashSettleParams;\n\t}", "public BTGConditionDTO()\n\t{\n\t\tsuper();\n\t}", "public AirCondition(String brandName, String number, double pride, int percentPromotion) {\n this.brandName = brandName;\n this.number = number;\n this.pride = pride;\n this.percentPromotion = percentPromotion;\n }", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "public Invoice(){//String invoiceId, String customer, String invoiceIssuer, Timestamp invoicingDate, TimeStamp dueDate, BigDecimal netAmount, BigDecimal vat, BigDecimal totalAmount, String currency, String linkToInvoiceDocument, String linkToInvoiceDocumentCopy, String invoicingPeriod, BigDecimal gp, Event event, Timestamp paidDate, BigDecimal amountOpen, String revenueType, String originalInvoiceId) {\r\n }", "public Builder ccmDate(LocalDate value) {\n this.ccmDate = new CcmDate(value);\n return this;\n }", "public static RBTerm makeCompound(ConstructorType cons, RBTerm[] args) throws TypeModeError {\n\t\treturn cons.apply(makeTuple(args));\n\t}", "private RentSettings(String rentDate, String dueDate, Lab lab) \r\n \t\tthrows DateFormatException, RentPeriodException {\r\n \t//System.out.println(\"in RS ctor: rd \" + rentDate + \" dd \" + dueDate + \" lab \" + lab);\r\n\r\n \t\tHelper.checkDate(rentDate);\r\n \tHelper.checkDate(dueDate);\r\n \tif(Helper.isValidDate(rentDate) && Helper.isValidDate(dueDate)) {\r\n \t\tthis.setBorrowed(true);\r\n \t\tthis.setDueDate(dueDate);\r\n \t\tthis.setRentDate(rentDate);\r\n \t\t\r\n \t}\r\n }" ]
[ "0.5718764", "0.55964446", "0.55219865", "0.55147123", "0.5288728", "0.5099961", "0.5029139", "0.50250894", "0.49729005", "0.47884792", "0.46882996", "0.46844795", "0.46710855", "0.46266794", "0.45242414", "0.45116922", "0.45102715", "0.45007822", "0.45000133", "0.44959325", "0.44894248", "0.44846833", "0.44714698", "0.44598377", "0.44520268", "0.4450934", "0.44468543", "0.44390783", "0.4397026", "0.43970072", "0.4377771", "0.43760055", "0.4375978", "0.43395016", "0.43381208", "0.4325378", "0.43142563", "0.43038803", "0.4292611", "0.42914775", "0.42843986", "0.42836037", "0.42830658", "0.42802715", "0.42798167", "0.4279259", "0.42635816", "0.42617816", "0.42607003", "0.42590833", "0.42571646", "0.42527494", "0.42490855", "0.42427897", "0.4233501", "0.42281705", "0.4227089", "0.42176914", "0.42036265", "0.41928518", "0.41906542", "0.41873598", "0.41858786", "0.41838366", "0.4177959", "0.41754034", "0.417337", "0.4170057", "0.41682985", "0.41666797", "0.41666424", "0.41657767", "0.41635346", "0.4159588", "0.4145738", "0.41313475", "0.4119782", "0.4112266", "0.41113606", "0.41034868", "0.41016275", "0.41013372", "0.41002622", "0.41001698", "0.40981826", "0.40970486", "0.4092832", "0.40922147", "0.40828666", "0.4078483", "0.40733695", "0.40684727", "0.40592197", "0.4055085", "0.40481162", "0.4047168", "0.40448418", "0.40346208", "0.4030542", "0.4030017" ]
0.74898106
0
Compute the Settlement Date
public int settleDate ( final org.drip.param.valuation.ValuationParams valParams) throws java.lang.Exception { if (null == valParams) throw new java.lang.Exception ("QuoteConvention::settleDate => Invalid inputs"); return _cashSettleParams.cashSettleDate (valParams.valueDate()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getSettlementDate();", "public long getSettlementDate() {\n return settlementDate_;\n }", "public long getSettlementDate() {\n return settlementDate_;\n }", "boolean hasSettlementDate();", "public static void calculateSettlementDate(DataRow dataRow) {\n // Select proper strategy based on the Currency\n final IWorkingDays workingDaysMechanism = getWorkingDaysStrategy(dataRow.getCurrency());\n\n // find the correct settlement date\n final LocalDate newSettlementDate =\n workingDaysMechanism.findFirstWorkingDate(dataRow.getSettlementDate());\n\n if (newSettlementDate != null) {\n // set the correct settlement date\n dataRow.setSettlementDate(newSettlementDate);\n }\n }", "long getTradeDate();", "public Date getDATE_SETTLED() {\r\n return DATE_SETTLED;\r\n }", "@Override\n public Date getTransactionStartDate() {\n return traxStartDate;\n }", "public java.util.Date getExpenseSettlementDate () {\n\t\treturn expenseSettlementDate;\n\t}", "public Date getDebitStartDate() {\n return debitStartDate;\n }", "public void setSettlementDate(String settlementDate) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tthis.settlementDate = this.sdf.parse(settlementDate);\r\n\r\n\t\t\tthis.c.setTime(this.settlementDate);\r\n\r\n\t\t\tint iDayOfWeek = this.c.get(Calendar.DAY_OF_WEEK);\r\n\r\n\t\t\t/*\r\n\t\t\t * We add 1 day to settlement date until the settlement date not\r\n\t\t\t * fall in weekend\r\n\t\t\t */\r\n\t\t\twhile (!((iDayOfWeek >= this.cur.getWeekStart()) && (iDayOfWeek <= this.cur.getWeekEnds()))) {\r\n\r\n\t\t\t\tthis.c.add(Calendar.DATE, 1);\r\n\r\n\t\t\t\tiDayOfWeek = this.c.get(Calendar.DAY_OF_WEEK);\r\n\t\t\t}\r\n\r\n\t\t\tthis.settlementDate = this.c.getTime();\r\n\r\n\t\t} catch (ParseException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public boolean hasSettlementDate() {\n return ((bitField0_ & 0x00040000) == 0x00040000);\n }", "public Date getTransactrateDate() {\n return transactrateDate;\n }", "public boolean hasSettlementDate() {\n return ((bitField0_ & 0x00040000) == 0x00040000);\n }", "public Date getTrxDate() {\r\n return trxDate;\r\n }", "public Date getTransactionDate() {\n\t\treturn transactionDate;\n\t}", "public Date getTransdate() {\n\t\treturn transdate;\n\t}", "public Builder setSettlementDate(long value) {\n bitField0_ |= 0x00040000;\n settlementDate_ = value;\n onChanged();\n return this;\n }", "public Builder clearSettlementDate() {\n bitField0_ = (bitField0_ & ~0x00040000);\n settlementDate_ = 0L;\n onChanged();\n return this;\n }", "public java.util.Date getTdate() {\n return _sTransaction.getTdate();\n }", "public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }", "public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "public Date getEstablishDate() {\r\n return establishDate;\r\n }", "Date getDueDate();", "Date getDueDate();", "public java.util.Date getDate(){\n return localDate;\n }", "public Date getCertifiedDate() {\r\n \r\n Long deprovisioningCertifiedMillis = this.getCertifiedMillis();\r\n \r\n Date deprovisioningCertifiedDate = deprovisioningCertifiedMillis == null ? null : new Date(deprovisioningCertifiedMillis);\r\n \r\n return deprovisioningCertifiedDate;\r\n }", "public String getSettlementTime() {\n return this.settlementTime;\n }", "public java.util.Date getTransDate () {\r\n\t\treturn transDate;\r\n\t}", "private LocalDate getTradeDay(String currency, LocalDate settlementDate) {\n return new TradableDays().getTradableDate(currency, settlementDate);\n }", "public Date getDebitEndDate() {\n return debitEndDate;\n }", "LocalDate getCheckInDate();", "@Override\n public Date getEffectiveDateForPerDiem(java.sql.Timestamp expenseDate) {\n if (getTripBegin() == null) {\n return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis());\n }\n return new java.sql.Date(getTripBegin().getTime());\n }", "public String Get_date() \n {\n \n return date;\n }", "public java.util.Date getDateOfExamination(){\n return localDateOfExamination;\n }", "public String getReturnDate();", "String getCoverageExpirationDate(Record inputRecord);", "public int firstSettleDate()\n\t{\n\t\treturn _iFirstSettleDate;\n\t}", "public DaysAdjustment getSettlementDateOffset() {\n return settlementDateOffset;\n }", "public java.util.Calendar getTransactionDate() {\r\n return transactionDate;\r\n }", "Date getCreateDate();", "Date getCreateDate();", "com.google.type.Date getAcquireDate();", "public Date getTradeDate() {\r\n return tradeDate;\r\n }", "@Override\n public Date getManufactureDate() {\n return manufacturedOn;\n }", "public static Date getNowUtilDate()\n {\n return new Date();\n }", "public Date getBuyDate() {\n return DateUtils.copy(buyDate);\n }", "public Date getDeductSubmitTime() {\n return deductSubmitTime;\n }", "private void calculatePaymentDate() {\n\t\t\tBmoReqPayType bmoReqPayType = (BmoReqPayType)reqPayTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoReqPayType == null && bmoRequisition.getReqPayTypeId().toInteger() > 0) {\n\t\t\t\tbmoReqPayType = bmoRequisition.getBmoReqPayType();\n\t\t\t}\n\t\t\tif (bmoReqPayType != null) {\n\t\t\t\tif (!deliveryDateBox.getTextBox().getValue().equals(\"\")) {\n\t\t\t\t\tDate dueDate = DateTimeFormat.getFormat(getUiParams().getSFParams().getDateFormat()).parse(deliveryDateBox.getTextBox().getValue());\n\t\t\t\t\tCalendarUtil.addDaysToDate(dueDate, bmoReqPayType.getDays().toInteger());\n\t\t\t\t\tpaymentDateBox.getDatePicker().setValue(dueDate);\n\t\t\t\t\tpaymentDateBox.getTextBox().setValue(GwtUtil.dateToString(dueDate, getSFParams().getDateFormat()));\n\t\t\t\t}\n\t\t\t} else reqPayTypeListBox.setSelectedId(\"-1\");\t\t\t\t\n\t\t}", "public long getTradeDate() {\n return tradeDate_;\n }", "java.lang.String getToDate();", "public Date getBudgetDate() {\n return (Date) getAttributeInternal(BUDGETDATE);\n }", "public Date getMATURITY_ENTRY_POSTED_DATE() {\r\n return MATURITY_ENTRY_POSTED_DATE;\r\n }", "public Date getCheckoutDate() {\n return checkoutDate;\n }", "public int finalMaturityDate()\n\t{\n\t\treturn _iFinalMaturityDate;\n\t}", "public LocalDate tradeDate() {\n\n\t\tif (tradeDate == null) {\n\n\t\t\tfinal DateOnlyValue dv = ProtoDateUtil.fromDecimalDateOnly(message.getBaseTradeDate());\n\n\t\t\ttradeDate = new LocalDate(dv.getYear(), dv.getMonth(), dv.getDay());\n\n\t\t}\n\n\t\treturn tradeDate;\n\n\t}", "public int getTranDate()\n\t{\n\t\treturn tranDate;\n\t}", "public static void calculateSettlementDates(Set<DataRow> dataRows) {\n dataRows.forEach(TradeSettlementDateCalculator::calculateSettlementDate);\n }", "public String getJP_AcctDate();", "public java.sql.Date getDateassemb() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Date) __getCache(\"dateassemb\")));\n }", "private static String setDate() {\n mDate = new Date();\n DateFormat dateFormat = DateFormat.getDateInstance();\n String dateString = dateFormat.format(mDate);\n return dateString;\n }", "public long getTradeDate() {\n return tradeDate_;\n }", "Date getDate();", "Date getDate();", "Date getDate();", "@Override\n\tpublic java.util.Date getRequestedDate() {\n\t\treturn _dmGtStatus.getRequestedDate();\n\t}", "@Override\n\tpublic java.util.Date getPaymentDate() {\n\t\treturn _esfShooterAffiliationChrono.getPaymentDate();\n\t}", "public Date getRealEstablish() {\r\n return realEstablish;\r\n }", "long getStartDate();", "Date getRequestedAt();", "public int getSettlementDays() {\n return _settlementDays;\n }", "public abstract Date getExpirationDate();", "Date getInvoicedDate();", "public void setDATE_SETTLED(Date DATE_SETTLED) {\r\n this.DATE_SETTLED = DATE_SETTLED;\r\n }", "protected Date getReturnDate() \t{ return this.returnDate; }", "public Date getCtDate() {\n return ctDate;\n }", "public Date getSetUpDate() {\n return setUpDate;\n }", "Date getCheckedOutDate();", "public Date generarFechaSolicitudGarantia() {\r\n return new Date();\r\n }", "Date getCheckedOut();", "LocalDate getDate();", "long getDate();", "Date getEDate();", "java.lang.String getDate();", "public Date getGmtDeal() {\n return gmtDeal;\n }", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "public java.util.Date setupSnap()\n\t{\n\t\treturn _dtSetup;\n\t}", "Date getStartDate();", "Date getStartDate();", "Date getStartDate();", "Date getForDate();", "private Date computeLastDate() {\n\t\tSyncHistory history = historyDao.loadLastOk();\n\t\tif (history != null) {\n\t\t\treturn history.getTime();\n\t\t}\n\t\treturn new Date(-1);\n\t}", "public java.util.Date getExpectedDateOfDelivery() {\r\n return expectedDateOfDelivery;\r\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _esfTournament.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _changesetEntry.getCreateDate();\n\t}", "public Date getBuyDate() {\n\t\treturn buyDate;\n\t}", "@Override\n public Date getEffectiveDateForPerDiem(PerDiemExpense expense) {\n if (getTripBegin() == null) {\n return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis());\n }\n return new java.sql.Date(getTripBegin().getTime());\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _candidate.getCreateDate();\n\t}" ]
[ "0.83068347", "0.7650843", "0.76020974", "0.6692473", "0.6592785", "0.64572775", "0.6335566", "0.6283656", "0.6269858", "0.6248909", "0.6231979", "0.6109436", "0.6065616", "0.60106057", "0.5945726", "0.592594", "0.5909995", "0.5892924", "0.58755267", "0.5870419", "0.58641356", "0.58641356", "0.5845457", "0.58379126", "0.58363944", "0.58363944", "0.58338875", "0.5832988", "0.5830807", "0.58068997", "0.58054227", "0.5795232", "0.57934827", "0.57915306", "0.57874644", "0.57733995", "0.5770991", "0.57539093", "0.5749957", "0.57427657", "0.5734275", "0.5726681", "0.5726681", "0.5726363", "0.5719715", "0.5719457", "0.57178545", "0.5710614", "0.57082415", "0.570674", "0.5695599", "0.56753314", "0.5674063", "0.5663606", "0.56505644", "0.5648394", "0.5639781", "0.5630813", "0.562494", "0.56213254", "0.5616405", "0.56096286", "0.56022614", "0.559855", "0.559855", "0.559855", "0.55978847", "0.5590826", "0.5590609", "0.55879414", "0.55862063", "0.5584272", "0.5578615", "0.55710566", "0.55631065", "0.55613965", "0.55593777", "0.5558264", "0.55524623", "0.5550181", "0.5544126", "0.5541767", "0.55283016", "0.55180603", "0.5513029", "0.5493095", "0.54927164", "0.54927164", "0.54927164", "0.5490461", "0.5485223", "0.5485223", "0.5485223", "0.547663", "0.5476506", "0.5472377", "0.54692334", "0.54690766", "0.54677033", "0.5466729", "0.5464933" ]
0.0
-1
Retrieve the Calculation Type
public java.lang.String calculationType() { return _strCalculationType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getUnitCalculatorType()\n {\n return m_nCalculatorType;\n }", "public Type getExpressionType();", "public CalculationEnum getCalcMethod() {\n\t\treturn _calcMethodEnum;\n\t}", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public Long getOperatetype() {\n return operatetype;\n }", "public Expression getType();", "java.math.BigInteger getInstallmentType();", "public CommandType commandType() {\n // Logik: Deal with the specific types first, then assume that whatever's left is arithmetic\n\n // Default case\n CommandType type = CommandType.C_ARITHMETIC;\n // Deal with instruction\n switch (instructionChunks[0]) {\n case \"push\":\n type = CommandType.C_PUSH;\n break;\n case \"pop\":\n type = CommandType.C_POP;\n }\n return type;\n }", "public Class getEvaluationType() {\n return lho.getOperandType();\n }", "public String getOperTypeName() {\r\n\t\treturn operTypeName;\r\n\t}", "public String getType()\r\n/* 11: */ {\r\n/* 12:10 */ return \"extrautils:slope\";\r\n/* 13: */ }", "public String getrType() {\n return rType;\n }", "Operator.Type getOperation();", "public int getOperandType(String operand) {\n\t\t// empty\n\t\tif (operand == null) {\n\t\t\treturn Op.NULL;\n\t\t}\n\t\tif (operand.equals(\"\")) {\n\t\t\treturn Op.NULL;\n\t\t}\n\t\t// comma\n\t\tif (operand.equals(\",\")) {\n\t\t\treturn Op.COMMA;\n\t\t}\n\t\t// memory address\n\t\tif (pMemory.matcher(operand).matches()) {\n\t\t\treturn Op.MU;\n\t\t}\n\t\t// register\n\t\tif (CalculatedAddress.pRegisters.matcher(operand).matches()) {\n\t\t\treturn Op.getDefinition(Op.REG, dataspace.getRegisterSize(operand));\n\t\t}\n\t\t// (decimal) immediate\n\t\tif (pDecimal.matcher(operand).matches()) {\n\t\t\ttry {\n\t\t\t\tLong.valueOf(operand);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\treturn Op.ERROR;\n\t\t\t}\n\t\t\treturn Op.getDefinition(Op.IMM, getOperandSize(Long.parseLong(operand)));\n\t\t}\n\t\t// floating-point constant\n\t\tif (pFloat.matcher(operand).matches()) {\n\t\t\ttry {\n\t\t\t\tDouble.valueOf(operand);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\treturn Op.ERROR;\n\t\t\t}\n\t\t\treturn Op.FLOAT;\n\t\t}\n\t\t// variable\n\t\tif (dataspace.isVariable(operand)) {\n\t\t\treturn Op.VARIABLE;\n\t\t}\n\t\t// constant (defined by EQU)\n\t\tif (dataspace.isConstant(operand)) {\n\t\t\treturn Op.CONST;\n\t\t}\n\t\t// label (target for jump-commands)\n\t\tif (doc.getLabelLine(operand) != -1) {\n\t\t\treturn Op.LABEL;\n\t\t}\n\t\t// size qualifier\n\t\tif (pSizeQuali.matcher(operand).matches()) {\n\t\t\treturn Op.SIZEQUALI;\n\t\t}\n\t\t// prefix\n\t\tif (DataSpace.prefixesMatchingPattern.matcher(operand).matches()) {\n\t\t\treturn Op.PREFIX;\n\t\t}\n\t\t// string/character constant\n\t\tif (pString.matcher(operand).matches()) {\n\t\t\t// string: up to four characters (short) or arbitrarily long\n\t\t\tif (operand.length() <= 6) {\n\t\t\t\treturn Op.CHARS;\n\t\t\t} else {\n\t\t\t\treturn Op.STRING;\n\t\t\t}\n\t\t}\n\t\t// FPU register\n\t\tif (Fpu.pRegisters.matcher(operand).matches()) {\n\t\t\treturn Op.FPUREG;\n\t\t}\n\t\t// FPU qualifier\n\t\tif (Fpu.pQualifiers.matcher(operand).matches()) {\n\t\t\treturn Op.FPUQUALI;\n\t\t}\n\t\treturn Op.ERROR;\n\t}", "public Tipo calculaTipo(){\n\t\tif(!(get_izq().getTipo().equals(TipoBasico.BOOL) &&\n\t\t\t\tget_dcha().getTipo().equals(TipoBasico.BOOL)))\n\t\t\tGestionErroresAnalisis.getInstance().errorTipos(\"Los operandos de las expresiones lógicas deben ser booleanos.\", getFila());\n\t\t\n\t\treturn TipoBasico.BOOL;\n\t}", "public EnumTypeOperation getTypeOperation() {\r\n return TypeOperation;\r\n }", "public String type();", "public String getDataType() {\n\t\t\t\t\n\t\t//for contributed grid, need to find the units from the ESRIShapefile object\n\t\tfor (LayerPanel layerPanel : ((MapApp)map.getApp()).layerManager.getLayerPanels()) {\n\t\t\tif (layerPanel.layer instanceof ESRIShapefile && ((ESRIShapefile)layerPanel.layer).equals(this)) {\n\t\t\t\tESRIShapefile esf = (ESRIShapefile)(layerPanel.layer);\n\t\t\t\treturn esf.getGridDataType();\n\t\t\t}\n\t\t}\n\t\t\n\t\tString units = getUnits();\n\t\tif ( name.equals(GridDialog.GEOID) ) {\n\t\t\treturn \"Geoid Height\";\n\t\t}\n\t\telse if ( units.equals(\"m\") ){\n\t\t\treturn \"Elevation\";\n\t\t}else if ( units.equals(\"mgal\") ) {\n\t\t\treturn \"Gravity Anomaly\";\n\t\t}else if ( units.equals(\"percent\") ) {\n\t\t\treturn \"Percent\";\n\t\t}else if ( units.equals(\"mY\") ) {\n\t\t\treturn \"Age\";\n\t\t}else if ( units.equals(\"%\") ) {\n\t\t\treturn \"Percentage\";\n\t\t}else if ( units.equals(\"mm/a\") ) {\n\t\t\treturn \"Rate\";\n\t\t}\n\n\t\treturn \"\";\n\t}", "public String getDataType()\n {\n String v = (String)this.getFieldValue(FLD_dataType);\n return StringTools.trim(v);\n }", "int getPhoneTypeValue();", "public java.lang.String maturityType()\n\t{\n\t\treturn _strMaturityType;\n\t}", "private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }", "Object getValue(VisualPropertyType calcType);", "MachineType getType();", "public int getOperationType() {\r\n return operationType;\r\n }", "int getRType();", "public String getPrimitiveType() {\r\n return type;\r\n }", "public String getOperationType() {\r\n return operationType;\r\n }", "int getDataTypeValue();", "public String getAccommodationType() {\n\t\tswitch (this.accommodationType) {\n\t\tcase (TYPEsingle):\n\t\t\treturn TYPEsingle;\n\t\tcase (TYPEdouble):\n\t\t\treturn TYPEdouble;\n\n\t\tcase (TYPEfamily):\n\t\t\treturn TYPEfamily;\n\n\t\tcase (TYPEpresidential):\n\t\t\treturn TYPEpresidential;\n\t\tdefault:\n\t\t\treturn \"error\";\n\t\t}\n\t}", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "public String getDataType() \n {\n System.out.println(dataType.getValue().toString());\n return dataType.getValue().toString(); \n }", "int getSymptomTypeValue();", "public int getType() {\r\n return typ;\r\n }", "public java.lang.String getTipoOperacion() {\n return tipoOperacion;\n }", "public int getType();", "public int getType();", "public int getType();", "public int getType();", "public int getType();", "public String getOper() {\n return oper;\n }", "public String getOperationType() {\n\t\treturn this.operationType;\n\t}", "public MsqType getType()\n {\n return this.type;\n }", "public String getFunType() {\r\n return funType;\r\n }", "public String obtenirType() {\n\t\treturn this.type;\n\t}", "@Generated\n @Selector(\"resultType\")\n @NUInt\n public native long resultType();", "EnumOperationType getOperationType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();" ]
[ "0.7546134", "0.6645531", "0.65206325", "0.6427819", "0.6427819", "0.6427819", "0.6427819", "0.6427819", "0.6427819", "0.6427819", "0.6427819", "0.6427819", "0.6427819", "0.6427819", "0.6427819", "0.6427819", "0.6423675", "0.63755065", "0.632044", "0.62941533", "0.6103887", "0.6102362", "0.60954285", "0.6086536", "0.60823315", "0.6069261", "0.6048274", "0.6001514", "0.59705806", "0.59660923", "0.5961738", "0.5958683", "0.595143", "0.5936583", "0.5935053", "0.59239906", "0.5921837", "0.59206957", "0.590445", "0.5901258", "0.5880903", "0.5880779", "0.58801293", "0.58801293", "0.58801293", "0.58801293", "0.58801293", "0.58801293", "0.58801293", "0.58801293", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.58789027", "0.5865705", "0.5858597", "0.5851622", "0.5841029", "0.58116376", "0.58116376", "0.58116376", "0.58116376", "0.58116376", "0.5808974", "0.5802002", "0.57997906", "0.57876736", "0.5772442", "0.5771998", "0.5764074", "0.5758932", "0.5758932", "0.5758932", "0.5758932", "0.5758932", "0.5758932", "0.5758932", "0.5758932", "0.5758932", "0.5758932", "0.5758932", "0.5758932", "0.5758932", "0.5758932" ]
0.82093245
0
Retrieve the First Settle Date
public int firstSettleDate() { return _iFirstSettleDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getEarliestFinishingDate();", "public Date getEarliestStartDate();", "protected Date findFirstGenDate(GenCtx ctx)\n\t{\n\t\treturn EX.assertn(ctx.get(Date.class));\n\t}", "public Date getFirstCreationDate() {\n\t\tDate firstCreationDate = null;\n\t\tUrls orderByCreationDate = getUrlsOrderedByCreationDate(true);\n\t\tif (orderByCreationDate.size() > 0) {\n\t\t\tUrl webLink = (Url) orderByCreationDate.first();\n\t\t\tfirstCreationDate = webLink.getCreationDate();\n\t\t}\n\t\treturn firstCreationDate;\n\t}", "public Date getFirstWaypointTime() {\n\t\treturn TimeParser.strDateTimeToDate(\n\t\t\t\tmDate + \" \" +\n\t\t\t\tmSegmentList.get(0).getWaypointList().get(0).getWaypointTime());\n\t}", "public Date getFirstSelectionDate()\n/* */ {\n/* 186 */ return isSelectionEmpty() ? null : (Date)this.selectedDates.first();\n/* */ }", "@Override\n\tpublic Date getFirstLogin() {\n\t\treturn this.firstLogin;\n\t}", "Date getStartDate();", "Date getStartDate();", "Date getStartDate();", "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public Date getStartDate() {\r\n\t\treturn new Date(startDateText.getDay(), startDateText.getMonth()+1, startDateText.getYear());\r\n\t}", "public Date getFirstRelease() {\n return firstRelease;\n }", "private int getFirstRepresentingDay() {\n\t\tint firstRepresentingDay;\r\n\t\tGregorianCalendar myCalendar = new GregorianCalendar(year, month, 1);\r\n\r\n\t\tint daysofMonth = myCalendar.getActualMaximum(Calendar.DAY_OF_MONTH);\r\n\t\tint firstDayMonth = myCalendar.get(Calendar.DAY_OF_WEEK); // First day of month (relative to the week)\r\n\t\tint globalFirstDayMonth = myCalendar.get(Calendar.DAY_OF_YEAR);\r\n\r\n\t\tif (settings.getBoolean(\"firstDayofWeek\", true)) { //The default option is the week starting on monday\r\n\t\t\tfirstDayMonth = firstDayMonth - 1;\r\n\t\t\tif (firstDayMonth == 0)\r\n\t\t\t\tfirstDayMonth = 7;\r\n\t\t\tfirstRepresentingDay = globalFirstDayMonth - (firstDayMonth - 1);\r\n\t\t}\r\n\t\telse { //else we start the week on Sunday\r\n\t\t\tfirstRepresentingDay = globalFirstDayMonth - (firstDayMonth - 1);\r\n\t\t}\r\n\t\tif (firstDayMonth + daysofMonth < 37)\r\n\t\t\tcount = RingActivity.five_week_calendar;\r\n\t\telse\r\n\t\t\tcount = RingActivity.six_week_calendar;\r\n\r\n\t\treturn firstRepresentingDay;\r\n\t}", "public Optional<Date> getStartDate() {\n return Optional.ofNullable(createdDate);\n }", "public static WithAdjuster firstDayOfMonth() {\n\n return Impl.FIRST_DAY_OF_MONTH;\n }", "Date getStartDay();", "public static Date getMinDate() {\n Calendar cal = Calendar.getInstance();\n cal.set(1970, 1, 1, 1, 1, 1);\n return cal.getTime();\n }", "public DTM getDateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }", "public Date getStartDate();", "public Date getStartDate();", "public static Date getFirstDate(Date date ) throws ParseException{ \n\t\tString format = \"yyyyMM\";\n\t\tdate = formatStrtoDate( format(date, format) + \"01\", format + \"dd\");\n\t\treturn date;\n\t}", "@Override\n\tpublic Date getStartDate() {\n\t\treturn model.getStartDate();\n\t}", "public static Date firstDay(final Date date) {\n final Calendar cal = new GregorianCalendar();\n cal.setTime(date);\n cal.set(Calendar.DAY_OF_MONTH, cal.getMinimum(Calendar.DAY_OF_MONTH));\n cal.set(Calendar.HOUR_OF_DAY, 00);\n cal.set(Calendar.MINUTE, 00);\n cal.set(Calendar.SECOND, 00);\n cal.set(Calendar.MILLISECOND, 00);\n return cal.getTime();\n }", "public DTM getRxa3_DateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }", "String getStartDate();", "public org.drip.analytics.date.JulianDate firstCouponDate()\n\t{\n\t\ttry {\n\t\t\treturn new org.drip.analytics.date.JulianDate (_lsPeriod.get (0).endDate());\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "public Date getStartDate()\n {\n return (Date)getAttributeInternal(STARTDATE);\n }", "public static LocalDate getFirstOfCurrentMonth() {\n\t\treturn LocalDate.now().with(TemporalAdjusters.firstDayOfMonth());\n\t}", "long getStartDate();", "private Date getPreviosDayStartTime() {\n\t\treturn null;\n\t}", "java.lang.String getStartDate();", "@Override\r\n\tpublic Date getApp_first_logon_dt() {\n\t\treturn super.getApp_first_logon_dt();\r\n\t}", "public static WithAdjuster firstDayOfNextMonth() {\n\n return Impl.FIRST_DAY_OF_NEXT_MONTH;\n }", "public String getStartDate();", "public static LocalDate getFirstOfNextMonth() {\n\t\treturn LocalDate.now().with(TemporalAdjusters.firstDayOfNextMonth());\n\t}", "public Date getStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.Start);\n\t}", "public java.util.Date setupSnap()\n\t{\n\t\treturn _dtSetup;\n\t}", "public static Date firstDayMonth(){\n String rep_inicio_de_mes = \"\";\n try {\n Calendar c = Calendar.getInstance();\n \n /*Obtenemos el primer dia del mes*/\n c.set(Calendar.DAY_OF_MONTH, c.getActualMinimum(Calendar.DAY_OF_MONTH));\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n \n /*Lo almacenamos como string con el formato adecuado*/\n rep_inicio_de_mes = sdf.format(c.getTime());\n\n \n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return stringToDate(rep_inicio_de_mes);\n }", "private Date getDefaultCenturyStart() {\n\t\tif (defaultCenturyStart == null) {\n\t\t\t// not yet initialized\n\t\t\tinitializeDefaultCenturyStart(defaultCenturyBase);\n\t\t}\n\t\treturn defaultCenturyStart;\n\t}", "public Date getFirst_seen() {\n return first_seen;\n }", "public Date getTimeEntryStartDate()\n throws RedmineException\n {\n // update number of time entries, start date\n updateTimeEntryData();\n\n return timeEntryStartDate;\n }", "public Timestamp getInitialIssuanceDate() {\n return initialIssuanceDate;\n }", "public static Date todayStart() {\n return dayStart(new Date());\n }", "@NotNull\r\n public DateWithOffset getStartDate() {\r\n checkStartDate();\r\n return startDate;\r\n }", "public Date getInitialActivityDate(String siteId) {\n\t\tDate date = null;\n\t\ttry{\n\t\t\tdate = siteService.getSite(siteId).getCreatedDate();\n\t\t}catch(Exception e){\n\t\t\treturn new Date(0);\n\t\t}\n\t\treturn date;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartDate();", "public Date getOriginalStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.OriginalStart);\n\t}", "public String getStartDate() {\n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatDate.format(fecha);\n }", "public static WithAdjuster firstDayOfNextYear() {\n\n return Impl.FIRST_DAY_OF_NEXT_YEAR;\n }", "java.lang.String getFoundingDate();", "@Override\n\tpublic java.util.Date getStartDate() {\n\t\treturn _esfTournament.getStartDate();\n\t}", "long getSettlementDate();", "public boolean isFirstOfTheDay() {\r\n return !strDate.equals(game.settings.getLastSeen());\r\n }", "public Date getStart() {\n return (Date) _start.clone();\n }", "Date getForDate();", "public Date getMakeCheckDate() {\n return makeCheckDate;\n }", "public IUTCTime getFirstTime() {\n if (null == firstTime) {\n return new UTCTime(0);\n }\n return firstTime;\n }", "public Date getSettleTime() {\n return settleTime;\n }", "public static Date getStart(Date date) {\n if (date == null) {\n return null;\n }\n Calendar c = Calendar.getInstance();\n c.setTime(date);\n c.set(Calendar.HOUR_OF_DAY, 0);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n c.set(Calendar.MILLISECOND, 0);\n return c.getTime();\n }", "public Date getDefaultStartTime()\r\n {\r\n return (m_defaultStartTime);\r\n }", "Integer getStartDay();", "public Calendar getFirstVisibleDay() {\n return viewState.getFirstVisibleDay();\n }", "public void setMinimalDay(DateTime rentDate) {\r\n\t\tString startDay;\r\n\t\tstartDay = rentDate.getNameOfDay();\r\n\r\n\t\tif (startDay.equals(\"Sunday\") || startDay.equals(\"Monday\") || startDay.equals(\"Thursday\")) {\r\n\t\t\tminimalDay = 2;\r\n\t\t} else if (startDay.equals(\"Friday\") || startDay.equals(\"Saturday\")) {\r\n\t\t\tminimalDay = 3;\r\n\t\t} else {\r\n\t\t\tminimalDay = 1;\r\n\t\t}\r\n\t}", "public java.lang.String getStartDay() {\r\n return localStartDay;\r\n }", "public Date getStartDate() {\n\t\treturn this.startDate;\n\t}", "public boolean getSundayFirstDay() {\n return sunday_first_day;\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/* */ }", "public int getFirstDayOfWeek() {\n return config.firstDayOfWeek;\n }", "public static int getFirstDayOfWeek() {\n int startDay = Calendar.getInstance().getFirstDayOfWeek();\n\n if (startDay == Calendar.SATURDAY) {\n return Time.SATURDAY;\n } else if (startDay == Calendar.MONDAY) {\n return Time.MONDAY;\n } else {\n return Time.SUNDAY;\n }\n }", "public String getStartDate() {\n\t\treturn startDate.getText();\n\t}", "public Date getStartdate() {\r\n return startdate;\r\n }", "public Date getStartDate()\r\n {\r\n return this.startDate;\r\n }", "public LocalDate getStart_date(){\n return this.start_date;\n }", "@Nullable\n public Calendar getMinDate() {\n return config.minDate;\n }", "public long getDate()\r\n/* 204: */ {\r\n/* 205:309 */ return getFirstDate(\"Date\");\r\n/* 206: */ }", "public String firstDayOfWeek(){\n cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);\n return (\"Mon\" + \" \" + cal.get(Calendar.DATE) + \" \" + cal.get(Calendar.MONTH) + \" \" + cal.get(Calendar.YEAR));\n }", "public LocalDate getDate () {\n\t\treturn DateUtils.toLocalDate(this.start);\n\t}", "public final DtStart getStartDate() {\n return getProperty(Property.DTSTART);\n }", "public String getRebillNextDate()\n\t{\n\t\tif(response.containsKey(\"next_date\")) {\n\t\t\treturn response.get(\"next_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Date getStartdate() {\n return startdate;\n }", "java.lang.String getStartDateYYYYMMDD();", "private LocalDate nowLocalDate() {\n\t\tInstant instantNow = Instant.ofEpochMilli( System.currentTimeMillis() );\n\t\tLocalDate nowLocalDate = instantNow.atOffset(ZoneOffset.UTC).toLocalDate();\n\t\treturn nowLocalDate;\n\t}", "public Timestamp getDateStart() {\n\t\treturn (Timestamp) get_Value(\"DateStart\");\n\t}", "public Date getStartDate() {\r\n return startDate;\r\n }", "public Date getStartDate() {\r\n return startDate;\r\n }", "public Date getStartDate() {\n\t\treturn startDate;\n\t}", "public Date getStartDate() {\n\t\treturn startDate;\n\t}", "public static WithAdjuster firstDayOfYear() {\n\n return Impl.FIRST_DAY_OF_YEAR;\n }", "public String getMarkFirst() {\r\n return markFirst;\r\n }", "public Date getAutoDate() {\r\n return autoDate;\r\n }", "public Date getStartDate()\r\n {\r\n Date result = m_startDate;\r\n if (result == null)\r\n {\r\n result = getParentFile().getStartDate();\r\n }\r\n return (result);\r\n }", "java.lang.String getFromDate();", "abstract Date getDefault();", "public void setFirst_seen(Date first_seen) {\n this.first_seen = first_seen;\n }", "public int getFirstRaceTime()\n\t{\n\t\treturn firstRaceTime;\n\t}", "public final String getStartdate() {\n\t\treturn startdate;\n\t}", "public org.apache.xmlbeans.XmlDate xgetJobStartDate()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDate target = null;\r\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(JOBSTARTDATE$0, 0);\r\n return target;\r\n }\r\n }", "public Date getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n return startDate;\n }" ]
[ "0.68695664", "0.6792132", "0.67684066", "0.6760595", "0.66483206", "0.6592548", "0.6543361", "0.65367454", "0.65367454", "0.65367454", "0.6531687", "0.6399637", "0.6397499", "0.637324", "0.6359151", "0.6356937", "0.6327914", "0.63228005", "0.6322148", "0.6317344", "0.6317344", "0.62954205", "0.62945545", "0.6288507", "0.6284126", "0.62453246", "0.62436277", "0.6230337", "0.622143", "0.6201341", "0.61818093", "0.61728114", "0.6169787", "0.61536664", "0.61337256", "0.6132762", "0.6125486", "0.60985947", "0.60857034", "0.6080986", "0.6077742", "0.60774714", "0.60694724", "0.606323", "0.605184", "0.6050445", "0.6024159", "0.59906435", "0.59893674", "0.5988611", "0.59849596", "0.5973619", "0.5971426", "0.5959375", "0.59217507", "0.5915059", "0.5882458", "0.5880577", "0.58761734", "0.5873317", "0.5871676", "0.5866023", "0.586314", "0.5850533", "0.5839945", "0.58318996", "0.58317703", "0.582807", "0.5824761", "0.5822909", "0.58187145", "0.5818321", "0.58143806", "0.5808473", "0.58044684", "0.5804193", "0.5795957", "0.5775863", "0.5765521", "0.5757184", "0.5747487", "0.57406896", "0.5738086", "0.57357764", "0.5733558", "0.5733558", "0.5728996", "0.5728996", "0.5727115", "0.5723947", "0.5716529", "0.5712502", "0.5711865", "0.5710285", "0.57076496", "0.56887203", "0.56838775", "0.5682723", "0.5680952", "0.5680952" ]
0.81057125
0
Retrieve the Redemption Value
public double redemptionValue() { return _dblRedemptionValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getReceveur() {\r\n\t\treturn receveur;\r\n\t}", "public String getValue() {\n\t\treturn this.msg;\n\t}", "@Accessor(qualifier = \"redemptionQuantityLimit\", type = Accessor.Type.GETTER)\n\tpublic Integer getRedemptionQuantityLimit()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(REDEMPTIONQUANTITYLIMIT);\n\t}", "public String getPopReceipt() {\n\t\treturn m_PopReceipt;\n\t}", "@Override\n\tpublic String GetMsgVal(MsgBean msgBean) {\n\t\tKVContainer kvEntry = ConfirmOrder.GetKeyFromMsg(msgBean.Msg);\n\t\treturn (String)kvEntry.getValue();\n\t}", "public Long getRemainNum() {\n return remainNum;\n }", "@Accessor(qualifier = \"redemptionQuantityLimitPerUser\", type = Accessor.Type.GETTER)\n\tpublic Integer getRedemptionQuantityLimitPerUser()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(REDEMPTIONQUANTITYLIMITPERUSER);\n\t}", "public String getDeaultValue()\n\t{\n\t\treturn deaultValue;\n\t}", "public String getRequisitionNumber() {\r\n return requisitionNumber;\r\n }", "public java.lang.String getRemarks() {\n\t\treturn _tempNoTiceShipMessage.getRemarks();\n\t}", "public double getReceivable() {\n return receivable;\n }", "public String getRetrieveValue() {\n\t\treturn retrieveValue;\n\t}", "public String getReceivedSerialNumber() ;", "public Long getReceiveNum() {\r\n return receiveNum;\r\n }", "public String getTelefoneRequerenteItem() {\r\n\t\treturn this.emprestimoid.getTelefoneRequerenteItem();\r\n\t}", "public LoginMessageRequest getValue() {\n return localValue;\n }", "public LoginMessageRequest getValue() {\n return localValue;\n }", "public java.lang.String getFechaDeRecibido() {\n return fechaDeRecibido;\n }", "public String getReceivePhone() {\n return receivePhone;\n }", "public String getRebillAmount()\n\t{\n\t\tif(response.containsKey(\"reb_amount\")) {\n\t\t\treturn response.get(\"reb_amount\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "int getNumberPaymentReceipt();", "public byte get() {\n\t\treturn payload.get();\n\t}", "public String getCorrentResponseValue() {\n return correntResponseValue;\n }", "public String retrieve() {\n\t\t// TODO Write me!\n\t\t\n\t\treturn null;\n\t}", "int getTelecommutePreferenceValue();", "public int getMailbox ()\n {\n return mailbox;\n }", "public String consultaValorRevenda() {\n\t\treturn \"[REVENDA] Celular #\" + this.modelo + \": R$ \" + this.valorRevenda;\n\t}", "public String getRetypePasswordValue() {\r\n\t\treturn txtRetypePassword.getValue();\r\n\t}", "private String getSavedEmail(){\n return new PrefManager(this).getEmail();\n }", "public Integer getRegItemDetUid() {\n return regItemDetUid;\n }", "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 }", "public int getRemainingSms() {\n return remainingSms;\n }", "public int getM_Requisition_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Requisition_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public String getDocumentNo() \n{\nreturn (String)get_Value(\"DocumentNo\");\n}", "public PromptValue getValue()\n {\n return value;\n }", "public int getDmaValue();", "public String getRequisitionTotalAmount() {\r\n return requisitionTotalAmount;\r\n }", "public int getM_MovementConfirm_ID();", "public MessageRequestOfUserModelNuLtuh91 getValue() {\n return localValue;\n }", "public String getreceiptnum() {\n return (String) getAttributeInternal(RECEIPTNUM);\n }", "public Integer getCleared() {\r\n return cleared;\r\n }", "public String getResponse() {\n\t\treturn value;\n\t}", "public int maiorGrau() {\n return poli.lastKey();\n }", "public int MostrarUltimoValorIngresado() {\r\n return UltimoValorIngresado.informacion;\r\n }", "String getCurrentValue();", "public java.lang.String getPaymentRefNo()\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(PAYMENTREFNO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public int lastReceivedMsgSeqNum()\n {\n return lastReceivedMsgSeqNum;\n }", "public int getValue() throws Exception {\n\t\treturn RemoteServer.instance().executeAndGetId(\"getvalue\", getRefId());\n\t}", "public long getCedulaPersonaRecido() {\r\n\t\treturn cedulaPersonaRecive;\r\n\t}", "public String getMensajeDetalle() {\n\t\treturn mensajeDetalle;\n\t}", "public int Rear() {\n if (isEmpty())\n return -1;\n return buf[e];\n }", "public List getRem() {\n return remKeyTag;\n }", "public String getp_recpt_no() {\n return (String)getNamedWhereClauseParam(\"p_recpt_no\");\n }", "public double getShownDraftxF() {\n\t\treturn _tempNoTiceShipMessage.getShownDraftxF();\n\t}", "@Transient\n\tpublic String getReceipientMsisdn() { \n\t\treturn mRecipientMsisdn; \n\t}", "public String getMessage() {\n\t\tString toReturn = message;\n\t\tmessage=\"\";//delete the message\n\t\treturn toReturn;\n\t}", "public Long get_cachetotrevalidationmiss() throws Exception {\n\t\treturn this.cachetotrevalidationmiss;\n\t}", "public String getReceiver() {\n return Receiver;\n }", "public String getReference(){\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver,REFERENCE_INPUT).getAttribute(\"value\");\r\n\t}", "public String getDocStatus() \n{\nreturn (String)get_Value(\"DocStatus\");\n}", "public String getValue()\r\n\t{\r\n\t\tString value = textField.getText();\r\n\t\treturn value==null || value.length()==0 ? null : value;\r\n\t}", "public Byte getEmailRemindFlag() {\n return emailRemindFlag;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getQqChargeReturn(){\n return localQqChargeReturn;\n }", "public String getValue_click_My_Rewards_Link(){\r\n\t\treturn click_My_Rewards_Link.getAttribute(\"value\");\r\n\t}", "public int getReceivalMonth(){\n\t\treturn this.receivalMonth;\n\t}", "public java.math.BigDecimal getReceiveAmount() {\r\n return receiveAmount;\r\n }", "public RTWValue lastAsValue();", "public String getReceived(){\n String rec;\n if (received == Received.ON_TIME){\n rec = \"On Time\";\n }else if(received == Received.LATE){\n rec = \"Late\";\n }else if(received == Received.NO){\n rec = \"NO\";\n }else{\n rec = \"N/A\";\n }\n return rec;\n }", "public String getReceivalDate(){\n\t\treturn this.receivalDate;\n\t}", "@Override\n public int get()\n { \n return this.pr;\n }", "public int getC_Subscription_Delivery_ID() \n{\nInteger ii = (Integer)get_Value(\"C_Subscription_Delivery_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public static synchronized int getLastReceivedSequenceNumber()\n {\n return EASMessage.s_lastReceivedSequenceNumber;\n }", "public String getValue()\n {\n String v = (String)this.getFieldValue(FLD_value);\n return StringTools.trim(v);\n }", "public Object get()\n {\n return m_internalValue;\n }", "public InputText getTxtDescripcionRequerimiento() {\n\t\treturn txtDescripcionRequerimiento;\n\t}", "public String getManualEtValue() {\n return this.mManualEtValue;\n }", "public SyncMessage recoit ( Door d ) {\n\nSyncMessage sm = (SyncMessage)receive( d );\nreturn sm;\n}", "public String getValue() {\n\t\treturn value.replace(\"\\\\r\\\\n\", \"\\r\\n\");\n\t}", "public WsPmsResult get_return(){\n return local_return;\n }", "public WsPmsResult get_return(){\n return local_return;\n }", "public WsPmsResult get_return(){\n return local_return;\n }", "public WsPmsResult get_return(){\n return local_return;\n }", "public WsPmsResult get_return(){\n return local_return;\n }", "public WsPmsResult get_return(){\n return local_return;\n }", "public WsPmsResult get_return(){\n return local_return;\n }", "public WsPmsResult get_return(){\n return local_return;\n }", "public WsPmsResult get_return(){\n return local_return;\n }", "public String pop() \r\n\t {\r\n\t if (top<0) \r\n\t {\r\n\t System.out.println(\"There is no letter in the message to delete\");\r\n\t return null;\r\n\t }\r\n\t else \r\n\t {\r\n\t \tString x = msg[top--]; //top-- is the top next next when the type of the first first time type\r\n\t \treturn x;\r\n\t }\r\n\t }", "public String getValue_txt_ThankYou_Message_Text(){\r\n\t\treturn txt_ThankYou_Message_Text.getAttribute(\"value\");\r\n\t}", "private long getReserveRecNo() {\n\t\tfinal int selectedRow = this.clientUI.getSelectedRowNo();\n\t\treturn this.model.getRecNo(selectedRow);\n\t}", "private void onValider() {\n recuperation​(Reponse.getText());\r\n\r\n }", "public java.lang.String getIDCardCheckResult() {\r\n return localIDCardCheckResult;\r\n }", "public java.lang.Integer getReclamationLevel() {\n return reclamationLevel;\n }", "public synchronized String read() {\n\t\tString message = \"\";\n\n\t\tif(content.size() > 0 )\n\t\t\tmessage = content.get(0);\n\t\tnotify();\n\n\t\treturn message;\n }", "public java.lang.String getPaymentreceiptnumber () {\r\n\t\treturn paymentreceiptnumber;\r\n\t}", "public UnreceivedMsg.Res getUnreceivedMsgRes() {\n return instance.getUnreceivedMsgRes();\n }", "public Object getValue() {\n\t\tif (present || isRequired()) {\t\t\t\n\t\t\treturn editorBinder.populateBackingObject();\n\t\t}\n\t\treturn null;\n\t}", "public int getMsgType(){\r\n return localMsgType;\r\n }", "public String getFieldValue() {\r\n\t\tString value = textBox.getValue();\r\n\t\t\t\r\n\t\treturn value;\r\n\t}", "java.lang.String getBrokerCommission();" ]
[ "0.61880845", "0.60815245", "0.6028704", "0.5985465", "0.5808827", "0.5741855", "0.5724138", "0.57098895", "0.5685543", "0.5680772", "0.5669894", "0.5656505", "0.56551623", "0.5622911", "0.55682003", "0.55564904", "0.55564904", "0.5505668", "0.5495955", "0.54906493", "0.54705197", "0.54600143", "0.54599965", "0.545118", "0.544083", "0.5435575", "0.5433899", "0.5430188", "0.54231846", "0.5422757", "0.5413844", "0.54135066", "0.5408503", "0.54010487", "0.54009354", "0.5391618", "0.53904206", "0.5389615", "0.5381966", "0.53709614", "0.53673005", "0.5355913", "0.5354682", "0.53530616", "0.53373355", "0.5318739", "0.53089553", "0.53022164", "0.52947676", "0.5289065", "0.52827287", "0.52824605", "0.52781063", "0.5274755", "0.5274561", "0.5274211", "0.5271832", "0.5271753", "0.5270263", "0.5269615", "0.52681273", "0.5263728", "0.52612585", "0.52606946", "0.52578205", "0.5253031", "0.52484995", "0.5246353", "0.52411836", "0.5239382", "0.52276474", "0.5220987", "0.5216742", "0.52139395", "0.5211273", "0.5206799", "0.5206042", "0.52058345", "0.52021575", "0.52021575", "0.52021575", "0.52021575", "0.52021575", "0.52021575", "0.52021575", "0.52021575", "0.52021575", "0.5196724", "0.5195815", "0.51934373", "0.5187265", "0.51872575", "0.51858324", "0.5185482", "0.5183952", "0.51827693", "0.518134", "0.51778936", "0.5176327", "0.5174085" ]
0.78270984
0
Retrieve the Cash Settle Parameters
public org.drip.param.valuation.CashSettleParams cashSettleParams() { return _cashSettleParams; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, String> getParameters();", "@Override\n\tpublic LinkedHashMap<String,?> getRequiredParams() {\n\t\tLinkedHashMap<String,String> requiredParams = new LinkedHashMap<>();\n\t\trequiredParams.put(\"crv\", crv.toString());\n\t\trequiredParams.put(\"kty\", getKeyType().getValue());\n\t\trequiredParams.put(\"x\", x.toString());\n\t\trequiredParams.put(\"y\", y.toString());\n\t\treturn requiredParams;\n\t}", "public Object[] getParameters() {\n \t// return the parameters as used for the rule validation\n Object[] params = new Object[1];\n params[0] = charge;\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"category\", category);\n params.put(\"categoryItem\", categoryItem);\n params.put(\"price\", String.valueOf(price));\n params.put(\"quantity\", String.valueOf(quantity));\n params.put(\"externalities\", externalities);\n return params;\n }", "Map<String, Object> getParameters();", "Map<String, Object> getParameters();", "final void getParameters()\r\n {\r\n hostName=getParameter(\"hostname\");\r\n\tIPAddress=getParameter(\"IPAddress\");\r\n\tString num=getParameter(\"maxSearch\");\r\n\tString arg=getParameter(\"debug\");\r\n\tserver=getParameter(\"server\");\r\n\tindexName=getParameter(\"indexName\");\r\n\tString colour=getParameter(\"bgColour\");\r\n\r\n\tif(colour==null)\r\n\t{\r\n\t bgColour=Color.lightGray;\r\n }\r\n else\r\n\t{\r\n\t try\r\n\t {\r\n\t bgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t bgColour=Color.lightGray;\r\n\t }\r\n\t}\r\n\t\r\n\tcolour=getParameter(\"fgColour\");\r\n\tif(colour==null)\r\n\t{\r\n\t fgColour=Color.black;\r\n\t}\r\n\telse\r\n\t{\r\n\t try\r\n\t {\r\n\t fgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t fgColour=Color.black;\r\n\t }\r\n\t}\r\n\r\n\t//Check for missing parameters.\r\n\tif(hostName==null && server==null)\r\n\t{\r\n\t statusArea.setText(\"Error-no host/server\");\r\n\t hostName=\"none\";\r\n\t}\r\n\r\n\tmaxSearch=(num == null) ? MAX_NUMBER_PAGES : Integer.parseInt(num);\r\n }", "String [] getParameters();", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"category\", category);\n params.put(\"categoryItem\", categoryItem);\n return params;\n }", "private void getParameters(BlendmontParam blendmontParam) {\n blendmontParam.setBinByFactor(getBinning());\n updateMetaData();\n }", "public Map getParameters();", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n @SuppressWarnings(\"Convert2Diamond\") Map<String,String> params = new HashMap<String, String>();\n params.put(\"meal_id\",meal_id);\n params.put(\"recipe_id\",recipe_id);\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n // Adding All values to Params.\n // The firs argument should be same sa your MySQL database table columns.\n params.put(\"claim_intimationid\", cino);\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"category\", category);\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"category\", category);\n return params;\n }", "com.google.cloud.commerce.consumer.procurement.v1.Parameter getParameters(int index);", "List<PowreedCommandParameter> getParameters();", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"category\", category);\n params.put(\"oldCategoryItem\", oldCategoryItem);\n params.put(\"newCategoryItem\", newCategoryItem);\n params.put(\"price\", String.valueOf(price));\n params.put(\"quantity\", String.valueOf(quantity));\n params.put(\"externalities\", externalities);\n return params;\n }", "public String getParameters() {\n String parameters = \"\";\n try {\n String username = GetSetSharedPreferences.getDefaults(\"username\", getApplicationContext());\n String password = GetSetSharedPreferences.getDefaults(\"password\", getApplicationContext());\n String firstParameter = \"username=\" + URLEncoder.encode(username, \"UTF-8\");\n String secondParameter = \"password=\" + URLEncoder.encode(password, \"UTF-8\");\n String thirdParameter = \"grant_type=\" + URLEncoder.encode(\"password\", \"UTF-8\");\n parameters = firstParameter + \"&&\" + secondParameter + \"&&\" + thirdParameter;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return parameters;\n }", "public String getCreditInstanceAnalysisParameters() {\n return creditInstanceAnalysisParameters;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"time\", time);\n return params;\n }", "Map<String, CsticParameterWithValues> retrieveProductCsticsAndValuesParameters(final String productCode);", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n @SuppressWarnings(\"Convert2Diamond\") Map<String,String> params = new HashMap<String, String>();\n params.put(\"login_id\",login_id);\n params.put(\"date\",date);\n params.put(\"meal_type\",meal_type);\n return params;\n }", "public static ParamObject getParamsForGetPriceVerficationData() {\n\t\tParamObject obj = new ParamObject();\n\t\ttry {\n\t\t\tTimeUnit.MILLISECONDS.sleep(100);\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString url = URL + \"/store/priceverify/\";\n\t\tobj.setUrl(url);\n\t\t// obj.addHeader(\"Authorization\", authorization);\n\t\tobj.setMethodType(\"GET\");\n\t\treturn obj;\n\t}", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n params.put(\"material_item\", String.valueOf(id_material));\n params.put(\"material_detail\", String.valueOf(id_detail));\n params.put(\"material_quantity\", quantity_txt);\n params.put(\"material_class\", String.valueOf(id_class));\n params.put(\"material_unit\", String.valueOf(id_unit));\n params.put(\"supplier_id\", String.valueOf(id_supplier));\n params.put(\"driver_location\", location);\n return params;\n }", "@Override\n\tpublic ContentValues BuildParams() {\n\t\tContentValues nContentValues = new ContentValues();\n\t\tnContentValues.put(\"cpn_ident\", mCouponNumber);\n\t\tif (mIsFastBy) {\n\t\t\tnContentValues.put(\"is_fastbuy\", \"1\");\n\t\t}\n\t\treturn nContentValues;\n\t}", "@Override\r\n\t\t\tprotected Map<String, String> getParams() throws AuthFailureError {\n\t\t\t\tMap<String, String> map = new HashMap<String, String>();\r\n\t\t\t\tmap.put(\"mer_session_id\", application.getLoginInfo()\r\n\t\t\t\t\t\t.getMer_session_id());\r\n\t\t\t\tmap.put(\"pagenum\", 15 + \"\");\r\n\t\t\t\tmap.put(\"type\", orderType);\r\n\t\t\t\treturn map;\r\n\t\t\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Brand_Id\", Brand_Id);\n params.put(\"Brand_Name\", Brand_Name);\n params.put(\"description\", description);\n params.put(\"brand_status\",brand_status);\n params.put(\"reason\", reason);\n params.put(\"Creation_Date\", Creation_Date);\n params.put(\"Updated_Date\", Updated_Date);\n params.put(\"Admin_Id\", Admin_Id);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"huruf\", huruf);\n params.put(\"derajat_lengan_x\", drajatX);\n params.put(\"derajat lengan_y\", drajatY);\n params.put(\"gambar\", gambar);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"buslabel\", sShareBusLable);\n params.put(\"direction\", sShareDirection);\n params.put(\"ss\", sSharestopSerial);\n params = CGlobals_lib_ss.getInstance().getBasicMobileParamsShort(params,\n Constants_bus.SHARE_BUS_LOCATION_URL, mActivity);\n String delim = \"\";\n StringBuilder getParams = new StringBuilder();\n for (Map.Entry<String, String> entry : params.entrySet()) {\n getParams.append(delim + entry.getKey() + \"=\"\n + entry.getValue());\n delim = \"&\";\n }\n String url1 = Constants_bus.SHARE_BUS_LOCATION_URL;\n try {\n String url = url1 + \"?\" + getParams.toString()\n + \"&verbose=Y\";\n System.out.println(\"url \" + url);\n\n } catch (Exception e) {\n SSLog_SS.e(TAG + \" callBusTrip\", e.getMessage());\n }\n return CGlobals_BA.getInstance().checkParams(params);\n }", "public void getRetreivalParameter() {\n \n \tretModelName = prop.getProperty(\"retModel\");\n \t\n \tswitch(retModelName) \n \t{\n \tcase \"lmjm\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tbreak;\n \tcase \"lmdir\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tbreak;\n \tcase \"bm25\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tretModelParam2 = prop.getProperty(\"param2\");\n \t\tbreak;\n \tcase \"dfr\": \n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tretModelParam2 = prop.getProperty(\"param2\");\n \t\tretModelParam3 = prop.getProperty(\"param3\");\n \t\tbreak;\n \tdefault :\n \t\tSystem.err.println(\"Sorry! No such retrieval models found.\");\n \t\treturn;\n \t}\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"QRvalue\", \"'\"+qrvalue+\"'\");\n params.put(\"buyer\", email);\n params.put(\"seller\", seller);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"address\", address);\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", name);\n params.put(\"ean\", ean);\n params.put(\"supplier\", supplier);\n params.put(\"offer\", offer);\n params.put(\"price\", price);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"phone\", phone);\n return params;\n }", "java.util.List<com.google.cloud.commerce.consumer.procurement.v1.Parameter> getParametersList();", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"reg_No\", regNo);\n params.put(\"manufacturer\", manufacture);\n params.put(\"model_Variant\", modelVar);\n params.put(\"PrevPolicyNo\", prevPolicyNo);\n params.put(\"mobile\", mobile);\n params.put(\"inspection_id\", pref.getInspectioID());\n\n Log.e(TAG, \"Posting params: \" + params.toString());\n\n return params;\n }", "public void getCredentials(){\n System.out.println(\"Enter Your Credit Card Number\");\n setCreditCardNumber(Integer.parseInt(Menu.getScanner().nextLine()));\n System.out.println(\"Enter your billing address\");\n setBillingAddress(Menu.getScanner().nextLine());\n System.out.println(\"Enter your CVC\");\n setCvc(Integer.parseInt(Menu.getScanner().nextLine()));\n }", "public Parameters getParameters();", "@Override\r\n protected Map<String, String> getParams() {\n\r\n Map<String, String> params = new HashMap<String, String>();\r\n params.put(\"name\", name);\r\n params.put(\"product\", product);\r\n params.put(\"email\", email);\r\n params.put(\"phone\", phone);\r\n params.put(\"quantity\", quantity);\r\n params.put(\"price\", price);\r\n params.put(\"address\", address);\r\n\r\n return params;\r\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\", cityNameInput.getText().toString());\n // volley will escape this for you\n playerName = playerNameInput.getText().toString();\n //params.put(\"randomFieldFilledWithAwkwardCharacters\", \"{{%stuffToBe Escaped/\");\n params.put(\"playerName\", playerNameInput.getText().toString());\n params.put(\"civilAmount\", civilAmountInput.getText().toString());\n params.put(\"mafiaAmount\", mafiaAmountInput.getText().toString());\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String,String> params=new HashMap<String, String>() ;\n params.put(\"name\",n);\n params.put(\"rollno\",r);\n params.put(\"admno\",a);\n params.put(\"branch\",b);\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"usercredentials\", usertext);\n\n return params;\n }", "ParameterList getParameters();", "@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }", "public void setCCInformation(HashMap<String, String> params) {\n\t\tPAYMENT_TYPE = \"CREDIT\";\n\t\tCARD_NUM = params.get(\"cardNumber\");\n\t\tCARD_EXPIRE = params.get(\"expirationDate\");\n\t\tCVCCVV2 = params.get(\"cvv2\");\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"name\", name);\n params.put(\"email\", email);\n params.put(\"password\", password);\n params.put(\"mobile\", mobile);\n params.put(\"spinner\",spinner);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"gender\", gender);\n params.put(\"category\", category);\n params.put(\"subcategory\", subcategory);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n params.put(\"location\", value_cord);\n\n return params;\n }", "public String getParameterFromZ();", "String extractParameters ();", "private String getJobContextParams(Set<Entry<String, Object>> params) {\n\n\t\tStringBuilder protocol = new StringBuilder();\n\t\tprotocol.append(\"Contenxt Parameters: \\n\");\n\t\tfor (Entry<String, Object> entry : params) {\n\t\t\tprotocol.append(\" \").append(entry.getKey()).append(\"=\").append(entry.getValue()).append(\"\\n\");\n\t\t}\n\n\t\tprotocol.append(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++ \\n\");\n\n\t\treturn protocol.toString();\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n\n params.put(\"resortName\", resortName);\n params.put(\"latitude\", String.valueOf(lat));\n params.put(\"longitude\", String.valueOf(lon));\n\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> parameters = new HashMap<String, String>();\n return parameters;\n }", "Map<String, String> journeyRequestLocationsToParameters(Trip trip){\n Map<String, String> parameters = new HashMap<>();\n parameters.put(\"pickup\", trip.getPickupLat() + \",\" + trip.getPickupLong());\n parameters.put(\"dropoff\", trip.getDropoffLat() + \",\" + trip.getDropoffLong());\n return parameters;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"warehouse_order_id\", idwarehouse);\n Log.e(TAG, \"warehouseid: \" + idwarehouse);\n return params;\n }", "public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}", "@Override\n protected Map<String, String> getParams() {\n\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"usercredentials\", usertext);\n params.put(\"userpassword\", password);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"complex_id\", complex_id);\n params.put(\"block\", block_name);\n params.put(\"type\", user_type);\n\n // Log.d(TAG, \"city_id: \"+params);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", _phoneNo);\n params.put(\"token\", token);\n params.put(\"role\", String.valueOf(pref.getResposibility()));\n return params;\n }", "com.google.protobuf.ByteString getParams();", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"email\", leaderboardEntry.getEmail());\n params.put(\"level_num\", String.valueOf(leaderboardEntry.getLevel_num()));\n params.put(\"score\", String.valueOf(leaderboardEntry.getScore()));\n params.put(\"moves\", String.valueOf(leaderboardEntry.getMoves()));\n params.put(\"time\", leaderboardEntry.getTime());\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"oldCategory\", oldCategory);\n params.put(\"newCategory\", newCategory);\n return params;\n }", "public Parameters getConfigParameters();", "public String getParameters() {\n return this.Parameters;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"lapangan\", lapangan);\n params.put(\"jam\", jam);\n params.put(\"durasi\", durasi);\n\n return params;\n }", "public void getEasyCoopRoleparameters() {\r\n String name = \"\";\r\n String password = \"\";\r\n GendataService dbobj = new GendataService();\r\n dbobj.inimkcon();\r\n String mySQLString;\r\n mySQLString = \"select * FROM tblwebserv a where a.app = 'easycoop'\";\r\n ResultSet agRecSet;\r\n\r\n try {\r\n agRecSet = dbobj.retrieveRecset(mySQLString);\r\n\r\n while (agRecSet.next()) {\r\n name = agRecSet.getString(\"user\");\r\n password = agRecSet.getString(\"pwd\");\r\n }\r\n\r\n dname = name;\r\n dpwd = password;\r\n } catch (SQLException ex) {\r\n System.out.println(ex.getMessage());\r\n } finally {\r\n if (dbobj != null) {\r\n dbobj.closecon();\r\n }\r\n }\r\n }", "public String getParameters() {\n String parameters = \"\";\n try {\n String firstParameter = \"username=\" + URLEncoder.encode(username, \"UTF-8\");\n String secondParameter = \"password=\" + URLEncoder.encode(password, \"UTF-8\");\n String thirdParameter = \"grant_type=\" + URLEncoder.encode(\"password\", \"UTF-8\");\n parameters = firstParameter + \"&&\" + secondParameter + \"&&\" + thirdParameter;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return parameters;\n }", "@Override\n\tpublic List<NameValuePair> getParams() {\n\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\n\t\tparams.add(new BasicNameValuePair(KEY_ID, Integer.toString(id)));\n params.add(new BasicNameValuePair(KEY_VEHICLE_IDVEHICLE, Integer.toString(idVehicle)));\n params.add(new BasicNameValuePair(KEY_ITEMS_IDITEMS, Integer.toString(idItem)));\n params.add(new BasicNameValuePair(KEY_RECEIPT_IDRECEIPT, Integer.toString(idReceipt)));\n params.add(new BasicNameValuePair(KEY_WORKMILEAGE, Integer.toString(WorkMileage)));\n params.add(new BasicNameValuePair(KEY_WORKNOTES, WorkNotes));\n\t\t\n\t\treturn params;\n\t}", "@Override\n public String getParameters() {\n return parameters;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"businessImage\", businessImage);\n return params;\n }", "@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[3];\n params[0] = maxIterations;\n params[1] = lpeChecker;\n params[2] = maxResonStruc;\n return params;\n }", "public DataBead getParams() {\r\n\t\tDataBead db = new DataBead();\r\n\t\tif (isDelayStatic) {\r\n\t\t\tdb.put(\"delay\", delay);\r\n\t\t} else {\r\n\t\t\tdb.put(\"delay\", delayUGen);\r\n\t\t}\r\n\r\n\t\tif (isGStatic) {\r\n\t\t\tdb.put(\"g\", g);\r\n\t\t} else {\r\n\t\t\tdb.put(\"g\", gUGen);\r\n\t\t}\r\n\r\n\t\treturn db;\r\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"privacy\");\n params.put(\"flag\", switch_value);\n params.put(\"email\", email);\n return params;\n }", "public String getCentralCashAllocationParameterType() {\n return centralCashAllocationParameterType;\n }", "@Path(\"/get9\")\n\t@GET\n\t@Produces(\"text/plain\")\n\tpublic String get9() {\n\t\tStringBuilder buf = new StringBuilder();\n\n\t\tbuf.append(\"Parameter Names: \\n\");\n\n\t\tfor (String param : uriInfo.getQueryParameters().keySet()) {\n\t\t\tbuf.append(param);\n\t\t\tbuf.append(\"\\n\");\n\t\t}\n\n\t\treturn buf.toString();\n\t}", "public DataBead getStaticParams() {\r\n\t\tDataBead db = new DataBead();\r\n\t\tdb.put(\"delay\", delay);\r\n\t\tdb.put(\"g\", g);\r\n\t\treturn db;\r\n\t}", "public ParameterList getAdjustableParams();", "public String getParameters() {\n\t\treturn this.appTda_.getParameters();\n\t}", "@Override\n protected Map<String, String> getParams() {\n\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"usercredentials\", usertext);\n params.put(\"userpassword\", userphone);\n params.put(\"userudid\", \"asdfasdf3asdf32sadf3\");\n\n return params;\n }", "public Properties getParameters() {\n\t\treturn null;\n\t}", "@Override\n\t\t\t\tprotected Map<String, String> getParams()\n\t\t\t\t\t\tthrows AuthFailureError {\n\t\t\t\t\treturn super.getParams();\n\t\t\t\t}", "public static ParamObject getParamsForWarrantyEnabledCategoriesAPI() {\n\t\tParamObject obj = new ParamObject();\n\t\ttry {\n\t\t\tTimeUnit.MILLISECONDS.sleep(100);\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString url = URL_Retailer + \"/rms/warranty/categories/\";\n\t\tobj.setUrl(url);\n\t\tobj.addHeader(\"X-Api-Version\", xAPIVersion);\n\t\tobj.addHeader(\"Access-Token\", accessToken);\n\t\t// obj.setPayload(payLoad);\n\t\tobj.setMethodType(\"GET\");\n\t\treturn obj;\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"preemail\",preemail);\n params.put(\"name\", name);\n params.put(\"email\", email);\n params.put(\"mobile\", mobile);\n return params;\n }", "public Map<String, String> getParameters()\n {\n return prmCache;\n }", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noOfStudents);\n String creatre = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"createsubmittedform\", creatre);\n params.put(\"uid\",uid);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=1;m<3;m++){\n String z= String.valueOf(m);\n params.put(\"pfid[\"+m+\"]\",z);\n params.put(\"hostelid[\"+m+\"]\",hostelid[m-1]);\n params.put(\"floorno[\"+m+\"]\",floorno[m-1]);\n }\n for (int k = 0; k < noofstudent; k++) {\n int m = k/2 +1;\n String z= String.valueOf(m);\n params.put(\"sid[\"+k+\"]\", sid[k]);\n params.put(\"roominwing[\"+k+\"]\",z );\n }\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"email\", email);\n return params;\n }", "private String[] getParams(int amount) {\n\t\tArrayList<String> list = new ArrayList<String>();\r\n\t\tString paramArray[] = {param1,param2,param3,param4,param5,param6};\r\n\t\tString letters[] = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\"};\r\n\t\tfor(int i = 0; i < amount; i++) {\r\n\t\t\tlist.add(\"-\" + letters[i]);\r\n\t\t\tlist.add(paramArray[i]);\r\n\t\t}\r\n\t\treturn list.toArray(new String[0]);\r\n\t}", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n params.put(\"id_koperasi\", idKop);\n params.put(\"bidang_usaha\", id_bidangusaha);\n params.put(\"alamat_usaha\", alamat);\n params.put(\"status_usaha\", status);\n params.put(\"omzet\", omzet);\n params.put(\"location\", Loc);\n params.put(\"simp_pokok\", simpananpokok);\n params.put(\"jml_simp_pokok\", jmlsimpananpokok);\n params.put(\"simp_wajib\", simpananwajib);\n params.put(\"jml_simp_wajib\", jmlsimpananwajib);\n params.put(\"shu_tahunan\", shutahunan);\n params.put(\"user_id\", user);\n return params;\n }", "private List<String> GetParams(){\n\n ArrayList<String> params = new ArrayList<String>();\n\n // java executable binary\n params.add(_javaConfig.getJava());\n\n params.add(\"-Xms\".concat(_javaConfig.getXms()));\n params.add(\"-Xmx\".concat(_javaConfig.getXmx()));\n params.add(\"-Djava.library.path=\".concat(_javaConfig.getJava_library_path()));\n\n params.add(\"-cp\");\n params.add(_javaConfig.getClasspath());\n\n params.add(\"net.minecraft.client.main.Main\");\n\n params.add(\"--username\");\n params.add(_gameConfig.getUserName());\n\n params.add(\"--session\");\n params.add(_gameConfig.getSession());\n\n params.add(\"--gameDir\");\n params.add(_gameConfig.getGameDir());\n\n params.add(\"--assetsDir\");\n params.add(_gameConfig.getAssetsDir());\n\n params.add(\"--version\");\n params.add(_gameConfig.getVersion());\n\n return params;\n }", "public Properties getParameters() {\r\n return mParameters;\r\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"user_id\", userIdInput);\n params.put(\"date\", selectedDate);\n params.put(\"type\", typeInput);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"fecha\", fecha);\n params.put(\"hInicio\", inicio);\n params.put(\"hFin\", fin);\n params.put(\"cantCompas\", cantidad);\n params.put(\"id\", id);\n params.put(\"correo\", correo);\n params.put(\"min\",m);\n return params;\n }", "public static Map<String, String> getParameters() {\r\n return null;\r\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"pasien\", pasien);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noOfStudents);\n String creatre = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"createsavedform\", creatre);\n params.put(\"uid\",uid);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=1;m<3;m++){\n String z= String.valueOf(m);\n params.put(\"pfid[\"+m+\"]\",z);\n params.put(\"hostelid[\"+m+\"]\",hostelid[m-1]);\n params.put(\"floorno[\"+m+\"]\",floorno[m-1]);\n }\n for (int k = 0; k < noofstudent; k++) {\n int m = k/2 +1;\n String z= String.valueOf(m);\n params.put(\"sid[\"+k+\"]\", sid[k]);\n params.put(\"sname[\"+k+\"]\", sname[k]);\n params.put(\"roominwing[\"+k+\"]\",z );\n }\n\n return params;\n }", "public String getParameters() throws IOException, JSONException {\n\n JSONObject parameterObject = readJsonFromUrl(metObsAPI + \"/version/latest.json\");\n JSONArray parametersArray = parameterObject.getJSONArray(\"resource\");\n\n int prmLen = parametersArray.length();\n\n HashMap<Integer,String> prmListV = new HashMap<>(prmLen);\n\n for (int i = 0; i < parametersArray.length(); i++) {\n int v = Integer.parseInt(parametersArray.getJSONObject(i).getString(\"key\"));\n String s = parametersArray.getJSONObject(i).getString(\"title\");\n\n prmListV.put(v, s);\n\n }\n\n String parameterKey = null;\n for (int i = 0; i < parametersArray.length(); i++) {\n\n JSONObject parameter = parametersArray.getJSONObject(i);\n parameterKey = parameter.getString(\"key\");\n String parameterName = parameter.getString(\"title\");\n\n System.out.println(\"ParamKey: \" + parameterKey + \": \" + parameterName );\n }\n\n return parameterKey;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"role\", String.valueOf(0));\n params.put(\"mobile\", input_user_mobile.getText().toString());\n params.put(\"password\", input_user_password.getText().toString());\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n return params;\n }" ]
[ "0.5743436", "0.5629468", "0.55378777", "0.55214363", "0.5509729", "0.5509729", "0.5498976", "0.5455256", "0.5365805", "0.53563315", "0.5338844", "0.53293365", "0.53216213", "0.53177476", "0.53177476", "0.53168553", "0.5286407", "0.5265472", "0.5257104", "0.52483946", "0.52203315", "0.52145016", "0.521229", "0.5211764", "0.520958", "0.5206476", "0.52040225", "0.5199197", "0.51921684", "0.51901996", "0.51878613", "0.51872134", "0.5183923", "0.5170171", "0.51623386", "0.5151298", "0.51448077", "0.5124433", "0.5106192", "0.51009625", "0.5090133", "0.50872785", "0.50663376", "0.50643194", "0.50519514", "0.50482947", "0.5041905", "0.5041575", "0.50262856", "0.50253856", "0.501684", "0.5015246", "0.4998472", "0.4981814", "0.49796823", "0.4976567", "0.49704167", "0.49698418", "0.49629128", "0.49498618", "0.49422243", "0.4936915", "0.49149123", "0.49115628", "0.49086824", "0.48964143", "0.4896246", "0.48900548", "0.48832008", "0.4848653", "0.4841156", "0.48398206", "0.48390847", "0.48362213", "0.48310655", "0.48237702", "0.48168576", "0.48157525", "0.48090646", "0.48078114", "0.48021603", "0.4800694", "0.4800587", "0.47969472", "0.47895747", "0.4788295", "0.47840557", "0.47824684", "0.47798458", "0.4778245", "0.47781602", "0.47779664", "0.4768489", "0.47642156", "0.47498637", "0.4743821", "0.4741247", "0.473966", "0.47394916", "0.47373426" ]
0.6918624
0
Retrieve the Valuation Customization Parameters
public org.drip.param.valuation.ValuationCustomizationParams valuationCustomizationParams() { return _valuationCustomizationParams; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getValues() {\n/* 103 */ List<ConfigurableEffect.Value> values = super.getValues();\n/* 104 */ values.add(EffectUtil.floatValue(\"Wavelength\", this.wavelength, 1.0F, 100.0F, \"This setting controls the wavelength of the outline. The smaller the value, the more segments will be used to draw the outline.\"));\n/* */ \n/* 106 */ values.add(EffectUtil.floatValue(\"Amplitude\", this.amplitude, 0.5F, 50.0F, \"This setting controls the amplitude of the outline. The bigger the value, the more the zigzags will vary.\"));\n/* */ \n/* 108 */ return values;\n/* */ }", "public Parameters getConfigParameters();", "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 }", "private String createCustomInfoString() {\r\n String CustomInfo = \"\";\r\n Iterator<String> iterator = mCustomParameters.keySet().iterator();\r\n while (iterator.hasNext()) {\r\n String CurrentKey = iterator.next();\r\n String CurrentVal = mCustomParameters.get(CurrentKey);\r\n CustomInfo += CurrentKey + \" = \" + CurrentVal + \"\\n\";\r\n }\r\n return CustomInfo;\r\n }", "public JSONObject getCustomParameters() {\n\n\t\treturn customParameters;\n\t}", "public void getRetreivalParameter() {\n \n \tretModelName = prop.getProperty(\"retModel\");\n \t\n \tswitch(retModelName) \n \t{\n \tcase \"lmjm\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tbreak;\n \tcase \"lmdir\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tbreak;\n \tcase \"bm25\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tretModelParam2 = prop.getProperty(\"param2\");\n \t\tbreak;\n \tcase \"dfr\": \n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tretModelParam2 = prop.getProperty(\"param2\");\n \t\tretModelParam3 = prop.getProperty(\"param3\");\n \t\tbreak;\n \tdefault :\n \t\tSystem.err.println(\"Sorry! No such retrieval models found.\");\n \t\treturn;\n \t}\n }", "java.lang.String getParameterValue();", "protected void printValConfig(){\n\t\t//System.out.println(\"writing values\");\n\t\tif(valueFxn.compareToIgnoreCase(\"additive\")==0){\n\t\t\tprintAdditive();\n\n\t\t}else if(valueFxn.compareToIgnoreCase(\"schedule\")==0){\n\t\t\tprintSchedule();\n\n\n\t\t}else if(valueFxn.compareToIgnoreCase(\"contract\")==0){\n\t\t\tprintContracts();\n\n\t\t}else{\n\t\t\tSystem.out.println(\"Value function not set correctly.\");\n\t\t}\n\t}", "public void getGUIVALS() {\n MinX = (double) MinXSpin.getValue();\n MaxX = (double) MaxXSpin.getValue();\n MinY = (double) MinYSpin.getValue();\n MaxY = (double) MaxYSpin.getValue();\n Step = (double) StepSpin.getValue();\n ForceRange = ForceRangeBox.isSelected();\n LineColor = LineCC.getColor();\n BackColor = BackGCC.getColor();\n Increments = (int) IncSpin.getValue();\n DrawArea = DrawAreaBox.isSelected();\n DrawScale = DrawScaleBox.isSelected();\n CurveThickness = (float) (double) CurveThicknessSpin.getValue();\n }", "AdditionalValuesType getAdditionalValues();", "Map<String, CsticParameterWithValues> retrieveProductCsticsAndValuesParameters(final String productCode);", "@DISPID(1610940429) //= 0x6005000d. The runtime will prefer the VTID if present\n @VTID(35)\n Parameters parameters();", "com.google.cloud.commerce.consumer.procurement.v1.Parameter getParameters(int index);", "public List getParameterValues() {\r\n\t\treturn parameterValues;\r\n\t}", "public List getParameterValuesDescription() {\r\n\t\treturn parameterValuesDescription;\r\n\t}", "Object getValue(VisualPropertyType calcType);", "private GameSetParameters createCustomGameSetParameters() {\n GameSetParameters gameSetParameters = new GameSetParameters();\n gameSetParameters.setPriseBasePoints(20);\n gameSetParameters.setPriseRate(2);\n gameSetParameters.setGardeBasePoints(40);\n gameSetParameters.setGardeRate(4);\n gameSetParameters.setGardeSansBasePoints(80);\n gameSetParameters.setGardeSansRate(8);\n gameSetParameters.setGardeContreBasePoints(160);\n gameSetParameters.setGardeContreRate(16);\n gameSetParameters.setPoigneePoints(10);\n gameSetParameters.setDoublePoigneePoints(20);\n gameSetParameters.setTriplePoigneePoints(30);\n gameSetParameters.setMiseryPoints(10);\n gameSetParameters.setKidAtTheEndPoints(10);\n gameSetParameters.setAnnouncedAndSucceededChelemPoints(400);\n gameSetParameters.setAnnouncedAndFailedChelemPoints(-200);\n gameSetParameters.setNotAnnouncedButSucceededChelemPoints(200);\n gameSetParameters.setBelgianBaseStepPoints(100);\n return gameSetParameters;\n }", "java.util.List<com.google.cloud.commerce.consumer.procurement.v1.Parameter> getParametersList();", "@Override\n public RVParameters getParameters() {\n RVParameters parameters = new RVParameters.UniformRVParameters();\n parameters.changeDoubleParameter(\"min\", min);\n parameters.changeDoubleParameter(\"max\", max);\n return parameters;\n }", "public String getUrlCustomParameters() {\r\n return urlCustomParameters;\r\n }", "public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}", "DefiningValuesType getDefiningValues();", "public ParameterList getAdjustableParams();", "public V getCValue();", "java.lang.String getSolverSpecificParameters();", "@Override\n\tpublic Parameter[] getParameters() {\n\t\treturn new Parameter[] { weight, tolerance, svmType, kernelType, kernelDegree, kernelGamma, kernelCoefficient, parameterC,\n\t\t\t\tparameterNu };\n\t}", "public Map getParameters();", "TemplateModel[] getValues();", "public List<ParameterDefinition> getParameterList() {\n if (this.telemetryName != null) {\n TelemetryChartDefinition teleDef = \n this.getTelemetrys().get(telemetryName);\n if (teleDef == null) {\n TelemetryClient client = ProjectBrowserSession.get().getTelemetryClient();\n try {\n teleDef = client.getChartDefinition(this.telemetryName);\n this.getTelemetrys().put(telemetryName, teleDef);\n return teleDef.getParameterDefinition();\n }\n catch (TelemetryClientException e) {\n this.feedback = \"Exception when retrieving Telemetry chart definition: \" + e.getMessage();\n }\n }\n else {\n return teleDef.getParameterDefinition();\n }\n }\n return new ArrayList<ParameterDefinition>();\n }", "@Override\n\tpublic Object[] getParameterizedFieldsValues()\n\t{\n\t\tHBRecordDataModel dataModel = getMyDataModel();\n\n\t\tObject[] object = new Object[] { dataModel.getLanguageCode(), dataModel.getFilePrefix(), dataModel.getFileKey(),\n\t\t\t\t\t\tdataModel.getCodeDescription(), dataModel.getDateLastMaintained() };\n\n\t\treturn object;\n\t}", "@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[3];\n params[0] = maxIterations;\n params[1] = lpeChecker;\n params[2] = maxResonStruc;\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"reg_No\", regNo);\n params.put(\"manufacturer\", manufacture);\n params.put(\"model_Variant\", modelVar);\n params.put(\"PrevPolicyNo\", prevPolicyNo);\n params.put(\"mobile\", mobile);\n params.put(\"inspection_id\", pref.getInspectioID());\n\n Log.e(TAG, \"Posting params: \" + params.toString());\n\n return params;\n }", "Map<String, String> getParameters();", "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 }", "public interface ProductCsticAndValueParameterProvider\n{\n\n\t/**\n\t * Retrieves characteristic language independent and language dependent names as well as characteristic values from\n\t * knowledgebase.\n\t *\n\t * @param productCode\n\t * product code for which the data is retrieved\n\t * @return Map with characteristic language independent name as a key and CsticParameterWithValues as a value\n\t */\n\tMap<String, CsticParameterWithValues> retrieveProductCsticsAndValuesParameters(final String productCode);\n}", "public synchronized final Vector getClassificationParams() {\n return getParams(CLASSIFICATION);\n }", "String getExampleParameters();", "@Override\r\n\tpublic void handleRequest(ResourceVisualizationFactory rvf, ChartParameters params) {\r\n\t\tList<ResourceProperty> result = new ArrayList<ResourceProperty>();\r\n\t\ttry {\r\n\t\t\tString colorValue = retrieveValue(key, params);\r\n\t\t\tif(colorValue.matches(\"r[0-9]{1,3}g[0-9]{1,3}b[0-9]{1,3}\")){\r\n\t\t\t\tList<String> rgb = retrieveValues(colorValue,\"[rgb]\");\r\n\t\t\t\tfor(String rgbString: rgb) {\r\n\t\t\t\t\tint rgbValue = Integer.parseInt(rgbString);\r\n\t\t\t\t\tConstantResourceProperty resourcePropery = new ConstantResourceProperty(rgbValue);\r\n\t\t\t\t\tresult.add(resourcePropery);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(colorValue.matches(\"min[0-9]+(\\\\.[0-9]+)*max[0-9]+(\\\\.[0-9]+)*key(.)+\")) {\r\n\t\t\t\tSystem.out.println(colorValue);\r\n\t\t\t\tList<String> gs = retrieveValues(colorValue,\"(min|max|key)\");\r\n\t\t\t\tSystem.out.println(gs);\r\n\t\t\t\tString gsString1 = gs.get(0);\r\n\t\t\t\tfloat gsValue1 = Float.parseFloat(gsString1);\r\n\t\t\t\tString gsString2 = gs.get(1);\r\n\t\t\t\tfloat gsValue2 = Float.parseFloat(gsString2);\r\n\r\n\t\t\t\tString gsKey = gs.get(2);\r\n\t\t\t\tMetric gsMetric = sf.findMetric(gsKey);\r\n\t\t\t\tif(gsMetric == null){\r\n\t\t\t\t\tthrow new NoResultException(\"Grayscale metric not found\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tResourceProperty rp = new ScaledResourceProperty(gsValue1, gsValue2, 255, 0, sf, gsMetric);\r\n\r\n\t\t\t\tfor(int i=0;i<3;++i){\r\n\t\t\t\t\tresult.add(rp);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\telse throw new NoResultException(\"Color not recognized\");\r\n\t\t}\r\n\t\tcatch(NoResultException e) {\r\n\t\t\tLOG.info(\"retrieve color value failed, setting defaults\");\r\n\t\t\tfor(int i=0;i<3;++i){\r\n\t\t\t\tresult.add(DEFAULT_COLOR);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t((BoxFactory) rvf).setRedProperty(result.get(0));\r\n\t\t((BoxFactory) rvf).setGreenProperty(result.get(1));\r\n\t\t((BoxFactory) rvf).setBlueProperty(result.get(2));\r\n\t\t\r\n\t\tif(next != null) {\r\n\t\t\tnext.handleRequest(rvf, params);\r\n\t\t}\r\n\r\n\t}", "public static ParamObject getParamsForGetPriceVerficationData() {\n\t\tParamObject obj = new ParamObject();\n\t\ttry {\n\t\t\tTimeUnit.MILLISECONDS.sleep(100);\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString url = URL + \"/store/priceverify/\";\n\t\tobj.setUrl(url);\n\t\t// obj.addHeader(\"Authorization\", authorization);\n\t\tobj.setMethodType(\"GET\");\n\t\treturn obj;\n\t}", "public double getParameterValue (Assignment input) ;", "public Parameters getParameters();", "private void generateParameterValues()\n\t{\n\t\t/*\n\t\t * Initialize variables for storage of the actual parameter data and prepare the histogram bins aggregating them. \n\t\t */\n\t\t\n\t\t// Init storage.\n\t\tparameterValues.clear();\n\t\tparameterValues.put(\"alpha\", new ArrayList<Double>(numberOfDivisions));\n\t\tparameterValues.put(\"eta\", new ArrayList<Double>(numberOfDivisions));\n\t\tparameterValues.put(\"kappa\", new ArrayList<Double>(numberOfDivisions));\n\t\t\n\t\t// Init bins.\n\t\tfinal int numberOfBins \t\t\t\t\t= 50;\n\t\tMap<String, int[]> parameterBinLists\t= new HashMap<String, int[]>();\n\t\tparameterBinLists.put(\"alpha\", new int[numberOfBins]);\n\t\tparameterBinLists.put(\"eta\", new int[numberOfBins]);\n\t\tparameterBinLists.put(\"kappa\", new int[numberOfBins]);\n\t\t\n\t\t// Init random number generator.\n\t\tRandom randomGenerator\t= new Random();\n\t\t\n\t\t/*\n\t\t * Generate numberOfDivisions values for each parameter.\n\t\t */\n\t\t\n\t\tswitch (sampling_combobox.getValue())\n\t\t{\n\t\t\tcase \"Random\":\n\t\t\t\t// Generated values are allowed to be up to rangeSlider.getHighValue() and as low as rangeSlider.getLowValue().\n\t\t\t\tdouble intervalAlpha \t= rangeSliders.get(\"alpha\").getHighValue() - rangeSliders.get(\"alpha\").getLowValue();\n\t\t\t\tdouble intervalEta\t\t= rangeSliders.get(\"eta\").getHighValue() - rangeSliders.get(\"eta\").getLowValue();\n\t\t\t\tdouble intervalKappa\t= rangeSliders.get(\"kappa\").getHighValue() - rangeSliders.get(\"kappa\").getLowValue();\n\t\t\t\t\n\t\t\t\t// Generate random parameter values.\t\t\n\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\tparameterValues.get(\"alpha\").add(rangeSliders.get(\"alpha\").getLowValue() + randomGenerator.nextFloat() * intervalAlpha);\n\t\t\t\t\tparameterValues.get(\"eta\").add(rangeSliders.get(\"eta\").getLowValue() + randomGenerator.nextFloat() * intervalEta);\n\t\t\t\t\tparameterValues.get(\"kappa\").add(rangeSliders.get(\"kappa\").getLowValue() + randomGenerator.nextFloat() * intervalKappa);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"Cartesian\":\n\t\t\t\tfor (String param : LDAConfiguration.SUPPORTED_PARAMETERS) {\n\t\t\t\t\tfinal double interval = (rangeSliders.get(param).getHighValue() - rangeSliders.get(param).getLowValue()) / (numberOfDivisions);\n\t\t\t\t\t\n\t\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\t\tparameterValues.get(param).add(rangeSliders.get(param).getLowValue() + interval * i + interval / 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"Latin Hypercube\":\n\t\t\t\tfor (String param : LDAConfiguration.SUPPORTED_PARAMETERS) {\n\t\t\t\t\t// Calcualte bin interval.\n\t\t\t\t\tfinal double interval \t\t= (rangeSliders.get(param).getHighValue() - rangeSliders.get(param).getLowValue()) / (numberOfDivisions);\n\n\t\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\t\t// Minimal value allowed for current bin.\n\t\t\t\t\t\tfinal double currentBinMin = rangeSliders.get(param).getLowValue() + interval * i;\n\t\t\t\t\t\t// Generate value for this bin.\n\t\t\t\t\t\tparameterValues.get(param).add(currentBinMin + randomGenerator.nextFloat() * interval);\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t//\t\t\t\t\tto do:\n\t//\t\t\t\t\t\t- test: check generate.txt.\n\t//\t\t\t\t\t\t- after that: START WRITING PAPER (SATURDAY!).\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t/*\n\t\t * Bin data for use in histograms/scented widgets.\n\t\t */\n\t\t\n\t\t// Bin data.\n\t\tfor (Map.Entry<String, ArrayList<Double>> entry : parameterValues.entrySet()) {\n\t\t\tdouble binInterval = (rangeSliders.get(entry.getKey()).getMax() - rangeSliders.get(entry.getKey()).getMin()) / numberOfBins;\n\t\t\t\n\t\t\t// Check every value and assign it to the correct bin.\n\t\t\tfor (double value : entry.getValue()) {\n\t\t\t\tint index_key = (int) ( (value - rangeSliders.get(entry.getKey()).getMin()) / binInterval);\n\t\t\t\t// Check if element is highest allowed entry.\n\t\t\t\tindex_key = index_key < numberOfBins ? index_key : numberOfBins - 1;\n\t\t\t\t\n\t\t\t\t// Increment content of corresponding bin.\n\t\t\t\tparameterBinLists.get(entry.getKey())[index_key]++;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * Transfer data to scented widgets.\n\t\t */\n\t\t\n\t\t// Clear old data.\n\t\talpha_barchart.getData().clear();\n\t\teta_barchart.getData().clear();\n\t\tkappa_barchart.getData().clear();\n\n\t\t// Add data series to barcharts.\n\t\talpha_barchart.getData().add(generateParameterHistogramDataSeries(\"alpha\", parameterBinLists, numberOfBins));\n\t\teta_barchart.getData().add(generateParameterHistogramDataSeries(\"eta\", parameterBinLists, numberOfBins));\n\t\tkappa_barchart.getData().add(generateParameterHistogramDataSeries(\"kappa\", parameterBinLists, numberOfBins));\n\t}", "final void getParameters()\r\n {\r\n hostName=getParameter(\"hostname\");\r\n\tIPAddress=getParameter(\"IPAddress\");\r\n\tString num=getParameter(\"maxSearch\");\r\n\tString arg=getParameter(\"debug\");\r\n\tserver=getParameter(\"server\");\r\n\tindexName=getParameter(\"indexName\");\r\n\tString colour=getParameter(\"bgColour\");\r\n\r\n\tif(colour==null)\r\n\t{\r\n\t bgColour=Color.lightGray;\r\n }\r\n else\r\n\t{\r\n\t try\r\n\t {\r\n\t bgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t bgColour=Color.lightGray;\r\n\t }\r\n\t}\r\n\t\r\n\tcolour=getParameter(\"fgColour\");\r\n\tif(colour==null)\r\n\t{\r\n\t fgColour=Color.black;\r\n\t}\r\n\telse\r\n\t{\r\n\t try\r\n\t {\r\n\t fgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t fgColour=Color.black;\r\n\t }\r\n\t}\r\n\r\n\t//Check for missing parameters.\r\n\tif(hostName==null && server==null)\r\n\t{\r\n\t statusArea.setText(\"Error-no host/server\");\r\n\t hostName=\"none\";\r\n\t}\r\n\r\n\tmaxSearch=(num == null) ? MAX_NUMBER_PAGES : Integer.parseInt(num);\r\n }", "public Object[] getParameters() {\n \t// return the parameters as used for the rule validation\n Object[] params = new Object[1];\n params[0] = charge;\n return params;\n }", "String [] getParameters();", "public String getValue(Object... params) {\r\n\t\treturn Utils.format(LocalizedTextManager.getCurrent().getProperty(name()), params);\r\n\t}", "public String getJP_SalesRep_Value();", "@Override\n\tprotected void initClassifierParameters() {\n\t\tlinearKernel = new SelectedParameterItem(\"Linear kernel\", \"-K 0\");\n\t\tpolynomialKernel = new SelectedParameterItem(\"Polynomial kernel\", \"-K 1\");\n\t\tradialBasisKernel = new SelectedParameterItem(\"Radial basis kernel\", \"-K 2\");\n\t\tsigmoidKernel = new SelectedParameterItem(\"Sigmoid kernel\", \"-K 3\");\n\t\tcSVC = new SelectedParameterItem(\"C-SVC\", \"-S 0\");\n\t\tnuSVC = new SelectedParameterItem(\"&nu;-SVC\", \"-S 1\");\n\t\tsvmType = ParameterUtilities.createSelectedParameter(\"SVM type\", cSVC, nuSVC);\n\t\tkernelType = ParameterUtilities.createSelectedParameter(\"Kernel type\", linearKernel, polynomialKernel, radialBasisKernel,\n\t\t\t\tsigmoidKernel);\n\t\tkernelDegree = new Parameter(3, \"Degree in kernel function\", Parameter.TYPE.INTEGER, \"-D\", \"classifier.degree\");\n\t\tkernelGamma = new Parameter(0.5, \"&gamma; in kernel function\", Parameter.TYPE.DOUBLE, \"-G\", \"classifier.gamma\");\n\t\tkernelCoefficient = new Parameter(0.0, \"Coefficient in kernel function\", Parameter.TYPE.DOUBLE, \"-R\", \"classifier.coef0\");\n\t\tparameterC = new Parameter(1.0, \"Parameter C\", Parameter.TYPE.DOUBLE, \"-C\", \"classifier.cost\");\n\t\tparameterNu = new Parameter(0.5, \"Parameter &nu;\", Parameter.TYPE.DOUBLE, \"-N\", \"classifier.nu\");\n\t\ttolerance = new Parameter(0.001, \"Tolerance of termination criterion\", Parameter.TYPE.DOUBLE, \"-E\");\n\t\tweight = new Parameter(null, \"Weight, set C of class i to (weight &times; C)\", Parameter.TYPE.STRING, \"-W\");\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"ubaid\", globalVar.getUbaid());\n\n return params;\n }", "@Override\n\tpublic RptParams getCustomCondition() {\n\t\tRptParams params = new RptParams();\n\n\t\tDate sd = (Date) this.pkStartDate.getValue();\n\t\tDate ed = (Date) this.pkEndDate.getValue();\n\n\t\tparams.setObject(\"startDate\", sd);\n\t\tparams.setObject(\"endDate\", ed);\n\n\t\treturn params;\n\t}", "Map<String, Object> getParameters();", "Map<String, Object> getParameters();", "@Override\n\tpublic Object[] getParameterizedFieldsValues()\n\t{\n\t\tGAZRecordDataModel dataModel = getMyDataModel();\n\n\t\tObject[] object = new Object[] { dataModel.getOptionId(), dataModel.getFieldId(), dataModel.getPvId(), dataModel.getType(),\n\t\t\t\t\t\tdataModel.getClassName(), dataModel.getClassByte(), };\n\t\treturn object;\n\t}", "public String getParameterValue() {\r\n return parameterValue;\r\n }", "public String[] getParaValues(String name) {\n\t\treturn request.getParameterValues(name);\n\t}", "public Properties getParameters() {\r\n return mParameters;\r\n }", "com.google.protobuf.ByteString getParameterValueBytes();", "public ContentValues getCV() {\n\t\treturn LocationCreator.getCVfromLocation(this);\n\t}", "private Map<String, Object> buildResourcesParameters() {\n Map<String, Object> parameters = new HashMap<String, Object>();\n \n parameters.put(\"portalSiteSelectedNodes\", getSelectedResources(StagingService.SITES_PORTAL_PATH));\n parameters.put(\"groupSiteSelectedNodes\", getSelectedResources(StagingService.SITES_GROUP_PATH));\n parameters.put(\"userSiteSelectedNodes\", getSelectedResources(StagingService.SITES_USER_PATH));\n parameters.put(\"siteContentSelectedNodes\", getSelectedResources(StagingService.CONTENT_SITES_PATH));\n parameters.put(\"applicationCLVTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_APPLICATION_CLV_PATH));\n parameters.put(\"applicationSearchTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_APPLICATION_SEARCH_PATH));\n parameters.put(\"documentTypeTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_DOCUMENT_TYPE_PATH));\n parameters.put(\"metadataTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_METADATA_PATH));\n parameters.put(\"taxonomySelectedNodes\", getSelectedResources(StagingService.ECM_TAXONOMY_PATH));\n parameters.put(\"querySelectedNodes\", getSelectedResources(StagingService.ECM_QUERY_PATH));\n parameters.put(\"driveSelectedNodes\", getSelectedResources(StagingService.ECM_DRIVE_PATH));\n parameters.put(\"scriptSelectedNodes\", getSelectedResources(StagingService.ECM_SCRIPT_PATH));\n parameters.put(\"actionNodeTypeSelectedNodes\", getSelectedResources(StagingService.ECM_ACTION_PATH));\n parameters.put(\"nodeTypeSelectedNodes\", getSelectedResources(StagingService.ECM_NODETYPE_PATH));\n parameters.put(\"registrySelectedNodes\", getSelectedResources(StagingService.REGISTRY_PATH));\n parameters.put(\"viewTemplateSelectedNodes\", getSelectedResources(StagingService.ECM_VIEW_TEMPLATES_PATH));\n parameters.put(\"viewConfigurationSelectedNodes\", getSelectedResources(StagingService.ECM_VIEW_CONFIGURATION_PATH));\n parameters.put(\"userSelectedNodes\", getSelectedResources(StagingService.USERS_PATH));\n parameters.put(\"groupSelectedNodes\", getSelectedResources(StagingService.GROUPS_PATH));\n parameters.put(\"roleSelectedNodes\", getSelectedResources(StagingService.ROLE_PATH));\n \n parameters.put(\"selectedResources\", selectedResources);\n parameters.put(\"selectedOptions\", selectedOptions);\n \n return parameters;\n }", "public VisionThresholdParameters getVisionParameters() {\r\n\t\tString parametersString = table.getString(VISION_PARAMETERS_KEY, \"0, 0, 0, 0, 0, 0\");\r\n\t\treturn VisionThresholdParameters.getFromStringValue(parametersString);\r\n\t}", "protected ClusterONEAlgorithmParameters getAlgorithmParameters() {\n\t\tClusterONEAlgorithmParametersDialog dialog = new ClusterONEAlgorithmParametersDialog();\n\t\tdialog.getParametersPanel().expandAll();\n\t\tdialog.pack();\n\t\tdialog.setLocationRelativeTo(null);\n\t\t\n\t\tif (!dialog.execute())\n\t\t\treturn null;\n\t\t\n\t\treturn dialog.getParameters();\n\t}", "public java.lang.String getVAL_AREA() {\r\n return VAL_AREA;\r\n }", "public static Map<String, String> getCustomTransactionParameters() {\n if (active) {\n return TransactionAccess.getTransactionParameters();\n }\n return Collections.emptyMap();\n }", "private WsmDownloadParameters getParametros(int notificationType, int smscId, int smscConnection, int smValidityPeriod, String displayText)\r\n\t{\r\n\t\t// Nova instancia do WsmDownloadParameters\r\n\t\tWsmDownloadParameters parametros = new WsmDownloadParameters();\r\n\t\t\r\n\t\t// Setando os parametros no objeto criado\r\n\t\tparametros.setNotificationType(notificationType);\r\n\t\tparametros.setSMSCId(smscId);\r\n\t\tparametros.setSMSCConnection(smscConnection);\r\n\t\tparametros.setSMValidityPeriod(smValidityPeriod);\r\n\t\tparametros.setDisplayText(displayText);\r\n\t\t\r\n\t\t// Retorno do objeto\r\n\t\treturn parametros;\r\n\t}", "private void updateControlValues(RangeSlider rs, String parameter)\n\t{\n\t\tMap<String, Double> parameterValues_low\t\t= new HashMap<String, Double>();\n\t\tMap<String, Double> parameterValues_high\t= new HashMap<String, Double>();\n\t\t\n\t\tfor (String param : rangeSliders.keySet()) {\n\t\t\tparameterValues_low.put(param, rs.getLowValue() >= rangeSliders.get(param).getMin() ? rs.getLowValue() : rangeSliders.get(param).getMin());\n\t\t\tparameterValues_high.put(param, rs.getHighValue() <= rangeSliders.get(param).getMax() ? rs.getHighValue() : rangeSliders.get(param).getMax());\n\t\t}\n\t\t\t\n \tswitch (parameter) \n \t{\n \t\tcase \"alpha\":\n \t\t\talpha_min_textfield.setText(String.valueOf(parameterValues_low.get(\"alpha\")));\n \talpha_max_textfield.setText(String.valueOf(parameterValues_high.get(\"alpha\")));\n \t\tbreak;\n \t\t\n \t\tcase \"eta\":\n \t \teta_min_textfield.setText(String.valueOf(parameterValues_low.get(\"eta\")));\n \teta_max_textfield.setText(String.valueOf(parameterValues_high.get(\"eta\")));\n \tbreak;\n \t\t\n \t\tcase \"kappa\":\n \t\t\tkappa_min_textfield.setText(String.valueOf(parameterValues_low.get(\"kappa\")));\n \tkappa_max_textfield.setText(String.valueOf(parameterValues_high.get(\"kappa\")));\n \tbreak;\t\n \t}\n\t}", "public String getCaseInstanceAnalysisParameters() {\n return caseInstanceAnalysisParameters;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n // Adding All values to Params.\n // The firs argument should be same sa your MySQL database table columns.\n params.put(\"claim_intimationid\", cino);\n return params;\n }", "io.dstore.values.BooleanValue getPredefinedValues();", "public String getCreditInstanceAnalysisParameters() {\n return creditInstanceAnalysisParameters;\n }", "private void loadValues()\n {\n OperationSetBasicAutoAnswer opset = providerService\n .getOperationSet(OperationSetBasicAutoAnswer.class);\n OperationSetAdvancedAutoAnswer opSetAdvanced = providerService\n .getOperationSet(OperationSetAdvancedAutoAnswer.class);\n\n if(opset == null)\n return;\n\n noneRadio.setSelected(true);\n alwaysAnswerRadio.setSelected(\n opset.isAutoAnswerUnconditionalSet());\n\n if(opSetAdvanced != null)\n {\n if(opSetAdvanced.isAutoAnswerConditionSet())\n {\n String fName = opSetAdvanced.getAutoAnswerHeaderName();\n String fValue = opSetAdvanced.getAutoAnswerHeaderValue();\n if(AUTO_ALERT_INFO_NAME.equals(fName)\n && AUTO_ALERT_INFO_VALUE.equals(fValue))\n {\n alertInfoValue.setSelected(true);\n }\n else\n {\n customValueRadio.setSelected(true);\n headerNameField.setText(fName);\n\n if(StringUtils.isNotEmpty(fValue))\n headerValueField.setText(fValue);\n }\n\n }\n\n if(StringUtils.isNotEmpty(opSetAdvanced.getCallForward()))\n {\n callFwd.setSelected(true);\n callFwdNumberField.setText(opSetAdvanced.getCallForward());\n }\n }\n\n answerWithVideoCheckBox.setSelected(\n opset.isAutoAnswerWithVideoSet());\n }", "public String getParamDefs() {\r\n return super.getParamDefs() + \", \" + SampledPolicy.paramNameTypes;\r\n }", "TemplateModel getValue();", "public String getParameterValue(int key){\n return parameters.get(key).value;\n }", "public String getSalesInstanceReportParameters() {\n return salesInstanceReportParameters;\n }", "public ModelRunParameterValueRecord() {\n super(ModelRunParameterValue.MODEL_RUN_PARAMETER_VALUE);\n }", "public static ParamObject getParamsForWarrantyEnabledCategoriesAPI() {\n\t\tParamObject obj = new ParamObject();\n\t\ttry {\n\t\t\tTimeUnit.MILLISECONDS.sleep(100);\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString url = URL_Retailer + \"/rms/warranty/categories/\";\n\t\tobj.setUrl(url);\n\t\tobj.addHeader(\"X-Api-Version\", xAPIVersion);\n\t\tobj.addHeader(\"Access-Token\", accessToken);\n\t\t// obj.setPayload(payLoad);\n\t\tobj.setMethodType(\"GET\");\n\t\treturn obj;\n\t}", "@JsonIgnore\r\n\tpublic String getParameterValuesAsString() {\r\n\t\tif (parameterValues == null || parameterValues.isEmpty()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tIterator it = parameterValues.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tString aValue = (String) it.next();\r\n\t\t\tbuffer.append(aValue);\r\n\t\t\tif (it.hasNext()) {\r\n\t\t\t\tbuffer.append(\";\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn buffer.toString();\r\n\t}", "public Properties getParameters() {\n\t\treturn null;\n\t}", "public String getConfigurationValue(String name);", "public double getValorCertificado() { return this.valorCertificado; }", "public Map getValues() {\r\n return this.params;\r\n }", "public java.lang.String getAz_variation() throws java.rmi.RemoteException;", "java.util.List<gen.grpc.hospital.examinations.Parameter> \n getParameterList();", "private void collectValuesForSettings() {\n portColumnsValue = (portColumns.getProgress());\n portRowsValue = (portRows.getProgress());\n landColumnsValue = (landColumns.getProgress());\n landRowsValue = (landRows.getProgress());\n }", "ParameterList getParameters();", "public edu.mit.coeus.utils.CoeusVector getCvParameters() {\r\n return cvParameters;\r\n }", "public Map<String, String> getParameters()\n {\n return prmCache;\n }", "@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }", "public Map getReportParameters() {\r\n\t return ReportHelperTrt.getReportParameters();\r\n\t }", "public String saveParameters(){\n String saveData = new String();\n \n saveData = highT + \" \" + lowT + \" \" + rescaleText.getText();\n return saveData;\n }", "@Override\n\t@SystemSetupParameterMethod\n\tpublic List<SystemSetupParameter> getInitializationOptions()\n\t{\n\t\tfinal List<SystemSetupParameter> params = new ArrayList<SystemSetupParameter>();\n\t\tparams.add(createBooleanSystemSetupParameter(IMPORT_SBD_SAMPLE_PRODUCT_DATA, \"Import SBD Sample Product Data\", true));\n\t\tparams.add(createBooleanSystemSetupParameter(IMPORT_PROJECT_DATA, \"Import Project Data\", true));\n\t\tparams.add(createBooleanSystemSetupParameter(CoreSystemSetup.ACTIVATE_SOLR_CRON_JOBS, \"Activate Solr Cron Jobs\", true));\n\t\t\n\t\t// Add more Parameters here as your require\n\n\t\treturn params;\n\t}", "public p getConfig() {\n return c.K();\n }", "private String getCriterionValueValue()\n {\n return getConvertedValue(myCriterionValue.get());\n }", "public String getVals(){\n return (\"a: \" + a + \"\\nr: \" + r + \"\\nb: \" + b + \"\\ng: \" + g);\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"category\", category);\n params.put(\"categoryItem\", categoryItem);\n params.put(\"price\", String.valueOf(price));\n params.put(\"quantity\", String.valueOf(quantity));\n params.put(\"externalities\", externalities);\n return params;\n }", "private void initValues() {\n \n }", "DeclaredCustomsValueAmountType getDeclaredCustomsValueAmount();", "private AcquisitionParameters(ControlVocabularyManager cvManager) {\n\t\tsuper(cvManager);\n\t\tString[] parentAccessionsTMP = { \"MS:1000441\", \"MS:1000480\", \"MS:1000487\", \"MS:1000481\",\n\t\t\t\t\"MS:1000027\", \"MS:1000482\", ACQUISITION_PARAMETER_ACCESSION };\n\t\tthis.parentAccessions = parentAccessionsTMP;\n\t\tString[] explicitAccessionsTMP = { \"MS:1000032\" };\n\t\tthis.explicitAccessions = explicitAccessionsTMP;\n\n\t}", "public ArrayList<String> getParameterValues() { return this.params; }", "public String getParameters() {\n\t\treturn this.appTda_.getParameters();\n\t}" ]
[ "0.58585185", "0.58049846", "0.5740987", "0.5732001", "0.57313555", "0.5672192", "0.5659336", "0.564673", "0.5644539", "0.5640516", "0.5571398", "0.5517732", "0.54983443", "0.5464794", "0.54625005", "0.5376866", "0.5376218", "0.53740674", "0.53634614", "0.5359342", "0.5345061", "0.5342185", "0.5331222", "0.5298457", "0.52951825", "0.5281248", "0.52668166", "0.5261526", "0.5245026", "0.52434427", "0.52425176", "0.52301174", "0.5222061", "0.52168566", "0.52058434", "0.51982707", "0.51912695", "0.5187283", "0.5180577", "0.51782745", "0.51764524", "0.5159862", "0.5155028", "0.51486754", "0.5129757", "0.5122467", "0.512237", "0.51151943", "0.51125187", "0.50996476", "0.5097909", "0.5097909", "0.5089096", "0.50887847", "0.5079407", "0.50741106", "0.5068709", "0.50682354", "0.5062153", "0.5057128", "0.5050139", "0.5046744", "0.5042782", "0.5039108", "0.5035647", "0.5032582", "0.5031404", "0.50280595", "0.50206655", "0.5008334", "0.50048864", "0.49991438", "0.49821025", "0.49790138", "0.49773163", "0.49752313", "0.49677607", "0.49674723", "0.4965721", "0.4965254", "0.49643925", "0.4962466", "0.49505192", "0.49452302", "0.49377316", "0.4934262", "0.49313584", "0.49309254", "0.49230552", "0.4918385", "0.4906809", "0.49061072", "0.49042138", "0.49033716", "0.48976928", "0.48968294", "0.48968023", "0.48964658", "0.48939952", "0.48920828" ]
0.6844509
0
constructor to set tip
public StorySlide(String type, String[] description, String[] buttons, int imageId){ this.type = type; this.dialog = description; this.buttons = buttons; this.imageId = imageId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setTip(double tip) {\n\t\t\n\t}", "public DefaultTip() {}", "public void setTip(java.lang.String tip)\n {\n this.tip = tip;\n }", "public JDayTip()\n\t{\n\t\tsuper();\n\t}", "public DefaultTip(String name, Object tip)\n/* */ {\n/* 39 */ this.name = name;\n/* 40 */ this.tip = tip;\n/* */ }", "public Tip() { ; }", "public BasicTipOfTheDayUI(JXTipOfTheDay tipPane)\n/* */ {\n/* 89 */ this.tipPane = tipPane;\n/* */ }", "public void setTipPercentage(double newTip) {\n tip = newTip;\n }", "public JDayTip(TipModel model)\n\t{\n\t\tsuper(model);\n\t}", "private void setToolTips() {\n \t// set tool tips\n Tooltip startTip, stopTip, filterTip, listViewTip, viewAllTip, viewInfoTip, removeTip, editRuleFileTip, editRulePathTip;\n startTip = new Tooltip(ToolTips.getStarttip());\n stopTip = new Tooltip(ToolTips.getStoptip());\n filterTip = new Tooltip(ToolTips.getFiltertip());\n listViewTip = new Tooltip(ToolTips.getListviewtip());\n viewAllTip = new Tooltip(ToolTips.getViewalltip());\n viewInfoTip = new Tooltip(ToolTips.getViewinfotip());\t\n removeTip = new Tooltip(ToolTips.getRemovetip());\n editRuleFileTip = new Tooltip(ToolTips.getEditrulefiletip());\n editRulePathTip = new Tooltip(ToolTips.getEditrulepathtip());\n \n startButton.setTooltip(startTip);\n stopButton.setTooltip(stopTip);\n filterButton.setTooltip(filterTip);\n unseenPacketList.setTooltip(listViewTip);\n viewAll.setTooltip(viewAllTip);\n viewInformation.setTooltip(viewInfoTip);\n removeButton.setTooltip(removeTip);\n editRuleFileButton.setTooltip(editRuleFileTip);\n editRuleFilePath.setTooltip(editRulePathTip);\n }", "protected void setToolTip(String toolTip) {\n\tthis.toolTip = toolTip;\n }", "@Override\n\tpublic void setToolTip(String tooltip) {\n\t\t\n\t}", "private Tip createTip(final int tipSetId) {\n\n Tip tip = null;\n\n if (tipSetId > 0) {\n final JSONObject jsonTipSet = lookupTipSet(tipSetId);\n final JSONArray jsonTips = (JSONArray) jsonTipSet.get(\"tip\");\n\n final JSONObject jsonTip = getRandomJsonObject(jsonTips);\n\n tip = new Tip();\n tip.setTipId((Integer) jsonTip.get(\"tipId\"));\n tip.setText((String) jsonTip.get(\"text\"));\n }\n\n return tip;\n }", "public static void setTip(double X1, double Y1, double X2, double Y2,double num) {\r\n\t\tdouble[] pos1 = new double[2];\r\n\t\tpos1[0] = X1/(14) - canvas.getWidth()/3*(num-2)/26.5;\r\n\t\tpos1[1] = Y1/14;\r\n\t\tmanager1.setTipPosition(pos1);\r\n\t\tdouble[] pos2 = new double[2];\r\n\t\tpos2[0] = X2/(14) + canvas.getWidth()/3*(num-2)/26.5;\r\n\t\tpos2[1] = Y2/14;\r\n\t\tmanager2.setTipPosition(pos2);\r\n\t}", "public static void setTipps(int[] t) {\r\n\t\t\ttipps = new ArrayList<Integer>();\r\n\t\t\tfor (int i = 0; i < t.length; i = i + 2) {\r\n\t\t\t\tif (t[i] == -1) {\r\n\t\t\t\t\ttipps.add(NICHT_GESETZT);\r\n\t\t\t\t\ttipps.add(NICHT_GESETZT);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (t[i] == t[i + 1]) {\r\n\t\t\t\t\t\ttipps.add(UNENTSCHIEDEN);\r\n\t\t\t\t\t\ttipps.add(UNENTSCHIEDEN);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (t[i] > t[i + 1]) {\r\n\t\t\t\t\ttipps.add(SIEG);\r\n\t\t\t\t\ttipps.add(NIEDERLAGE);\r\n\t\t\t\t}\r\n\t\t\t\tif (t[i] < t[i + 1]) {\r\n\t\t\t\t\ttipps.add(NIEDERLAGE);\r\n\t\t\t\t\ttipps.add(SIEG);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}", "public AddTipLogic(AddTipActivity view, Context context){\n this.view = view;\n this.context = context;\n }", "@Override\n public void setTooltip(String arg0)\n {\n \n }", "public Builder setMsgTip(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n msgTip_ = value;\n onChanged();\n return this;\n }", "public int getTip() {\n\t\treturn tip;\n\t}", "public java.lang.String getTip()\n {\n return this.tip;\n }", "public void setLnTip(String prefix) {\n if(prefix == null) {\n prefix = \"\";\n }\n mLnTip = prefix;\n invalidate();\n }", "public ToolTips (String imageName)\r\n\t{\r\n\t\tthis.imageName = imageName;\r\n\t}", "public abstract void setTooltipData(ITooltipData data);", "public JToolTip createToolTip(){\n return new CreatureTooltip(this);\n }", "public Builder setMsgTipBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n msgTip_ = value;\n onChanged();\n return this;\n }", "public NoteTip(Note note, Long Oid)\r\n {\r\n super();\r\n user = FormatterUtils.getUserLabel(note.getUser());\r\n userImageURL = MyPicturePreferenceUtils.getUsersImageURI(note.getUser());\r\n if (note.getTimestamp() != null)\r\n {\r\n timeStamp = DateUtils.formatDateTime(note.getTimestamp());\r\n timeStampAsDate = note.getTimestamp();\r\n }\r\n String noteTitle = StringEscapeUtils.unescapeHtml(note.getText());\r\n toolTipContent = noteTitle;\r\n title = noteTitle == null || noteTitle.length() < 30 ? noteTitle : noteTitle.substring(0, 29) + \"...\";\r\n title = title.replaceAll(\"\\\\n\", \"\");\r\n scopeType = getScopeType(note, Oid);\r\n }", "private ModelTipHistory() {\n }", "public Tulip(){\n super(CropName.TULIP, CropType.FLOWER, CropStatus.WAITING, 90, 2, 2, 3, 0, 1, 1, 1, 7);\n }", "private void initializeTooltips() {\n\t\ttooltipPitch = new Tooltip();\n\t\tbuttonInfoPitch.setTooltip(tooltipPitch);\n\n\t\ttooltipGain = new Tooltip();\n\t\tbuttonInfoGain.setTooltip(tooltipGain);\n\n\t\ttooltipEcho = new Tooltip();\n\t\tbuttonInfoEcho.setTooltip(tooltipEcho);\n\n\t\ttooltipFlanger = new Tooltip();\n\t\tbuttonInfoFlanger.setTooltip(tooltipFlanger);\n\n\t\ttooltipLowPass = new Tooltip();\n\t\tbuttonInfoLowPass.setTooltip(tooltipLowPass);\n\t}", "void setPosiblesTipos(String[] tipos);", "public MultipleToolTipManager()\n {\n\tthis(null);\n }", "public void setAmountTip(String tipAmount) {\n\t\tAMOUNT_TIP = tipAmount;\n\t}", "void tip(double amount);", "public void setTooltip(TooltipOptions tooltip) {\n this.tooltip = tooltip;\n }", "public void setTargDataPoint(DataPoint aDP)\n{\n if(SnapUtils.equals(aDP, _targPoint)) return;\n firePropChange(TargDataPoint_Prop, _targPoint, _targPoint = aDP);\n _toolTipView.reloadContents();\n}", "public void setArrowHead(int baseX, int baseY, int tipX, int tipY);", "public void setArrowTail(int baseX, int baseY, int tipX, int tipY);", "private void initTooltips() {\n\t\ttooltips = new HashMap<String, String>();\n\t\ttooltips.put(\"-ref\", \n\t\t\t\t\"The “reference” image, the image that remains unchanged during the registration. Set this value to the downscaled brain you wish to segment\");\n\t\ttooltips.put(\"-flo\", \n\t\t\t\t\"The “floating” image, the image that is morphed to increase similarity to the reference. Set this to the average brain belonging to the atlas (aladin/f3d) or the atlas itself (resample).\");\n\t\ttooltips.put(\"-res\", \n\t\t\t\t\"The output path for the resampled floating image.\");\n\t\ttooltips.put(\"-aff\",\n\t\t\t\t\"The text file for the affine transformation matrix. The parameter can either be an output (aladin) or input (f3d) parameter.\");\n\t\ttooltips.put(\"-ln\",\n\t\t\t\t\"Registration starts with further downsampled versions of the original data to optimize the global fit of the result and prevent \"\n\t\t\t\t\t\t+ \"“getting stuck” in local minima of the similarity function. This parameter determines how many downsampling steps are being performed, \"\n\t\t\t\t\t\t+ \"with each step halving the data size along each dimension.\");\n\t\ttooltips.put(\"-lp\", \n\t\t\t\t\"Determines how many of the downsampling steps defined by -ln will have their registration computed. \"\n\t\t\t\t\t\t+ \"The combination -ln 3 -lp 2 will e.g. calculate 3 downsampled steps, each of which is half the size of the previous one \"\n\t\t\t\t\t\t+ \"but only perform the registration on the 2 smallest resampling steps, skipping the full resolution data.\");\n\t\ttooltips.put(\"-sx\", \"Sets the control point grid spacing in x. Positive values are interpreted as real values in mm, \"\n\t\t\t\t+ \"negative values are interpreted as distance in voxels. If -sy and -sz are not defined seperately, they are set to the value given here.\");\n\t\ttooltips.put(\"-be\",\"Sets the bending energy, which is the coefficient of the penalty term, preventing the freeform registration from overfitting. \"\n\t\t\t\t+ \"The range is between 0 and 1 (exclusive) with higher values leading to more restriction of the registration.\");\n\t\ttooltips.put(\"-smooR\", \"Adds a gaussian smoothing to the reference image (e.g. the brain to be segmented), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"-smooF\", \"Adds a gaussian smoothing to the floating image (e.g. the average brain), with the sigma defined by the number. \"\n\t\t\t\t+ \"Positive values are interpreted as real values in mm, negative values are interpreted as distance in voxels.\");\n\t\ttooltips.put(\"--fbn\", \"Number of bins used for the Normalized Mutual Information histogram on the floating image.\");\n\t\ttooltips.put(\"--rbn\", \"Number of bins used for the Normalized Mutual Information histogram on the reference image.\");\n\t\ttooltips.put(\"-outDir\", \"All output and log files will be written to this folder. Pre-existing files will be overwritten without warning!\");\n\t}", "String getTooltip() {\n return bufTip;\n }", "public Ventana() {\n initComponents();\n this.tipos.add(GD_C);\n this.tipos.add(GD_S);\n this.tipos.add(GND_C);\n this.tipos.add(GND_S);\n this.panel.setArea_text(text);\n\n }", "public Tip(double cardAmount, double cashAmount) {\n this.hasCard = true;\n this.card = cardAmount;\n this.hasCash = true;\n this.cash = cashAmount;\n }", "public BasicBalloonTipPositioner(int hO, int vO) {\n\t\tsuper();\n\t\tpreferredHorizontalOffset = hO;\n\t\tpreferredVerticalOffset = vO;\n\t}", "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 Tip(double amount, int type) {\n if (type == typeCard) {\n this.hasCard = true;\n this.card = amount;\n } else if (type == typeCash) {\n this.hasCash = true;\n this.cash = amount;\n } else if (type == typeUnknown) {\n this.hasUnknown = true;\n this.unknown = amount;\n }\n }", "@Override\n\tpublic void setCustomTip(boolean isCustomTip) {\n\t\t\n\t}", "public QTip(int _action, Object[] toBeCleaned) {\n action = _action;\n needsCleaning = toBeCleaned;\n id = nextID++;\n }", "public void setToolTipText (String string) {\r\n\tcheckWidget();\r\n\ttoolTipText = string;\r\n}", "private void setTipPercentage(){\n System.out.println(\"You indicated the service quality was \"+\n serviceQuality+\". What percentage tip would you like to leave?\");\n tipRate=keyboard.nextDouble();\n \n \n }", "public void setTooltip(IFigure tooltip) {\n hasCustomTooltip = true;\n this.tooltip = tooltip;\n updateFigureForModel(nodeFigure);\n }", "private static void setValueTips(Series<String, Number> series1) {\n \tfor (Data<String, Number> entry : series1.getData()) { \n Tooltip t = new Tooltip(entry.getYValue().toString());\n Tooltip.install(entry.getNode(), t);\n }\n }", "default void setTooltip(@Nullable String tooltip) {}", "private static void addToolTipAndBorderColor(Node n, Tooltip t) {\n Tooltip.install(n, t);\n n.setStyle(STILE_BORDER_VALIDATION);\n }", "public Triangle (int tipX, int tipY, int height, String orientation){\n super.points = new ArrayList();\n x1 = tipX;\n y1 = tipY;\n this.height = height;\n defineVertexes(orientation);\n definePoints();\n }", "public void setTooltipText() { tooltip.setText(name); }", "public void addTip(PaymentMethod m){\n tips.add(m);\n }", "public void tip()\r\n\t{\n\t\tSystem.out.println(\"Tipul de organizare: SAT!\");\r\n\t}", "public void setTileImprovementPlan(TileImprovementPlan tip) {\n this.tileImprovementPlan = tip;\n }", "public void showBalloonTip() {\n TimingUtils.showTimedBalloon(balloonTip , 3000);\n }", "public void tipOfTheDay(boolean force) {\n\t\tProperties props = new Properties();\n\t\ttry {\n\t\t\tprops.load(RailGUI.class.getResourceAsStream(\"/org/railsim/gui/resources/totd.properties\"));\n\t\t} catch (IOException ex) {\n\t\t\treturn;\n\t\t} catch (NullPointerException e) {\n\t\t\tdataCollector.collector.gotException(e);\n\t\t}\n\n\t\tTipModel tips = TipLoader.load(props);\n\n\t\t/*\tDefaultTipModel tips = new DefaultTipModel();\n\t\t // plain text\n\t\t tips\n\t\t .add(new DefaultTip(\n\t\t \"tip1\",\n\t\t \"SimplyTrain Tip 1\"));\n\n\t\t // html text\n\t\t tips.add(new DefaultTip(\"tip2\",\n\t\t \"<html>This is an html <b>TIP</b><br><center>\"\n\t\t + \"<table border=\\\"1\\\">\" + \"<tr><td>1</td><td>entry 1</td></tr>\"\n\t\t + \"<tr><td>2</td><td>entry 2</td></tr>\"\n\t\t + \"<tr><td>3</td><td>entry 3</td></tr>\" + \"</table>\"));\n\n\t\t // a Component\n\t\t tips.add(new DefaultTip(\"tip3\", new JTree()));\n\n\t\t // an Icon\n\t\t tips.add(new DefaultTip(\"tip 4\", new ImageIcon(BasicTipOfTheDayUI.class\n\t\t .getResource(\"TipOfTheDay24.gif\"))));\n\t\t */\n\t\tfinal JTipOfTheDay totd = new JTipOfTheDay(tips);\n\t\tint t = dataCollector.collector.prefs_totd.getInt(\"lasttip\", 0);\n\t\tif ((t + 1) < totd.getModel().getTipCount()) {\n\t\t\ttotd.setCurrentTip(t + 1);\n\t\t} else {\n\t\t\ttotd.setCurrentTip(0);\n\t\t}\n\n\t\tif (force) {\n\t\t\tfinal JTipOfTheDay.ShowOnStartupChoice fake = new JTipOfTheDay.ShowOnStartupChoice() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean isShowingOnStartup() {\n\t\t\t\t\treturn totd.isShowingOnStartup(dataCollector.collector.prefs_totd);\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void setShowingOnStartup(boolean showOnStartup) {\n\t\t\t\t\tif (showOnStartup) {\n\t\t\t\t\t\ttotd.forceShowOnStartup(dataCollector.collector.prefs_totd);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdataCollector.collector.prefs_totd.flush();\n\t\t\t\t\t\t} catch (BackingStoreException e) {\n\t\t\t\t\t\t\tdataCollector.collector.gotException(e);\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\ttotd.showDialog(this, fake, true);\n\t\t} else {\n\t\t\ttotd.showDialog(this, dataCollector.collector.prefs_totd);\n\t\t}\n\t\tdataCollector.collector.prefs_totd.putInt(\"lasttip\", totd.getCurrentTip());\n\t\ttry {\n\t\t\tdataCollector.collector.prefs_totd.flush();\n\t\t} catch (BackingStoreException e) {\n\t\t\tdataCollector.collector.gotException(e);\n\t\t}\n\t}", "public Tarea() {\n\t}", "public abstract String getToolTip();", "public LoansInfoPolitics()\n\t{\n\t\tsuper(new BorderLayout());\n\t}", "public double getTip() {\r\n return tipCalculator.getCalculatedTip();\r\n }", "private void setBaseTipPerBag() {\n System.out.println(\"What would you like the base tip per bag to be?\");\n baseTipPerBag = keyboard.nextDouble();\n \n \n if(baseTipPerBag < 0) {\n throw new IllegalArgumentException(\n \"error: base tip must be greater than or equal to zero\");\n }\n \n }", "protected void setToolTipErrorMessage() {\n\t\tString toolTipErrorMessage = null;\n\t\tsetToolTipMessage(toolTipErrorMessage);\n\t}", "public Tabla(int tip) {\n\t\tthis.sirinaTable = 20;\n\t\tthis.visinaTable = 20;\n\t\tthis.tip = tip;\n\t\tthis.tabla = new char[20][20];\n\t\tfor (int i = 0; i < this.visinaTable;i++) {\n\t\t\tfor (int j = 0; j < this.sirinaTable;j++) {\n\t\t\t\ttabla[i][j] = '.';\n\t\t\t}\n\t\t}\n\t\trezultat = 0;\n\t\tzmija = new ArrayList<Cvor>();\n\t\t\n\t\tif (tip == 2) {\n\t\t\tthis.dodajZidove();\n\t\t}\n\t\telse if(tip == 3) {\n\t\t\tthis.dodajPrepreke1();\n\t\t}\n\t\telse if(tip == 4) {\n\t\t\tthis.dodajPrepreke2();\n\t\t}\n\t\tthis.dodajZmijuPocetak();\n\t\tthis.dodajHranu();\n\t\tthis.smjer = 'd';\n\t}", "@Override\r\n\tpublic String getTips() {\n\t\treturn null;\r\n\t}", "private void calculateTip()\n {\n\t\ttry\n {\n\t\t\tbillAmount = Double.parseDouble(billAmountEditText.getText().toString());\n\t\t\thideKeyboard();\n loadTipPercentage();\n\t\t}\n catch (NumberFormatException ex)\n {\n\t\t\tbillAmount = 0;\n\t\t}\n try\n {\n numberPeople = Integer.parseInt(nbOfPpleView.getText().toString());\n hideKeyboard();\n loadTipPercentage();\n }\n catch (NumberFormatException ex)\n {\n numberPeople = 1;\n nbOfPpleView.setText(String.format(\"%d\", 1));\n }\n\t\t\n\t\ttipAmount = billAmount * tipPercentage;\n\t\ttotalAmount = billAmount + tipAmount;\n if (numberPeople > 0)\n {\n totalAmountByPerson = totalAmount / numberPeople;\n totalAmountByPerson = Math.ceil(totalAmountByPerson);\n }\n else\n {\n totalAmountByPerson = totalAmount;\n totalAmountByPerson = Math.ceil(totalAmountByPerson);\n }\n\n tipAmtView.setText(String.format(\"$%.2f\", tipAmount));\n totalAmtView.setText(String.format(\"$%.2f\", totalAmount));\n totalAmtByPersonView.setText(String.format(\"$%.0f\", totalAmountByPerson));\n\t}", "private void setAllToolTip() {\n\t\tDeviceSettingsController.setAllToolTip(tooltipAndErrorProperties, deviceName.getText(), vendorId, productId,\n\t\t\t\tmanufacture, productString, autoGenerateSerialNumber, serialNumber, serialNumberIncrement,\n\t\t\t\tenableRemoteWakeup, powerConfiguration, Endpoint_1, fifoBusWidth, fifoClockFrequency, enableDebugLevel,\n\t\t\t\tdebugValue, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, interFaceType, uvcVersion,\n\t\t\t\tuvcHeaderAddition, enableFPGA, fpgaFamily, browseBitFile, i2cSlaveAddress, deviceSttingFirmWare,\n\t\t\t\tdeviceSttingI2CFrequency);\n\t}", "public tn(String paramString, ho paramho)\r\n/* 12: */ {\r\n/* 13:11 */ super(paramString, paramho);\r\n/* 14: */ }", "void setImageProvider(TileImageProvider tip)\n/* 71: */ {\n/* 72:118 */ this.mapPanel.setTileImageProvider(tip);\n/* 73: */ }", "public Titik(){\r\n this.x = 0;\r\n this.y = 0;\r\n }", "protected void setTips()\n {\n String[] columnTips = getTableTips();\n String[] columnHeader = getTableHeaders();\n ColumnHeaderToolTips tips = new ColumnHeaderToolTips();\n for (int c = 0; c < columnHeader.length; c++)\n {\n TableColumn col = getColumnModel().getColumn(c);\n tips.setToolTip(col, columnTips[c]);\n }\n getTableHeader().addMouseMotionListener(tips);\n }", "double getTipAmount();", "void setAttributes(BalloonAttributes attrs);", "private void setTooltip() {\n\t\tif (buttonAddScannable != null && !buttonAddScannable.isDisposed()) {\n\t\t\tgetParentShell().getDisplay().asyncExec(() -> buttonAddScannable.setToolTipText(\"Select scannable to add to list...\"));\n\t\t}\n\t}", "public DynamicDriveToolTipTagFragmentGenerator() {}", "public ContourEntity(Shape area, String toolTipText) { super(area, toolTipText); }", "@Override\n\tprotected void initialize() {\n\t\tnew ToolTipFrame( \t\t\t\n \t\t\t\"<html>\"+\n \t\t\t\"<br>If you have worked on a resized (reduced) version of source and \"+\n \t\t\t\"<br> of target image for time and memory purpose, \"+\n \t\t\t\"<br> the transfo computed from this reduced image will be rescale to fit the original size\" +\n \t\t\t\"<br> of your source and target images\"+\n \t\t\t\"<br><b> Source binning </b> is the reduced scale for source that you used to compute the transfo, \"+\n \t\t\t\"<br><b> Target binning </b> is the reduced scale for target that you used to compute the transfo, \"+\n \t\t\t\" <br>Example : you have processed reduced size source of 512*512 of a 2048x2048 original source file\"+\n \t\t\t\" <br>and a reduced size target of 512*512 of a 4096x4096 original target file\"+\n \t\t\t\" <br>Source binning will be 4 (2048/ 512) and target binning will be 8 (4096 / 512)\"+\n \t\t\t\"</html>\"\n \t\t\t);\n\n\t\tsource=new EzVarSequence(\"Select Source Image Full Size (will be transformed from xml file)\");\n\t\tString varName =\"Xml file containing list of transformation (computed on reduced images)\";\n\t\tif (source.getValue()!=null)\n\t\t\txmlFile=new EzVarFile(varName, source.getValue().getFilename());\n\t\telse\n\t\t\txmlFile=new EzVarFile(varName, ApplicationPreferences.getPreferences().node(\"frame/imageLoader\").get(\"path\", \".\"));\n\t\tsourcebinning= new EzVarInteger(\"Source Binning \",1, 100, 1);\n\t\ttargetbinning=new EzVarInteger(\"Target Binning \",1, 100, 1);\n\t\t\n\t\t\n\t\taddEzComponent(source);\n\t\taddEzComponent(xmlFile);\n\t\taddEzComponent(sourcebinning);\n\t\taddEzComponent(targetbinning);\n\t\t\n\t}", "public ToolTipView getToolTipView() { return _toolTipView; }", "public void setTipMjenjacaID(long value) {\r\n this.tipMjenjacaID = value;\r\n }", "public void setToolTipText(String text)\n/* */ {\n/* 227 */ putClientProperty(\"ToolTipText\", text);\n/* */ }", "public void setTipusPartida(int tipus) {\r\n\t\tthis.tipus = tipus;\r\n\t}", "public Builder clearMsgTip() {\n \n msgTip_ = getDefaultInstance().getMsgTip();\n onChanged();\n return this;\n }", "public Gatete() {\r\n\t\tsuper();\r\n\t\timg = new JLabelGatete();\r\n\t}", "public Tarea(String descripcionTarea)\n {\n //Añade la descripción de la tarea\n descripcion = descripcionTarea;\n tareaCompletada = false;\n //Por defecto, las tareas tienen prioridad 0\n prioridad = 0;\n //Las nuevas tareas no tienen fecha de vencimiento\n fechaVencimiento = null;\n }", "public Label(NetworkTable nTable, int x, int y, Color color,\n Font font, double value) {\n super(nTable, \"\", x, y, 0, 0);\n this.color = color;\n this.font = font;\n this.value = value;\n lName = \"\";\n }", "public TopicLabelLayout(Context context, AttributeSet attributeSet, int i) {\n super(context, attributeSet, i);\n C32569u.m150519b(context, C6969H.m41409d(\"G6A8CDB0EBA28BF\"));\n C32569u.m150519b(attributeSet, C6969H.m41409d(\"G6897C108AC\"));\n }", "public HintPad(int x, int y) {\r\n\t\tsuper(x, y);\r\n\t\tinitTools();\r\n\t\tinitUI();\r\n\t}", "public void setTooltipHandler(CanvasType.TooltipHandler handler)\r\n\t{\n\t}", "public DialogLabel(int posX, int posY, Pos pos) {\n\t\tsuper();\n\t\tsetup(posX, posY, pos);\n\t}", "public Tienda() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public Tip(double cardAmount, double cashAmount, double unknownAmount) {\n if (cardAmount != 0.0) { this.hasCard = true; this.card = cardAmount; }\n if (cashAmount != 0.0) { this.hasCash = true; this.cash = cashAmount; }\n if (unknownAmount != 0.0) { this.hasUnknown = true; this.unknown = unknownAmount; }\n }", "private void findATip() {\n\n TextView tipsText = (TextView) findViewById(R.id.tipsText);\n TipManager tipManager = new TipManager();\n //Uses the TipManager to get a random tip\n this.tip = tipManager.getATip();\n //Gets the text of the tip\n String tipText = this.tip.getTipText();\n //Gets the activity that the tip should go to\n String tipIntent = this.tip.getTipIntent();\n tipsText.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n goSomewhere();\n }\n });\n tipsText.setText(tipText);\n tipsText.setTypeface(FontHelper.getLatoRegular(getApplicationContext()));\n //Log.d(\"Logthis \",tip);\n\n }", "public MenuTIK() {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (Exception e) {\n\n }\n initComponents();\n setResizable(false);\n Dimension windowSize = getSize();\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n Point centerPoint = ge.getCenterPoint();\n\n int dx = centerPoint.x - windowSize.width / 2;\n int dy = centerPoint.y - windowSize.height / 2;\n setLocation(dx, dy);\n\n LoadTabelDataTIK();\n }", "@FXML\n\tprivate void initialize() {\n\n\t\ttooltip = new FixedTooltip(\"Ziehe dieses Icon über die Karte um einen Marker zu setzen\");\n\n\t\tFixedTooltip.install(this, tooltip);\n\n\t\tdropped = false;\n\n\t}", "public FireTile() {\n super();\n setUtility(5);\n }", "public LineHeadView(JavaTextPane<?> aJTP)\n {\n // Set ivars\n _textPane = aJTP;\n _textArea = aJTP.getTextArea();\n\n // Config\n enableEvents(MouseMove, MouseRelease);\n setToolTipEnabled(true);\n setFill(BACKGROUND_FILL);\n\n // Set PrefSize\n setPrefSizeForText();\n\n // Set Padding\n Insets padding = _textArea.getPadding().clone();\n padding.left = padding.right = 6;\n setPadding(padding);\n }", "public String getToolTip() {\n\treturn this.toolTip;\n }", "@Override\n public String getTooltip()\n {\n return null;\n }", "public DefaultClickableRelic() {\n super(ID, IMG, OUTLINE, RelicTier.COMMON, LandingSound.CLINK);\n\n tips.clear();\n tips.add(new PowerTip(name, description));\n }" ]
[ "0.7963731", "0.765564", "0.74468094", "0.72426414", "0.7206248", "0.70919466", "0.69098043", "0.66910595", "0.64847195", "0.6384966", "0.63464254", "0.6331608", "0.629969", "0.62691206", "0.6223502", "0.62204623", "0.61567813", "0.613978", "0.6133324", "0.60655284", "0.6013469", "0.600791", "0.6004021", "0.5992155", "0.5977671", "0.59738415", "0.59721065", "0.5965063", "0.5949544", "0.5939808", "0.5923734", "0.5901641", "0.5894241", "0.5847355", "0.5822759", "0.57851124", "0.5770853", "0.57626945", "0.57386744", "0.57283705", "0.5718087", "0.5708424", "0.5695511", "0.56780076", "0.56571114", "0.5648855", "0.56356275", "0.56348664", "0.5623285", "0.55965096", "0.5595048", "0.5587426", "0.558425", "0.5580562", "0.55794543", "0.5567271", "0.55640674", "0.5533025", "0.5530025", "0.5496801", "0.54953", "0.5480727", "0.5480224", "0.54676574", "0.54521537", "0.544929", "0.542999", "0.542888", "0.54189444", "0.54150355", "0.54065937", "0.54020894", "0.53862184", "0.5382425", "0.53774816", "0.5370346", "0.53652894", "0.53563905", "0.5345019", "0.5344024", "0.53397006", "0.5335576", "0.52986085", "0.5294743", "0.5292188", "0.5268967", "0.5261996", "0.52582145", "0.5253099", "0.5253086", "0.524891", "0.52382433", "0.5237501", "0.52307177", "0.5224945", "0.52237946", "0.5215844", "0.521389", "0.52119917", "0.52068466", "0.51996285" ]
0.0
-1
Callback interface to be used with SuspendDataEventsTemplate.
public interface Callback { /** * Performs an operation with the prepared context. * * @param context to be used by the operation. * @return result of the operation. * @throws ExceptionBase if the operation throws exception. */ Object doWithContext(final Context context) throws ExceptionBase; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDataChanged(){}", "@Override\n public void onDataChanged() {\n }", "@Override\n public void onDataChanged() {\n }", "public void dataUpdateEvent();", "@Override\n public void onDataChanged() {\n\n }", "public void onDataChanged();", "@Override\n\tpublic void callback() {\n\t}", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "void onDataChanged();", "protected void onDataChanged(V item) {\n\n }", "@Override\n protected void onDataChanged() {\n }", "@Override\n\tpublic void onCallback() {\n\t\t\n\t}", "@Override\r\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot dataSnap: dataSnapshot.getChildren()){\r\n eventsUidCallback.onCallBack(dataSnap.getKey());\r\n Log.i(\"EventUid\", dataSnap.getKey());\r\n }\r\n }", "public interface OnRecordCallBack {\n\n int onSaveRecord(DataSource dataSource, int record);\n\n int onGetRecord(DataSource dataSource);\n\n int onResetRecord(DataSource dataSource);\n\n int onRemoveRecord(DataSource dataSource);\n\n void onClearRecord();\n\n}", "@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n // Not used\n }", "public interface DataCallback {\n public void onData(List t);\n}", "@Override\n\tpublic void DataAcquisitionObjectEvent(Interface.DataAcquisitionObjectEvent e,String data) {\n\t\t\n\t}", "public void callback() {\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void callback(int position) {\n\n\t\t\t\t\t\t\t\t\t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n finishedCallback.callback(dataSnapshot);\n }", "@Override\n public void onDataUpdatedCb(Object response_data) {\n \n }", "@Override\n public void DataIsInserted() {\n }", "@Override\n public void onNext(Void aVoid) {\n }", "@Override\n\tpublic void callback(Object o) {}", "public interface OnUpDataListener {\n}", "@Override\r\n\tpublic void suspend() {\n\t\tthis.suspended = true;\r\n\t}", "public interface DataLayerCallback<T> {\n void dataChanged(T data);\n void error();\n}", "@Override\n protected void scheduleOnDataTypeEditModeToggleCallback(final DataTypeEditModeToggleEvent event) {\n getOnDataTypeEditModeToggleCallback(event).onInvoke(event);\n }", "@DISPID(-2147412070)\n @PropGet\n java.lang.Object ondatasetcomplete();", "public interface PrearedStatementCallBack<T> {\n T doPrearedStatementCallBack(PreparedStatement pstm);\n}", "public interface DataEvent\n\textends Freezable\n{\n\n\tpublic abstract DataItem getDataItem();\n\n\tpublic abstract int getType();\n\n\tpublic static final int TYPE_CHANGED = 1;\n\tpublic static final int TYPE_DELETED = 2;\n}", "public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}", "void onFetchDataStarted();", "public interface StatementCallBack<T> {\n T doInStatementCallBack(Statement stm) throws SQLException;\n}", "@Override\n\t\t\t\t\t\t\tpublic void onOnlineDiveDataProgress(Object result) {\n\n\t\t\t\t\t\t\t}", "@EncoderThread\n protected void onEvent(@NonNull String event, @Nullable Object data) {}", "public interface IRowEvent\r\n{\r\n\r\n\t/**\r\n\t * This method is called before appending the\r\n\t * row template to the table template\r\n\t * @param rs Recordset used to fill the table, the record\r\n\t * position will the the current record\r\n\t * @param rowTemplate Row buffer\r\n\t * @return Modified row template\r\n\t * @throws Throwable\r\n\t */\r\n\tpublic String onNewRow(Recordset rs, String rowTemplate) \r\n\t\tthrows Throwable;\r\n\r\n}", "public void onPostResume() {\n super.onPostResume();\n this.eventDelegate.onPostResume();\n }", "@DISPID(-2147412072)\n @PropGet\n java.lang.Object ondatasetchanged();", "@Override\n public void onCallBack(int pos) {\n }", "@Override\r\n\tpublic void next(Void value) {\n\t\tSystem.out.println(\"this is a reaction to a pause event\");\r\n\t\ttheGui.doPause();\r\n\t}", "@Override\n\tpublic void onDataChanged()\n\t{\n\t\tfor (DataChangedCallbacks listener : this.dataChangedListeners)\n\t\t{\n\t\t\tlistener.onDataChanged();\n\t\t}\n\t}", "protected void onBegin() {}", "private NotifySuspendedCommandControllerPowerState() {\n\n\t}", "public interface OnQueueDataChangedListener {\n\n void onQueueDataChanged();\n }", "@Override\n protected void initEventAndData() {\n }", "@Override\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tmHandler.sendEmptyMessage(1);\n\t\t\tLog.i(\"message\", \"dataChange\");\n\t\t\tsuper.onChange(selfChange);\n\t\t}", "void onDataLoaded(int requestId, Object data);", "public interface DataSourceCallback<T> {\n\n void onSuccess(T object, String message);\n\n void onFailure(String message);\n}", "public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "protected void onQueued() {}", "@SuppressWarnings(\"unchecked\")\n \tprivate void notifyPrepared() {\n \t\tfor (final L next : getListeners()) {\n \t\t\tnext.prepared((S) this);\n \t\t}\n \t\tfor (final ISimpleNavigationNodeListener next : getSimpleListeners()) {\n \t\t\tnext.prepared(this);\n \t\t}\n \n \t}", "@FunctionalInterface\r\npublic interface HopperInsertCallback {\r\n Event<HopperInsertCallback> EVENT =\r\n EventFactory.createArrayBacked(\r\n HopperInsertCallback.class,\r\n (hopperBlockEntity, insertPosition) -> ActionResult.PASS,\r\n (listeners) ->\r\n (hopperBlockEntity, insertPosition) -> {\r\n for (HopperInsertCallback event : listeners) {\r\n ActionResult result = event.onInsert(hopperBlockEntity, insertPosition);\r\n if (result != ActionResult.PASS) {\r\n return result;\r\n }\r\n }\r\n return ActionResult.PASS;\r\n });\r\n\r\n /**\r\n * Callback for this interface.\r\n *\r\n * @param hopperBlockEntity Hopper block that is performing the insertion operation.\r\n * @param insertPosition Position in the world that the hopper is inserting into.\r\n * @return PASS if the current hit result should be used, else FAIL if a new hit result should be\r\n * injected.\r\n */\r\n ActionResult onInsert(HopperBlockEntity hopperBlockEntity, BlockPos insertPosition);\r\n}", "void onDataCleared();", "@Override\n\tpublic void onConnectionSuspended(int arg0) {\n\n\t}", "@Override\n\tpublic void onConnectionSuspended(int arg0) {\n\n\t}", "public interface DataObserver {\n }", "private static void OnSourceChanged(Object sender, SourceChangedEventArgs args)\r\n { \r\n OnToggleInsert(sender, null);\r\n }", "@Override\n\tpublic void update(Observable observable, Object data) {\n\t\tif(data instanceof STBEvent) {\n\t\t\t\n\t\t}\n\t}", "@Override\n\tpublic void onEvent() {\n\t\tSystem.out.println(\"Performing callback after synchronous task!\");\n\t}", "@Override\r\n\tpublic void windowstartUpData() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "public void dataChanged(DataChangeEvent e) {\n\t\t\t}", "public interface PayloadCallback {\n void onPayload(long minId, long maxId, List<BasePayload> payloads);\n }", "public void consulterEvent() {\n\t\t\n\t}", "public void dataWasSet();", "@Override\n \tpublic void intervalAdded(ListDataEvent e) {\n \t\t\n \t}", "public void onParaDataChangeByVar(int i) {\n }", "public interface BAPushDataEventHandler {\n\tpublic void publishedData(BAEvent event);\n}", "public interface EnqueueCallback {\n /**\n * Called when an enqueue finishes.\n *\n * @param success Whether the enqueue was successful.\n * @param rowCount The new database size\n */\n void onEnqueue(boolean success, long rowCount);\n }", "public void\t\tnotifyUCallbackListeners();", "@Override\n public void eventoCargarData() {\n }", "public void suspend() {\n this.suspended = true;\n }", "@Override\n public void notify(Object event){\n }", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Override\n\tpublic void NotifyObserver() {\n\n\t}", "void onHisNotify();", "private void OnInflated() \r\n { \r\n if (_inflatedList != null)\r\n { \r\n for/*each*/ (ResourceReferenceExpression listener : _inflatedList)\r\n {\r\n listener.OnDeferredResourceInflated(this);\r\n } \r\n }\r\n }", "@Override\n public void send(final EventData data) {\n LOGGER.debug(\"async event {} sent via LocalAsyncProcessor\", data.getData().ret$PQON());\n LOGGER.debug(\"(currently events are discarded in localtests)\");\n }", "public interface QARxDataCallBack<T> {\n void onSucess(T t);\n\n void onFail();\n\n}", "public interface OnDataGetListener {\n void onDataGet(Object data);\n}", "public void suspend() {\n\t\tpostEvent(new IpcEvent(SimulationEvents.EVENT_TYPE_SUSPEND, this, null));\n\t}", "@Override\n\tpublic void onTransactionStart() {}", "private void getSleepData() {\n\n }", "@Override\n public void onConnectionSuspended(int i) {\n\n }", "public interface SuMaoConsultCallback {\n void callbackSuMaoConsult(AnnounceBean announceBean);\n}", "public interface ListViewPopulateItemClosure\r\n{\r\n\tpublic void setPopulateItemClosure(Closure closure);\r\n}", "@Override\n\t\tpublic void onNext(String t) {\n\t\t\tSystem.out.println(\"Observer : \"+ t);\n\t\t}", "@Override\r\n\tpublic void onFragmentPaused() {\n\t}", "@Override\n\tpublic void onSetCustomUserDataDone(LiveUserInfoEvent arg0) {\n\t\t\n\t}", "@Override\n public void onConnectionSuspended(int i) {\n }", "@Override\n public void getData(final int start, final ApiCallBack<List<ClassMyMessageBean>> callBack) {\n\n }", "public void callback();", "public interface TaskDataCallback<T> extends TaskCallback {\n\n void onSuccess(T data);\n }", "boolean notifyBegin();", "@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }", "@Override\n\tpublic void processData() {\n\t\t\n\t}", "@Override\n public void onOnlineDiveDataProgress(\n Object result) {\n\n }", "public interface SelectEventFragmentEventsListener {\n void eventIdConfirmed(String eventId) throws IncompleteDataException;\n}", "public interface UHFCallbackLiatener {\n void refreshSettingCallBack(ReaderSetting readerSetting);\n void onInventoryTagCallBack(RXInventoryTag tag);\n void onInventoryTagEndCallBack(RXInventoryTag.RXInventoryTagEnd tagEnd);\n void onOperationTagCallBack(RXOperationTag tag);\n}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t((EventListenerTab) FragmentUtil.getActivity(discoverFragmentTab)).onEventSelected(event, \n\t\t\t\t\t\tholder.imgEvt, holder.txtEvtTitle);\n\t\t\t\tholder.rltLytBtm.setPressed(false);\n\t\t\t}" ]
[ "0.5863496", "0.5740303", "0.5740303", "0.5731413", "0.57278425", "0.57127774", "0.5702736", "0.57022965", "0.5681268", "0.5637663", "0.56274754", "0.5606879", "0.55915916", "0.55262464", "0.5517024", "0.5514005", "0.54782003", "0.5460792", "0.54564416", "0.5449128", "0.54408425", "0.5437751", "0.53592896", "0.53414106", "0.5339561", "0.53261495", "0.53173196", "0.5278853", "0.5275298", "0.5275121", "0.52484727", "0.52357554", "0.5214949", "0.5211686", "0.51981086", "0.5188003", "0.5186579", "0.51847154", "0.5183985", "0.51793367", "0.51720625", "0.51631886", "0.51504165", "0.51445293", "0.51363456", "0.5135197", "0.5129256", "0.51290995", "0.5128865", "0.5127974", "0.50974065", "0.5080394", "0.50796545", "0.5061288", "0.50604796", "0.50604796", "0.5049083", "0.504881", "0.5048347", "0.5043795", "0.50400186", "0.50396687", "0.5036303", "0.5033102", "0.5026081", "0.502464", "0.5015919", "0.501418", "0.5009914", "0.50076264", "0.50068533", "0.5005467", "0.49983263", "0.49966097", "0.4993591", "0.4993548", "0.49896625", "0.49832374", "0.49767002", "0.4976291", "0.49723753", "0.49545842", "0.49543366", "0.49526787", "0.49483645", "0.49450308", "0.4938584", "0.493704", "0.49366304", "0.493241", "0.49300063", "0.49293545", "0.49292403", "0.4929131", "0.49269238", "0.4925021", "0.4916678", "0.49100778", "0.490892", "0.49019074", "0.4900899" ]
0.0
-1
Performs an operation with the prepared context.
Object doWithContext(final Context context) throws ExceptionBase;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tfinal public void execute(IContext context) {\n\t\tsuper.execute(context);\n\t}", "void execute(Context context) throws SQLException;", "Action execute(Context context);", "@Override\n\tpublic void execute() throws Exception {\n\t\tAccount account = OperationContext.getContext().getAccount();\n\t\tHotelDao HDao = DaoManager.getInstance().getDao(HotelDao.class);\t\t\n\t\thotelId = HDao.getHotelIdByAccountId(account.getId());\n\t\thotel = HDao.getHotelByHotelId(hotelId);\t\t\n\t}", "private static int run(CommandContext<CommandSource> context, Operation op) throws CommandSyntaxException {\n return run(context, op, IntegerArgumentType.getInteger(context, \"count\"));\n }", "@Override\r\n\tpublic void executeOnStatement(XDI3Statement targetStatement, Operation operation, MessageResult messageResult, ExecutionContext executionContext) throws Xdi2MessagingException {\r\n\r\n\t\t// execute on statement\r\n\r\n\t\tif (operation instanceof GetOperation)\r\n\t\t\tthis.executeGetOnStatement(targetStatement, (GetOperation) operation, messageResult, executionContext);\r\n\t\telse if (operation instanceof AddOperation)\r\n\t\t\tthis.executeAddOnStatement(targetStatement, (AddOperation) operation, messageResult, executionContext);\r\n\t\telse if (operation instanceof ModOperation)\r\n\t\t\tthis.executeModOnStatement(targetStatement, (ModOperation) operation, messageResult, executionContext);\r\n\t\telse if (operation instanceof DelOperation)\r\n\t\t\tthis.executeDelOnStatement(targetStatement, (DelOperation) operation, messageResult, executionContext);\r\n\t\telse if (operation instanceof DoOperation)\r\n\t\t\tthis.executeDoOnStatement(targetStatement, (DoOperation) operation, messageResult, executionContext);\r\n\t\telse\r\n\t\t\tthrow new Xdi2MessagingException(\"Unknown operation: \" + operation.getOperationXri(), null, executionContext);\r\n\t}", "public <T> T executeInApplicationScope(Callable<T> op) throws Exception {\n return manager.executeInApplicationContext(op);\n }", "@SuppressWarnings(\"unchecked\")\n public void execute() {\n execute(null, null);\n }", "abstract public void execute(FunctionContext context) throws Exception;", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public OperationStatus execute(T operation) throws AbstractAgentException;", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "public abstract void run(Context context) throws SQLException;", "public void performOperation() {\n processFile(this.scopedFile);\n }", "public abstract void applyToQuery(DatabaseQuery theQuery, GenerationContext context);", "private void operate(int command, Context context) {\n\n switch (command) {\n case OPER_TYPE_DEL:\n for (int i = selectedEntities.size() - 1; i >= 0; i--) {\n if (selectedEntities.size() < i) {\n break;\n }\n FileInfo fi = selectedEntities.get(i);\n if(fi==null){\n continue;\n }\n file = fi.getFile();\n recursiveDelete(file);\n }\n break;\n case OPER_TYPE_CUT:\n recursiveCut(initPathList(this.selectedEntities), destination);\n break;\n case OPER_TYPE_COPY:\n recursiveCopy(OperationUtil.selectedEntities, destination, true);\n break;\n case OPER_TYPE_MOVE_PRIVACY:\n moveInPrivacy(initPathList(this.selectedEntities), destination, context);\n break;\n }\n updateEndOnFiles(OperationUtil.getOperType());\n Logs.i(\"toSelectedString\", \"duplicated --\" + this.duplicated.size());\n }", "public void execute(DatabaseOperation operation ,IDataSet dataSet) throws Exception{\n \toperation.execute(conn, dataSet);\n }", "protected void execute() {}", "public void invoke(Context context) throws ChainException;", "Snapshot apply(Context context);", "public boolean execute(Context context)\n throws Exception {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Executing \" + getClass().getName());\n }\n return execute((ActionContext) context);\n }", "@Override\r\n\tpublic Integer call() throws Exception {\n\t\treturn ps.executeUpdate(); // TDOD release resources\r\n\t}", "<T> T callInContext(ContextualCallable<T> callable) {\n InternalContext[] reference = localContext.get();\n if (reference[0] == null) {\n reference[0] = new InternalContext(this);\n try {\n return callable.call(reference[0]);\n }\n finally {\n // Only remove the context if this call created it.\n reference[0] = null;\n }\n }\n else {\n // Someone else will clean up this context.\n return callable.call(reference[0]);\n }\n }", "public void markOperationAsExecuted(Engine.Result result) {\n assertInvariants(ItemProcessingState.TRANSLATED);\n final BulkItemRequest current = getCurrentItem();\n DocWriteRequest docWriteRequest = getRequestToExecute();\n switch (result.getResultType()) {\n case SUCCESS:\n final DocWriteResponse response;\n if (result.getOperationType() == Engine.Operation.TYPE.INDEX) {\n Engine.IndexResult indexResult = (Engine.IndexResult) result;\n response = new IndexResponse(\n primary.shardId(),\n requestToExecute.id(),\n result.getSeqNo(),\n result.getTerm(),\n indexResult.getVersion(),\n indexResult.isCreated()\n );\n } else if (result.getOperationType() == Engine.Operation.TYPE.DELETE) {\n Engine.DeleteResult deleteResult = (Engine.DeleteResult) result;\n response = new DeleteResponse(\n primary.shardId(),\n requestToExecute.id(),\n deleteResult.getSeqNo(),\n result.getTerm(),\n deleteResult.getVersion(),\n deleteResult.isFound()\n );\n\n } else {\n throw new AssertionError(\"unknown result type :\" + result.getResultType());\n }\n executionResult = new BulkItemResponse(current.id(), current.request().opType(), response);\n // set a blank ShardInfo so we can safely send it to the replicas. We won't use it in the real response though.\n executionResult.getResponse().setShardInfo(new ReplicationResponse.ShardInfo());\n locationToSync = TransportWriteAction.locationToSync(locationToSync, result.getTranslogLocation());\n break;\n case FAILURE:\n executionResult = new BulkItemResponse(\n current.id(),\n docWriteRequest.opType(),\n // Make sure to use request.index() here, if you\n // use docWriteRequest.index() it will use the\n // concrete index instead of an alias if used!\n new BulkItemResponse.Failure(\n request.index(),\n docWriteRequest.id(),\n result.getFailure(),\n result.getSeqNo(),\n result.getTerm()\n )\n );\n break;\n default:\n throw new AssertionError(\"unknown result type for \" + getCurrentItem() + \": \" + result.getResultType());\n }\n currentItemState = ItemProcessingState.EXECUTED;\n }", "protected void execute()\n\t{\n\t}", "@Override\n\t\tpublic void execute(ManagedFunctionContext<None, Indexed> context) throws Throwable {\n\t\t\tparameter = (Integer) context.getObject(0);\n\t\t\tcontext.doFlow(0, \"TEST\", null);\n\t\t}", "protected void execute() {\r\n }", "@Override\n public void execute() throws EngineException {\n Object target = JavaReflectionUtil.getObject(this.target, \n callStatement.getEntries().subList(1,\n callStatement.getEntries().size() - 1));\n this.getParent().setResult(executeMethod(target, callStatement));\n pop();\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "public abstract void doInvoke(InvocationContext ic) throws Exception;", "@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;", "public abstract void runOperation();", "public void execute (T target);", "public abstract boolean execute(ActionContext actionContext)\n throws Exception;", "protected void execute()\n {\n }", "<T> T executeInTransaction(OperationsCallback<K, V, T> callback);", "ResponseEntity execute();", "protected void execute() {\n\t}", "void applyProduces(ReaderContext context, Operation operation, Method method);", "@Override\n public void afterProc(OperationContext context) throws CommonException {\n\n }", "protected abstract void executeInternal(JobExecutionContext context) throws JobExecutionException;", "protected void execute() {\n\t\t\n\t}", "@SetSearchIndexDirty\n public ResponseContext execute() {\n logger.debug(\"+\");\n RequestContext request = getRequestContext();\n User user = request.getSession().getUser();\n Connection conn = null;\n try {\n super.checkPermission(user);\n checkRequest(request);\n conn = DBHelper.getConnection();\n conn.setAutoCommit(false);\n Long listId = request.getLong(INPUT_LIST_ID);\n Long listItemId = request.getLong(INPUT_LIST_ITEM_ID);\n Long moveToListId = request.getLong(INPUT_MOVE_TO_ID);\n String items = request.getParameter(INPUT_LIST_ITEMS);\n isMove = \"true\".equals(request.getParameter(INPUT_IS_MOVE));\n List list = List.findById(conn, listId);\n List moveToList = List.findById(conn, moveToListId);\n checkPermission(user, list, moveToList);\n if (items != null && items.length() > 0)\n copyItems(conn, items, user, moveToListId);\n else\n copyItem(conn, listItemId, user, moveToListId);\n conn.commit();\n }\n catch (Exception ex) {\n logger.error(\"Cannot process request\", ex);\n DBHelper.rollback(conn);\n }\n finally {\n DBHelper.close(conn);\n }\n GetListCommand command = new GetListCommand();\n command.setRequestContext(request);\n logger.debug(\"-\");\n return command.execute();\n }", "protected abstract void executeHelper();", "@Test\n public void operator_context() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new SpecialElement(VertexElement.ElementKind.CONTEXT, typeOf(ProcessorContext.class)));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!CONTEXT\"));\n }", "protected void execute() {\n\n\t}", "@Override\n\tpublic void addStatement(UpdateContext op, Resource subj, IRI pred, Value obj, Resource... contexts)\n\t\t\tthrows SailException {\n\t\tverifyIsOpen();\n\t\tverifyIsActive();\n\t\tsynchronized (added) {\n\t\t\tassert added.containsKey(op);\n\t\t\tCollection<Statement> pending = added.get(op);\n\t\t\tif (contexts == null || contexts.length == 0) {\n\t\t\t\tpending.add(sailBase.getValueFactory().createStatement(subj, pred, obj));\n\t\t\t} else {\n\t\t\t\tfor (Resource ctx : contexts) {\n\t\t\t\t\tpending.add(sailBase.getValueFactory().createStatement(subj, pred, obj, ctx));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pending.size() % BLOCK_SIZE == 0 && !isActiveOperation()) {\n\t\t\t\tendUpdate(op);\n\t\t\t\tstartUpdate(op);\n\t\t\t}\n\t\t}\n\t}", "public void execute() {\n }", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public abstract void operation();", "void applyResponses(ReaderContext context, Operation operation, Method method);", "public interface Callback {\n /**\n * Performs an operation with the prepared context.\n * \n * @param context to be used by the operation.\n * @return result of the operation.\n * @throws ExceptionBase if the operation throws exception.\n */\n Object doWithContext(final Context context) throws ExceptionBase;\n}", "public <A> Future<A> transact(DB<A> op)\n {\n return withConnection(transactional(op), false);\n }", "abstract protected void passHitQueryContextToClauses(HitQueryContext context);", "public abstract void processResult(\n Operation operation, Object resultObj, Map<String, Object> keyMap)\n throws BaseCollectionException;", "@Override\r\n\tpublic void handleResult(Date updateTime, Boolean resultObject, Map<String, Object> contextContents, Long uid) {\n\t}", "void execute() throws ServiceException;", "public void execute() {\n execute0();\n }", "public Image execute(ImageInfo info, Map hints, ImageSessionContext context) throws ImageException, IOException {\n/* 99 */ return execute(info, null, hints, context);\n/* */ }", "void applyImplicitParameters(ReaderContext context, Operation operation, Method method);", "public void execute() {\n\t\t// XOR GATE OP\n\t\txor.a.set(a.get());\n\t\txor.b.set(b.get());\n\t\txor.execute();\n\t\tsum.set(xor.out.get());\n\n\t\t// AND GATE OP\n\t\tand.a.set(a.get());\n\t\tand.b.set(b.get());\n\t\tand.execute();\n\t\tcarry.set(and.out.get());\n\n\t}", "public void execute() {\n\t\t\n\t}", "DBCursor execute();", "Operations operations();", "@Override\n\tpublic void execute(int arg) throws DataAccessException {\n\t\tsuper.execute(memory.getData(arg));\n\t}", "private PrimitiveResult executeOperation(String sSessionId, String sSourceProductName, String sDestinationProductName, String sWorkspaceId, ISetting oSetting, LauncherOperations oOperation) {\r\n\t\treturn executeOperation(sSessionId, sSourceProductName, sDestinationProductName, sWorkspaceId, oSetting, oOperation, null);\r\n\t}", "public void execute() {\n // empty\n }", "Account apply(Context context);", "public void execute() {\n\n\t}", "@Override\n public void execute(Work work) {\n final Session session = (Session) entityManager.getDelegate();\n session.doWork(work);\n }", "public <T> T performWorkWithContext(\n PrefabContextSetReadable prefabContext,\n Callable<T> callable\n ) throws Exception {\n try (PrefabContextScope ignored = performWorkWithAutoClosingContext(prefabContext)) {\n return callable.call();\n }\n }", "@SuppressWarnings(\"unchecked\")\n @Test\n public void testExecuteWithInvocationContext() throws Exception {\n TestApplicationWithoutEngine processApplication = spy(pa);\n ProcessApplicationReference processApplicationReference = mock(ProcessApplicationReference.class);\n when(processApplicationReference.getProcessApplication()).thenReturn(processApplication);\n\n // when execute with context\n InvocationContext invocationContext = new InvocationContext(mock(BaseDelegateExecution.class));\n Context.executeWithinProcessApplication(mock(Callable.class), processApplicationReference, invocationContext);\n\n // then the execute method should be invoked with context\n verify(processApplication).execute(any(Callable.class), eq(invocationContext));\n // and forward to call to the default execute method\n verify(processApplication).execute(any(Callable.class));\n }", "@Override\n\tpublic final void execute (Map<Key, Object> context) {\n\t\tboolean outcome = makeDecision (context);\n\n\t\tif (outcome) {\n\t\t\tpositiveOutcomeStep.execute (context);\n\t\t} else {\n\t\t\tnegativeOutcomeStep.execute (context);\n\t\t}\n\t}", "CommandResult execute();", "private synchronized void performOperations() {\r\n\t\ttry {\r\n\t\t\tswitch (operationStatus) {\r\n\t\t\tcase TRUNCATE_DATA:\r\n\t\t\t\tHibernateUtil.rawQuery(\"TRUNCATE csv;\");\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\tcase APPEND_DATA:\r\n\t\t\t\tparseData(false);\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase UPDATE_DATA:\r\n\t\t\t\tparseData(true);\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase ARRANGE_DATA:\r\n\t\t\t\tarrangeData();\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n public abstract void runOpMode();", "public void execute() {\r\n\t\r\n\t}", "JobResponse apply(Context context);", "@Override\n\tpublic void execute() {\n\t\trecevier.doSomething();\n\t}", "public void execute() {\n for (CoordAction<PCEData,PCEData> pce : this) {\n pce.setRequestData(this.getRequestData());\n // Aggregators trigger the execution of its children PCE's before they are\n // executed themselves.\n pce.process();\n }\n }", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "@Override\r\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n\t}" ]
[ "0.62824667", "0.59772485", "0.5924294", "0.5578824", "0.5533296", "0.5516463", "0.5457744", "0.54201126", "0.5387576", "0.5372802", "0.5353496", "0.5320395", "0.5320395", "0.5317981", "0.5268329", "0.52575415", "0.52546173", "0.52360445", "0.52142745", "0.52106386", "0.52004975", "0.5187157", "0.5170198", "0.51228356", "0.5077319", "0.5071831", "0.50708264", "0.50583345", "0.50493675", "0.5043924", "0.5043924", "0.5043924", "0.5043924", "0.5043924", "0.5043924", "0.5043924", "0.5043924", "0.5043924", "0.5043924", "0.5043924", "0.5043924", "0.5042663", "0.50404656", "0.5020459", "0.5014868", "0.49998072", "0.4997485", "0.4996573", "0.49955732", "0.4994546", "0.49880037", "0.49675447", "0.49664104", "0.4959381", "0.49522117", "0.4950268", "0.4945775", "0.49318305", "0.49282625", "0.49170455", "0.4897909", "0.4897909", "0.4897909", "0.4892314", "0.48896655", "0.48830912", "0.48756918", "0.48748568", "0.48728228", "0.4863184", "0.4849465", "0.48375288", "0.48285946", "0.48245633", "0.4821545", "0.48155516", "0.4815248", "0.48151824", "0.48138294", "0.48121613", "0.4808292", "0.48071295", "0.48068064", "0.48016995", "0.48009428", "0.4799924", "0.47993487", "0.47961858", "0.47934547", "0.479249", "0.47924542", "0.4791158", "0.47840577", "0.47727692", "0.47727224", "0.47727224", "0.47727224", "0.47727224", "0.47719347", "0.47719347" ]
0.57149595
3
This method was generated by MyBatis Generator. This method corresponds to the database table t_communityinform
int deleteByPrimaryKey(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CommunityInform> selectAll();", "public void setCommunity(int community) {\n this.community = community;\n }", "public String getCommunity() {\n return this.community;\n }", "CommunityInform selectByPrimaryKey(String id);", "@ApiModelProperty(value = \"小区id\")\n\tpublic Long getCommunityId() {\n\t\treturn communityId;\n\t}", "Community() {}", "@Override\n\tpublic int updateCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tJSONObject isExistJSON = this.selectOne(\"selectCommunityNameExist\", params);\n\t\tif(isExistJSON.getIntValue(\"isExist\") !=0){\n\t\t\tresult = -2;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this.delete(\"deleteCommunityMember\",params);\n\t\tif(params.getJSONArray(\"members\")!=null&&params.getJSONArray(\"members\").size()!=0){\n\t\t\tresult = this.insert(\"insertCommunityMember\",params);\n\t\t}\n\t\tresult = this.update(\"updateCommunity\", params);\n\t\treturn result ;\n\t}", "@Override\n\tpublic int insertCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tString communityId = UUIDUtil.getUUID();\n\t\tparams.put(\"communityId\", communityId);\n\t\tJSONObject isExistJSON = this.selectOne(\"selectCommunityNameExist\", params);\n\t\tif(isExistJSON.getIntValue(\"isExist\") !=0){\n\t\t\tresult = -2;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this.insert(\"insertCommunity\", params);\n\t\tif(params.getJSONArray(\"members\")!=null&&params.getJSONArray(\"members\").size()!=0){\n\t\t\tresult = this.insert(\"insertCommunityMember\",params);\n\t\t}\n\t\treturn result;\n\t}", "private void getCommunity() {\n DatabaseReference ref = FirebaseDatabase.getInstance()\n .getReference(\"Communities\").child(communityId);\n\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Community community = snapshot.getValue(Community.class);\n communityName = community.getName();\n getSupportActionBar().setTitle(communityName);\n Glide.with(getBaseContext()).load(community.getImage()).into(communityProfile);\n description.setText(community.getDescription());\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "public void setCommunityId(Long communityId) {\n\t\tthis.communityId = communityId;\n\t}", "public String getCommunityName() {\n return communityName;\n }", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "@Mapper\npublic interface WeChatInfoDao {\n\n\n /**\n * 插入微信信息\n * @param wechatInfo\n * @return\n */\n @Insert(\"INSERT INTO wechat_info(parentid,unionid,openid,nickname,sex,province,city,country,headImgUrl,\" +\n \"status,ticket_url,ticket,is_guide,reward) VALUES(#{parentid},#{unionid},#{openid},#{nickname},#{sex},#{province}\" +\n \",#{city},#{country},#{headImgUrl},#{status},#{ticketUrl},#{ticket},#{isGuide},#{reward})\")\n @Options(useGeneratedKeys=true, keyProperty=\"id\")\n int insert(WeChatInfoEntity wechatInfo);\n\n /**\n * 根据openID 查找用户信息\n * @param openid\n * @return\n */\n @Select(\"SELECT * FROM wechat_info WHERE openid = #{openid}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"nickname\", property = \"nickname\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity findByOpenID(@Param(\"openid\") String openid);\n\n /**\n * 根据openID 修改二维码信息\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET ticket_url=#{ticketUrl},ticket=#{ticket} WHERE openid=#{openid}\")\n void updateTicketUrlByOpenID(WeChatInfoEntity wechatInfo);\n\n /**\n * 取消关注\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET status=1 WHERE openid=#{openid}\")\n void updateStatusByOpenID(WeChatInfoEntity wechatInfo);\n\n\n /**\n * 更改status 状态\n * @param wechatInfo\n */\n @SelectProvider(type=WeChatInfoSqlProvider.class, method=\"updateByOpenIdSql\")\n void updateStatus(@Param(\"wechatInfo\") WeChatInfoEntity wechatInfo);\n\n @Select(\"SELECT * FROM wechat_info WHERE id = #{ID}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity selectWecahtUserByID(@Param(\"ID\")String ID);\n}", "public ScGridColumn<AcUpuTagSummaryVo> newMailCategoryCodeColumn()\n {\n return newMailCategoryCodeColumn(\"Mail Category Code\");\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\n public boolean isCommunity() {\n return false;\n }", "void initCommunityProperty();", "public ObjectId getCommunityId() {\r\n\t\treturn communityId;\r\n\t}", "public ACommunity getCisInformation(String client, String cisId);", "@Override\n\tpublic String execute() throws Exception {\n\t\t\n\t\tthis.communitylist = CommunityHibDao.select();\n\t\tActionContext.getContext().getSession().put(\"communitylist\", communitylist);\n\t\tSystem.out.println(communitylist.get(0).getCommunityName());\n\t\tSystem.out.println(\"Hello!\");\n\t\treturn super.execute();\n\t}", "public String get_snmpcommunity()\r\n\t{\r\n\t\treturn this.snmpcommunity;\r\n\t}", "public ScGridColumn<AcUpuTagSummaryVo> newMailClassCodeColumn()\n {\n return newMailClassCodeColumn(\"Mail Class Code\");\n }", "public ScGridColumn<AcUpuTagSummaryVo> newMailSubClassCodeColumn()\n {\n return newMailSubClassCodeColumn(\"Mail Sub Class Code\");\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "Collection getCommunities();", "@Override\n\tpublic ArrayList<Community> findAll() {\n\t\treturn null;\n\t}", "@Insert({\n \"insert into generalcourseinformation (courseid, code, \",\n \"name, teacher, credit, \",\n \"week, day_detail1, \",\n \"day_detail2, location, \",\n \"remaining, total, \",\n \"extra, index)\",\n \"values (#{courseid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{teacher,jdbcType=VARCHAR}, #{credit,jdbcType=INTEGER}, \",\n \"#{week,jdbcType=VARCHAR}, #{day_detail1,jdbcType=VARCHAR}, \",\n \"#{day_detail2,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, \",\n \"#{remaining,jdbcType=INTEGER}, #{total,jdbcType=INTEGER}, \",\n \"#{extra,jdbcType=VARCHAR}, #{index,jdbcType=INTEGER})\"\n })\n int insert(GeneralCourse record);", "public List<StudentCOOP> getStudentCOOP() {\n List<StudentCOOP> studentco = new ArrayList<StudentCOOP>();\n openConnection();\n try {\n getAllStudent = conn.prepareStatement(\"select * from APP.STUDENTCOOP\");\n rs = getAllStudent.executeQuery();\n while (rs.next()) {\n studentco.add(\n new StudentCOOP(rs.getString(\"ZID\"), rs.getString(\"FIRSTNAME\"), rs.getString(\"LASTNAME\"),\n rs.getString(\"GENDER\"), rs.getString(\"ADDRESS\"), rs.getInt(\"CONTACT\"), rs.getString(\"EMAIL\"),\n rs.getString(\"WORKEMAIL\"), rs.getString(\"NOTES\"), rs.getString(\"SUBJECT\"), \n rs.getInt(\"SEMESTERCOMPLETED\"), rs.getDouble(\"MARK\"), rs.getDouble(\"WAM\"))\n );\n }\n rs.close();\n getAllStudent.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n return studentco;\n }", "public void createTableComplaintsData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tDatabaseMetaData d=con.getMetaData();\n\t\t\t\tResultSet rs=d.getTables(null,null,\"ComplaintsData\",null);\n\t\t\t\tif(rs.next())\n\t\t\t\t{\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData table exist\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tString Create_Table=\"create table ComplaintsData(Customer_Name varchar(100),Address varchar(100),Contact varchar(30),Product varchar(100),Serial_No varchar(50),Module_No varchar(50),Complaint_No varchar(50),Category varchar(30))\";\n\t\t\t\t\tPreparedStatement ps=con.prepareStatement(Create_Table);\n\t\t\t\t\tps.executeUpdate();\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData created successfully!\");\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}", "@Override\n public String toString() {\n return bestCommunity + \"\";\n }", "public void set_snmpcommunity(String snmpcommunity)\r\n\t{\r\n\t\tthis.snmpcommunity = snmpcommunity;\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //LiquidacionImpor\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tLiquidacionImpor entity = new LiquidacionImpor();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,LiquidacionImporDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Importaciones.LiquidacionImpor.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseLiquidacionImpor(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public void setSnmpCommunity(String snmpCommunity) {\r\n this.snmpCommunity = snmpCommunity;\r\n }", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "List<CommunityDTO> findAll();", "public java.sql.ResultSet CitasActivasSoloMedico(String CodigoMedico){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas, 7, 3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo = \"+CodigoMedico+\" AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND phm.estado='0' AND sdp.numeroDocumento = pmd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY phm.fechas,jornada,phm.horas LIMIT 100 \");\r\n \t//System.out.println(\"SELECT ahm.codigo,ahm.horas,ahm.fechas,ahm.NombrePaciente,aes.nombre_especialidad,amd.nombre,amd.apellidos,ahm.estado,aes.codigo,amd.codigo,su.usu_codigo,SUBSTRING(ahm.horas, 7, 3) AS jornada FROM agm_horariomedico ahm,agm_medico amd,agm_especialidad aes,seg_datos_personales sdp,seg_usuario su WHERE amd.codigo = \"+CodigoMedico+\" AND ahm.codMedico_fk = amd.codigo AND amd.codEspe_fk = aes.codigo AND ahm.estado='0' AND sdp.numeroDocumento = amd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND ahm.fechas >= CURDATE() ORDER BY ahm.fechas,jornada,ahm.horas LIMIT 100 \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "int insert(CommunityInform record);", "public Collection<Community> getAllCommunities() {\n return communityStore.getAll();\n }", "public void Nouvelleligne() {\n int maxEleve = retourneMaxNumber() + 1;\n try {\n Connector1.statement.executeUpdate(\"Insert INTO eleve(id_el) VALUES (\" + maxEleve + \")\");\n Object[] val = {maxEleve, \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"};\n effaceTable(jTable2, mode);\n mode.addRow(val);\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n\n }\n\n }", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Override\n\tpublic String toSql() {\n\t\treturn null;\n\t}", "public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "private void remplirPriseEnCompte() {\r\n\t\tResultSet result = ctn.lectureData(\"SELECT * FROM PriseEnCompte\");\r\n\t\t// Remplissage tableau et combo Utilisateur\r\n\t\ttry {\r\n\t\t\twhile(result.next()) {\r\n\t\t\t\ttbPriseEnCompte.add(new StructPriseEnCompte(result.getLong(\"idPriseEnCompte\"), result.getString(\"Nom\"), result.getString(\"Description\")));\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\tctn.closeLectureData();\r\n\t\ttry {\r\n\t\t\tresult.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public void updateStudentCOOP(StudentCOOP toUpdate) {\n openConnection();\n try {\n updateStudent = conn.prepareStatement(\"update app.studentcoop set firstname=?, lastname=?, gender=?, address=?,\"\n + \" contact=?, email=?, workemail=?, notes=?, subject=?, semestercompleted=?, mark=?, wam=?\");\n \n updateStudent.setString(1, toUpdate.getZID());\n updateStudent.setString(1, toUpdate.getFName());\n updateStudent.setString(2, toUpdate.getLName());\n updateStudent.setString(3, toUpdate.getGEnder());\n updateStudent.setString(4, toUpdate.getADdress());\n updateStudent.setInt(5, toUpdate.getCOntact());\n updateStudent.setString(6, toUpdate.getEMail());\n updateStudent.setString(7, toUpdate.getWOrkemail());\n updateStudent.setString(8, toUpdate.getNOtes());\n updateStudent.setString(9, toUpdate.getSUbject());\n updateStudent.setInt(10, toUpdate.getSEmestercompleted());\n updateStudent.setDouble(11, toUpdate.getMArk());\n updateStudent.setDouble(12, toUpdate.getWAm());\n\n updateStudent.executeUpdate();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n }", "@SuppressWarnings(\"unchecked\")\n public void table_update(){\n int c;\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n con=DriverManager.getConnection(\"jdbc:mysql://localhost/footballdb\",\"root\",\"\");\n pst=con.prepareStatement(\"Select * from manager\");\n ResultSet Rs=pst.executeQuery();\n ResultSetMetaData rd=Rs.getMetaData();\n c=rd.getColumnCount();\n DefaultTableModel df=(DefaultTableModel)jTable1.getModel();\n df.setRowCount(0);\n while(Rs.next()){\n Vector v2=new Vector();\n for(int i=1;i<=c;i++){\n \n v2.add(Rs.getString(\"managerid\"));\n v2.add(Rs.getString(\"mname\"));\n v2.add(Rs.getString(\"teamid\"));\n \n }\n df.addRow(v2);\n \n }\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(manager.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(manager.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "public HashMap<Integer, HashMap<String, String>> getXMLMessageDataForCollabFromDB(ArrayList<Integer> interIDs) throws SQLException, NumberFormatException, XPathExpressionException, ParserConfigurationException, SAXException, IOException{\n\t HashMap<Integer, HashMap<String, String>> result = new HashMap();\n\t String query = null;\n\t HashMap<String, String> message;\n\t HashMap<String, ArrayList<String>> messageMap;\n\t \n//\t Select parentEventID,eventID,resourceName,roomName,networkID, buddyName, intemployeeID, containerID, contentType, contentSubType, resourceID, attributes\n\t \n\t String parentEventId;\n\t String eventId;\n\t String roomName;\n\t String networkId;\n\t String buddyName;\n\t String intEmployeeId;\n\t String employeeId = null;\n\t String containerId;\n\t String networkName;\n\t String employeeEmail = null;\n\t \n\t int contentTypeID;\n\t String contentType;\n\t int contentSubTypeID;\n\t String contentSubType = null;\n\t int resourceID;\n\t SQLXML attributes;\n\t int actionID;\n\t String actionType;\n\t ArrayList<String> resources;\n\t String resourceName;\n\t String resourceURL;\n\t String text;\n\t String messageAttributes = null;\n\t HashMap<String, String> msgAttributes = null;\n\t \n//\t stmt = getConnection(dbParams).createStatement();\n\t \n\t DOMSource domSource;\n\t Document document;\n\t XPath xpath = XPathFactory.newInstance().newXPath();\n\t \n\t String expression = \"//name[.='event.action']/following-sibling::*[1][name()='value']\";\n\t \n\t //loop through each interID\n\t for(int interID : interIDs){\n\t \n\t message = new HashMap();\n\t \n\t query = \"Select parentEventID,eventID,roomName,networkID, buddyName, intemployeeID, containerID, contentType, contentSubType, resourceID, attributes from Interactions where interID = \"+interID;\n//\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t parentEventId = rs.getString(1);\n\t eventId = rs.getString(2);\n\t roomName = rs.getString(3);\n\t networkId = rs.getString(4);\n\t buddyName = rs.getString(5);\n\t intEmployeeId = rs.getString(6);\n\t containerId = rs.getString(7);\n\t contentTypeID = rs.getInt(8);\n\t contentSubTypeID = rs.getInt(9);\n\t resourceID = rs.getInt(10);\n\t attributes = rs.getSQLXML(11);\n\t \n\t\t domSource = attributes.getSource(DOMSource.class);\n\t\t document = (Document) domSource.getNode();\n\t\t actionID = Integer.parseInt(xpath.evaluate(expression, document));\n\t\t \n\t\t //Get contentType\n\t\t contentType = getContentType(stmt, contentTypeID);\n\t\t //Get ContentSubType\n\t\t if(contentSubTypeID != -1){\n\t\t \t contentSubType = getContentSubType(stmt, contentSubTypeID);\t \n\t\t }\n\t\t \n\t\t //Get Action Type\n\t\t actionType = getActionType(actionID);\n\t\t //Get Resource Name and URL\n\t\t resources = getResourceNameAndURL(resourceID);\n\t\t resourceName = resources.get(0);\n\t\t resourceURL = resources.get(1);\n//\t\t Get Network Name\n\t\t networkName = getNetworkName(networkId);\n//\t\t Get EmployeeId\n\t\t if(intEmployeeId != null){\n\t\t \t employeeId = getEmployeeId(stmt, intEmployeeId);\n//\t\t\t Get Employee Email\n\t\t\t \n\t\t\t employeeEmail = getEmployeeEmail(stmt, intEmployeeId);\n\t\t\t if(employeeEmail == null){\n\t\t\t \t employeeEmail = buddyName;\n\t\t\t }\n\t\t }\n\t\t \n\n\t\t \n\t\t //Get Message Table data\n\t\t query = \"Select text from Messages where interID = \"+interID;\n//\t\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t text = rs.getString(1).trim().replaceAll(\"\\n\", \"\").replaceAll(\"\\r\", \"\");\n\t\t\t query = \"Select attributes from Messages where interID = \"+interID + \" and attributes is not null\";\n//\t\t\t System.out.println(query);\n\t\t rs = stmt.executeQuery(query);\n\t\t if(rs.next()){\n\t\t \t messageAttributes = rs.getString(1);\n\t\t }\n\t\t \t \n\t msgAttributes = new HashMap();\n\t //Get Attribute Names and Values\n\t\t if(messageAttributes != null){\n\t\t \t \n\t\t \t msgAttributes = getMessageAttributes(messageAttributes); \t \n\t\t }\n\t \n\t \n\t //Add all the values\n\t message.put(\"parentEventID\", parentEventId);\n\t message.put(\"eventId\", eventId);\n\t message.put(\"containerId\", containerId);\n\t message.put(\"roomName\", roomName);\n\t message.put(\"buddyName\", buddyName);\n\t message.put(\"networkID\", networkId);\n\t message.put(\"networkName\", networkName);\n\t message.put(\"employeeId\", employeeId);\n\t message.put(\"employeeEmail\", employeeEmail);\n\t message.put(\"intEmployeeID\", intEmployeeId);\n\t message.put(\"Content type\", contentType);\n\t if(contentSubTypeID != 0){\n\t \t message.put(\"Content sub-type\", contentSubType); \n\t }\n\t \n\t message.put(\"Action\", actionType);\n\t message.put(\"Resource name\", resourceName);\n\t message.put(\"Resource URL\", resourceURL);\n\t message.put(\"Text\", text);\n\t if(msgAttributes.size() > 0){\n\t \t message.putAll(msgAttributes); \n\t }\n\t \n//\t for(String attName : msgAttributes.keySet()){\n//\t message.put(attName, msgAttributes.get(attName));\n//\t }\n\n\t ArrayList<String> fileNames = getFileListsForCollab(interID);\n\t StringBuffer fileName = new StringBuffer();\n\t if(fileNames.size() > 0){\n\t \t for(int i = 0 ; i < fileNames.size(); i++){\n\t \t\t fileName.append(fileNames.get(i));\n\t \t\t if(i + 1 != fileNames.size()){\n\t \t\t\t fileName.append(\"#\");\n\t \t\t }\n\t \t }\n\t \t message.put(\"File\", fileName.toString());\n\t }\n\t \n\t result.put(interID, message);\n\t }\n\t \n\t return result;\n\t }", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public List<TcTipoNomina> getNominasValidasBenefComodin() {\n String nominasValidasBenefComodin = super.getQueryDefinition(\"nominasValidasBenefComodin\");\n \n Map<String, Object> mapValues = new HashMap<String, Object>();\n \n SqlParameterSource namedParameters = new MapSqlParameterSource(mapValues);\n DataSource ds = super.getJdbcTemplate().getDataSource();\n NamedParameterJdbcTemplate namedTemplate = new NamedParameterJdbcTemplate(ds);\n \n super.getJdbcTemplate().setFetchSize(100);\n return namedTemplate.query(nominasValidasBenefComodin, namedParameters, new TcTipoNominasValidasBenefComodinAux());\n }", "public PageList<JSONObject> getCommunityOperatorList(String communityName, int pageNum, int pageSize, String realname,\n String phone, long id, String username) {\n Map<String, Object> param = new HashMap<>();\n if (StringUtils.isNotBlank(communityName)) {\n param.put(\"communityName\", \"%\" + communityName + \"%\");\n }\n if (StringUtils.isNotBlank(phone)) {\n param.put(\"phone\", \"%\" + phone + \"%\");\n }\n if (StringUtils.isNotBlank(realname)) {\n param.put(\"realname\", \"%\" + realname + \"%\");\n }\n if (id > 0) {\n param.put(\"id\", id);\n }\n\n if (StringUtils.isNotBlank(username)) {\n param.put(\"username\", \"%\" + username + \"%\");\n }\n PageBounds pageBounds = new PageBounds(pageNum, pageSize);\n // 查询操作员信息\n PageList<Map> pageList = extCommunityAdminMapper.pageByCondition(param, pageBounds);\n\n PageList<JSONObject> pl = new PageList<>(pageList.getPaginator());\n\n if (pageList != null && pageList.size() > 0) {\n for (Map map : pageList) {\n JSONObject object = new JSONObject();\n object.put(\"id\", map.get(\"id\"));\n object.put(\"name\", map.get(\"name\"));\n object.put(\"realname\", map.get(\"realname\"));\n object.put(\"phone\", map.get(\"phone\"));\n object.put(\"tel\", map.get(\"tel\"));\n object.put(\"email\", map.get(\"email\"));\n object.put(\"status\", map.get(\"status\"));\n object.put(\"create_time\", map.get(\"createTime\"));\n object.put(\"username\", map.get(\"username\"));\n object.put(\"last_login_time\", map.get(\"latestLoginTime\"));\n object.put(\"community_id\", map.get(\"communityId\"));\n object.put(\"position\", map.get(\"position\"));\n // 根据管理员ID查询部门\n List<SysDeptSim> deptList = extSysDeptMapper.getSysDeptListByAdminId((long) map.get(\"id\"));\n if (deptList != null && deptList.size() > 0) {\n object.put(\"dept_name\", deptList.get(0).getName());\n object.put(\"dept_id\", deptList.get(0).getId());\n } else {\n object.put(\"dept_name\", null);\n object.put(\"dept_id\", null);\n }\n // 根据管理员ID查询角色\n List<SysRole> roleList = extSysRoleMapper.getSysRoleListByAdminId((long) map.get(\"id\"), Constant.App.Id.COMMUNITY_ADMIN.value());\n if (roleList != null && roleList.size() > 0) {\n object.put(\"role_name\", roleList.get(0).getName());\n object.put(\"role_id\", roleList.get(0).getId());\n } else {\n object.put(\"role_name\", null);\n object.put(\"role_id\", null);\n }\n\n // 查询主会员信息\n //FIXME 性能极差,中哥说的.\n//\t\t\t\tMap<String, Object> condition = new HashMap<>();\n//\t\t\t\tcondition.put(\"communityId\", map.get(\"communityId\"));\n//\t\t\t\tList<Map> masterInfoList = extMasterInfoMapper.selectMasterInfoAndPassport(condition);\n//\t\t\t\tJSONArray masterInfoArray = new JSONArray();\n//\t\t\t\tif (masterInfoList != null && masterInfoList.size() > 0) {\n//\t\t\t\t\tfor (Map masterInfoMap : masterInfoList) {\n//\t\t\t\t\t\tJSONObject masterInfoObject = new JSONObject();\n//\t\t\t\t\t\tmasterInfoObject.put(\"id\", masterInfoMap.get(\"id\"));\n//\t\t\t\t\t\tmasterInfoObject.put(\"username\", masterInfoMap.get(\"username\"));\n//\t\t\t\t\t\tmasterInfoArray.add(masterInfoObject);\n//\t\t\t\t\t}\n//\t\t\t\t}\n\n//\t\t\t\tobject.put(\"master_info_list\", masterInfoArray);\n JSONArray masterInfoArray = new JSONArray();\n object.put(\"master_info_list\", masterInfoArray);\n\n pl.add(object);\n }\n }\n//\t\tjson.put(\"totalRow\", pageList.getPaginator().getTotal());\n//\t\tjson.put(\"pageNumber\", pageNum);\n//\t\tjson.put(\"lastPage\", pageList.getPaginator().isLast());\n//\t\tjson.put(\"firstPage\", pageList.getPaginator().isFirst());\n//\t\tjson.put(\"totalPage\", pageList.getPaginator().getPages());\n//\t\tjson.put(\"pageSize\", pageSize);\n//\t\tjson.put(\"list\", array);\n\n return pl;\n }", "@Override\n\tpublic List<JSONObject> getCommunities(JSONObject params) {\n\t\tList<JSONObject> communities = this.selectList(\"getCommunities\",params);\n\t\tif(communities.size()!=0){\n\t\t\tparams.put(\"communities\", communities);\n\t\t\tList<JSONObject> members = this.selectList(\"selectCommunityMembers\",params);\n\t\t\tMap<String,List<JSONObject>> memberMap = new HashMap();\n\t\t\tfor(JSONObject memberJSON:members){\n\t\t\t\tString communityId = memberJSON.getString(\"communityId\");\n\t\t\t\tList<JSONObject> memberList= memberMap.get(communityId);\n\t\t\t\tif(memberList==null){\n\t\t\t\t\tmemberList = new ArrayList();\n\t\t\t\t\tmemberMap.put(communityId,memberList);\n\t\t\t\t}\n\t\t\t\tmemberList.add(memberJSON);\n\t\t\t}\n\t\t\tfor(JSONObject communityJSON:communities){\n\t\t\t\tString communityId = communityJSON.getString(\"communityId\");\n\t\t\t\tcommunityJSON.put(\"members\", memberMap.get(communityId)==null?new ArrayList():memberMap.get(communityId));\n\t\t\t}\n\t\t}\n\t\treturn communities;\n\t}", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "@Override\n public List<Community> getCommunities(Context context, Item item) throws SQLException\n {\n List<Community> result = new ArrayList<Community>();\n List<Collection> collections = item.getCollections();\n for(Collection collection : collections)\n {\n List<Community> owningCommunities = collection.getCommunities();\n for (Community community : owningCommunities) {\n result.add(community);\n result.addAll(communityService.getAllParents(context, community));\n }\n }\n\n return result;\n }", "public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private Map<Long, List<ObligacionCoactivoDTO>> consultaObligacionesComparendo() {\n logger.debug(\"CoactivoEJB::consultaObligacionesComparendo()\");\n Map<Long, List<ObligacionCoactivoDTO>> obligacionesDeudor = new HashMap<>();\n StringBuilder consulta = new StringBuilder();\n consulta.append(\"SELECT \");\n consulta.append(\"p.id_cartera, \");\n consulta.append(\"ca.saldo_capital, \");\n consulta.append(\"ca.saldo_interes, \");\n consulta.append(\"p.numero_obligacion, \");\n consulta.append(\"p.id_deudor, \");\n consulta.append(\"p.fecha_obligacion, \");\n consulta.append(\"p.id_funcionario, \");\n consulta.append(\"p.id_cargue_coactivo, \");\n consulta.append(\"p.id_precoactivo \");\n consulta.append(\"FROM precoactivo p \");\n consulta.append(\"JOIN cartera ca on ca.id_cartera = p.id_cartera \");\n consulta.append(\"WHERE p.id_estado_precoactivo = :estadoAprobado \");\n consulta.append(\"AND p.codigo_tipo_obligacion = :tipoComparendo \");\n\n Query query = em.createNativeQuery(consulta.toString());\n query.setParameter(\"estadoAprobado\", EnumEstadoPrecoactivo.AUTORIZADO.getValue());\n query.setParameter(\"tipoComparendo\", EnumTipoObligacion.COMPARENDO.getValue());\n @SuppressWarnings({ \"unchecked\" })\n List<Object[]> lsObligacionesComparendos = Utilidades.safeList(query.getResultList());\n\n for (Object[] obligacionComparendo : lsObligacionesComparendos) {\n int i = 0;\n BigInteger idCartera = (BigInteger) obligacionComparendo[i++];\n BigDecimal saldoCapital = (BigDecimal) obligacionComparendo[i++];\n BigDecimal saldoInteres = (BigDecimal) obligacionComparendo[i++];\n String numObligacion = (String) obligacionComparendo[i++];\n Long idDeudor = ((BigInteger) obligacionComparendo[i++]).longValue();\n Date fechaObligacion = (Date) obligacionComparendo[i++];\n Integer idFuncionario = (Integer) obligacionComparendo[i++];\n Long idCargue = ((BigInteger) obligacionComparendo[i++]).longValue();\n Long idPrecoactivo = ((BigInteger) obligacionComparendo[i++]).longValue();\n\n CoactivoDTO coactivo = new CoactivoDTO();\n coactivo.setCargueCoactivo(new CargueCoactivoDTO(idCargue));\n coactivo.setFuncionario(new FuncionarioDTO(idFuncionario));\n coactivo.setPersona(new PersonaDTO(idDeudor));\n // Arma obligacion que va a entrar a coactivo\n ObligacionCoactivoDTO obligacion = new ObligacionCoactivoDTO();\n obligacion.setCodigoTipoObligacion(EnumTipoObligacion.COMPARENDO.getValue());\n obligacion.setCartera(new CarteraDTO(idCartera.longValue()));\n obligacion.setNumeroObligacion(numObligacion);\n obligacion.setCoactivo(coactivo);\n obligacion.setFechaObligacion(fechaObligacion);\n obligacion.setValorObligacion(saldoCapital);\n obligacion.setValorInteresMoratorios(saldoInteres);\n obligacion.setIdPrecoativo(idPrecoactivo);\n if (!obligacionesDeudor.containsKey(idDeudor)) {\n obligacionesDeudor.put(idDeudor, new ArrayList<ObligacionCoactivoDTO>());\n }\n obligacionesDeudor.get(idDeudor).add(obligacion);\n }\n return obligacionesDeudor;\n }", "public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){\n\tString sql=\"select * from institucion where cod_institucion='\"+cod_solicitud+\"';\";\n\t\n\treturn db.queryForObject(sql, new InstitucionRowMapper());\n}", "public Socio getSocioInfoAtualizar() {\n\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem para pegar Socio\"); \n Statement stmt = null;\n\n\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM alterados\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio (rs.getString(\"nomeSocio\"),rs.getString(\"cpfSocio\"),rs.getString(\"rgSocio\"),\n rs.getString(\"matSocio\"),rs.getString(\"sexoSocio\"),rs.getString(\"diaNascSocio\"),\n rs.getString(\"mesNascSocio\"),rs.getString(\"anoNascSocio\"),rs.getString(\"enderecoSocio\"),\n rs.getString(\"numEndSocio\"),rs.getString(\"bairroSocio\"),rs.getString(\"cidadeSocio\"),\n rs.getString(\"estadoSocio\"),rs.getString(\"foneSocio\"),rs.getString(\"celSocio\"),\n rs.getString(\"emailSocio\"),rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"), rs.getInt(\"idSocioPK\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n\n \n Socio socioMax = new Socio();\n\n socioMax = listaSocio.get(0);\n\n //Se houver mais de um socio na lista vai procurar o de maior ID\n if(listaSocio.size()-1 > 0){\n\n for(int i=0; i<= listaSocio.size()-1; i++){\n\n Socio socio = new Socio();\n socio = listaSocio.get(i);\n\n if(socio.getIdAlterado()>= socioMax.getIdAlterado() ){\n socioMax = socio;\n }\n\n }\n\n }\n //Se não pega o primeiro\n else {\n socioMax = listaSocio.get(0);\n \n }\n\n System.out.println(socioMax.getIdAlterado());\n\n //Retorna o socio de maior ID, logo o ultimo inserido.\n return socioMax;\n }", "public abstract String toSQL();", "public void showData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\t\tString sql=\"select *from ComplaintsData\";\n\t\t\t\tps=con.prepareStatement(sql);\n\t\t\t\trs=ps.executeQuery();\n\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public ResultSet Cmus(Long comp_id) throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tSystem.out.println(comp_id);\r\n\t//String sql=\"select c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\";\r\n\t//System.out.println(sql);\r\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\");\r\n\treturn rs;\r\n}", "public M csmiNationNull(){if(this.get(\"csmiNationNot\")==null)this.put(\"csmiNationNot\", \"\");this.put(\"csmiNation\", null);return this;}", "public donorList() {\n initComponents();\n try {\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n Connection connection = DriverManager.getConnection( \"jdbc:sqlserver://localhost:1433;user=sa;password=123456;\" +\n \"databaseName=BloodBankMS;\");\n \n \n Statement statement = connection.createStatement(); \n \n ResultSet rs = statement.executeQuery(\"SELECT DonorID , DonorName ,DonorGender ,DonorAddress ,DonorBloodGroup , DonorArea , DonorPhoneNumber, DonorAge, DonorWeight from DONOR\"); \n ResultSetMetaData rsmetadata = rs.getMetaData(); \n int columns = rsmetadata.getColumnCount(); \n DefaultTableModel dtm = new DefaultTableModel(); \n Vector columns_name=new Vector();\n Vector data_rows=new Vector();\n for(int i= 1; i < columns+1; i++) \n { \n columns_name.addElement (rsmetadata.getColumnLabel(i)); \n } \n \n dtm.setColumnIdentifiers(columns_name);\n while (rs.next()) \n { \n data_rows = new Vector(); \n for (int j = 1; j <columns+1; j++) \n { \n data_rows.addElement(rs.getString(j)) ;\n } \n dtm.addRow(data_rows); \n \n } \n donorTable.setModel(dtm); \n \n } catch (Exception e) { \n e.printStackTrace(); \n }\n }", "@Override\n public DycpCompensacionDTO encontrar(String numControl) throws SIATException {\n try {\n String query =\n \" SELECT C.*, S.*, TT.*, SI.*, PER.*, CON.*, IMP.*, CON.DESCRIPCION, PER.DESCRIPCION as DESCRIPCION_PERIODO, IMP.DESCRIPCION as DESCRIPCION_IMPUESTO \"\n + \"FROM DYCP_COMPENSACION C, DYCP_SERVICIO S, DYCC_TIPOTRAMITE TT, DYCT_SALDOICEP SI, \"\n + \"DYCC_PERIODO PER, DYCC_CONCEPTO CON, DYCC_IMPUESTO IMP \"\n + \"WHERE C.NUMCONTROL = S.NUMCONTROL \"\n + \"AND TT.IDTIPOTRAMITE = S.IDTIPOTRAMITE AND SI.IDSALDOICEP = C.IDSALDOICEPORIGEN \"\n + \"AND PER.IDPERIODO = SI.IDPERIODO AND CON.IDCONCEPTO = SI.IDCONCEPTO AND IMP.IDIMPUESTO = CON.IDIMPUESTO \" \n + \"AND C.NUMCONTROL = ? ORDER BY C.IDSALDOICEPDESTINO DESC\";\n TipoTramiteMapper mapperTipoTramite = new TipoTramiteMapper();\n DycpServicioMapper mapperServicio = new DycpServicioMapper();\n mapperServicio.setMapperTipoTramite(mapperTipoTramite);\n CompensacionMapper mapper = new CompensacionMapper();\n DyctSaldoIcepMapper mapperSaldoIcep = new DyctSaldoIcepMapper();\n PeriodoMapper mapperPeriodo = new PeriodoMapper();\n ConceptoMapper mapperConcepto = new ConceptoMapper();\n ImpuestoMapper mapperImpuesto = new ImpuestoMapper();\n mapperSaldoIcep.setMapperPeriodo(mapperPeriodo);\n mapperConcepto.setMapperImpuesto(mapperImpuesto);\n mapperSaldoIcep.setMapperConcepto(mapperConcepto);\n mapper.setMapperServicio(mapperServicio);\n mapper.setMapperSaldoIcepOrigen(mapperSaldoIcep);\n return jdbcTemplateDYC.queryForObject(query, new Object[] { numControl }, mapper);\n } catch (DataAccessException dae) {\n log.error(ConstantesDyC1.TEXTO_1_ERROR_DAO + dae.getMessage() + ConstantesDyC1.TEXTO_2_ERROR_DAO +\n SQLOracleDyC.CONSULTA_DYCP_COMPENSACION + ConstantesDyC1.TEXTO_3_ERROR_DAO + \"numcontrol\" + numControl +\n ConstantesDyC1.TEXTO_8_CAUSAS + dae.getCause());\n throw new SIATException(dae);\n }\n }", "public Community()\r\n {\r\n //\r\n }", "private static String getTableName(String baseName, boolean isCommunity, boolean isCollection, boolean isDistinct,\n boolean isMap) {\n // isDistinct is meaningless in relation to isCommunity and isCollection\n // so we bounce that back first, ignoring other arguments\n if (isDistinct) {\n return baseName + \"_dis\";\n }\n\n // isCommunity and isCollection are mutually exclusive\n if (isCommunity) {\n baseName = baseName + \"_com\";\n } else if (isCollection) {\n baseName = baseName + \"_col\";\n }\n\n // isMap is additive to isCommunity and isCollection\n if (isMap) {\n baseName = baseName + \"_dmap\";\n }\n\n return baseName;\n }", "protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}", "@Override\n\tpublic CommunicationInfo getCommuInfo(HashMap<String, String> map) {\n\t\treturn null;\n\t}", "public void populateTable() {\n DefaultTableModel dtm = (DefaultTableModel)tblSalesPersonCommision.getModel();\n dtm.setRowCount(0);\n // for(OrderList orderlist:salesperson.getOrderlistcatalog().getSalesPersonOrder()){\n // for(Order order:salesperson.getOrderListSalesPerson().getOrderList()){ \n // for(OrderList orderlist:salesperson.getOrderlistcatalog().getOrCatalog()){\n // for(SalesPerson salesperson :business.getEmployeedirectory().getSalesPersonList()){\n \n for(OrderList orderlist:salesperson.getOrderlistcatalog().getOrCatalog()){\n Object [] row = new Object[4];\n // row[0]=.getCustomer().getCustomerId();\n // row[1]= market.getCustomer().getCustomerName();\n row[0]=orderlist;\n row[1]=orderlist.getOrdertotalprice();\n row[2]=orderlist.getSalespersoncomission();\n row[3]=orderlist.getTotalorderlistquantity();\n //3 tcomission = tcomission + orderlist.getSalespersoncomission();\n //3 totalquantity = totalquantity + orderlist.getTotalorderlistquantity();\n //3 totalorderprice = totalorderprice + orderlist.getOrdertotalprice();\n \n // row[0]=order;\n // row[1]=order.getAmountprice();\n \n dtm.addRow(row);\n // }\n // }\n } \n //2 salesperson.getOrderlistcatalog().setTotalquantitypersalesperson(totalquantity);\n //2 salesperson.getOrderlistcatalog().setTotalcommision(tcomission);\n //2 salesperson.getOrderlistcatalog().setTotalorderlistcsatalogprice(totalorderprice);\n}", "public boolean vérification_collab_simp(String username) {\ntry {\n\t\t\t\n\t\t\tjdbc.setConnection();\n\t\t\tStatement stm=jdbc.setConnection().createStatement();\n\t\t\tString strcheck=\"select collaborateur_simple.id from collaborateur_simple,utilisateur where collaborateur_simple.id=utilisateur.id and utilisateur.username=\"+'\"'+username+'\"';\n\t\t\t\n\t\t\t\t\n\t\t\tResultSet res = stm.executeQuery(strcheck);\n\t\t\t\n\t\t\t\n\t\t\twhile (res.next()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tjdbc.setConnection().close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void init(Map<String, Object> values) {\n\t\tthis.setType(\"community_name\", FieldType.TABLE_SELECTOR);\r\n\t\tthis.setType(\"did\", FieldType.TABLE_SELECTOR);\r\n\t\tthis.setType(\"contract_id\", FieldType.TABLE_SELECTOR);\r\n\r\n\t\tTableSelector selector_communities = UIHandler.selector(args -> {\r\n\t\t\tJTable t = (JTable) args[0];\r\n\t\t\tt.setModel(new CommunitiesTableModelImpl());\r\n\t\t\tRuntimeStore.runUI().refresh(new CommunityRequestImpl().query(), t.getModel());;\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tselector_communities.comfirm(args -> {\r\n\t\t\tUIHandler.handle_table_selector(\"community_name\", \"name\", args);\r\n\t\t\treturn null;\r\n\t\t}, \"0\");\r\n\r\n\t\tthis.setValue(\"community_name\", selector_communities);\r\n\t}", "public synchronized String getSenhaPromocional(MensagemPromocional msgPromo,String msisdn, Connection con) throws SQLException\n\t{\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet \t\t rs = null;\n\t\tString \t\t\t senha = null;\n\t\ttry\n\t\t{\n\t\t\tpstmt = con.prepareStatement(sqlSenha);\n\t\t\tpstmt.setInt(1,msgPromo.getCodServico());\n\t\t\tpstmt.setInt(2,msgPromo.getCodConteudo());\n\t\t\tpstmt.setInt(3,msgPromo.getCodPromocao());\n\t\t\trs = pstmt.executeQuery();\n\t\t\tif (rs.next())\n\t\t\t{\n\t\t\t\t// Caso a pesquisa de senha retornou que existe uma proxima disponive\n\t\t\t\t// entao atualiza o registro indicando qual o assinante que requisitou\n\t\t\t\t// antes de enviar a senha por sms\n\t\t\t\tsenha = rs.getString(\"CO_SENHA\");\n\t\t\t\t// Marca agora a utilizacao da senha pelo assinante\n\t\t\t\tPreparedStatement pstmtUpd = con.prepareStatement(sqlUpdSenha);\n\t\t\t\tpstmtUpd.setString\t\t(1,msisdn);\n\t\t\t\tpstmtUpd.setTimestamp\t(2,new Timestamp(Calendar.getInstance().getTimeInMillis()));\n\t\t\t\tpstmtUpd.setInt \t\t(3,msgPromo.getCodServico());\n\t\t\t\tpstmtUpd.setInt \t\t(4,msgPromo.getCodConteudo());\n\t\t\t\tpstmtUpd.setInt\t \t\t(5,msgPromo.getCodPromocao());\n\t\t\t\tpstmtUpd.setString\t\t(6,senha);\n\t\t\t\t\n\t\t\t\tpstmtUpd.executeUpdate();\n\t\t\t\tpstmtUpd.close();\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\tthrow e;\n\t\t}\n\t\tfinally{\n\t\t\ttry{// Fecha os objetos de consulta\n\t\t\t\tif (rs != null) rs.close();\n\t\t\t\tif (pstmt != null) pstmt.close();\n\t\t\t}catch(Exception e){};\n\t\t}\n\n\t\treturn senha;\n\t}", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "public String getNomTable();", "java.lang.String getSqlCode();", "public void setBestCommunity(int bestCommunity) {\n this.bestCommunity = bestCommunity;\n }", "public boolean asignaNumeroFac(java.sql.Connection conIns, int intCodEmp,int intCodLoc, int intCodTipDocFacEle, int intCodDoc, int intCodCot) \r\n {\r\n boolean blnRes = false;\r\n java.sql.Statement stmLoc, stmLocIns;\r\n java.sql.ResultSet rstLoc;\r\n String strSql = \"\";\r\n String strSqlIns = \"\";\r\n int intNumDoc = 0;\r\n int intNumDocGuia = 0;\r\n try \r\n {\r\n if (conIns != null){\r\n stmLoc = conIns.createStatement();\r\n strSql = \"SELECT CASE WHEN (ne_ultDoc+1) IS NULL THEN 1 ELSE (ne_ultDoc+1) END AS ultnum \"\r\n + \" FROM tbm_cabTipDoc WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n// System.out.println(\"numero \" + strSql);\r\n rstLoc = stmLoc.executeQuery(strSql);\r\n if (rstLoc.next()) {\r\n intNumDoc = rstLoc.getInt(\"ultnum\");\r\n }\r\n rstLoc.close();\r\n rstLoc = null;\r\n stmLoc.close();\r\n stmLoc = null;\r\n \r\n \r\n strSqlIns += \" UPDATE tbm_cabTipDoc SET ne_ultDoc=\" + intNumDoc + \" WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n strSqlIns += \";UPDATE tbm_cabmovinv SET ne_numdoc=\" +intNumDoc+\", ne_numgui=\"+intNumDocGuia+\", st_reg='A' , st_imp='S' \"\r\n + \" WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_doc=\" + intCodDoc + \" and st_reg not in ('I','E') AND ne_numcot=\" + intCodCot;\r\n strSqlIns += \" ; UPDATE tbm_cabdia SET tx_numdia='\" + intNumDoc + \"' WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_dia=\" + intCodDoc + \" and st_reg not in ('I','E') \";\r\n System.out.println(\"asignaNumeroFac \"+strSqlIns);\r\n stmLocIns = conIns.createStatement();\r\n stmLocIns.executeUpdate(strSqlIns);\r\n stmLocIns.close();\r\n stmLocIns = null;\r\n intNumFacElec=intNumDoc;\r\n blnRes = true;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "public void setCommunityName(String communityName) {\n this.communityName = communityName == null ? null : communityName.trim();\n }", "int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileProfileNameColumn()\n {\n return newMobileProfileNameColumn(\"Mobile Profile Name\");\n }", "@Select(\"select datetime,currentConfirmedCount,confirmedCount,suspectedCount,curedCount,deadCount from covid19_1 where datetime = #{datetime}\")\n List<Map<String, Object>> getNationalData(String datetime);", "public void generarDocumentosCoactivosAnteriores() {\n\n try {\n\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"Set Language 'Español'\");\n\n Query update = em.createNativeQuery(sql.toString());\n update.executeUpdate();\n\n // Consulta de coactivos\n sql = new StringBuilder();\n sql.append(\n \"SELECT c.id_proceso, c.id_coactivo, p.fecha_inicio, c.valor_total_obligaciones, p.numero_proceso, tp.id_trazabilidad_proceso , tp2.id_trazabilidad_proceso as traza2 \");\n sql.append(\"FROM coactivo c \");\n sql.append(\"JOIN proceso p ON p.id_proceso = c.id_proceso \");\n sql.append(\"JOIN trazabilidad_proceso tp ON p.id_proceso = tp.id_proceso \");\n sql.append(\"AND tp.id_estado_proceso = 22 \");\n sql.append(\"JOIN trazabilidad_proceso tp2 ON p.id_proceso = tp2.id_proceso \");\n sql.append(\"AND tp2.id_estado_proceso = 24 \");\n sql.append(\"WHERE NOT EXISTS (SELECT 1 FROM trazabilidad_proceso tp \");\n sql.append(\n \"WHERE EXISTS (select 1 from documento_proceso dp where dp.id_trazabilidad_proceso = tp.id_trazabilidad_proceso) \");\n sql.append(\"AND tp.id_proceso = p.id_proceso) \");\n sql.append(\"AND CAST(p.numero_proceso AS bigint) <= 6179 \");\n sql.append(\"ORDER BY c.id_coactivo\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n @SuppressWarnings(\"unchecked\")\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n for (Object[] filaCoactivo : listaResultados) {\n iLCoactivo.generarDocumentosAnteriores(filaCoactivo);\n }\n } catch (Exception e) {\n logger.error(\"Error en generación de documento de apertura de coactivo\", e);\n\n }\n }", "public PromocionTableModel() {\n \n //Establecemos la sentencia SQL que vamos a ejecutar\n super(\"SELECT ID_PROMOCION , NOMBRE, DESCUENTO FROM PROMOCION\");\n \n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Empresa\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tEmpresa entity = new Empresa();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,EmpresaDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Seguridad.Empresa.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseEmpresa(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public static void create_join_CP(String databaseCT,String rchain,Connection con2) throws SQLException{\n\t\t\n\t\tString table_name = databaseCT+\"_CT.\"+rchain.substring(0,rchain.length()-1) + \"_CT`\";\n\t\t//System.out.println(databaseCT+\"_CT\");\n\t\tString newTable_name = rchain.substring(0,rchain.length()-1) + \"_CT_KLD`\";\n\t\t//System.out.println(table_name);\n\t\t// table_name is input contingency table, newTable_name will be output KLD table\n\t\tStatement st=con2.createStatement();\n ResultSet rst=st.executeQuery(\"show columns from \"+table_name+\" ;\");\n // System.out.println(\"show columns from \"+table_name+\" ;\");\n while(rst.next()){\n \tcolumn_names.add(\"`\"+rst.getString(1)+\"`\");\n \tcolumn_names_CP.add(\"`\"+rst.getString(1)+\"_CP`\");\n \t// add conditional probability column for each attribute column\n }\n \n \n st.execute(\"drop table if exists \" + newTable_name);\n String query1=\"create table \" + newTable_name + \" ( id int(11) NOT NULL AUTO_INCREMENT, MULT BIGINT(21), \" ;\n // make query string for creating KLD table\n // auto index each row in table\n for(int i=1; i<column_names.size(); i++){\n \tquery1 = query1 + column_names.get(i) + \" VARCHAR(45),\" + column_names_CP.get(i) + \" float(7,6) ,\";\n // add column headers\t\t\n }\n query1 = query1 + \" JP float, JP_DB float, KLD float default 0, PRIMARY KEY (id) ) engine=INNODB;\";\n //System.out.println(query1);\n st.execute(query1);\n \n // copy the values from the mult table. CP values are null at this point.\n String query2 = \"insert into \" + newTable_name + \" ( MULT\";\n for(int i=1; i<column_names.size(); i++){\n \tquery2 = query2 + \", \" + column_names.get(i);\n }\n query2 = query2 + \" ) select * from \"+table_name+\"; \"; // Nov 28 @ zqian, do not use \"*\" in terms of query optimization\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t// Nov 28 @ zqian, adding covering index to CT table for query string \n System.out.println(query2);\n st.execute(query2);\n \n System.out.println(\"\\n insert into KLD table conditional probability for each node\"); // zqian\n //insert CP value to attributes\n insert_CP_Values(rchain, newTable_name,con2);\n System.out.println(\"\\n compute Bayes net joint probabilities \"); //zqian\n //compute Bayes net joint probabilities \n cal_KLD(newTable_name,con2);\n \n \n st.close();\n\t}", "@Override\r\n\tpublic List<Famille> listCompetences() {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\t//on crée une requête\r\n \t\tQuery req=session.createQuery(\"select C from FamilleComp C\");\r\n \t\tList<Famille> famillecomp=req.list();\r\n session.getTransaction().commit();\r\n \t\treturn famillecomp;\r\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n \n \n private void table(){\n \n int c;\n \n try{\n \n Connection con1 = ConnectionProvider.getConn();\n Statement stm = con1.createStatement();\n ResultSet rst = stm.executeQuery(\"select * from sales\");\n ResultSetMetaData rstm = rst.getMetaData();\n \n c = rstm.getColumnCount();\n \n DefaultTableModel dtm2 = (DefaultTableModel)jTable1.getModel();\n dtm2.setRowCount(0);\n \n while (rst.next()){\n \n Vector vec = new Vector();\n \n for(int a =1 ; a<=c; a++)\n {\n vec.add(rst.getString(\"CustomerName\"));\n vec.add(rst.getString(\"OrderNo\"));\n vec.add(rst.getString(\"TypeOfService\"));\n vec.add(rst.getString(\"OrderType\"));\n vec.add(rst.getString(\"Descript\"));\n vec.add(rst.getString(\"OrderConfirmation\"));\n vec.add(rst.getString(\"OrderHandledBy\"));\n vec.add(rst.getString(\"OrderDate\"));\n vec.add(rst.getString(\"WarrantyExpireDate\"));\n vec.add(rst.getString(\"FullAmount\"));\n vec.add(rst.getString(\"AmountPaid\"));\n vec.add(rst.getString(\"Balance\"));\n }\n \n dtm2.addRow(vec);\n }\n \n }\n catch(Exception e)\n {\n \n }\n \n \n }", "@Override\r\n public Integer oneObligorClassCount(OneObligorSC oneObligorSC) throws DAOException\r\n {\r\n\tDAOHelper.fixGridMaps(oneObligorSC, getSqlMap(), \"oneObligorMapper.oneObligorClassMap\");\r\n\treturn (Integer) getSqlMap().queryForObject(\"oneObligorMapper.oneObligorClassCount\", oneObligorSC);\r\n }", "public void infoCustomer() { ////AGGIUSTA\n\n CriteriaBuilder cb = em.getCriteriaBuilder();\n\n CriteriaQuery<Customer> cq = cb.createQuery(Customer.class);\n\n Root<Customer> cust = cq.from(Customer.class);\n\n cq.multiselect(cust.get(\"lastName\"), cb.count(cust).alias(\"numero di customer\")).groupBy(cust.get(\"lastName\"));\n\n System.out.print(\"lastName\");\n System.out.println(\"\\t Count\");\n\n /* List<Object[]> list = em.createQuery(cq).getResultList(); \n \nfor(Object[] object : list){ \n System.out.println(object[0] + \" \" + object[1]); \n \n} \n\n em.getTransaction().commit();\n em.close();\n emf.close();\n */\n }", "public HashMap<Integer, HashMap<String, String>> getMessageDataForCollabForText(ArrayList<Integer> interIDs){\n\t HashMap<Integer, HashMap<String, String>> result = new HashMap();\n\t String query = null;\n//\t stmt = getConnection(dbParams).createStatement();\n\t HashMap<String, String> message;\n\t HashMap<String, ArrayList<String>> messageMap;\n\t \n//\t stmt = getConnection(dbParams).createStatement();\n\t int contentTypeID;\n\t String contentType;\n\t int contentSubTypeID;\n\t String contentSubType = null;\n\t int resourceID;\n\t SQLXML attributes;\n\t int actionID;\n\t String actionType;\n\t ArrayList<String> resources;\n\t String resourceName;\n\t String resourceURL;\n\t String text = null;\n\t String messageAttributes = null;\n\t HashMap<String, String> msgAttributes = null;\n\t try{\n\t\t DOMSource domSource;\n\t\t Document document;\n\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n\t\t \n\t\t String expression = \"//name[.='event.action']/following-sibling::*[1][name()='value']\";\n\t \t//loop through each interID\n\t \tfor(int interID : interIDs){\n\n\t \n\t message = new HashMap();\n\t \n\t query = \"Select contentType, contentSubType, resourceID, attributes from Interactions where interID = \"+interID;\n\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t \n\t contentTypeID = rs.getInt(1);\n\t contentSubTypeID = rs.getInt(2);\n\t resourceID = rs.getInt(3);\n\t attributes = rs.getSQLXML(4);\n\t \n\t domSource = attributes.getSource(DOMSource.class);\n\t document = (Document) domSource.getNode();\n\t actionID = Integer.parseInt(xpath.evaluate(expression, document));\n\t \n\t //Get contentType\n\t contentType = getContentType(stmt, contentTypeID);\n\t //Get ContentSubType\n\t if(contentSubTypeID != -1){\n\t \t contentSubType = getContentSubType(stmt, contentSubTypeID);\n\t }\n\t \n\t //Get Action Type\n\t actionType = getActionType(actionID);\n\t //Get Resource Name and URL\n\t resources = getResourceNameAndURL(resourceID);\n\t resourceName = resources.get(0);\n\t resourceURL = resources.get(1);\n\t \n\t //Get Message Table data\n\t query = \"Select text from Messages where interID = \"+interID + \" and text IS NOT NULL\";\n\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t if(rs.getNString(1) != null){\n\t \ttext = rs.getString(1).replaceAll(\"/n\", \" \").replaceAll(\"/r\", \"\");\n\t }\n\t \n\t query = \"select attributes from messages where interId =\"+ interID + \" and attributes IS NOT NULL\";\n\t System.out.println(query);\n\t \trs = stmt.executeQuery(query);\n\t \tif(rs.next()){\n\t \t\tmessageAttributes = rs.getString(1);\t\n\t \t}\n\t \n\t \n\t //Get Attribute Names and Values\n\t \tmsgAttributes = new HashMap();\n\t \tif(messageAttributes != null){\n\t \t\tmsgAttributes = getMessageAttributes(messageAttributes);\n\t \t}\n\t \t\t\n\t ArrayList<String> fileNames = getFileListsForCollab(interID);\n\t //Add all the values\n\t message.put(\"contentType:\", contentType);\n\t \t if(contentSubTypeID != -1){\n\t \t \tmessage.put(\"contentSubType:\", contentSubType); \n\t\t }\n\t \n\t message.put(\"action:\", actionType.toLowerCase());\n\t message.put(\"resourceName:\", resourceName.toLowerCase());\n\t message.put(\"Resource URL:\", resourceURL.toLowerCase());\n\t if(text != null){\n\t \tmessage.put(\"Text Content:\", text.replaceAll(\"\\n\", \"\").replaceAll(\"\\r\", \"\").toLowerCase());\n\t }\n\t \n\t if(msgAttributes.size() > 0){\n\t\t for(String attName : msgAttributes.keySet()){\n\t\t message.put(attName+\":\", msgAttributes.get(attName).toLowerCase());\n\t\t }\t \t\n\t }\n\n\t StringBuffer fileName = new StringBuffer();\n\t if(fileNames.size() > 0){\n\t \t for(int i = 0 ; i < fileNames.size(); i++){\n\t \t \tfileName.append(fileNames.get(i));\n\t \t \tif(i + 1 != fileNames.size()){\n\t \t \t\tfileName.append(\"#\");\n\t \t \t}\n\t \t }\n\t \t message.put(\"File:\", fileName.toString().toLowerCase());\n\t }\n\t\n\t result.put(interID, message);\n\t \n\t \t}\n\t } catch(Exception e){\n\t \tSystem.err.println(e.getMessage());\n\t }\n\t return result;\n\t }", "public int siguienteRegistro(int codigoCiclo, int codigoPlan) {\n/* 454 */ int numero = 1;\n/* 455 */ String s = \"select max(codigo_meta) from cal_plan_metas\";\n/* 456 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* */ try {\n/* 458 */ boolean rta = this.dat.parseSql(s);\n/* 459 */ if (!rta) return 0; \n/* 460 */ this.rs = this.dat.getResultSet();\n/* 461 */ if (this.rs.next()) {\n/* 462 */ s = this.rs.getString(1);\n/* 463 */ if (!this.rs.wasNull()) {\n/* 464 */ numero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 467 */ if (numero < 10000) numero = 10000; \n/* 468 */ return numero;\n/* */ }\n/* 470 */ catch (Exception e) {\n/* 471 */ e.printStackTrace();\n/* 472 */ Utilidades.writeError(\"CalPlanMetasFactory:siguienteRegistro\", e);\n/* */ \n/* 474 */ return 0;\n/* */ } \n/* */ }", "int updateByPrimaryKey(CommunityInform record);", "private HashMap getTableRow(int rowNum)\r\n {\r\n HashMap hashRow = new HashMap() ;\r\n int colTotal = codeTableModel.getColumnCount()-1;\r\n for (int colCount=0; colCount <= codeTableModel.getColumnCount()-1; colCount++)\r\n { // for each column u will build a hashmap\r\n// if (colCount == 1 )\r\n// {//sponsor name is not in update sp.\r\n// continue;\r\n// }\r\n TableColumn column = codeTableColumnModel.getColumn(colCount) ;\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n Object val = null ;\r\n // the whole idea of setting up the columnBean as the identifier is that u get to know\r\n // all abt the structure details of the column, so u can create appropriate type of object\r\n // and stick it in to the hashMap\r\n if (columnBean.getDataType().equals(\"NUMBER\"))\r\n {\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount) == null\r\n ||(codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).equals(\"\")))\r\n {\r\n val = null ; //new Integer(0)\r\n }\r\n else\r\n {\r\n val = codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount);\r\n if (val instanceof ComboBoxBean)\r\n {\r\n if (((ComboBoxBean)val).getCode().equals(\"\"))// user deleted selection\r\n val = null;\r\n else\r\n val = new Integer(((ComboBoxBean)val).getCode().toString());\r\n }\r\n else\r\n {\r\n val = new Integer(val.toString()) ;\r\n }\r\n }\r\n }\r\n\r\n if (columnBean.getDataType().equals(\"VARCHAR2\"))\r\n {\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount)==null)\r\n {\r\n val = \"\";\r\n }\r\n else\r\n {\r\n val = codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).toString() ;\r\n }\r\n }\r\n\r\n if (columnBean.getDataType().equals(\"DATE\"))\r\n {\r\n //coeusdev-568 start\r\n //Date today = new Date();\r\n //coeusdev-568 end\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum), codeTableModel.getColumnCount()-1).equals(\"I\")) // if itz an insert\r\n { //AV_ & AW_ will be the same for insert\r\n //coeusdev-568 start\r\n //val = new java.sql.Timestamp(today.getTime());\r\n val = CoeusUtils.getDBTimeStamp();\r\n //coeusdev-568 end\r\n }\r\n else\r\n { // for update\r\n // there will be only two dates in any table one AV_UPDATE_TIMESTAMP and the other one AW_UPDATE_TIMESTAMP\r\n if (columnBean.getQualifier().equals(\"VALUE\"))\r\n { //AV_...\r\n //coeusdev-568 start\r\n //val = new java.sql.Timestamp(today.getTime());\r\n val = CoeusUtils.getDBTimeStamp();\r\n //coeusdev-568 end\r\n }\r\n else\r\n { //AW_...\r\n val = java.sql.Timestamp.valueOf(codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).toString()) ;\r\n }\r\n }\r\n }\r\n\r\n hashRow.put(columnBean.getColIdentifier(), val) ;\r\n } //end for\r\n return hashRow;\r\n }", "@Override public int conocerMonto(){\n\treturn 120;\n }", "public ScGridColumn<AcUpuTagSummaryVo> newOriginCountryCodeColumn()\n {\n return newOriginCountryCodeColumn(\"Origin Country Code\");\n }", "public Antecedentes getData(long dni) {\n\n\t\t\tMapSqlParameterSource params = new MapSqlParameterSource();\n\t\t\tparams.addValue(\"dni\", dni);\n\t\t\t\n\n\t\t \n\t\t\ttry {\n\t\t\t\treturn jdbc.queryForObject(\"select * from antecedentes where dni = :dni \", params, new RowMapper<Antecedentes>() {\n\t\t\n\t\t\t\t\t\t\tpublic Antecedentes mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tAntecedentes antecedentes = new Antecedentes();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tantecedentes.setDni(rs.getBigDecimal(\"dni\"));\n\t\t\t\t\t\t\t\tantecedentes.setBecario(rs.getString(\"becario\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_doctoral(rs.getString(\"tesista_doctoral\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_maestria(rs.getString(\"tesista_maestria\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_grado(rs.getString(\"tesista_grado\"));\n\t\t\t\t\t\t\t\tantecedentes.setInvestigadores(rs.getString(\"investigadores\"));\n\t\t\t\t\t\t\t\tantecedentes.setPasantes_id_y_facademica(rs.getString(\"pasantes_id_y_facademica\"));\n\t\t\t\t\t\t\t\tantecedentes.setPersonal_apoyo_id(rs.getString(\"personal_apoyo_id\"));\n\t\t\t\t\t\t\t\tantecedentes.setFinanciamiento_cientifico_tecnologico(rs.getString(\"financiamiento_cientifico_tecnologico\"));\n\t\t\t\t\t\t\t\tantecedentes.setActividades_divulgacion(rs.getString(\"actividades_divulgacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setExtension_rural_industrial(rs.getString(\"extension_rural_industrial\"));\n\t\t\t\t\t\t\t\tantecedentes.setPrestacion_servicios_sociales(rs.getString(\"prestacion_servicios_sociales\"));\n\t\t\t\t\t\t\t\tantecedentes.setProduccion_divulgacion_artistica(rs.getString(\"produccion_divulgacion_artistica\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtro_tipo_actividad(rs.getString(\"otro_tipo_actividad\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_personal(rs.getString(\"evaluacion_personal\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_programas(rs.getString(\"evaluacion_programas\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_institucional(rs.getString(\"evaluacion_institucional\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtro_tipo_evaluacion(rs.getString(\"otro_tipo_evaluacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setBecas(rs.getString(\"becas\"));\n\t\t\t\t\t\t\t\tantecedentes.setEstancias_pasantias(rs.getString(\"estancias_pasantias\"));\n\t\t\t\t\t\t\t\tantecedentes.setOperacion_mantenimiento(rs.getString(\"operacion_mantenimiento\"));\n\t\t\t\t\t\t\t\tantecedentes.setProduccion(rs.getString(\"produccion\"));\n\t\t\t\t\t\t\t\tantecedentes.setNormalizacion(rs.getString(\"normalizacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setEjercicio_profesion_ambito_no_academico(rs.getString(\"ejercicio_profesion_ambito_no_academico\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtra_actividad_cyt(rs.getString(\"otra_actividad_cyt\"));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn antecedentes;\n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t});\n\t\t\t}\n\t\t\t catch(EmptyResultDataAccessException erdae) {\n\t\t\t\t System.out.println(\"en antecedentesDAO devuelve null\");\n\t\t\t return null;\n\t\t\t }\n\t\t}", "String getIndexedCommunities(int index);", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}" ]
[ "0.5777076", "0.54997647", "0.5357396", "0.5317105", "0.5215551", "0.5072615", "0.5071001", "0.5017789", "0.5000428", "0.49598852", "0.4889168", "0.48864365", "0.48431316", "0.48237577", "0.47921044", "0.47868294", "0.47798938", "0.47792456", "0.47678277", "0.47621578", "0.47428232", "0.4741272", "0.47294465", "0.47119945", "0.47119635", "0.46971083", "0.46799135", "0.46758044", "0.46756884", "0.46649364", "0.4647163", "0.46305314", "0.4629805", "0.46209544", "0.46180534", "0.46143177", "0.46116704", "0.4608346", "0.46069798", "0.45902452", "0.45788178", "0.4577987", "0.4576306", "0.45712313", "0.45689812", "0.45644385", "0.4561729", "0.45605737", "0.45388308", "0.45385447", "0.45385227", "0.45381257", "0.45300633", "0.45293885", "0.45277935", "0.45248333", "0.45220298", "0.45103744", "0.45101792", "0.45084998", "0.45069066", "0.45049724", "0.45045418", "0.45008707", "0.44964567", "0.4484146", "0.44832388", "0.44792983", "0.4469062", "0.4468208", "0.44564146", "0.44550925", "0.4454826", "0.44478637", "0.44475633", "0.44464204", "0.4446375", "0.44417506", "0.44403028", "0.4440266", "0.4435206", "0.44342417", "0.4425721", "0.44242805", "0.4421539", "0.44181347", "0.44164282", "0.4407985", "0.4407659", "0.44032204", "0.44009152", "0.4397981", "0.43971467", "0.4393428", "0.43869478", "0.43844765", "0.4380442", "0.43774787", "0.43749946", "0.43716592", "0.43714136" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table t_communityinform
int insert(CommunityInform record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CommunityInform> selectAll();", "public void setCommunity(int community) {\n this.community = community;\n }", "public String getCommunity() {\n return this.community;\n }", "CommunityInform selectByPrimaryKey(String id);", "@ApiModelProperty(value = \"小区id\")\n\tpublic Long getCommunityId() {\n\t\treturn communityId;\n\t}", "Community() {}", "@Override\n\tpublic int updateCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tJSONObject isExistJSON = this.selectOne(\"selectCommunityNameExist\", params);\n\t\tif(isExistJSON.getIntValue(\"isExist\") !=0){\n\t\t\tresult = -2;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this.delete(\"deleteCommunityMember\",params);\n\t\tif(params.getJSONArray(\"members\")!=null&&params.getJSONArray(\"members\").size()!=0){\n\t\t\tresult = this.insert(\"insertCommunityMember\",params);\n\t\t}\n\t\tresult = this.update(\"updateCommunity\", params);\n\t\treturn result ;\n\t}", "@Override\n\tpublic int insertCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tString communityId = UUIDUtil.getUUID();\n\t\tparams.put(\"communityId\", communityId);\n\t\tJSONObject isExistJSON = this.selectOne(\"selectCommunityNameExist\", params);\n\t\tif(isExistJSON.getIntValue(\"isExist\") !=0){\n\t\t\tresult = -2;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this.insert(\"insertCommunity\", params);\n\t\tif(params.getJSONArray(\"members\")!=null&&params.getJSONArray(\"members\").size()!=0){\n\t\t\tresult = this.insert(\"insertCommunityMember\",params);\n\t\t}\n\t\treturn result;\n\t}", "private void getCommunity() {\n DatabaseReference ref = FirebaseDatabase.getInstance()\n .getReference(\"Communities\").child(communityId);\n\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Community community = snapshot.getValue(Community.class);\n communityName = community.getName();\n getSupportActionBar().setTitle(communityName);\n Glide.with(getBaseContext()).load(community.getImage()).into(communityProfile);\n description.setText(community.getDescription());\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "public void setCommunityId(Long communityId) {\n\t\tthis.communityId = communityId;\n\t}", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "public String getCommunityName() {\n return communityName;\n }", "@Mapper\npublic interface WeChatInfoDao {\n\n\n /**\n * 插入微信信息\n * @param wechatInfo\n * @return\n */\n @Insert(\"INSERT INTO wechat_info(parentid,unionid,openid,nickname,sex,province,city,country,headImgUrl,\" +\n \"status,ticket_url,ticket,is_guide,reward) VALUES(#{parentid},#{unionid},#{openid},#{nickname},#{sex},#{province}\" +\n \",#{city},#{country},#{headImgUrl},#{status},#{ticketUrl},#{ticket},#{isGuide},#{reward})\")\n @Options(useGeneratedKeys=true, keyProperty=\"id\")\n int insert(WeChatInfoEntity wechatInfo);\n\n /**\n * 根据openID 查找用户信息\n * @param openid\n * @return\n */\n @Select(\"SELECT * FROM wechat_info WHERE openid = #{openid}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"nickname\", property = \"nickname\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity findByOpenID(@Param(\"openid\") String openid);\n\n /**\n * 根据openID 修改二维码信息\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET ticket_url=#{ticketUrl},ticket=#{ticket} WHERE openid=#{openid}\")\n void updateTicketUrlByOpenID(WeChatInfoEntity wechatInfo);\n\n /**\n * 取消关注\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET status=1 WHERE openid=#{openid}\")\n void updateStatusByOpenID(WeChatInfoEntity wechatInfo);\n\n\n /**\n * 更改status 状态\n * @param wechatInfo\n */\n @SelectProvider(type=WeChatInfoSqlProvider.class, method=\"updateByOpenIdSql\")\n void updateStatus(@Param(\"wechatInfo\") WeChatInfoEntity wechatInfo);\n\n @Select(\"SELECT * FROM wechat_info WHERE id = #{ID}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity selectWecahtUserByID(@Param(\"ID\")String ID);\n}", "public ScGridColumn<AcUpuTagSummaryVo> newMailCategoryCodeColumn()\n {\n return newMailCategoryCodeColumn(\"Mail Category Code\");\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\n public boolean isCommunity() {\n return false;\n }", "void initCommunityProperty();", "public ObjectId getCommunityId() {\r\n\t\treturn communityId;\r\n\t}", "public ACommunity getCisInformation(String client, String cisId);", "@Override\n\tpublic String execute() throws Exception {\n\t\t\n\t\tthis.communitylist = CommunityHibDao.select();\n\t\tActionContext.getContext().getSession().put(\"communitylist\", communitylist);\n\t\tSystem.out.println(communitylist.get(0).getCommunityName());\n\t\tSystem.out.println(\"Hello!\");\n\t\treturn super.execute();\n\t}", "public ScGridColumn<AcUpuTagSummaryVo> newMailClassCodeColumn()\n {\n return newMailClassCodeColumn(\"Mail Class Code\");\n }", "public String get_snmpcommunity()\r\n\t{\r\n\t\treturn this.snmpcommunity;\r\n\t}", "public ScGridColumn<AcUpuTagSummaryVo> newMailSubClassCodeColumn()\n {\n return newMailSubClassCodeColumn(\"Mail Sub Class Code\");\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "Collection getCommunities();", "@Override\n\tpublic ArrayList<Community> findAll() {\n\t\treturn null;\n\t}", "@Insert({\n \"insert into generalcourseinformation (courseid, code, \",\n \"name, teacher, credit, \",\n \"week, day_detail1, \",\n \"day_detail2, location, \",\n \"remaining, total, \",\n \"extra, index)\",\n \"values (#{courseid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{teacher,jdbcType=VARCHAR}, #{credit,jdbcType=INTEGER}, \",\n \"#{week,jdbcType=VARCHAR}, #{day_detail1,jdbcType=VARCHAR}, \",\n \"#{day_detail2,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, \",\n \"#{remaining,jdbcType=INTEGER}, #{total,jdbcType=INTEGER}, \",\n \"#{extra,jdbcType=VARCHAR}, #{index,jdbcType=INTEGER})\"\n })\n int insert(GeneralCourse record);", "public void createTableComplaintsData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tDatabaseMetaData d=con.getMetaData();\n\t\t\t\tResultSet rs=d.getTables(null,null,\"ComplaintsData\",null);\n\t\t\t\tif(rs.next())\n\t\t\t\t{\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData table exist\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tString Create_Table=\"create table ComplaintsData(Customer_Name varchar(100),Address varchar(100),Contact varchar(30),Product varchar(100),Serial_No varchar(50),Module_No varchar(50),Complaint_No varchar(50),Category varchar(30))\";\n\t\t\t\t\tPreparedStatement ps=con.prepareStatement(Create_Table);\n\t\t\t\t\tps.executeUpdate();\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData created successfully!\");\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}", "public List<StudentCOOP> getStudentCOOP() {\n List<StudentCOOP> studentco = new ArrayList<StudentCOOP>();\n openConnection();\n try {\n getAllStudent = conn.prepareStatement(\"select * from APP.STUDENTCOOP\");\n rs = getAllStudent.executeQuery();\n while (rs.next()) {\n studentco.add(\n new StudentCOOP(rs.getString(\"ZID\"), rs.getString(\"FIRSTNAME\"), rs.getString(\"LASTNAME\"),\n rs.getString(\"GENDER\"), rs.getString(\"ADDRESS\"), rs.getInt(\"CONTACT\"), rs.getString(\"EMAIL\"),\n rs.getString(\"WORKEMAIL\"), rs.getString(\"NOTES\"), rs.getString(\"SUBJECT\"), \n rs.getInt(\"SEMESTERCOMPLETED\"), rs.getDouble(\"MARK\"), rs.getDouble(\"WAM\"))\n );\n }\n rs.close();\n getAllStudent.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n return studentco;\n }", "@Override\n public String toString() {\n return bestCommunity + \"\";\n }", "public void set_snmpcommunity(String snmpcommunity)\r\n\t{\r\n\t\tthis.snmpcommunity = snmpcommunity;\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //LiquidacionImpor\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tLiquidacionImpor entity = new LiquidacionImpor();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,LiquidacionImporDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Importaciones.LiquidacionImpor.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseLiquidacionImpor(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public void setSnmpCommunity(String snmpCommunity) {\r\n this.snmpCommunity = snmpCommunity;\r\n }", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "List<CommunityDTO> findAll();", "public java.sql.ResultSet CitasActivasSoloMedico(String CodigoMedico){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas, 7, 3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo = \"+CodigoMedico+\" AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND phm.estado='0' AND sdp.numeroDocumento = pmd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY phm.fechas,jornada,phm.horas LIMIT 100 \");\r\n \t//System.out.println(\"SELECT ahm.codigo,ahm.horas,ahm.fechas,ahm.NombrePaciente,aes.nombre_especialidad,amd.nombre,amd.apellidos,ahm.estado,aes.codigo,amd.codigo,su.usu_codigo,SUBSTRING(ahm.horas, 7, 3) AS jornada FROM agm_horariomedico ahm,agm_medico amd,agm_especialidad aes,seg_datos_personales sdp,seg_usuario su WHERE amd.codigo = \"+CodigoMedico+\" AND ahm.codMedico_fk = amd.codigo AND amd.codEspe_fk = aes.codigo AND ahm.estado='0' AND sdp.numeroDocumento = amd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND ahm.fechas >= CURDATE() ORDER BY ahm.fechas,jornada,ahm.horas LIMIT 100 \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "public Collection<Community> getAllCommunities() {\n return communityStore.getAll();\n }", "public void Nouvelleligne() {\n int maxEleve = retourneMaxNumber() + 1;\n try {\n Connector1.statement.executeUpdate(\"Insert INTO eleve(id_el) VALUES (\" + maxEleve + \")\");\n Object[] val = {maxEleve, \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"};\n effaceTable(jTable2, mode);\n mode.addRow(val);\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n\n }\n\n }", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Override\n\tpublic String toSql() {\n\t\treturn null;\n\t}", "public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "private void remplirPriseEnCompte() {\r\n\t\tResultSet result = ctn.lectureData(\"SELECT * FROM PriseEnCompte\");\r\n\t\t// Remplissage tableau et combo Utilisateur\r\n\t\ttry {\r\n\t\t\twhile(result.next()) {\r\n\t\t\t\ttbPriseEnCompte.add(new StructPriseEnCompte(result.getLong(\"idPriseEnCompte\"), result.getString(\"Nom\"), result.getString(\"Description\")));\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\tctn.closeLectureData();\r\n\t\ttry {\r\n\t\t\tresult.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public void updateStudentCOOP(StudentCOOP toUpdate) {\n openConnection();\n try {\n updateStudent = conn.prepareStatement(\"update app.studentcoop set firstname=?, lastname=?, gender=?, address=?,\"\n + \" contact=?, email=?, workemail=?, notes=?, subject=?, semestercompleted=?, mark=?, wam=?\");\n \n updateStudent.setString(1, toUpdate.getZID());\n updateStudent.setString(1, toUpdate.getFName());\n updateStudent.setString(2, toUpdate.getLName());\n updateStudent.setString(3, toUpdate.getGEnder());\n updateStudent.setString(4, toUpdate.getADdress());\n updateStudent.setInt(5, toUpdate.getCOntact());\n updateStudent.setString(6, toUpdate.getEMail());\n updateStudent.setString(7, toUpdate.getWOrkemail());\n updateStudent.setString(8, toUpdate.getNOtes());\n updateStudent.setString(9, toUpdate.getSUbject());\n updateStudent.setInt(10, toUpdate.getSEmestercompleted());\n updateStudent.setDouble(11, toUpdate.getMArk());\n updateStudent.setDouble(12, toUpdate.getWAm());\n\n updateStudent.executeUpdate();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n }", "@SuppressWarnings(\"unchecked\")\n public void table_update(){\n int c;\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n con=DriverManager.getConnection(\"jdbc:mysql://localhost/footballdb\",\"root\",\"\");\n pst=con.prepareStatement(\"Select * from manager\");\n ResultSet Rs=pst.executeQuery();\n ResultSetMetaData rd=Rs.getMetaData();\n c=rd.getColumnCount();\n DefaultTableModel df=(DefaultTableModel)jTable1.getModel();\n df.setRowCount(0);\n while(Rs.next()){\n Vector v2=new Vector();\n for(int i=1;i<=c;i++){\n \n v2.add(Rs.getString(\"managerid\"));\n v2.add(Rs.getString(\"mname\"));\n v2.add(Rs.getString(\"teamid\"));\n \n }\n df.addRow(v2);\n \n }\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(manager.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(manager.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public List<TcTipoNomina> getNominasValidasBenefComodin() {\n String nominasValidasBenefComodin = super.getQueryDefinition(\"nominasValidasBenefComodin\");\n \n Map<String, Object> mapValues = new HashMap<String, Object>();\n \n SqlParameterSource namedParameters = new MapSqlParameterSource(mapValues);\n DataSource ds = super.getJdbcTemplate().getDataSource();\n NamedParameterJdbcTemplate namedTemplate = new NamedParameterJdbcTemplate(ds);\n \n super.getJdbcTemplate().setFetchSize(100);\n return namedTemplate.query(nominasValidasBenefComodin, namedParameters, new TcTipoNominasValidasBenefComodinAux());\n }", "public HashMap<Integer, HashMap<String, String>> getXMLMessageDataForCollabFromDB(ArrayList<Integer> interIDs) throws SQLException, NumberFormatException, XPathExpressionException, ParserConfigurationException, SAXException, IOException{\n\t HashMap<Integer, HashMap<String, String>> result = new HashMap();\n\t String query = null;\n\t HashMap<String, String> message;\n\t HashMap<String, ArrayList<String>> messageMap;\n\t \n//\t Select parentEventID,eventID,resourceName,roomName,networkID, buddyName, intemployeeID, containerID, contentType, contentSubType, resourceID, attributes\n\t \n\t String parentEventId;\n\t String eventId;\n\t String roomName;\n\t String networkId;\n\t String buddyName;\n\t String intEmployeeId;\n\t String employeeId = null;\n\t String containerId;\n\t String networkName;\n\t String employeeEmail = null;\n\t \n\t int contentTypeID;\n\t String contentType;\n\t int contentSubTypeID;\n\t String contentSubType = null;\n\t int resourceID;\n\t SQLXML attributes;\n\t int actionID;\n\t String actionType;\n\t ArrayList<String> resources;\n\t String resourceName;\n\t String resourceURL;\n\t String text;\n\t String messageAttributes = null;\n\t HashMap<String, String> msgAttributes = null;\n\t \n//\t stmt = getConnection(dbParams).createStatement();\n\t \n\t DOMSource domSource;\n\t Document document;\n\t XPath xpath = XPathFactory.newInstance().newXPath();\n\t \n\t String expression = \"//name[.='event.action']/following-sibling::*[1][name()='value']\";\n\t \n\t //loop through each interID\n\t for(int interID : interIDs){\n\t \n\t message = new HashMap();\n\t \n\t query = \"Select parentEventID,eventID,roomName,networkID, buddyName, intemployeeID, containerID, contentType, contentSubType, resourceID, attributes from Interactions where interID = \"+interID;\n//\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t parentEventId = rs.getString(1);\n\t eventId = rs.getString(2);\n\t roomName = rs.getString(3);\n\t networkId = rs.getString(4);\n\t buddyName = rs.getString(5);\n\t intEmployeeId = rs.getString(6);\n\t containerId = rs.getString(7);\n\t contentTypeID = rs.getInt(8);\n\t contentSubTypeID = rs.getInt(9);\n\t resourceID = rs.getInt(10);\n\t attributes = rs.getSQLXML(11);\n\t \n\t\t domSource = attributes.getSource(DOMSource.class);\n\t\t document = (Document) domSource.getNode();\n\t\t actionID = Integer.parseInt(xpath.evaluate(expression, document));\n\t\t \n\t\t //Get contentType\n\t\t contentType = getContentType(stmt, contentTypeID);\n\t\t //Get ContentSubType\n\t\t if(contentSubTypeID != -1){\n\t\t \t contentSubType = getContentSubType(stmt, contentSubTypeID);\t \n\t\t }\n\t\t \n\t\t //Get Action Type\n\t\t actionType = getActionType(actionID);\n\t\t //Get Resource Name and URL\n\t\t resources = getResourceNameAndURL(resourceID);\n\t\t resourceName = resources.get(0);\n\t\t resourceURL = resources.get(1);\n//\t\t Get Network Name\n\t\t networkName = getNetworkName(networkId);\n//\t\t Get EmployeeId\n\t\t if(intEmployeeId != null){\n\t\t \t employeeId = getEmployeeId(stmt, intEmployeeId);\n//\t\t\t Get Employee Email\n\t\t\t \n\t\t\t employeeEmail = getEmployeeEmail(stmt, intEmployeeId);\n\t\t\t if(employeeEmail == null){\n\t\t\t \t employeeEmail = buddyName;\n\t\t\t }\n\t\t }\n\t\t \n\n\t\t \n\t\t //Get Message Table data\n\t\t query = \"Select text from Messages where interID = \"+interID;\n//\t\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t text = rs.getString(1).trim().replaceAll(\"\\n\", \"\").replaceAll(\"\\r\", \"\");\n\t\t\t query = \"Select attributes from Messages where interID = \"+interID + \" and attributes is not null\";\n//\t\t\t System.out.println(query);\n\t\t rs = stmt.executeQuery(query);\n\t\t if(rs.next()){\n\t\t \t messageAttributes = rs.getString(1);\n\t\t }\n\t\t \t \n\t msgAttributes = new HashMap();\n\t //Get Attribute Names and Values\n\t\t if(messageAttributes != null){\n\t\t \t \n\t\t \t msgAttributes = getMessageAttributes(messageAttributes); \t \n\t\t }\n\t \n\t \n\t //Add all the values\n\t message.put(\"parentEventID\", parentEventId);\n\t message.put(\"eventId\", eventId);\n\t message.put(\"containerId\", containerId);\n\t message.put(\"roomName\", roomName);\n\t message.put(\"buddyName\", buddyName);\n\t message.put(\"networkID\", networkId);\n\t message.put(\"networkName\", networkName);\n\t message.put(\"employeeId\", employeeId);\n\t message.put(\"employeeEmail\", employeeEmail);\n\t message.put(\"intEmployeeID\", intEmployeeId);\n\t message.put(\"Content type\", contentType);\n\t if(contentSubTypeID != 0){\n\t \t message.put(\"Content sub-type\", contentSubType); \n\t }\n\t \n\t message.put(\"Action\", actionType);\n\t message.put(\"Resource name\", resourceName);\n\t message.put(\"Resource URL\", resourceURL);\n\t message.put(\"Text\", text);\n\t if(msgAttributes.size() > 0){\n\t \t message.putAll(msgAttributes); \n\t }\n\t \n//\t for(String attName : msgAttributes.keySet()){\n//\t message.put(attName, msgAttributes.get(attName));\n//\t }\n\n\t ArrayList<String> fileNames = getFileListsForCollab(interID);\n\t StringBuffer fileName = new StringBuffer();\n\t if(fileNames.size() > 0){\n\t \t for(int i = 0 ; i < fileNames.size(); i++){\n\t \t\t fileName.append(fileNames.get(i));\n\t \t\t if(i + 1 != fileNames.size()){\n\t \t\t\t fileName.append(\"#\");\n\t \t\t }\n\t \t }\n\t \t message.put(\"File\", fileName.toString());\n\t }\n\t \n\t result.put(interID, message);\n\t }\n\t \n\t return result;\n\t }", "public PageList<JSONObject> getCommunityOperatorList(String communityName, int pageNum, int pageSize, String realname,\n String phone, long id, String username) {\n Map<String, Object> param = new HashMap<>();\n if (StringUtils.isNotBlank(communityName)) {\n param.put(\"communityName\", \"%\" + communityName + \"%\");\n }\n if (StringUtils.isNotBlank(phone)) {\n param.put(\"phone\", \"%\" + phone + \"%\");\n }\n if (StringUtils.isNotBlank(realname)) {\n param.put(\"realname\", \"%\" + realname + \"%\");\n }\n if (id > 0) {\n param.put(\"id\", id);\n }\n\n if (StringUtils.isNotBlank(username)) {\n param.put(\"username\", \"%\" + username + \"%\");\n }\n PageBounds pageBounds = new PageBounds(pageNum, pageSize);\n // 查询操作员信息\n PageList<Map> pageList = extCommunityAdminMapper.pageByCondition(param, pageBounds);\n\n PageList<JSONObject> pl = new PageList<>(pageList.getPaginator());\n\n if (pageList != null && pageList.size() > 0) {\n for (Map map : pageList) {\n JSONObject object = new JSONObject();\n object.put(\"id\", map.get(\"id\"));\n object.put(\"name\", map.get(\"name\"));\n object.put(\"realname\", map.get(\"realname\"));\n object.put(\"phone\", map.get(\"phone\"));\n object.put(\"tel\", map.get(\"tel\"));\n object.put(\"email\", map.get(\"email\"));\n object.put(\"status\", map.get(\"status\"));\n object.put(\"create_time\", map.get(\"createTime\"));\n object.put(\"username\", map.get(\"username\"));\n object.put(\"last_login_time\", map.get(\"latestLoginTime\"));\n object.put(\"community_id\", map.get(\"communityId\"));\n object.put(\"position\", map.get(\"position\"));\n // 根据管理员ID查询部门\n List<SysDeptSim> deptList = extSysDeptMapper.getSysDeptListByAdminId((long) map.get(\"id\"));\n if (deptList != null && deptList.size() > 0) {\n object.put(\"dept_name\", deptList.get(0).getName());\n object.put(\"dept_id\", deptList.get(0).getId());\n } else {\n object.put(\"dept_name\", null);\n object.put(\"dept_id\", null);\n }\n // 根据管理员ID查询角色\n List<SysRole> roleList = extSysRoleMapper.getSysRoleListByAdminId((long) map.get(\"id\"), Constant.App.Id.COMMUNITY_ADMIN.value());\n if (roleList != null && roleList.size() > 0) {\n object.put(\"role_name\", roleList.get(0).getName());\n object.put(\"role_id\", roleList.get(0).getId());\n } else {\n object.put(\"role_name\", null);\n object.put(\"role_id\", null);\n }\n\n // 查询主会员信息\n //FIXME 性能极差,中哥说的.\n//\t\t\t\tMap<String, Object> condition = new HashMap<>();\n//\t\t\t\tcondition.put(\"communityId\", map.get(\"communityId\"));\n//\t\t\t\tList<Map> masterInfoList = extMasterInfoMapper.selectMasterInfoAndPassport(condition);\n//\t\t\t\tJSONArray masterInfoArray = new JSONArray();\n//\t\t\t\tif (masterInfoList != null && masterInfoList.size() > 0) {\n//\t\t\t\t\tfor (Map masterInfoMap : masterInfoList) {\n//\t\t\t\t\t\tJSONObject masterInfoObject = new JSONObject();\n//\t\t\t\t\t\tmasterInfoObject.put(\"id\", masterInfoMap.get(\"id\"));\n//\t\t\t\t\t\tmasterInfoObject.put(\"username\", masterInfoMap.get(\"username\"));\n//\t\t\t\t\t\tmasterInfoArray.add(masterInfoObject);\n//\t\t\t\t\t}\n//\t\t\t\t}\n\n//\t\t\t\tobject.put(\"master_info_list\", masterInfoArray);\n JSONArray masterInfoArray = new JSONArray();\n object.put(\"master_info_list\", masterInfoArray);\n\n pl.add(object);\n }\n }\n//\t\tjson.put(\"totalRow\", pageList.getPaginator().getTotal());\n//\t\tjson.put(\"pageNumber\", pageNum);\n//\t\tjson.put(\"lastPage\", pageList.getPaginator().isLast());\n//\t\tjson.put(\"firstPage\", pageList.getPaginator().isFirst());\n//\t\tjson.put(\"totalPage\", pageList.getPaginator().getPages());\n//\t\tjson.put(\"pageSize\", pageSize);\n//\t\tjson.put(\"list\", array);\n\n return pl;\n }", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "@Override\n\tpublic List<JSONObject> getCommunities(JSONObject params) {\n\t\tList<JSONObject> communities = this.selectList(\"getCommunities\",params);\n\t\tif(communities.size()!=0){\n\t\t\tparams.put(\"communities\", communities);\n\t\t\tList<JSONObject> members = this.selectList(\"selectCommunityMembers\",params);\n\t\t\tMap<String,List<JSONObject>> memberMap = new HashMap();\n\t\t\tfor(JSONObject memberJSON:members){\n\t\t\t\tString communityId = memberJSON.getString(\"communityId\");\n\t\t\t\tList<JSONObject> memberList= memberMap.get(communityId);\n\t\t\t\tif(memberList==null){\n\t\t\t\t\tmemberList = new ArrayList();\n\t\t\t\t\tmemberMap.put(communityId,memberList);\n\t\t\t\t}\n\t\t\t\tmemberList.add(memberJSON);\n\t\t\t}\n\t\t\tfor(JSONObject communityJSON:communities){\n\t\t\t\tString communityId = communityJSON.getString(\"communityId\");\n\t\t\t\tcommunityJSON.put(\"members\", memberMap.get(communityId)==null?new ArrayList():memberMap.get(communityId));\n\t\t\t}\n\t\t}\n\t\treturn communities;\n\t}", "@Override\n public List<Community> getCommunities(Context context, Item item) throws SQLException\n {\n List<Community> result = new ArrayList<Community>();\n List<Collection> collections = item.getCollections();\n for(Collection collection : collections)\n {\n List<Community> owningCommunities = collection.getCommunities();\n for (Community community : owningCommunities) {\n result.add(community);\n result.addAll(communityService.getAllParents(context, community));\n }\n }\n\n return result;\n }", "public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private Map<Long, List<ObligacionCoactivoDTO>> consultaObligacionesComparendo() {\n logger.debug(\"CoactivoEJB::consultaObligacionesComparendo()\");\n Map<Long, List<ObligacionCoactivoDTO>> obligacionesDeudor = new HashMap<>();\n StringBuilder consulta = new StringBuilder();\n consulta.append(\"SELECT \");\n consulta.append(\"p.id_cartera, \");\n consulta.append(\"ca.saldo_capital, \");\n consulta.append(\"ca.saldo_interes, \");\n consulta.append(\"p.numero_obligacion, \");\n consulta.append(\"p.id_deudor, \");\n consulta.append(\"p.fecha_obligacion, \");\n consulta.append(\"p.id_funcionario, \");\n consulta.append(\"p.id_cargue_coactivo, \");\n consulta.append(\"p.id_precoactivo \");\n consulta.append(\"FROM precoactivo p \");\n consulta.append(\"JOIN cartera ca on ca.id_cartera = p.id_cartera \");\n consulta.append(\"WHERE p.id_estado_precoactivo = :estadoAprobado \");\n consulta.append(\"AND p.codigo_tipo_obligacion = :tipoComparendo \");\n\n Query query = em.createNativeQuery(consulta.toString());\n query.setParameter(\"estadoAprobado\", EnumEstadoPrecoactivo.AUTORIZADO.getValue());\n query.setParameter(\"tipoComparendo\", EnumTipoObligacion.COMPARENDO.getValue());\n @SuppressWarnings({ \"unchecked\" })\n List<Object[]> lsObligacionesComparendos = Utilidades.safeList(query.getResultList());\n\n for (Object[] obligacionComparendo : lsObligacionesComparendos) {\n int i = 0;\n BigInteger idCartera = (BigInteger) obligacionComparendo[i++];\n BigDecimal saldoCapital = (BigDecimal) obligacionComparendo[i++];\n BigDecimal saldoInteres = (BigDecimal) obligacionComparendo[i++];\n String numObligacion = (String) obligacionComparendo[i++];\n Long idDeudor = ((BigInteger) obligacionComparendo[i++]).longValue();\n Date fechaObligacion = (Date) obligacionComparendo[i++];\n Integer idFuncionario = (Integer) obligacionComparendo[i++];\n Long idCargue = ((BigInteger) obligacionComparendo[i++]).longValue();\n Long idPrecoactivo = ((BigInteger) obligacionComparendo[i++]).longValue();\n\n CoactivoDTO coactivo = new CoactivoDTO();\n coactivo.setCargueCoactivo(new CargueCoactivoDTO(idCargue));\n coactivo.setFuncionario(new FuncionarioDTO(idFuncionario));\n coactivo.setPersona(new PersonaDTO(idDeudor));\n // Arma obligacion que va a entrar a coactivo\n ObligacionCoactivoDTO obligacion = new ObligacionCoactivoDTO();\n obligacion.setCodigoTipoObligacion(EnumTipoObligacion.COMPARENDO.getValue());\n obligacion.setCartera(new CarteraDTO(idCartera.longValue()));\n obligacion.setNumeroObligacion(numObligacion);\n obligacion.setCoactivo(coactivo);\n obligacion.setFechaObligacion(fechaObligacion);\n obligacion.setValorObligacion(saldoCapital);\n obligacion.setValorInteresMoratorios(saldoInteres);\n obligacion.setIdPrecoativo(idPrecoactivo);\n if (!obligacionesDeudor.containsKey(idDeudor)) {\n obligacionesDeudor.put(idDeudor, new ArrayList<ObligacionCoactivoDTO>());\n }\n obligacionesDeudor.get(idDeudor).add(obligacion);\n }\n return obligacionesDeudor;\n }", "public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){\n\tString sql=\"select * from institucion where cod_institucion='\"+cod_solicitud+\"';\";\n\t\n\treturn db.queryForObject(sql, new InstitucionRowMapper());\n}", "public abstract String toSQL();", "public Socio getSocioInfoAtualizar() {\n\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem para pegar Socio\"); \n Statement stmt = null;\n\n\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM alterados\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio (rs.getString(\"nomeSocio\"),rs.getString(\"cpfSocio\"),rs.getString(\"rgSocio\"),\n rs.getString(\"matSocio\"),rs.getString(\"sexoSocio\"),rs.getString(\"diaNascSocio\"),\n rs.getString(\"mesNascSocio\"),rs.getString(\"anoNascSocio\"),rs.getString(\"enderecoSocio\"),\n rs.getString(\"numEndSocio\"),rs.getString(\"bairroSocio\"),rs.getString(\"cidadeSocio\"),\n rs.getString(\"estadoSocio\"),rs.getString(\"foneSocio\"),rs.getString(\"celSocio\"),\n rs.getString(\"emailSocio\"),rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"), rs.getInt(\"idSocioPK\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n\n \n Socio socioMax = new Socio();\n\n socioMax = listaSocio.get(0);\n\n //Se houver mais de um socio na lista vai procurar o de maior ID\n if(listaSocio.size()-1 > 0){\n\n for(int i=0; i<= listaSocio.size()-1; i++){\n\n Socio socio = new Socio();\n socio = listaSocio.get(i);\n\n if(socio.getIdAlterado()>= socioMax.getIdAlterado() ){\n socioMax = socio;\n }\n\n }\n\n }\n //Se não pega o primeiro\n else {\n socioMax = listaSocio.get(0);\n \n }\n\n System.out.println(socioMax.getIdAlterado());\n\n //Retorna o socio de maior ID, logo o ultimo inserido.\n return socioMax;\n }", "public void showData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\t\tString sql=\"select *from ComplaintsData\";\n\t\t\t\tps=con.prepareStatement(sql);\n\t\t\t\trs=ps.executeQuery();\n\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public ResultSet Cmus(Long comp_id) throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tSystem.out.println(comp_id);\r\n\t//String sql=\"select c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\";\r\n\t//System.out.println(sql);\r\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\");\r\n\treturn rs;\r\n}", "public M csmiNationNull(){if(this.get(\"csmiNationNot\")==null)this.put(\"csmiNationNot\", \"\");this.put(\"csmiNation\", null);return this;}", "public donorList() {\n initComponents();\n try {\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n Connection connection = DriverManager.getConnection( \"jdbc:sqlserver://localhost:1433;user=sa;password=123456;\" +\n \"databaseName=BloodBankMS;\");\n \n \n Statement statement = connection.createStatement(); \n \n ResultSet rs = statement.executeQuery(\"SELECT DonorID , DonorName ,DonorGender ,DonorAddress ,DonorBloodGroup , DonorArea , DonorPhoneNumber, DonorAge, DonorWeight from DONOR\"); \n ResultSetMetaData rsmetadata = rs.getMetaData(); \n int columns = rsmetadata.getColumnCount(); \n DefaultTableModel dtm = new DefaultTableModel(); \n Vector columns_name=new Vector();\n Vector data_rows=new Vector();\n for(int i= 1; i < columns+1; i++) \n { \n columns_name.addElement (rsmetadata.getColumnLabel(i)); \n } \n \n dtm.setColumnIdentifiers(columns_name);\n while (rs.next()) \n { \n data_rows = new Vector(); \n for (int j = 1; j <columns+1; j++) \n { \n data_rows.addElement(rs.getString(j)) ;\n } \n dtm.addRow(data_rows); \n \n } \n donorTable.setModel(dtm); \n \n } catch (Exception e) { \n e.printStackTrace(); \n }\n }", "@Override\n public DycpCompensacionDTO encontrar(String numControl) throws SIATException {\n try {\n String query =\n \" SELECT C.*, S.*, TT.*, SI.*, PER.*, CON.*, IMP.*, CON.DESCRIPCION, PER.DESCRIPCION as DESCRIPCION_PERIODO, IMP.DESCRIPCION as DESCRIPCION_IMPUESTO \"\n + \"FROM DYCP_COMPENSACION C, DYCP_SERVICIO S, DYCC_TIPOTRAMITE TT, DYCT_SALDOICEP SI, \"\n + \"DYCC_PERIODO PER, DYCC_CONCEPTO CON, DYCC_IMPUESTO IMP \"\n + \"WHERE C.NUMCONTROL = S.NUMCONTROL \"\n + \"AND TT.IDTIPOTRAMITE = S.IDTIPOTRAMITE AND SI.IDSALDOICEP = C.IDSALDOICEPORIGEN \"\n + \"AND PER.IDPERIODO = SI.IDPERIODO AND CON.IDCONCEPTO = SI.IDCONCEPTO AND IMP.IDIMPUESTO = CON.IDIMPUESTO \" \n + \"AND C.NUMCONTROL = ? ORDER BY C.IDSALDOICEPDESTINO DESC\";\n TipoTramiteMapper mapperTipoTramite = new TipoTramiteMapper();\n DycpServicioMapper mapperServicio = new DycpServicioMapper();\n mapperServicio.setMapperTipoTramite(mapperTipoTramite);\n CompensacionMapper mapper = new CompensacionMapper();\n DyctSaldoIcepMapper mapperSaldoIcep = new DyctSaldoIcepMapper();\n PeriodoMapper mapperPeriodo = new PeriodoMapper();\n ConceptoMapper mapperConcepto = new ConceptoMapper();\n ImpuestoMapper mapperImpuesto = new ImpuestoMapper();\n mapperSaldoIcep.setMapperPeriodo(mapperPeriodo);\n mapperConcepto.setMapperImpuesto(mapperImpuesto);\n mapperSaldoIcep.setMapperConcepto(mapperConcepto);\n mapper.setMapperServicio(mapperServicio);\n mapper.setMapperSaldoIcepOrigen(mapperSaldoIcep);\n return jdbcTemplateDYC.queryForObject(query, new Object[] { numControl }, mapper);\n } catch (DataAccessException dae) {\n log.error(ConstantesDyC1.TEXTO_1_ERROR_DAO + dae.getMessage() + ConstantesDyC1.TEXTO_2_ERROR_DAO +\n SQLOracleDyC.CONSULTA_DYCP_COMPENSACION + ConstantesDyC1.TEXTO_3_ERROR_DAO + \"numcontrol\" + numControl +\n ConstantesDyC1.TEXTO_8_CAUSAS + dae.getCause());\n throw new SIATException(dae);\n }\n }", "public Community()\r\n {\r\n //\r\n }", "protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}", "private static String getTableName(String baseName, boolean isCommunity, boolean isCollection, boolean isDistinct,\n boolean isMap) {\n // isDistinct is meaningless in relation to isCommunity and isCollection\n // so we bounce that back first, ignoring other arguments\n if (isDistinct) {\n return baseName + \"_dis\";\n }\n\n // isCommunity and isCollection are mutually exclusive\n if (isCommunity) {\n baseName = baseName + \"_com\";\n } else if (isCollection) {\n baseName = baseName + \"_col\";\n }\n\n // isMap is additive to isCommunity and isCollection\n if (isMap) {\n baseName = baseName + \"_dmap\";\n }\n\n return baseName;\n }", "public boolean vérification_collab_simp(String username) {\ntry {\n\t\t\t\n\t\t\tjdbc.setConnection();\n\t\t\tStatement stm=jdbc.setConnection().createStatement();\n\t\t\tString strcheck=\"select collaborateur_simple.id from collaborateur_simple,utilisateur where collaborateur_simple.id=utilisateur.id and utilisateur.username=\"+'\"'+username+'\"';\n\t\t\t\n\t\t\t\t\n\t\t\tResultSet res = stm.executeQuery(strcheck);\n\t\t\t\n\t\t\t\n\t\t\twhile (res.next()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tjdbc.setConnection().close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "public void populateTable() {\n DefaultTableModel dtm = (DefaultTableModel)tblSalesPersonCommision.getModel();\n dtm.setRowCount(0);\n // for(OrderList orderlist:salesperson.getOrderlistcatalog().getSalesPersonOrder()){\n // for(Order order:salesperson.getOrderListSalesPerson().getOrderList()){ \n // for(OrderList orderlist:salesperson.getOrderlistcatalog().getOrCatalog()){\n // for(SalesPerson salesperson :business.getEmployeedirectory().getSalesPersonList()){\n \n for(OrderList orderlist:salesperson.getOrderlistcatalog().getOrCatalog()){\n Object [] row = new Object[4];\n // row[0]=.getCustomer().getCustomerId();\n // row[1]= market.getCustomer().getCustomerName();\n row[0]=orderlist;\n row[1]=orderlist.getOrdertotalprice();\n row[2]=orderlist.getSalespersoncomission();\n row[3]=orderlist.getTotalorderlistquantity();\n //3 tcomission = tcomission + orderlist.getSalespersoncomission();\n //3 totalquantity = totalquantity + orderlist.getTotalorderlistquantity();\n //3 totalorderprice = totalorderprice + orderlist.getOrdertotalprice();\n \n // row[0]=order;\n // row[1]=order.getAmountprice();\n \n dtm.addRow(row);\n // }\n // }\n } \n //2 salesperson.getOrderlistcatalog().setTotalquantitypersalesperson(totalquantity);\n //2 salesperson.getOrderlistcatalog().setTotalcommision(tcomission);\n //2 salesperson.getOrderlistcatalog().setTotalorderlistcsatalogprice(totalorderprice);\n}", "@Override\n\tpublic CommunicationInfo getCommuInfo(HashMap<String, String> map) {\n\t\treturn null;\n\t}", "public String getNomTable();", "public synchronized String getSenhaPromocional(MensagemPromocional msgPromo,String msisdn, Connection con) throws SQLException\n\t{\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet \t\t rs = null;\n\t\tString \t\t\t senha = null;\n\t\ttry\n\t\t{\n\t\t\tpstmt = con.prepareStatement(sqlSenha);\n\t\t\tpstmt.setInt(1,msgPromo.getCodServico());\n\t\t\tpstmt.setInt(2,msgPromo.getCodConteudo());\n\t\t\tpstmt.setInt(3,msgPromo.getCodPromocao());\n\t\t\trs = pstmt.executeQuery();\n\t\t\tif (rs.next())\n\t\t\t{\n\t\t\t\t// Caso a pesquisa de senha retornou que existe uma proxima disponive\n\t\t\t\t// entao atualiza o registro indicando qual o assinante que requisitou\n\t\t\t\t// antes de enviar a senha por sms\n\t\t\t\tsenha = rs.getString(\"CO_SENHA\");\n\t\t\t\t// Marca agora a utilizacao da senha pelo assinante\n\t\t\t\tPreparedStatement pstmtUpd = con.prepareStatement(sqlUpdSenha);\n\t\t\t\tpstmtUpd.setString\t\t(1,msisdn);\n\t\t\t\tpstmtUpd.setTimestamp\t(2,new Timestamp(Calendar.getInstance().getTimeInMillis()));\n\t\t\t\tpstmtUpd.setInt \t\t(3,msgPromo.getCodServico());\n\t\t\t\tpstmtUpd.setInt \t\t(4,msgPromo.getCodConteudo());\n\t\t\t\tpstmtUpd.setInt\t \t\t(5,msgPromo.getCodPromocao());\n\t\t\t\tpstmtUpd.setString\t\t(6,senha);\n\t\t\t\t\n\t\t\t\tpstmtUpd.executeUpdate();\n\t\t\t\tpstmtUpd.close();\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\tthrow e;\n\t\t}\n\t\tfinally{\n\t\t\ttry{// Fecha os objetos de consulta\n\t\t\t\tif (rs != null) rs.close();\n\t\t\t\tif (pstmt != null) pstmt.close();\n\t\t\t}catch(Exception e){};\n\t\t}\n\n\t\treturn senha;\n\t}", "@Override\r\n\tpublic void init(Map<String, Object> values) {\n\t\tthis.setType(\"community_name\", FieldType.TABLE_SELECTOR);\r\n\t\tthis.setType(\"did\", FieldType.TABLE_SELECTOR);\r\n\t\tthis.setType(\"contract_id\", FieldType.TABLE_SELECTOR);\r\n\r\n\t\tTableSelector selector_communities = UIHandler.selector(args -> {\r\n\t\t\tJTable t = (JTable) args[0];\r\n\t\t\tt.setModel(new CommunitiesTableModelImpl());\r\n\t\t\tRuntimeStore.runUI().refresh(new CommunityRequestImpl().query(), t.getModel());;\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tselector_communities.comfirm(args -> {\r\n\t\t\tUIHandler.handle_table_selector(\"community_name\", \"name\", args);\r\n\t\t\treturn null;\r\n\t\t}, \"0\");\r\n\r\n\t\tthis.setValue(\"community_name\", selector_communities);\r\n\t}", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "java.lang.String getSqlCode();", "public boolean asignaNumeroFac(java.sql.Connection conIns, int intCodEmp,int intCodLoc, int intCodTipDocFacEle, int intCodDoc, int intCodCot) \r\n {\r\n boolean blnRes = false;\r\n java.sql.Statement stmLoc, stmLocIns;\r\n java.sql.ResultSet rstLoc;\r\n String strSql = \"\";\r\n String strSqlIns = \"\";\r\n int intNumDoc = 0;\r\n int intNumDocGuia = 0;\r\n try \r\n {\r\n if (conIns != null){\r\n stmLoc = conIns.createStatement();\r\n strSql = \"SELECT CASE WHEN (ne_ultDoc+1) IS NULL THEN 1 ELSE (ne_ultDoc+1) END AS ultnum \"\r\n + \" FROM tbm_cabTipDoc WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n// System.out.println(\"numero \" + strSql);\r\n rstLoc = stmLoc.executeQuery(strSql);\r\n if (rstLoc.next()) {\r\n intNumDoc = rstLoc.getInt(\"ultnum\");\r\n }\r\n rstLoc.close();\r\n rstLoc = null;\r\n stmLoc.close();\r\n stmLoc = null;\r\n \r\n \r\n strSqlIns += \" UPDATE tbm_cabTipDoc SET ne_ultDoc=\" + intNumDoc + \" WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n strSqlIns += \";UPDATE tbm_cabmovinv SET ne_numdoc=\" +intNumDoc+\", ne_numgui=\"+intNumDocGuia+\", st_reg='A' , st_imp='S' \"\r\n + \" WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_doc=\" + intCodDoc + \" and st_reg not in ('I','E') AND ne_numcot=\" + intCodCot;\r\n strSqlIns += \" ; UPDATE tbm_cabdia SET tx_numdia='\" + intNumDoc + \"' WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_dia=\" + intCodDoc + \" and st_reg not in ('I','E') \";\r\n System.out.println(\"asignaNumeroFac \"+strSqlIns);\r\n stmLocIns = conIns.createStatement();\r\n stmLocIns.executeUpdate(strSqlIns);\r\n stmLocIns.close();\r\n stmLocIns = null;\r\n intNumFacElec=intNumDoc;\r\n blnRes = true;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "public void setBestCommunity(int bestCommunity) {\n this.bestCommunity = bestCommunity;\n }", "int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;", "public void setCommunityName(String communityName) {\n this.communityName = communityName == null ? null : communityName.trim();\n }", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileProfileNameColumn()\n {\n return newMobileProfileNameColumn(\"Mobile Profile Name\");\n }", "@Select(\"select datetime,currentConfirmedCount,confirmedCount,suspectedCount,curedCount,deadCount from covid19_1 where datetime = #{datetime}\")\n List<Map<String, Object>> getNationalData(String datetime);", "public void generarDocumentosCoactivosAnteriores() {\n\n try {\n\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"Set Language 'Español'\");\n\n Query update = em.createNativeQuery(sql.toString());\n update.executeUpdate();\n\n // Consulta de coactivos\n sql = new StringBuilder();\n sql.append(\n \"SELECT c.id_proceso, c.id_coactivo, p.fecha_inicio, c.valor_total_obligaciones, p.numero_proceso, tp.id_trazabilidad_proceso , tp2.id_trazabilidad_proceso as traza2 \");\n sql.append(\"FROM coactivo c \");\n sql.append(\"JOIN proceso p ON p.id_proceso = c.id_proceso \");\n sql.append(\"JOIN trazabilidad_proceso tp ON p.id_proceso = tp.id_proceso \");\n sql.append(\"AND tp.id_estado_proceso = 22 \");\n sql.append(\"JOIN trazabilidad_proceso tp2 ON p.id_proceso = tp2.id_proceso \");\n sql.append(\"AND tp2.id_estado_proceso = 24 \");\n sql.append(\"WHERE NOT EXISTS (SELECT 1 FROM trazabilidad_proceso tp \");\n sql.append(\n \"WHERE EXISTS (select 1 from documento_proceso dp where dp.id_trazabilidad_proceso = tp.id_trazabilidad_proceso) \");\n sql.append(\"AND tp.id_proceso = p.id_proceso) \");\n sql.append(\"AND CAST(p.numero_proceso AS bigint) <= 6179 \");\n sql.append(\"ORDER BY c.id_coactivo\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n @SuppressWarnings(\"unchecked\")\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n for (Object[] filaCoactivo : listaResultados) {\n iLCoactivo.generarDocumentosAnteriores(filaCoactivo);\n }\n } catch (Exception e) {\n logger.error(\"Error en generación de documento de apertura de coactivo\", e);\n\n }\n }", "public PromocionTableModel() {\n \n //Establecemos la sentencia SQL que vamos a ejecutar\n super(\"SELECT ID_PROMOCION , NOMBRE, DESCUENTO FROM PROMOCION\");\n \n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Empresa\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tEmpresa entity = new Empresa();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,EmpresaDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Seguridad.Empresa.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseEmpresa(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "@Override\r\n\tpublic List<Famille> listCompetences() {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\t//on crée une requête\r\n \t\tQuery req=session.createQuery(\"select C from FamilleComp C\");\r\n \t\tList<Famille> famillecomp=req.list();\r\n session.getTransaction().commit();\r\n \t\treturn famillecomp;\r\n\t\t\r\n\t}", "public static void create_join_CP(String databaseCT,String rchain,Connection con2) throws SQLException{\n\t\t\n\t\tString table_name = databaseCT+\"_CT.\"+rchain.substring(0,rchain.length()-1) + \"_CT`\";\n\t\t//System.out.println(databaseCT+\"_CT\");\n\t\tString newTable_name = rchain.substring(0,rchain.length()-1) + \"_CT_KLD`\";\n\t\t//System.out.println(table_name);\n\t\t// table_name is input contingency table, newTable_name will be output KLD table\n\t\tStatement st=con2.createStatement();\n ResultSet rst=st.executeQuery(\"show columns from \"+table_name+\" ;\");\n // System.out.println(\"show columns from \"+table_name+\" ;\");\n while(rst.next()){\n \tcolumn_names.add(\"`\"+rst.getString(1)+\"`\");\n \tcolumn_names_CP.add(\"`\"+rst.getString(1)+\"_CP`\");\n \t// add conditional probability column for each attribute column\n }\n \n \n st.execute(\"drop table if exists \" + newTable_name);\n String query1=\"create table \" + newTable_name + \" ( id int(11) NOT NULL AUTO_INCREMENT, MULT BIGINT(21), \" ;\n // make query string for creating KLD table\n // auto index each row in table\n for(int i=1; i<column_names.size(); i++){\n \tquery1 = query1 + column_names.get(i) + \" VARCHAR(45),\" + column_names_CP.get(i) + \" float(7,6) ,\";\n // add column headers\t\t\n }\n query1 = query1 + \" JP float, JP_DB float, KLD float default 0, PRIMARY KEY (id) ) engine=INNODB;\";\n //System.out.println(query1);\n st.execute(query1);\n \n // copy the values from the mult table. CP values are null at this point.\n String query2 = \"insert into \" + newTable_name + \" ( MULT\";\n for(int i=1; i<column_names.size(); i++){\n \tquery2 = query2 + \", \" + column_names.get(i);\n }\n query2 = query2 + \" ) select * from \"+table_name+\"; \"; // Nov 28 @ zqian, do not use \"*\" in terms of query optimization\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t// Nov 28 @ zqian, adding covering index to CT table for query string \n System.out.println(query2);\n st.execute(query2);\n \n System.out.println(\"\\n insert into KLD table conditional probability for each node\"); // zqian\n //insert CP value to attributes\n insert_CP_Values(rchain, newTable_name,con2);\n System.out.println(\"\\n compute Bayes net joint probabilities \"); //zqian\n //compute Bayes net joint probabilities \n cal_KLD(newTable_name,con2);\n \n \n st.close();\n\t}", "@SuppressWarnings(\"unchecked\")\n \n \n private void table(){\n \n int c;\n \n try{\n \n Connection con1 = ConnectionProvider.getConn();\n Statement stm = con1.createStatement();\n ResultSet rst = stm.executeQuery(\"select * from sales\");\n ResultSetMetaData rstm = rst.getMetaData();\n \n c = rstm.getColumnCount();\n \n DefaultTableModel dtm2 = (DefaultTableModel)jTable1.getModel();\n dtm2.setRowCount(0);\n \n while (rst.next()){\n \n Vector vec = new Vector();\n \n for(int a =1 ; a<=c; a++)\n {\n vec.add(rst.getString(\"CustomerName\"));\n vec.add(rst.getString(\"OrderNo\"));\n vec.add(rst.getString(\"TypeOfService\"));\n vec.add(rst.getString(\"OrderType\"));\n vec.add(rst.getString(\"Descript\"));\n vec.add(rst.getString(\"OrderConfirmation\"));\n vec.add(rst.getString(\"OrderHandledBy\"));\n vec.add(rst.getString(\"OrderDate\"));\n vec.add(rst.getString(\"WarrantyExpireDate\"));\n vec.add(rst.getString(\"FullAmount\"));\n vec.add(rst.getString(\"AmountPaid\"));\n vec.add(rst.getString(\"Balance\"));\n }\n \n dtm2.addRow(vec);\n }\n \n }\n catch(Exception e)\n {\n \n }\n \n \n }", "@Override\r\n public Integer oneObligorClassCount(OneObligorSC oneObligorSC) throws DAOException\r\n {\r\n\tDAOHelper.fixGridMaps(oneObligorSC, getSqlMap(), \"oneObligorMapper.oneObligorClassMap\");\r\n\treturn (Integer) getSqlMap().queryForObject(\"oneObligorMapper.oneObligorClassCount\", oneObligorSC);\r\n }", "public void infoCustomer() { ////AGGIUSTA\n\n CriteriaBuilder cb = em.getCriteriaBuilder();\n\n CriteriaQuery<Customer> cq = cb.createQuery(Customer.class);\n\n Root<Customer> cust = cq.from(Customer.class);\n\n cq.multiselect(cust.get(\"lastName\"), cb.count(cust).alias(\"numero di customer\")).groupBy(cust.get(\"lastName\"));\n\n System.out.print(\"lastName\");\n System.out.println(\"\\t Count\");\n\n /* List<Object[]> list = em.createQuery(cq).getResultList(); \n \nfor(Object[] object : list){ \n System.out.println(object[0] + \" \" + object[1]); \n \n} \n\n em.getTransaction().commit();\n em.close();\n emf.close();\n */\n }", "public HashMap<Integer, HashMap<String, String>> getMessageDataForCollabForText(ArrayList<Integer> interIDs){\n\t HashMap<Integer, HashMap<String, String>> result = new HashMap();\n\t String query = null;\n//\t stmt = getConnection(dbParams).createStatement();\n\t HashMap<String, String> message;\n\t HashMap<String, ArrayList<String>> messageMap;\n\t \n//\t stmt = getConnection(dbParams).createStatement();\n\t int contentTypeID;\n\t String contentType;\n\t int contentSubTypeID;\n\t String contentSubType = null;\n\t int resourceID;\n\t SQLXML attributes;\n\t int actionID;\n\t String actionType;\n\t ArrayList<String> resources;\n\t String resourceName;\n\t String resourceURL;\n\t String text = null;\n\t String messageAttributes = null;\n\t HashMap<String, String> msgAttributes = null;\n\t try{\n\t\t DOMSource domSource;\n\t\t Document document;\n\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n\t\t \n\t\t String expression = \"//name[.='event.action']/following-sibling::*[1][name()='value']\";\n\t \t//loop through each interID\n\t \tfor(int interID : interIDs){\n\n\t \n\t message = new HashMap();\n\t \n\t query = \"Select contentType, contentSubType, resourceID, attributes from Interactions where interID = \"+interID;\n\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t \n\t contentTypeID = rs.getInt(1);\n\t contentSubTypeID = rs.getInt(2);\n\t resourceID = rs.getInt(3);\n\t attributes = rs.getSQLXML(4);\n\t \n\t domSource = attributes.getSource(DOMSource.class);\n\t document = (Document) domSource.getNode();\n\t actionID = Integer.parseInt(xpath.evaluate(expression, document));\n\t \n\t //Get contentType\n\t contentType = getContentType(stmt, contentTypeID);\n\t //Get ContentSubType\n\t if(contentSubTypeID != -1){\n\t \t contentSubType = getContentSubType(stmt, contentSubTypeID);\n\t }\n\t \n\t //Get Action Type\n\t actionType = getActionType(actionID);\n\t //Get Resource Name and URL\n\t resources = getResourceNameAndURL(resourceID);\n\t resourceName = resources.get(0);\n\t resourceURL = resources.get(1);\n\t \n\t //Get Message Table data\n\t query = \"Select text from Messages where interID = \"+interID + \" and text IS NOT NULL\";\n\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t if(rs.getNString(1) != null){\n\t \ttext = rs.getString(1).replaceAll(\"/n\", \" \").replaceAll(\"/r\", \"\");\n\t }\n\t \n\t query = \"select attributes from messages where interId =\"+ interID + \" and attributes IS NOT NULL\";\n\t System.out.println(query);\n\t \trs = stmt.executeQuery(query);\n\t \tif(rs.next()){\n\t \t\tmessageAttributes = rs.getString(1);\t\n\t \t}\n\t \n\t \n\t //Get Attribute Names and Values\n\t \tmsgAttributes = new HashMap();\n\t \tif(messageAttributes != null){\n\t \t\tmsgAttributes = getMessageAttributes(messageAttributes);\n\t \t}\n\t \t\t\n\t ArrayList<String> fileNames = getFileListsForCollab(interID);\n\t //Add all the values\n\t message.put(\"contentType:\", contentType);\n\t \t if(contentSubTypeID != -1){\n\t \t \tmessage.put(\"contentSubType:\", contentSubType); \n\t\t }\n\t \n\t message.put(\"action:\", actionType.toLowerCase());\n\t message.put(\"resourceName:\", resourceName.toLowerCase());\n\t message.put(\"Resource URL:\", resourceURL.toLowerCase());\n\t if(text != null){\n\t \tmessage.put(\"Text Content:\", text.replaceAll(\"\\n\", \"\").replaceAll(\"\\r\", \"\").toLowerCase());\n\t }\n\t \n\t if(msgAttributes.size() > 0){\n\t\t for(String attName : msgAttributes.keySet()){\n\t\t message.put(attName+\":\", msgAttributes.get(attName).toLowerCase());\n\t\t }\t \t\n\t }\n\n\t StringBuffer fileName = new StringBuffer();\n\t if(fileNames.size() > 0){\n\t \t for(int i = 0 ; i < fileNames.size(); i++){\n\t \t \tfileName.append(fileNames.get(i));\n\t \t \tif(i + 1 != fileNames.size()){\n\t \t \t\tfileName.append(\"#\");\n\t \t \t}\n\t \t }\n\t \t message.put(\"File:\", fileName.toString().toLowerCase());\n\t }\n\t\n\t result.put(interID, message);\n\t \n\t \t}\n\t } catch(Exception e){\n\t \tSystem.err.println(e.getMessage());\n\t }\n\t return result;\n\t }", "public int siguienteRegistro(int codigoCiclo, int codigoPlan) {\n/* 454 */ int numero = 1;\n/* 455 */ String s = \"select max(codigo_meta) from cal_plan_metas\";\n/* 456 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* */ try {\n/* 458 */ boolean rta = this.dat.parseSql(s);\n/* 459 */ if (!rta) return 0; \n/* 460 */ this.rs = this.dat.getResultSet();\n/* 461 */ if (this.rs.next()) {\n/* 462 */ s = this.rs.getString(1);\n/* 463 */ if (!this.rs.wasNull()) {\n/* 464 */ numero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 467 */ if (numero < 10000) numero = 10000; \n/* 468 */ return numero;\n/* */ }\n/* 470 */ catch (Exception e) {\n/* 471 */ e.printStackTrace();\n/* 472 */ Utilidades.writeError(\"CalPlanMetasFactory:siguienteRegistro\", e);\n/* */ \n/* 474 */ return 0;\n/* */ } \n/* */ }", "int updateByPrimaryKey(CommunityInform record);", "private HashMap getTableRow(int rowNum)\r\n {\r\n HashMap hashRow = new HashMap() ;\r\n int colTotal = codeTableModel.getColumnCount()-1;\r\n for (int colCount=0; colCount <= codeTableModel.getColumnCount()-1; colCount++)\r\n { // for each column u will build a hashmap\r\n// if (colCount == 1 )\r\n// {//sponsor name is not in update sp.\r\n// continue;\r\n// }\r\n TableColumn column = codeTableColumnModel.getColumn(colCount) ;\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n Object val = null ;\r\n // the whole idea of setting up the columnBean as the identifier is that u get to know\r\n // all abt the structure details of the column, so u can create appropriate type of object\r\n // and stick it in to the hashMap\r\n if (columnBean.getDataType().equals(\"NUMBER\"))\r\n {\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount) == null\r\n ||(codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).equals(\"\")))\r\n {\r\n val = null ; //new Integer(0)\r\n }\r\n else\r\n {\r\n val = codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount);\r\n if (val instanceof ComboBoxBean)\r\n {\r\n if (((ComboBoxBean)val).getCode().equals(\"\"))// user deleted selection\r\n val = null;\r\n else\r\n val = new Integer(((ComboBoxBean)val).getCode().toString());\r\n }\r\n else\r\n {\r\n val = new Integer(val.toString()) ;\r\n }\r\n }\r\n }\r\n\r\n if (columnBean.getDataType().equals(\"VARCHAR2\"))\r\n {\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount)==null)\r\n {\r\n val = \"\";\r\n }\r\n else\r\n {\r\n val = codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).toString() ;\r\n }\r\n }\r\n\r\n if (columnBean.getDataType().equals(\"DATE\"))\r\n {\r\n //coeusdev-568 start\r\n //Date today = new Date();\r\n //coeusdev-568 end\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum), codeTableModel.getColumnCount()-1).equals(\"I\")) // if itz an insert\r\n { //AV_ & AW_ will be the same for insert\r\n //coeusdev-568 start\r\n //val = new java.sql.Timestamp(today.getTime());\r\n val = CoeusUtils.getDBTimeStamp();\r\n //coeusdev-568 end\r\n }\r\n else\r\n { // for update\r\n // there will be only two dates in any table one AV_UPDATE_TIMESTAMP and the other one AW_UPDATE_TIMESTAMP\r\n if (columnBean.getQualifier().equals(\"VALUE\"))\r\n { //AV_...\r\n //coeusdev-568 start\r\n //val = new java.sql.Timestamp(today.getTime());\r\n val = CoeusUtils.getDBTimeStamp();\r\n //coeusdev-568 end\r\n }\r\n else\r\n { //AW_...\r\n val = java.sql.Timestamp.valueOf(codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).toString()) ;\r\n }\r\n }\r\n }\r\n\r\n hashRow.put(columnBean.getColIdentifier(), val) ;\r\n } //end for\r\n return hashRow;\r\n }", "@Override public int conocerMonto(){\n\treturn 120;\n }", "public ScGridColumn<AcUpuTagSummaryVo> newOriginCountryCodeColumn()\n {\n return newOriginCountryCodeColumn(\"Origin Country Code\");\n }", "public Antecedentes getData(long dni) {\n\n\t\t\tMapSqlParameterSource params = new MapSqlParameterSource();\n\t\t\tparams.addValue(\"dni\", dni);\n\t\t\t\n\n\t\t \n\t\t\ttry {\n\t\t\t\treturn jdbc.queryForObject(\"select * from antecedentes where dni = :dni \", params, new RowMapper<Antecedentes>() {\n\t\t\n\t\t\t\t\t\t\tpublic Antecedentes mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tAntecedentes antecedentes = new Antecedentes();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tantecedentes.setDni(rs.getBigDecimal(\"dni\"));\n\t\t\t\t\t\t\t\tantecedentes.setBecario(rs.getString(\"becario\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_doctoral(rs.getString(\"tesista_doctoral\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_maestria(rs.getString(\"tesista_maestria\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_grado(rs.getString(\"tesista_grado\"));\n\t\t\t\t\t\t\t\tantecedentes.setInvestigadores(rs.getString(\"investigadores\"));\n\t\t\t\t\t\t\t\tantecedentes.setPasantes_id_y_facademica(rs.getString(\"pasantes_id_y_facademica\"));\n\t\t\t\t\t\t\t\tantecedentes.setPersonal_apoyo_id(rs.getString(\"personal_apoyo_id\"));\n\t\t\t\t\t\t\t\tantecedentes.setFinanciamiento_cientifico_tecnologico(rs.getString(\"financiamiento_cientifico_tecnologico\"));\n\t\t\t\t\t\t\t\tantecedentes.setActividades_divulgacion(rs.getString(\"actividades_divulgacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setExtension_rural_industrial(rs.getString(\"extension_rural_industrial\"));\n\t\t\t\t\t\t\t\tantecedentes.setPrestacion_servicios_sociales(rs.getString(\"prestacion_servicios_sociales\"));\n\t\t\t\t\t\t\t\tantecedentes.setProduccion_divulgacion_artistica(rs.getString(\"produccion_divulgacion_artistica\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtro_tipo_actividad(rs.getString(\"otro_tipo_actividad\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_personal(rs.getString(\"evaluacion_personal\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_programas(rs.getString(\"evaluacion_programas\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_institucional(rs.getString(\"evaluacion_institucional\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtro_tipo_evaluacion(rs.getString(\"otro_tipo_evaluacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setBecas(rs.getString(\"becas\"));\n\t\t\t\t\t\t\t\tantecedentes.setEstancias_pasantias(rs.getString(\"estancias_pasantias\"));\n\t\t\t\t\t\t\t\tantecedentes.setOperacion_mantenimiento(rs.getString(\"operacion_mantenimiento\"));\n\t\t\t\t\t\t\t\tantecedentes.setProduccion(rs.getString(\"produccion\"));\n\t\t\t\t\t\t\t\tantecedentes.setNormalizacion(rs.getString(\"normalizacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setEjercicio_profesion_ambito_no_academico(rs.getString(\"ejercicio_profesion_ambito_no_academico\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtra_actividad_cyt(rs.getString(\"otra_actividad_cyt\"));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn antecedentes;\n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t});\n\t\t\t}\n\t\t\t catch(EmptyResultDataAccessException erdae) {\n\t\t\t\t System.out.println(\"en antecedentesDAO devuelve null\");\n\t\t\t return null;\n\t\t\t }\n\t\t}", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public int getC_BPartner_ID();" ]
[ "0.5777531", "0.54983866", "0.5355626", "0.53173655", "0.52142596", "0.5072993", "0.5071526", "0.50186056", "0.4999408", "0.4957911", "0.4888405", "0.48874542", "0.48464632", "0.48249173", "0.47942165", "0.47865617", "0.47797424", "0.47783247", "0.4766846", "0.4764298", "0.47425285", "0.47406077", "0.47312325", "0.47146994", "0.4712276", "0.4697104", "0.46827114", "0.46783638", "0.4677204", "0.4664259", "0.46443814", "0.46333447", "0.4627329", "0.46231085", "0.4618464", "0.4615996", "0.46142948", "0.46066284", "0.45924795", "0.45830908", "0.45809144", "0.45791355", "0.45719743", "0.4570247", "0.4567444", "0.45630288", "0.45628107", "0.45423836", "0.45416367", "0.4539833", "0.45375007", "0.45307392", "0.45293856", "0.45292312", "0.45254752", "0.45252535", "0.4513802", "0.45109823", "0.45101145", "0.45087117", "0.45077842", "0.45055577", "0.4502694", "0.44954875", "0.44856703", "0.4483986", "0.4479531", "0.4471037", "0.44702354", "0.44586167", "0.44569218", "0.4454952", "0.44485402", "0.44479498", "0.44476008", "0.44474995", "0.44449213", "0.4442562", "0.4438816", "0.44365764", "0.44333455", "0.4426993", "0.44238976", "0.44231528", "0.4420397", "0.4419049", "0.44104752", "0.44094753", "0.44050527", "0.44033247", "0.4401208", "0.43954584", "0.43945464", "0.43873557", "0.4385263", "0.43833598", "0.43797326", "0.43764845", "0.43740734", "0.43735573" ]
0.46095777
37
This method was generated by MyBatis Generator. This method corresponds to the database table t_communityinform
CommunityInform selectByPrimaryKey(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CommunityInform> selectAll();", "public void setCommunity(int community) {\n this.community = community;\n }", "public String getCommunity() {\n return this.community;\n }", "@ApiModelProperty(value = \"小区id\")\n\tpublic Long getCommunityId() {\n\t\treturn communityId;\n\t}", "Community() {}", "@Override\n\tpublic int updateCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tJSONObject isExistJSON = this.selectOne(\"selectCommunityNameExist\", params);\n\t\tif(isExistJSON.getIntValue(\"isExist\") !=0){\n\t\t\tresult = -2;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this.delete(\"deleteCommunityMember\",params);\n\t\tif(params.getJSONArray(\"members\")!=null&&params.getJSONArray(\"members\").size()!=0){\n\t\t\tresult = this.insert(\"insertCommunityMember\",params);\n\t\t}\n\t\tresult = this.update(\"updateCommunity\", params);\n\t\treturn result ;\n\t}", "@Override\n\tpublic int insertCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tString communityId = UUIDUtil.getUUID();\n\t\tparams.put(\"communityId\", communityId);\n\t\tJSONObject isExistJSON = this.selectOne(\"selectCommunityNameExist\", params);\n\t\tif(isExistJSON.getIntValue(\"isExist\") !=0){\n\t\t\tresult = -2;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this.insert(\"insertCommunity\", params);\n\t\tif(params.getJSONArray(\"members\")!=null&&params.getJSONArray(\"members\").size()!=0){\n\t\t\tresult = this.insert(\"insertCommunityMember\",params);\n\t\t}\n\t\treturn result;\n\t}", "private void getCommunity() {\n DatabaseReference ref = FirebaseDatabase.getInstance()\n .getReference(\"Communities\").child(communityId);\n\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Community community = snapshot.getValue(Community.class);\n communityName = community.getName();\n getSupportActionBar().setTitle(communityName);\n Glide.with(getBaseContext()).load(community.getImage()).into(communityProfile);\n description.setText(community.getDescription());\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "public void setCommunityId(Long communityId) {\n\t\tthis.communityId = communityId;\n\t}", "public String getCommunityName() {\n return communityName;\n }", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "@Mapper\npublic interface WeChatInfoDao {\n\n\n /**\n * 插入微信信息\n * @param wechatInfo\n * @return\n */\n @Insert(\"INSERT INTO wechat_info(parentid,unionid,openid,nickname,sex,province,city,country,headImgUrl,\" +\n \"status,ticket_url,ticket,is_guide,reward) VALUES(#{parentid},#{unionid},#{openid},#{nickname},#{sex},#{province}\" +\n \",#{city},#{country},#{headImgUrl},#{status},#{ticketUrl},#{ticket},#{isGuide},#{reward})\")\n @Options(useGeneratedKeys=true, keyProperty=\"id\")\n int insert(WeChatInfoEntity wechatInfo);\n\n /**\n * 根据openID 查找用户信息\n * @param openid\n * @return\n */\n @Select(\"SELECT * FROM wechat_info WHERE openid = #{openid}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"nickname\", property = \"nickname\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity findByOpenID(@Param(\"openid\") String openid);\n\n /**\n * 根据openID 修改二维码信息\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET ticket_url=#{ticketUrl},ticket=#{ticket} WHERE openid=#{openid}\")\n void updateTicketUrlByOpenID(WeChatInfoEntity wechatInfo);\n\n /**\n * 取消关注\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET status=1 WHERE openid=#{openid}\")\n void updateStatusByOpenID(WeChatInfoEntity wechatInfo);\n\n\n /**\n * 更改status 状态\n * @param wechatInfo\n */\n @SelectProvider(type=WeChatInfoSqlProvider.class, method=\"updateByOpenIdSql\")\n void updateStatus(@Param(\"wechatInfo\") WeChatInfoEntity wechatInfo);\n\n @Select(\"SELECT * FROM wechat_info WHERE id = #{ID}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity selectWecahtUserByID(@Param(\"ID\")String ID);\n}", "public ScGridColumn<AcUpuTagSummaryVo> newMailCategoryCodeColumn()\n {\n return newMailCategoryCodeColumn(\"Mail Category Code\");\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\n public boolean isCommunity() {\n return false;\n }", "void initCommunityProperty();", "public ObjectId getCommunityId() {\r\n\t\treturn communityId;\r\n\t}", "public ACommunity getCisInformation(String client, String cisId);", "@Override\n\tpublic String execute() throws Exception {\n\t\t\n\t\tthis.communitylist = CommunityHibDao.select();\n\t\tActionContext.getContext().getSession().put(\"communitylist\", communitylist);\n\t\tSystem.out.println(communitylist.get(0).getCommunityName());\n\t\tSystem.out.println(\"Hello!\");\n\t\treturn super.execute();\n\t}", "public String get_snmpcommunity()\r\n\t{\r\n\t\treturn this.snmpcommunity;\r\n\t}", "public ScGridColumn<AcUpuTagSummaryVo> newMailClassCodeColumn()\n {\n return newMailClassCodeColumn(\"Mail Class Code\");\n }", "public ScGridColumn<AcUpuTagSummaryVo> newMailSubClassCodeColumn()\n {\n return newMailSubClassCodeColumn(\"Mail Sub Class Code\");\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "Collection getCommunities();", "@Override\n\tpublic ArrayList<Community> findAll() {\n\t\treturn null;\n\t}", "@Insert({\n \"insert into generalcourseinformation (courseid, code, \",\n \"name, teacher, credit, \",\n \"week, day_detail1, \",\n \"day_detail2, location, \",\n \"remaining, total, \",\n \"extra, index)\",\n \"values (#{courseid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{teacher,jdbcType=VARCHAR}, #{credit,jdbcType=INTEGER}, \",\n \"#{week,jdbcType=VARCHAR}, #{day_detail1,jdbcType=VARCHAR}, \",\n \"#{day_detail2,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, \",\n \"#{remaining,jdbcType=INTEGER}, #{total,jdbcType=INTEGER}, \",\n \"#{extra,jdbcType=VARCHAR}, #{index,jdbcType=INTEGER})\"\n })\n int insert(GeneralCourse record);", "public List<StudentCOOP> getStudentCOOP() {\n List<StudentCOOP> studentco = new ArrayList<StudentCOOP>();\n openConnection();\n try {\n getAllStudent = conn.prepareStatement(\"select * from APP.STUDENTCOOP\");\n rs = getAllStudent.executeQuery();\n while (rs.next()) {\n studentco.add(\n new StudentCOOP(rs.getString(\"ZID\"), rs.getString(\"FIRSTNAME\"), rs.getString(\"LASTNAME\"),\n rs.getString(\"GENDER\"), rs.getString(\"ADDRESS\"), rs.getInt(\"CONTACT\"), rs.getString(\"EMAIL\"),\n rs.getString(\"WORKEMAIL\"), rs.getString(\"NOTES\"), rs.getString(\"SUBJECT\"), \n rs.getInt(\"SEMESTERCOMPLETED\"), rs.getDouble(\"MARK\"), rs.getDouble(\"WAM\"))\n );\n }\n rs.close();\n getAllStudent.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n return studentco;\n }", "public void createTableComplaintsData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tDatabaseMetaData d=con.getMetaData();\n\t\t\t\tResultSet rs=d.getTables(null,null,\"ComplaintsData\",null);\n\t\t\t\tif(rs.next())\n\t\t\t\t{\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData table exist\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tString Create_Table=\"create table ComplaintsData(Customer_Name varchar(100),Address varchar(100),Contact varchar(30),Product varchar(100),Serial_No varchar(50),Module_No varchar(50),Complaint_No varchar(50),Category varchar(30))\";\n\t\t\t\t\tPreparedStatement ps=con.prepareStatement(Create_Table);\n\t\t\t\t\tps.executeUpdate();\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData created successfully!\");\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}", "@Override\n public String toString() {\n return bestCommunity + \"\";\n }", "public void set_snmpcommunity(String snmpcommunity)\r\n\t{\r\n\t\tthis.snmpcommunity = snmpcommunity;\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //LiquidacionImpor\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tLiquidacionImpor entity = new LiquidacionImpor();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,LiquidacionImporDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Importaciones.LiquidacionImpor.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseLiquidacionImpor(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public void setSnmpCommunity(String snmpCommunity) {\r\n this.snmpCommunity = snmpCommunity;\r\n }", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "List<CommunityDTO> findAll();", "public java.sql.ResultSet CitasActivasSoloMedico(String CodigoMedico){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas, 7, 3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo = \"+CodigoMedico+\" AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND phm.estado='0' AND sdp.numeroDocumento = pmd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY phm.fechas,jornada,phm.horas LIMIT 100 \");\r\n \t//System.out.println(\"SELECT ahm.codigo,ahm.horas,ahm.fechas,ahm.NombrePaciente,aes.nombre_especialidad,amd.nombre,amd.apellidos,ahm.estado,aes.codigo,amd.codigo,su.usu_codigo,SUBSTRING(ahm.horas, 7, 3) AS jornada FROM agm_horariomedico ahm,agm_medico amd,agm_especialidad aes,seg_datos_personales sdp,seg_usuario su WHERE amd.codigo = \"+CodigoMedico+\" AND ahm.codMedico_fk = amd.codigo AND amd.codEspe_fk = aes.codigo AND ahm.estado='0' AND sdp.numeroDocumento = amd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND ahm.fechas >= CURDATE() ORDER BY ahm.fechas,jornada,ahm.horas LIMIT 100 \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "int insert(CommunityInform record);", "public Collection<Community> getAllCommunities() {\n return communityStore.getAll();\n }", "public void Nouvelleligne() {\n int maxEleve = retourneMaxNumber() + 1;\n try {\n Connector1.statement.executeUpdate(\"Insert INTO eleve(id_el) VALUES (\" + maxEleve + \")\");\n Object[] val = {maxEleve, \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"};\n effaceTable(jTable2, mode);\n mode.addRow(val);\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n\n }\n\n }", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Override\n\tpublic String toSql() {\n\t\treturn null;\n\t}", "public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "private void remplirPriseEnCompte() {\r\n\t\tResultSet result = ctn.lectureData(\"SELECT * FROM PriseEnCompte\");\r\n\t\t// Remplissage tableau et combo Utilisateur\r\n\t\ttry {\r\n\t\t\twhile(result.next()) {\r\n\t\t\t\ttbPriseEnCompte.add(new StructPriseEnCompte(result.getLong(\"idPriseEnCompte\"), result.getString(\"Nom\"), result.getString(\"Description\")));\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\tctn.closeLectureData();\r\n\t\ttry {\r\n\t\t\tresult.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public void updateStudentCOOP(StudentCOOP toUpdate) {\n openConnection();\n try {\n updateStudent = conn.prepareStatement(\"update app.studentcoop set firstname=?, lastname=?, gender=?, address=?,\"\n + \" contact=?, email=?, workemail=?, notes=?, subject=?, semestercompleted=?, mark=?, wam=?\");\n \n updateStudent.setString(1, toUpdate.getZID());\n updateStudent.setString(1, toUpdate.getFName());\n updateStudent.setString(2, toUpdate.getLName());\n updateStudent.setString(3, toUpdate.getGEnder());\n updateStudent.setString(4, toUpdate.getADdress());\n updateStudent.setInt(5, toUpdate.getCOntact());\n updateStudent.setString(6, toUpdate.getEMail());\n updateStudent.setString(7, toUpdate.getWOrkemail());\n updateStudent.setString(8, toUpdate.getNOtes());\n updateStudent.setString(9, toUpdate.getSUbject());\n updateStudent.setInt(10, toUpdate.getSEmestercompleted());\n updateStudent.setDouble(11, toUpdate.getMArk());\n updateStudent.setDouble(12, toUpdate.getWAm());\n\n updateStudent.executeUpdate();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n }", "@SuppressWarnings(\"unchecked\")\n public void table_update(){\n int c;\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n con=DriverManager.getConnection(\"jdbc:mysql://localhost/footballdb\",\"root\",\"\");\n pst=con.prepareStatement(\"Select * from manager\");\n ResultSet Rs=pst.executeQuery();\n ResultSetMetaData rd=Rs.getMetaData();\n c=rd.getColumnCount();\n DefaultTableModel df=(DefaultTableModel)jTable1.getModel();\n df.setRowCount(0);\n while(Rs.next()){\n Vector v2=new Vector();\n for(int i=1;i<=c;i++){\n \n v2.add(Rs.getString(\"managerid\"));\n v2.add(Rs.getString(\"mname\"));\n v2.add(Rs.getString(\"teamid\"));\n \n }\n df.addRow(v2);\n \n }\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(manager.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(manager.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public List<TcTipoNomina> getNominasValidasBenefComodin() {\n String nominasValidasBenefComodin = super.getQueryDefinition(\"nominasValidasBenefComodin\");\n \n Map<String, Object> mapValues = new HashMap<String, Object>();\n \n SqlParameterSource namedParameters = new MapSqlParameterSource(mapValues);\n DataSource ds = super.getJdbcTemplate().getDataSource();\n NamedParameterJdbcTemplate namedTemplate = new NamedParameterJdbcTemplate(ds);\n \n super.getJdbcTemplate().setFetchSize(100);\n return namedTemplate.query(nominasValidasBenefComodin, namedParameters, new TcTipoNominasValidasBenefComodinAux());\n }", "public HashMap<Integer, HashMap<String, String>> getXMLMessageDataForCollabFromDB(ArrayList<Integer> interIDs) throws SQLException, NumberFormatException, XPathExpressionException, ParserConfigurationException, SAXException, IOException{\n\t HashMap<Integer, HashMap<String, String>> result = new HashMap();\n\t String query = null;\n\t HashMap<String, String> message;\n\t HashMap<String, ArrayList<String>> messageMap;\n\t \n//\t Select parentEventID,eventID,resourceName,roomName,networkID, buddyName, intemployeeID, containerID, contentType, contentSubType, resourceID, attributes\n\t \n\t String parentEventId;\n\t String eventId;\n\t String roomName;\n\t String networkId;\n\t String buddyName;\n\t String intEmployeeId;\n\t String employeeId = null;\n\t String containerId;\n\t String networkName;\n\t String employeeEmail = null;\n\t \n\t int contentTypeID;\n\t String contentType;\n\t int contentSubTypeID;\n\t String contentSubType = null;\n\t int resourceID;\n\t SQLXML attributes;\n\t int actionID;\n\t String actionType;\n\t ArrayList<String> resources;\n\t String resourceName;\n\t String resourceURL;\n\t String text;\n\t String messageAttributes = null;\n\t HashMap<String, String> msgAttributes = null;\n\t \n//\t stmt = getConnection(dbParams).createStatement();\n\t \n\t DOMSource domSource;\n\t Document document;\n\t XPath xpath = XPathFactory.newInstance().newXPath();\n\t \n\t String expression = \"//name[.='event.action']/following-sibling::*[1][name()='value']\";\n\t \n\t //loop through each interID\n\t for(int interID : interIDs){\n\t \n\t message = new HashMap();\n\t \n\t query = \"Select parentEventID,eventID,roomName,networkID, buddyName, intemployeeID, containerID, contentType, contentSubType, resourceID, attributes from Interactions where interID = \"+interID;\n//\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t parentEventId = rs.getString(1);\n\t eventId = rs.getString(2);\n\t roomName = rs.getString(3);\n\t networkId = rs.getString(4);\n\t buddyName = rs.getString(5);\n\t intEmployeeId = rs.getString(6);\n\t containerId = rs.getString(7);\n\t contentTypeID = rs.getInt(8);\n\t contentSubTypeID = rs.getInt(9);\n\t resourceID = rs.getInt(10);\n\t attributes = rs.getSQLXML(11);\n\t \n\t\t domSource = attributes.getSource(DOMSource.class);\n\t\t document = (Document) domSource.getNode();\n\t\t actionID = Integer.parseInt(xpath.evaluate(expression, document));\n\t\t \n\t\t //Get contentType\n\t\t contentType = getContentType(stmt, contentTypeID);\n\t\t //Get ContentSubType\n\t\t if(contentSubTypeID != -1){\n\t\t \t contentSubType = getContentSubType(stmt, contentSubTypeID);\t \n\t\t }\n\t\t \n\t\t //Get Action Type\n\t\t actionType = getActionType(actionID);\n\t\t //Get Resource Name and URL\n\t\t resources = getResourceNameAndURL(resourceID);\n\t\t resourceName = resources.get(0);\n\t\t resourceURL = resources.get(1);\n//\t\t Get Network Name\n\t\t networkName = getNetworkName(networkId);\n//\t\t Get EmployeeId\n\t\t if(intEmployeeId != null){\n\t\t \t employeeId = getEmployeeId(stmt, intEmployeeId);\n//\t\t\t Get Employee Email\n\t\t\t \n\t\t\t employeeEmail = getEmployeeEmail(stmt, intEmployeeId);\n\t\t\t if(employeeEmail == null){\n\t\t\t \t employeeEmail = buddyName;\n\t\t\t }\n\t\t }\n\t\t \n\n\t\t \n\t\t //Get Message Table data\n\t\t query = \"Select text from Messages where interID = \"+interID;\n//\t\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t text = rs.getString(1).trim().replaceAll(\"\\n\", \"\").replaceAll(\"\\r\", \"\");\n\t\t\t query = \"Select attributes from Messages where interID = \"+interID + \" and attributes is not null\";\n//\t\t\t System.out.println(query);\n\t\t rs = stmt.executeQuery(query);\n\t\t if(rs.next()){\n\t\t \t messageAttributes = rs.getString(1);\n\t\t }\n\t\t \t \n\t msgAttributes = new HashMap();\n\t //Get Attribute Names and Values\n\t\t if(messageAttributes != null){\n\t\t \t \n\t\t \t msgAttributes = getMessageAttributes(messageAttributes); \t \n\t\t }\n\t \n\t \n\t //Add all the values\n\t message.put(\"parentEventID\", parentEventId);\n\t message.put(\"eventId\", eventId);\n\t message.put(\"containerId\", containerId);\n\t message.put(\"roomName\", roomName);\n\t message.put(\"buddyName\", buddyName);\n\t message.put(\"networkID\", networkId);\n\t message.put(\"networkName\", networkName);\n\t message.put(\"employeeId\", employeeId);\n\t message.put(\"employeeEmail\", employeeEmail);\n\t message.put(\"intEmployeeID\", intEmployeeId);\n\t message.put(\"Content type\", contentType);\n\t if(contentSubTypeID != 0){\n\t \t message.put(\"Content sub-type\", contentSubType); \n\t }\n\t \n\t message.put(\"Action\", actionType);\n\t message.put(\"Resource name\", resourceName);\n\t message.put(\"Resource URL\", resourceURL);\n\t message.put(\"Text\", text);\n\t if(msgAttributes.size() > 0){\n\t \t message.putAll(msgAttributes); \n\t }\n\t \n//\t for(String attName : msgAttributes.keySet()){\n//\t message.put(attName, msgAttributes.get(attName));\n//\t }\n\n\t ArrayList<String> fileNames = getFileListsForCollab(interID);\n\t StringBuffer fileName = new StringBuffer();\n\t if(fileNames.size() > 0){\n\t \t for(int i = 0 ; i < fileNames.size(); i++){\n\t \t\t fileName.append(fileNames.get(i));\n\t \t\t if(i + 1 != fileNames.size()){\n\t \t\t\t fileName.append(\"#\");\n\t \t\t }\n\t \t }\n\t \t message.put(\"File\", fileName.toString());\n\t }\n\t \n\t result.put(interID, message);\n\t }\n\t \n\t return result;\n\t }", "public PageList<JSONObject> getCommunityOperatorList(String communityName, int pageNum, int pageSize, String realname,\n String phone, long id, String username) {\n Map<String, Object> param = new HashMap<>();\n if (StringUtils.isNotBlank(communityName)) {\n param.put(\"communityName\", \"%\" + communityName + \"%\");\n }\n if (StringUtils.isNotBlank(phone)) {\n param.put(\"phone\", \"%\" + phone + \"%\");\n }\n if (StringUtils.isNotBlank(realname)) {\n param.put(\"realname\", \"%\" + realname + \"%\");\n }\n if (id > 0) {\n param.put(\"id\", id);\n }\n\n if (StringUtils.isNotBlank(username)) {\n param.put(\"username\", \"%\" + username + \"%\");\n }\n PageBounds pageBounds = new PageBounds(pageNum, pageSize);\n // 查询操作员信息\n PageList<Map> pageList = extCommunityAdminMapper.pageByCondition(param, pageBounds);\n\n PageList<JSONObject> pl = new PageList<>(pageList.getPaginator());\n\n if (pageList != null && pageList.size() > 0) {\n for (Map map : pageList) {\n JSONObject object = new JSONObject();\n object.put(\"id\", map.get(\"id\"));\n object.put(\"name\", map.get(\"name\"));\n object.put(\"realname\", map.get(\"realname\"));\n object.put(\"phone\", map.get(\"phone\"));\n object.put(\"tel\", map.get(\"tel\"));\n object.put(\"email\", map.get(\"email\"));\n object.put(\"status\", map.get(\"status\"));\n object.put(\"create_time\", map.get(\"createTime\"));\n object.put(\"username\", map.get(\"username\"));\n object.put(\"last_login_time\", map.get(\"latestLoginTime\"));\n object.put(\"community_id\", map.get(\"communityId\"));\n object.put(\"position\", map.get(\"position\"));\n // 根据管理员ID查询部门\n List<SysDeptSim> deptList = extSysDeptMapper.getSysDeptListByAdminId((long) map.get(\"id\"));\n if (deptList != null && deptList.size() > 0) {\n object.put(\"dept_name\", deptList.get(0).getName());\n object.put(\"dept_id\", deptList.get(0).getId());\n } else {\n object.put(\"dept_name\", null);\n object.put(\"dept_id\", null);\n }\n // 根据管理员ID查询角色\n List<SysRole> roleList = extSysRoleMapper.getSysRoleListByAdminId((long) map.get(\"id\"), Constant.App.Id.COMMUNITY_ADMIN.value());\n if (roleList != null && roleList.size() > 0) {\n object.put(\"role_name\", roleList.get(0).getName());\n object.put(\"role_id\", roleList.get(0).getId());\n } else {\n object.put(\"role_name\", null);\n object.put(\"role_id\", null);\n }\n\n // 查询主会员信息\n //FIXME 性能极差,中哥说的.\n//\t\t\t\tMap<String, Object> condition = new HashMap<>();\n//\t\t\t\tcondition.put(\"communityId\", map.get(\"communityId\"));\n//\t\t\t\tList<Map> masterInfoList = extMasterInfoMapper.selectMasterInfoAndPassport(condition);\n//\t\t\t\tJSONArray masterInfoArray = new JSONArray();\n//\t\t\t\tif (masterInfoList != null && masterInfoList.size() > 0) {\n//\t\t\t\t\tfor (Map masterInfoMap : masterInfoList) {\n//\t\t\t\t\t\tJSONObject masterInfoObject = new JSONObject();\n//\t\t\t\t\t\tmasterInfoObject.put(\"id\", masterInfoMap.get(\"id\"));\n//\t\t\t\t\t\tmasterInfoObject.put(\"username\", masterInfoMap.get(\"username\"));\n//\t\t\t\t\t\tmasterInfoArray.add(masterInfoObject);\n//\t\t\t\t\t}\n//\t\t\t\t}\n\n//\t\t\t\tobject.put(\"master_info_list\", masterInfoArray);\n JSONArray masterInfoArray = new JSONArray();\n object.put(\"master_info_list\", masterInfoArray);\n\n pl.add(object);\n }\n }\n//\t\tjson.put(\"totalRow\", pageList.getPaginator().getTotal());\n//\t\tjson.put(\"pageNumber\", pageNum);\n//\t\tjson.put(\"lastPage\", pageList.getPaginator().isLast());\n//\t\tjson.put(\"firstPage\", pageList.getPaginator().isFirst());\n//\t\tjson.put(\"totalPage\", pageList.getPaginator().getPages());\n//\t\tjson.put(\"pageSize\", pageSize);\n//\t\tjson.put(\"list\", array);\n\n return pl;\n }", "@Override\n\tpublic List<JSONObject> getCommunities(JSONObject params) {\n\t\tList<JSONObject> communities = this.selectList(\"getCommunities\",params);\n\t\tif(communities.size()!=0){\n\t\t\tparams.put(\"communities\", communities);\n\t\t\tList<JSONObject> members = this.selectList(\"selectCommunityMembers\",params);\n\t\t\tMap<String,List<JSONObject>> memberMap = new HashMap();\n\t\t\tfor(JSONObject memberJSON:members){\n\t\t\t\tString communityId = memberJSON.getString(\"communityId\");\n\t\t\t\tList<JSONObject> memberList= memberMap.get(communityId);\n\t\t\t\tif(memberList==null){\n\t\t\t\t\tmemberList = new ArrayList();\n\t\t\t\t\tmemberMap.put(communityId,memberList);\n\t\t\t\t}\n\t\t\t\tmemberList.add(memberJSON);\n\t\t\t}\n\t\t\tfor(JSONObject communityJSON:communities){\n\t\t\t\tString communityId = communityJSON.getString(\"communityId\");\n\t\t\t\tcommunityJSON.put(\"members\", memberMap.get(communityId)==null?new ArrayList():memberMap.get(communityId));\n\t\t\t}\n\t\t}\n\t\treturn communities;\n\t}", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "@Override\n public List<Community> getCommunities(Context context, Item item) throws SQLException\n {\n List<Community> result = new ArrayList<Community>();\n List<Collection> collections = item.getCollections();\n for(Collection collection : collections)\n {\n List<Community> owningCommunities = collection.getCommunities();\n for (Community community : owningCommunities) {\n result.add(community);\n result.addAll(communityService.getAllParents(context, community));\n }\n }\n\n return result;\n }", "public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}", "private Map<Long, List<ObligacionCoactivoDTO>> consultaObligacionesComparendo() {\n logger.debug(\"CoactivoEJB::consultaObligacionesComparendo()\");\n Map<Long, List<ObligacionCoactivoDTO>> obligacionesDeudor = new HashMap<>();\n StringBuilder consulta = new StringBuilder();\n consulta.append(\"SELECT \");\n consulta.append(\"p.id_cartera, \");\n consulta.append(\"ca.saldo_capital, \");\n consulta.append(\"ca.saldo_interes, \");\n consulta.append(\"p.numero_obligacion, \");\n consulta.append(\"p.id_deudor, \");\n consulta.append(\"p.fecha_obligacion, \");\n consulta.append(\"p.id_funcionario, \");\n consulta.append(\"p.id_cargue_coactivo, \");\n consulta.append(\"p.id_precoactivo \");\n consulta.append(\"FROM precoactivo p \");\n consulta.append(\"JOIN cartera ca on ca.id_cartera = p.id_cartera \");\n consulta.append(\"WHERE p.id_estado_precoactivo = :estadoAprobado \");\n consulta.append(\"AND p.codigo_tipo_obligacion = :tipoComparendo \");\n\n Query query = em.createNativeQuery(consulta.toString());\n query.setParameter(\"estadoAprobado\", EnumEstadoPrecoactivo.AUTORIZADO.getValue());\n query.setParameter(\"tipoComparendo\", EnumTipoObligacion.COMPARENDO.getValue());\n @SuppressWarnings({ \"unchecked\" })\n List<Object[]> lsObligacionesComparendos = Utilidades.safeList(query.getResultList());\n\n for (Object[] obligacionComparendo : lsObligacionesComparendos) {\n int i = 0;\n BigInteger idCartera = (BigInteger) obligacionComparendo[i++];\n BigDecimal saldoCapital = (BigDecimal) obligacionComparendo[i++];\n BigDecimal saldoInteres = (BigDecimal) obligacionComparendo[i++];\n String numObligacion = (String) obligacionComparendo[i++];\n Long idDeudor = ((BigInteger) obligacionComparendo[i++]).longValue();\n Date fechaObligacion = (Date) obligacionComparendo[i++];\n Integer idFuncionario = (Integer) obligacionComparendo[i++];\n Long idCargue = ((BigInteger) obligacionComparendo[i++]).longValue();\n Long idPrecoactivo = ((BigInteger) obligacionComparendo[i++]).longValue();\n\n CoactivoDTO coactivo = new CoactivoDTO();\n coactivo.setCargueCoactivo(new CargueCoactivoDTO(idCargue));\n coactivo.setFuncionario(new FuncionarioDTO(idFuncionario));\n coactivo.setPersona(new PersonaDTO(idDeudor));\n // Arma obligacion que va a entrar a coactivo\n ObligacionCoactivoDTO obligacion = new ObligacionCoactivoDTO();\n obligacion.setCodigoTipoObligacion(EnumTipoObligacion.COMPARENDO.getValue());\n obligacion.setCartera(new CarteraDTO(idCartera.longValue()));\n obligacion.setNumeroObligacion(numObligacion);\n obligacion.setCoactivo(coactivo);\n obligacion.setFechaObligacion(fechaObligacion);\n obligacion.setValorObligacion(saldoCapital);\n obligacion.setValorInteresMoratorios(saldoInteres);\n obligacion.setIdPrecoativo(idPrecoactivo);\n if (!obligacionesDeudor.containsKey(idDeudor)) {\n obligacionesDeudor.put(idDeudor, new ArrayList<ObligacionCoactivoDTO>());\n }\n obligacionesDeudor.get(idDeudor).add(obligacion);\n }\n return obligacionesDeudor;\n }", "public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){\n\tString sql=\"select * from institucion where cod_institucion='\"+cod_solicitud+\"';\";\n\t\n\treturn db.queryForObject(sql, new InstitucionRowMapper());\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "public Socio getSocioInfoAtualizar() {\n\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem para pegar Socio\"); \n Statement stmt = null;\n\n\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM alterados\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio (rs.getString(\"nomeSocio\"),rs.getString(\"cpfSocio\"),rs.getString(\"rgSocio\"),\n rs.getString(\"matSocio\"),rs.getString(\"sexoSocio\"),rs.getString(\"diaNascSocio\"),\n rs.getString(\"mesNascSocio\"),rs.getString(\"anoNascSocio\"),rs.getString(\"enderecoSocio\"),\n rs.getString(\"numEndSocio\"),rs.getString(\"bairroSocio\"),rs.getString(\"cidadeSocio\"),\n rs.getString(\"estadoSocio\"),rs.getString(\"foneSocio\"),rs.getString(\"celSocio\"),\n rs.getString(\"emailSocio\"),rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"), rs.getInt(\"idSocioPK\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n\n \n Socio socioMax = new Socio();\n\n socioMax = listaSocio.get(0);\n\n //Se houver mais de um socio na lista vai procurar o de maior ID\n if(listaSocio.size()-1 > 0){\n\n for(int i=0; i<= listaSocio.size()-1; i++){\n\n Socio socio = new Socio();\n socio = listaSocio.get(i);\n\n if(socio.getIdAlterado()>= socioMax.getIdAlterado() ){\n socioMax = socio;\n }\n\n }\n\n }\n //Se não pega o primeiro\n else {\n socioMax = listaSocio.get(0);\n \n }\n\n System.out.println(socioMax.getIdAlterado());\n\n //Retorna o socio de maior ID, logo o ultimo inserido.\n return socioMax;\n }", "public abstract String toSQL();", "public void showData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\t\tString sql=\"select *from ComplaintsData\";\n\t\t\t\tps=con.prepareStatement(sql);\n\t\t\t\trs=ps.executeQuery();\n\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public ResultSet Cmus(Long comp_id) throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tSystem.out.println(comp_id);\r\n\t//String sql=\"select c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\";\r\n\t//System.out.println(sql);\r\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\");\r\n\treturn rs;\r\n}", "public M csmiNationNull(){if(this.get(\"csmiNationNot\")==null)this.put(\"csmiNationNot\", \"\");this.put(\"csmiNation\", null);return this;}", "@Override\n public DycpCompensacionDTO encontrar(String numControl) throws SIATException {\n try {\n String query =\n \" SELECT C.*, S.*, TT.*, SI.*, PER.*, CON.*, IMP.*, CON.DESCRIPCION, PER.DESCRIPCION as DESCRIPCION_PERIODO, IMP.DESCRIPCION as DESCRIPCION_IMPUESTO \"\n + \"FROM DYCP_COMPENSACION C, DYCP_SERVICIO S, DYCC_TIPOTRAMITE TT, DYCT_SALDOICEP SI, \"\n + \"DYCC_PERIODO PER, DYCC_CONCEPTO CON, DYCC_IMPUESTO IMP \"\n + \"WHERE C.NUMCONTROL = S.NUMCONTROL \"\n + \"AND TT.IDTIPOTRAMITE = S.IDTIPOTRAMITE AND SI.IDSALDOICEP = C.IDSALDOICEPORIGEN \"\n + \"AND PER.IDPERIODO = SI.IDPERIODO AND CON.IDCONCEPTO = SI.IDCONCEPTO AND IMP.IDIMPUESTO = CON.IDIMPUESTO \" \n + \"AND C.NUMCONTROL = ? ORDER BY C.IDSALDOICEPDESTINO DESC\";\n TipoTramiteMapper mapperTipoTramite = new TipoTramiteMapper();\n DycpServicioMapper mapperServicio = new DycpServicioMapper();\n mapperServicio.setMapperTipoTramite(mapperTipoTramite);\n CompensacionMapper mapper = new CompensacionMapper();\n DyctSaldoIcepMapper mapperSaldoIcep = new DyctSaldoIcepMapper();\n PeriodoMapper mapperPeriodo = new PeriodoMapper();\n ConceptoMapper mapperConcepto = new ConceptoMapper();\n ImpuestoMapper mapperImpuesto = new ImpuestoMapper();\n mapperSaldoIcep.setMapperPeriodo(mapperPeriodo);\n mapperConcepto.setMapperImpuesto(mapperImpuesto);\n mapperSaldoIcep.setMapperConcepto(mapperConcepto);\n mapper.setMapperServicio(mapperServicio);\n mapper.setMapperSaldoIcepOrigen(mapperSaldoIcep);\n return jdbcTemplateDYC.queryForObject(query, new Object[] { numControl }, mapper);\n } catch (DataAccessException dae) {\n log.error(ConstantesDyC1.TEXTO_1_ERROR_DAO + dae.getMessage() + ConstantesDyC1.TEXTO_2_ERROR_DAO +\n SQLOracleDyC.CONSULTA_DYCP_COMPENSACION + ConstantesDyC1.TEXTO_3_ERROR_DAO + \"numcontrol\" + numControl +\n ConstantesDyC1.TEXTO_8_CAUSAS + dae.getCause());\n throw new SIATException(dae);\n }\n }", "public donorList() {\n initComponents();\n try {\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n Connection connection = DriverManager.getConnection( \"jdbc:sqlserver://localhost:1433;user=sa;password=123456;\" +\n \"databaseName=BloodBankMS;\");\n \n \n Statement statement = connection.createStatement(); \n \n ResultSet rs = statement.executeQuery(\"SELECT DonorID , DonorName ,DonorGender ,DonorAddress ,DonorBloodGroup , DonorArea , DonorPhoneNumber, DonorAge, DonorWeight from DONOR\"); \n ResultSetMetaData rsmetadata = rs.getMetaData(); \n int columns = rsmetadata.getColumnCount(); \n DefaultTableModel dtm = new DefaultTableModel(); \n Vector columns_name=new Vector();\n Vector data_rows=new Vector();\n for(int i= 1; i < columns+1; i++) \n { \n columns_name.addElement (rsmetadata.getColumnLabel(i)); \n } \n \n dtm.setColumnIdentifiers(columns_name);\n while (rs.next()) \n { \n data_rows = new Vector(); \n for (int j = 1; j <columns+1; j++) \n { \n data_rows.addElement(rs.getString(j)) ;\n } \n dtm.addRow(data_rows); \n \n } \n donorTable.setModel(dtm); \n \n } catch (Exception e) { \n e.printStackTrace(); \n }\n }", "public Community()\r\n {\r\n //\r\n }", "protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}", "private static String getTableName(String baseName, boolean isCommunity, boolean isCollection, boolean isDistinct,\n boolean isMap) {\n // isDistinct is meaningless in relation to isCommunity and isCollection\n // so we bounce that back first, ignoring other arguments\n if (isDistinct) {\n return baseName + \"_dis\";\n }\n\n // isCommunity and isCollection are mutually exclusive\n if (isCommunity) {\n baseName = baseName + \"_com\";\n } else if (isCollection) {\n baseName = baseName + \"_col\";\n }\n\n // isMap is additive to isCommunity and isCollection\n if (isMap) {\n baseName = baseName + \"_dmap\";\n }\n\n return baseName;\n }", "@Override\n\tpublic CommunicationInfo getCommuInfo(HashMap<String, String> map) {\n\t\treturn null;\n\t}", "public void populateTable() {\n DefaultTableModel dtm = (DefaultTableModel)tblSalesPersonCommision.getModel();\n dtm.setRowCount(0);\n // for(OrderList orderlist:salesperson.getOrderlistcatalog().getSalesPersonOrder()){\n // for(Order order:salesperson.getOrderListSalesPerson().getOrderList()){ \n // for(OrderList orderlist:salesperson.getOrderlistcatalog().getOrCatalog()){\n // for(SalesPerson salesperson :business.getEmployeedirectory().getSalesPersonList()){\n \n for(OrderList orderlist:salesperson.getOrderlistcatalog().getOrCatalog()){\n Object [] row = new Object[4];\n // row[0]=.getCustomer().getCustomerId();\n // row[1]= market.getCustomer().getCustomerName();\n row[0]=orderlist;\n row[1]=orderlist.getOrdertotalprice();\n row[2]=orderlist.getSalespersoncomission();\n row[3]=orderlist.getTotalorderlistquantity();\n //3 tcomission = tcomission + orderlist.getSalespersoncomission();\n //3 totalquantity = totalquantity + orderlist.getTotalorderlistquantity();\n //3 totalorderprice = totalorderprice + orderlist.getOrdertotalprice();\n \n // row[0]=order;\n // row[1]=order.getAmountprice();\n \n dtm.addRow(row);\n // }\n // }\n } \n //2 salesperson.getOrderlistcatalog().setTotalquantitypersalesperson(totalquantity);\n //2 salesperson.getOrderlistcatalog().setTotalcommision(tcomission);\n //2 salesperson.getOrderlistcatalog().setTotalorderlistcsatalogprice(totalorderprice);\n}", "public boolean vérification_collab_simp(String username) {\ntry {\n\t\t\t\n\t\t\tjdbc.setConnection();\n\t\t\tStatement stm=jdbc.setConnection().createStatement();\n\t\t\tString strcheck=\"select collaborateur_simple.id from collaborateur_simple,utilisateur where collaborateur_simple.id=utilisateur.id and utilisateur.username=\"+'\"'+username+'\"';\n\t\t\t\n\t\t\t\t\n\t\t\tResultSet res = stm.executeQuery(strcheck);\n\t\t\t\n\t\t\t\n\t\t\twhile (res.next()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tjdbc.setConnection().close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "public synchronized String getSenhaPromocional(MensagemPromocional msgPromo,String msisdn, Connection con) throws SQLException\n\t{\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet \t\t rs = null;\n\t\tString \t\t\t senha = null;\n\t\ttry\n\t\t{\n\t\t\tpstmt = con.prepareStatement(sqlSenha);\n\t\t\tpstmt.setInt(1,msgPromo.getCodServico());\n\t\t\tpstmt.setInt(2,msgPromo.getCodConteudo());\n\t\t\tpstmt.setInt(3,msgPromo.getCodPromocao());\n\t\t\trs = pstmt.executeQuery();\n\t\t\tif (rs.next())\n\t\t\t{\n\t\t\t\t// Caso a pesquisa de senha retornou que existe uma proxima disponive\n\t\t\t\t// entao atualiza o registro indicando qual o assinante que requisitou\n\t\t\t\t// antes de enviar a senha por sms\n\t\t\t\tsenha = rs.getString(\"CO_SENHA\");\n\t\t\t\t// Marca agora a utilizacao da senha pelo assinante\n\t\t\t\tPreparedStatement pstmtUpd = con.prepareStatement(sqlUpdSenha);\n\t\t\t\tpstmtUpd.setString\t\t(1,msisdn);\n\t\t\t\tpstmtUpd.setTimestamp\t(2,new Timestamp(Calendar.getInstance().getTimeInMillis()));\n\t\t\t\tpstmtUpd.setInt \t\t(3,msgPromo.getCodServico());\n\t\t\t\tpstmtUpd.setInt \t\t(4,msgPromo.getCodConteudo());\n\t\t\t\tpstmtUpd.setInt\t \t\t(5,msgPromo.getCodPromocao());\n\t\t\t\tpstmtUpd.setString\t\t(6,senha);\n\t\t\t\t\n\t\t\t\tpstmtUpd.executeUpdate();\n\t\t\t\tpstmtUpd.close();\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\tthrow e;\n\t\t}\n\t\tfinally{\n\t\t\ttry{// Fecha os objetos de consulta\n\t\t\t\tif (rs != null) rs.close();\n\t\t\t\tif (pstmt != null) pstmt.close();\n\t\t\t}catch(Exception e){};\n\t\t}\n\n\t\treturn senha;\n\t}", "@Override\r\n\tpublic void init(Map<String, Object> values) {\n\t\tthis.setType(\"community_name\", FieldType.TABLE_SELECTOR);\r\n\t\tthis.setType(\"did\", FieldType.TABLE_SELECTOR);\r\n\t\tthis.setType(\"contract_id\", FieldType.TABLE_SELECTOR);\r\n\r\n\t\tTableSelector selector_communities = UIHandler.selector(args -> {\r\n\t\t\tJTable t = (JTable) args[0];\r\n\t\t\tt.setModel(new CommunitiesTableModelImpl());\r\n\t\t\tRuntimeStore.runUI().refresh(new CommunityRequestImpl().query(), t.getModel());;\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tselector_communities.comfirm(args -> {\r\n\t\t\tUIHandler.handle_table_selector(\"community_name\", \"name\", args);\r\n\t\t\treturn null;\r\n\t\t}, \"0\");\r\n\r\n\t\tthis.setValue(\"community_name\", selector_communities);\r\n\t}", "public String getNomTable();", "java.lang.String getSqlCode();", "public boolean asignaNumeroFac(java.sql.Connection conIns, int intCodEmp,int intCodLoc, int intCodTipDocFacEle, int intCodDoc, int intCodCot) \r\n {\r\n boolean blnRes = false;\r\n java.sql.Statement stmLoc, stmLocIns;\r\n java.sql.ResultSet rstLoc;\r\n String strSql = \"\";\r\n String strSqlIns = \"\";\r\n int intNumDoc = 0;\r\n int intNumDocGuia = 0;\r\n try \r\n {\r\n if (conIns != null){\r\n stmLoc = conIns.createStatement();\r\n strSql = \"SELECT CASE WHEN (ne_ultDoc+1) IS NULL THEN 1 ELSE (ne_ultDoc+1) END AS ultnum \"\r\n + \" FROM tbm_cabTipDoc WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n// System.out.println(\"numero \" + strSql);\r\n rstLoc = stmLoc.executeQuery(strSql);\r\n if (rstLoc.next()) {\r\n intNumDoc = rstLoc.getInt(\"ultnum\");\r\n }\r\n rstLoc.close();\r\n rstLoc = null;\r\n stmLoc.close();\r\n stmLoc = null;\r\n \r\n \r\n strSqlIns += \" UPDATE tbm_cabTipDoc SET ne_ultDoc=\" + intNumDoc + \" WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n strSqlIns += \";UPDATE tbm_cabmovinv SET ne_numdoc=\" +intNumDoc+\", ne_numgui=\"+intNumDocGuia+\", st_reg='A' , st_imp='S' \"\r\n + \" WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_doc=\" + intCodDoc + \" and st_reg not in ('I','E') AND ne_numcot=\" + intCodCot;\r\n strSqlIns += \" ; UPDATE tbm_cabdia SET tx_numdia='\" + intNumDoc + \"' WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_dia=\" + intCodDoc + \" and st_reg not in ('I','E') \";\r\n System.out.println(\"asignaNumeroFac \"+strSqlIns);\r\n stmLocIns = conIns.createStatement();\r\n stmLocIns.executeUpdate(strSqlIns);\r\n stmLocIns.close();\r\n stmLocIns = null;\r\n intNumFacElec=intNumDoc;\r\n blnRes = true;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "public void setBestCommunity(int bestCommunity) {\n this.bestCommunity = bestCommunity;\n }", "int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;", "public void setCommunityName(String communityName) {\n this.communityName = communityName == null ? null : communityName.trim();\n }", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileProfileNameColumn()\n {\n return newMobileProfileNameColumn(\"Mobile Profile Name\");\n }", "@Select(\"select datetime,currentConfirmedCount,confirmedCount,suspectedCount,curedCount,deadCount from covid19_1 where datetime = #{datetime}\")\n List<Map<String, Object>> getNationalData(String datetime);", "public void generarDocumentosCoactivosAnteriores() {\n\n try {\n\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"Set Language 'Español'\");\n\n Query update = em.createNativeQuery(sql.toString());\n update.executeUpdate();\n\n // Consulta de coactivos\n sql = new StringBuilder();\n sql.append(\n \"SELECT c.id_proceso, c.id_coactivo, p.fecha_inicio, c.valor_total_obligaciones, p.numero_proceso, tp.id_trazabilidad_proceso , tp2.id_trazabilidad_proceso as traza2 \");\n sql.append(\"FROM coactivo c \");\n sql.append(\"JOIN proceso p ON p.id_proceso = c.id_proceso \");\n sql.append(\"JOIN trazabilidad_proceso tp ON p.id_proceso = tp.id_proceso \");\n sql.append(\"AND tp.id_estado_proceso = 22 \");\n sql.append(\"JOIN trazabilidad_proceso tp2 ON p.id_proceso = tp2.id_proceso \");\n sql.append(\"AND tp2.id_estado_proceso = 24 \");\n sql.append(\"WHERE NOT EXISTS (SELECT 1 FROM trazabilidad_proceso tp \");\n sql.append(\n \"WHERE EXISTS (select 1 from documento_proceso dp where dp.id_trazabilidad_proceso = tp.id_trazabilidad_proceso) \");\n sql.append(\"AND tp.id_proceso = p.id_proceso) \");\n sql.append(\"AND CAST(p.numero_proceso AS bigint) <= 6179 \");\n sql.append(\"ORDER BY c.id_coactivo\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n @SuppressWarnings(\"unchecked\")\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n for (Object[] filaCoactivo : listaResultados) {\n iLCoactivo.generarDocumentosAnteriores(filaCoactivo);\n }\n } catch (Exception e) {\n logger.error(\"Error en generación de documento de apertura de coactivo\", e);\n\n }\n }", "public PromocionTableModel() {\n \n //Establecemos la sentencia SQL que vamos a ejecutar\n super(\"SELECT ID_PROMOCION , NOMBRE, DESCUENTO FROM PROMOCION\");\n \n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Empresa\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tEmpresa entity = new Empresa();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,EmpresaDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Seguridad.Empresa.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseEmpresa(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "@Override\r\n\tpublic List<Famille> listCompetences() {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\t//on crée une requête\r\n \t\tQuery req=session.createQuery(\"select C from FamilleComp C\");\r\n \t\tList<Famille> famillecomp=req.list();\r\n session.getTransaction().commit();\r\n \t\treturn famillecomp;\r\n\t\t\r\n\t}", "public static void create_join_CP(String databaseCT,String rchain,Connection con2) throws SQLException{\n\t\t\n\t\tString table_name = databaseCT+\"_CT.\"+rchain.substring(0,rchain.length()-1) + \"_CT`\";\n\t\t//System.out.println(databaseCT+\"_CT\");\n\t\tString newTable_name = rchain.substring(0,rchain.length()-1) + \"_CT_KLD`\";\n\t\t//System.out.println(table_name);\n\t\t// table_name is input contingency table, newTable_name will be output KLD table\n\t\tStatement st=con2.createStatement();\n ResultSet rst=st.executeQuery(\"show columns from \"+table_name+\" ;\");\n // System.out.println(\"show columns from \"+table_name+\" ;\");\n while(rst.next()){\n \tcolumn_names.add(\"`\"+rst.getString(1)+\"`\");\n \tcolumn_names_CP.add(\"`\"+rst.getString(1)+\"_CP`\");\n \t// add conditional probability column for each attribute column\n }\n \n \n st.execute(\"drop table if exists \" + newTable_name);\n String query1=\"create table \" + newTable_name + \" ( id int(11) NOT NULL AUTO_INCREMENT, MULT BIGINT(21), \" ;\n // make query string for creating KLD table\n // auto index each row in table\n for(int i=1; i<column_names.size(); i++){\n \tquery1 = query1 + column_names.get(i) + \" VARCHAR(45),\" + column_names_CP.get(i) + \" float(7,6) ,\";\n // add column headers\t\t\n }\n query1 = query1 + \" JP float, JP_DB float, KLD float default 0, PRIMARY KEY (id) ) engine=INNODB;\";\n //System.out.println(query1);\n st.execute(query1);\n \n // copy the values from the mult table. CP values are null at this point.\n String query2 = \"insert into \" + newTable_name + \" ( MULT\";\n for(int i=1; i<column_names.size(); i++){\n \tquery2 = query2 + \", \" + column_names.get(i);\n }\n query2 = query2 + \" ) select * from \"+table_name+\"; \"; // Nov 28 @ zqian, do not use \"*\" in terms of query optimization\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t// Nov 28 @ zqian, adding covering index to CT table for query string \n System.out.println(query2);\n st.execute(query2);\n \n System.out.println(\"\\n insert into KLD table conditional probability for each node\"); // zqian\n //insert CP value to attributes\n insert_CP_Values(rchain, newTable_name,con2);\n System.out.println(\"\\n compute Bayes net joint probabilities \"); //zqian\n //compute Bayes net joint probabilities \n cal_KLD(newTable_name,con2);\n \n \n st.close();\n\t}", "@SuppressWarnings(\"unchecked\")\n \n \n private void table(){\n \n int c;\n \n try{\n \n Connection con1 = ConnectionProvider.getConn();\n Statement stm = con1.createStatement();\n ResultSet rst = stm.executeQuery(\"select * from sales\");\n ResultSetMetaData rstm = rst.getMetaData();\n \n c = rstm.getColumnCount();\n \n DefaultTableModel dtm2 = (DefaultTableModel)jTable1.getModel();\n dtm2.setRowCount(0);\n \n while (rst.next()){\n \n Vector vec = new Vector();\n \n for(int a =1 ; a<=c; a++)\n {\n vec.add(rst.getString(\"CustomerName\"));\n vec.add(rst.getString(\"OrderNo\"));\n vec.add(rst.getString(\"TypeOfService\"));\n vec.add(rst.getString(\"OrderType\"));\n vec.add(rst.getString(\"Descript\"));\n vec.add(rst.getString(\"OrderConfirmation\"));\n vec.add(rst.getString(\"OrderHandledBy\"));\n vec.add(rst.getString(\"OrderDate\"));\n vec.add(rst.getString(\"WarrantyExpireDate\"));\n vec.add(rst.getString(\"FullAmount\"));\n vec.add(rst.getString(\"AmountPaid\"));\n vec.add(rst.getString(\"Balance\"));\n }\n \n dtm2.addRow(vec);\n }\n \n }\n catch(Exception e)\n {\n \n }\n \n \n }", "@Override\r\n public Integer oneObligorClassCount(OneObligorSC oneObligorSC) throws DAOException\r\n {\r\n\tDAOHelper.fixGridMaps(oneObligorSC, getSqlMap(), \"oneObligorMapper.oneObligorClassMap\");\r\n\treturn (Integer) getSqlMap().queryForObject(\"oneObligorMapper.oneObligorClassCount\", oneObligorSC);\r\n }", "public void infoCustomer() { ////AGGIUSTA\n\n CriteriaBuilder cb = em.getCriteriaBuilder();\n\n CriteriaQuery<Customer> cq = cb.createQuery(Customer.class);\n\n Root<Customer> cust = cq.from(Customer.class);\n\n cq.multiselect(cust.get(\"lastName\"), cb.count(cust).alias(\"numero di customer\")).groupBy(cust.get(\"lastName\"));\n\n System.out.print(\"lastName\");\n System.out.println(\"\\t Count\");\n\n /* List<Object[]> list = em.createQuery(cq).getResultList(); \n \nfor(Object[] object : list){ \n System.out.println(object[0] + \" \" + object[1]); \n \n} \n\n em.getTransaction().commit();\n em.close();\n emf.close();\n */\n }", "public HashMap<Integer, HashMap<String, String>> getMessageDataForCollabForText(ArrayList<Integer> interIDs){\n\t HashMap<Integer, HashMap<String, String>> result = new HashMap();\n\t String query = null;\n//\t stmt = getConnection(dbParams).createStatement();\n\t HashMap<String, String> message;\n\t HashMap<String, ArrayList<String>> messageMap;\n\t \n//\t stmt = getConnection(dbParams).createStatement();\n\t int contentTypeID;\n\t String contentType;\n\t int contentSubTypeID;\n\t String contentSubType = null;\n\t int resourceID;\n\t SQLXML attributes;\n\t int actionID;\n\t String actionType;\n\t ArrayList<String> resources;\n\t String resourceName;\n\t String resourceURL;\n\t String text = null;\n\t String messageAttributes = null;\n\t HashMap<String, String> msgAttributes = null;\n\t try{\n\t\t DOMSource domSource;\n\t\t Document document;\n\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n\t\t \n\t\t String expression = \"//name[.='event.action']/following-sibling::*[1][name()='value']\";\n\t \t//loop through each interID\n\t \tfor(int interID : interIDs){\n\n\t \n\t message = new HashMap();\n\t \n\t query = \"Select contentType, contentSubType, resourceID, attributes from Interactions where interID = \"+interID;\n\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t \n\t contentTypeID = rs.getInt(1);\n\t contentSubTypeID = rs.getInt(2);\n\t resourceID = rs.getInt(3);\n\t attributes = rs.getSQLXML(4);\n\t \n\t domSource = attributes.getSource(DOMSource.class);\n\t document = (Document) domSource.getNode();\n\t actionID = Integer.parseInt(xpath.evaluate(expression, document));\n\t \n\t //Get contentType\n\t contentType = getContentType(stmt, contentTypeID);\n\t //Get ContentSubType\n\t if(contentSubTypeID != -1){\n\t \t contentSubType = getContentSubType(stmt, contentSubTypeID);\n\t }\n\t \n\t //Get Action Type\n\t actionType = getActionType(actionID);\n\t //Get Resource Name and URL\n\t resources = getResourceNameAndURL(resourceID);\n\t resourceName = resources.get(0);\n\t resourceURL = resources.get(1);\n\t \n\t //Get Message Table data\n\t query = \"Select text from Messages where interID = \"+interID + \" and text IS NOT NULL\";\n\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t if(rs.getNString(1) != null){\n\t \ttext = rs.getString(1).replaceAll(\"/n\", \" \").replaceAll(\"/r\", \"\");\n\t }\n\t \n\t query = \"select attributes from messages where interId =\"+ interID + \" and attributes IS NOT NULL\";\n\t System.out.println(query);\n\t \trs = stmt.executeQuery(query);\n\t \tif(rs.next()){\n\t \t\tmessageAttributes = rs.getString(1);\t\n\t \t}\n\t \n\t \n\t //Get Attribute Names and Values\n\t \tmsgAttributes = new HashMap();\n\t \tif(messageAttributes != null){\n\t \t\tmsgAttributes = getMessageAttributes(messageAttributes);\n\t \t}\n\t \t\t\n\t ArrayList<String> fileNames = getFileListsForCollab(interID);\n\t //Add all the values\n\t message.put(\"contentType:\", contentType);\n\t \t if(contentSubTypeID != -1){\n\t \t \tmessage.put(\"contentSubType:\", contentSubType); \n\t\t }\n\t \n\t message.put(\"action:\", actionType.toLowerCase());\n\t message.put(\"resourceName:\", resourceName.toLowerCase());\n\t message.put(\"Resource URL:\", resourceURL.toLowerCase());\n\t if(text != null){\n\t \tmessage.put(\"Text Content:\", text.replaceAll(\"\\n\", \"\").replaceAll(\"\\r\", \"\").toLowerCase());\n\t }\n\t \n\t if(msgAttributes.size() > 0){\n\t\t for(String attName : msgAttributes.keySet()){\n\t\t message.put(attName+\":\", msgAttributes.get(attName).toLowerCase());\n\t\t }\t \t\n\t }\n\n\t StringBuffer fileName = new StringBuffer();\n\t if(fileNames.size() > 0){\n\t \t for(int i = 0 ; i < fileNames.size(); i++){\n\t \t \tfileName.append(fileNames.get(i));\n\t \t \tif(i + 1 != fileNames.size()){\n\t \t \t\tfileName.append(\"#\");\n\t \t \t}\n\t \t }\n\t \t message.put(\"File:\", fileName.toString().toLowerCase());\n\t }\n\t\n\t result.put(interID, message);\n\t \n\t \t}\n\t } catch(Exception e){\n\t \tSystem.err.println(e.getMessage());\n\t }\n\t return result;\n\t }", "public int siguienteRegistro(int codigoCiclo, int codigoPlan) {\n/* 454 */ int numero = 1;\n/* 455 */ String s = \"select max(codigo_meta) from cal_plan_metas\";\n/* 456 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* */ try {\n/* 458 */ boolean rta = this.dat.parseSql(s);\n/* 459 */ if (!rta) return 0; \n/* 460 */ this.rs = this.dat.getResultSet();\n/* 461 */ if (this.rs.next()) {\n/* 462 */ s = this.rs.getString(1);\n/* 463 */ if (!this.rs.wasNull()) {\n/* 464 */ numero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 467 */ if (numero < 10000) numero = 10000; \n/* 468 */ return numero;\n/* */ }\n/* 470 */ catch (Exception e) {\n/* 471 */ e.printStackTrace();\n/* 472 */ Utilidades.writeError(\"CalPlanMetasFactory:siguienteRegistro\", e);\n/* */ \n/* 474 */ return 0;\n/* */ } \n/* */ }", "int updateByPrimaryKey(CommunityInform record);", "private HashMap getTableRow(int rowNum)\r\n {\r\n HashMap hashRow = new HashMap() ;\r\n int colTotal = codeTableModel.getColumnCount()-1;\r\n for (int colCount=0; colCount <= codeTableModel.getColumnCount()-1; colCount++)\r\n { // for each column u will build a hashmap\r\n// if (colCount == 1 )\r\n// {//sponsor name is not in update sp.\r\n// continue;\r\n// }\r\n TableColumn column = codeTableColumnModel.getColumn(colCount) ;\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n Object val = null ;\r\n // the whole idea of setting up the columnBean as the identifier is that u get to know\r\n // all abt the structure details of the column, so u can create appropriate type of object\r\n // and stick it in to the hashMap\r\n if (columnBean.getDataType().equals(\"NUMBER\"))\r\n {\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount) == null\r\n ||(codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).equals(\"\")))\r\n {\r\n val = null ; //new Integer(0)\r\n }\r\n else\r\n {\r\n val = codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount);\r\n if (val instanceof ComboBoxBean)\r\n {\r\n if (((ComboBoxBean)val).getCode().equals(\"\"))// user deleted selection\r\n val = null;\r\n else\r\n val = new Integer(((ComboBoxBean)val).getCode().toString());\r\n }\r\n else\r\n {\r\n val = new Integer(val.toString()) ;\r\n }\r\n }\r\n }\r\n\r\n if (columnBean.getDataType().equals(\"VARCHAR2\"))\r\n {\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount)==null)\r\n {\r\n val = \"\";\r\n }\r\n else\r\n {\r\n val = codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).toString() ;\r\n }\r\n }\r\n\r\n if (columnBean.getDataType().equals(\"DATE\"))\r\n {\r\n //coeusdev-568 start\r\n //Date today = new Date();\r\n //coeusdev-568 end\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum), codeTableModel.getColumnCount()-1).equals(\"I\")) // if itz an insert\r\n { //AV_ & AW_ will be the same for insert\r\n //coeusdev-568 start\r\n //val = new java.sql.Timestamp(today.getTime());\r\n val = CoeusUtils.getDBTimeStamp();\r\n //coeusdev-568 end\r\n }\r\n else\r\n { // for update\r\n // there will be only two dates in any table one AV_UPDATE_TIMESTAMP and the other one AW_UPDATE_TIMESTAMP\r\n if (columnBean.getQualifier().equals(\"VALUE\"))\r\n { //AV_...\r\n //coeusdev-568 start\r\n //val = new java.sql.Timestamp(today.getTime());\r\n val = CoeusUtils.getDBTimeStamp();\r\n //coeusdev-568 end\r\n }\r\n else\r\n { //AW_...\r\n val = java.sql.Timestamp.valueOf(codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).toString()) ;\r\n }\r\n }\r\n }\r\n\r\n hashRow.put(columnBean.getColIdentifier(), val) ;\r\n } //end for\r\n return hashRow;\r\n }", "@Override public int conocerMonto(){\n\treturn 120;\n }", "public ScGridColumn<AcUpuTagSummaryVo> newOriginCountryCodeColumn()\n {\n return newOriginCountryCodeColumn(\"Origin Country Code\");\n }", "public Antecedentes getData(long dni) {\n\n\t\t\tMapSqlParameterSource params = new MapSqlParameterSource();\n\t\t\tparams.addValue(\"dni\", dni);\n\t\t\t\n\n\t\t \n\t\t\ttry {\n\t\t\t\treturn jdbc.queryForObject(\"select * from antecedentes where dni = :dni \", params, new RowMapper<Antecedentes>() {\n\t\t\n\t\t\t\t\t\t\tpublic Antecedentes mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tAntecedentes antecedentes = new Antecedentes();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tantecedentes.setDni(rs.getBigDecimal(\"dni\"));\n\t\t\t\t\t\t\t\tantecedentes.setBecario(rs.getString(\"becario\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_doctoral(rs.getString(\"tesista_doctoral\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_maestria(rs.getString(\"tesista_maestria\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_grado(rs.getString(\"tesista_grado\"));\n\t\t\t\t\t\t\t\tantecedentes.setInvestigadores(rs.getString(\"investigadores\"));\n\t\t\t\t\t\t\t\tantecedentes.setPasantes_id_y_facademica(rs.getString(\"pasantes_id_y_facademica\"));\n\t\t\t\t\t\t\t\tantecedentes.setPersonal_apoyo_id(rs.getString(\"personal_apoyo_id\"));\n\t\t\t\t\t\t\t\tantecedentes.setFinanciamiento_cientifico_tecnologico(rs.getString(\"financiamiento_cientifico_tecnologico\"));\n\t\t\t\t\t\t\t\tantecedentes.setActividades_divulgacion(rs.getString(\"actividades_divulgacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setExtension_rural_industrial(rs.getString(\"extension_rural_industrial\"));\n\t\t\t\t\t\t\t\tantecedentes.setPrestacion_servicios_sociales(rs.getString(\"prestacion_servicios_sociales\"));\n\t\t\t\t\t\t\t\tantecedentes.setProduccion_divulgacion_artistica(rs.getString(\"produccion_divulgacion_artistica\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtro_tipo_actividad(rs.getString(\"otro_tipo_actividad\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_personal(rs.getString(\"evaluacion_personal\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_programas(rs.getString(\"evaluacion_programas\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_institucional(rs.getString(\"evaluacion_institucional\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtro_tipo_evaluacion(rs.getString(\"otro_tipo_evaluacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setBecas(rs.getString(\"becas\"));\n\t\t\t\t\t\t\t\tantecedentes.setEstancias_pasantias(rs.getString(\"estancias_pasantias\"));\n\t\t\t\t\t\t\t\tantecedentes.setOperacion_mantenimiento(rs.getString(\"operacion_mantenimiento\"));\n\t\t\t\t\t\t\t\tantecedentes.setProduccion(rs.getString(\"produccion\"));\n\t\t\t\t\t\t\t\tantecedentes.setNormalizacion(rs.getString(\"normalizacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setEjercicio_profesion_ambito_no_academico(rs.getString(\"ejercicio_profesion_ambito_no_academico\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtra_actividad_cyt(rs.getString(\"otra_actividad_cyt\"));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn antecedentes;\n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t});\n\t\t\t}\n\t\t\t catch(EmptyResultDataAccessException erdae) {\n\t\t\t\t System.out.println(\"en antecedentesDAO devuelve null\");\n\t\t\t return null;\n\t\t\t }\n\t\t}", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public int getC_BPartner_ID();" ]
[ "0.5777152", "0.5500102", "0.5358187", "0.521594", "0.50739086", "0.5072178", "0.5019143", "0.500111", "0.49585524", "0.48894694", "0.48870295", "0.48449597", "0.48236066", "0.47933352", "0.47873905", "0.4781552", "0.47791535", "0.476848", "0.4763644", "0.47433928", "0.47407869", "0.47292313", "0.47133154", "0.4712163", "0.46978304", "0.4681253", "0.46775892", "0.46764576", "0.46654582", "0.46471784", "0.46326816", "0.4629564", "0.46224082", "0.46203905", "0.46158797", "0.4611879", "0.4608937", "0.4607256", "0.45918697", "0.45813462", "0.45778066", "0.45760015", "0.45715106", "0.45689696", "0.45668066", "0.45628962", "0.45607197", "0.45400038", "0.45398983", "0.45397002", "0.45363313", "0.45323732", "0.45295903", "0.45272243", "0.45246178", "0.45227545", "0.4510907", "0.45108113", "0.4510085", "0.45084336", "0.4505565", "0.45040455", "0.4501424", "0.44965267", "0.44849315", "0.44847745", "0.4481286", "0.44689587", "0.44686309", "0.44568622", "0.44567233", "0.44565147", "0.4448416", "0.44483936", "0.444775", "0.44477352", "0.44417465", "0.44412452", "0.4440163", "0.44350606", "0.44347245", "0.44267732", "0.44239366", "0.44234243", "0.44198325", "0.4418524", "0.4409566", "0.4406898", "0.4403457", "0.4401829", "0.44003364", "0.4395226", "0.43951473", "0.4386971", "0.43844151", "0.4382964", "0.43776953", "0.4376157", "0.4371719", "0.43715703" ]
0.5316851
3
This method was generated by MyBatis Generator. This method corresponds to the database table t_communityinform
List<CommunityInform> selectAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCommunity(int community) {\n this.community = community;\n }", "public String getCommunity() {\n return this.community;\n }", "CommunityInform selectByPrimaryKey(String id);", "@ApiModelProperty(value = \"小区id\")\n\tpublic Long getCommunityId() {\n\t\treturn communityId;\n\t}", "Community() {}", "@Override\n\tpublic int updateCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tJSONObject isExistJSON = this.selectOne(\"selectCommunityNameExist\", params);\n\t\tif(isExistJSON.getIntValue(\"isExist\") !=0){\n\t\t\tresult = -2;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this.delete(\"deleteCommunityMember\",params);\n\t\tif(params.getJSONArray(\"members\")!=null&&params.getJSONArray(\"members\").size()!=0){\n\t\t\tresult = this.insert(\"insertCommunityMember\",params);\n\t\t}\n\t\tresult = this.update(\"updateCommunity\", params);\n\t\treturn result ;\n\t}", "@Override\n\tpublic int insertCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tString communityId = UUIDUtil.getUUID();\n\t\tparams.put(\"communityId\", communityId);\n\t\tJSONObject isExistJSON = this.selectOne(\"selectCommunityNameExist\", params);\n\t\tif(isExistJSON.getIntValue(\"isExist\") !=0){\n\t\t\tresult = -2;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this.insert(\"insertCommunity\", params);\n\t\tif(params.getJSONArray(\"members\")!=null&&params.getJSONArray(\"members\").size()!=0){\n\t\t\tresult = this.insert(\"insertCommunityMember\",params);\n\t\t}\n\t\treturn result;\n\t}", "private void getCommunity() {\n DatabaseReference ref = FirebaseDatabase.getInstance()\n .getReference(\"Communities\").child(communityId);\n\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Community community = snapshot.getValue(Community.class);\n communityName = community.getName();\n getSupportActionBar().setTitle(communityName);\n Glide.with(getBaseContext()).load(community.getImage()).into(communityProfile);\n description.setText(community.getDescription());\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "public void setCommunityId(Long communityId) {\n\t\tthis.communityId = communityId;\n\t}", "public String getCommunityName() {\n return communityName;\n }", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "@Mapper\npublic interface WeChatInfoDao {\n\n\n /**\n * 插入微信信息\n * @param wechatInfo\n * @return\n */\n @Insert(\"INSERT INTO wechat_info(parentid,unionid,openid,nickname,sex,province,city,country,headImgUrl,\" +\n \"status,ticket_url,ticket,is_guide,reward) VALUES(#{parentid},#{unionid},#{openid},#{nickname},#{sex},#{province}\" +\n \",#{city},#{country},#{headImgUrl},#{status},#{ticketUrl},#{ticket},#{isGuide},#{reward})\")\n @Options(useGeneratedKeys=true, keyProperty=\"id\")\n int insert(WeChatInfoEntity wechatInfo);\n\n /**\n * 根据openID 查找用户信息\n * @param openid\n * @return\n */\n @Select(\"SELECT * FROM wechat_info WHERE openid = #{openid}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"nickname\", property = \"nickname\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity findByOpenID(@Param(\"openid\") String openid);\n\n /**\n * 根据openID 修改二维码信息\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET ticket_url=#{ticketUrl},ticket=#{ticket} WHERE openid=#{openid}\")\n void updateTicketUrlByOpenID(WeChatInfoEntity wechatInfo);\n\n /**\n * 取消关注\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET status=1 WHERE openid=#{openid}\")\n void updateStatusByOpenID(WeChatInfoEntity wechatInfo);\n\n\n /**\n * 更改status 状态\n * @param wechatInfo\n */\n @SelectProvider(type=WeChatInfoSqlProvider.class, method=\"updateByOpenIdSql\")\n void updateStatus(@Param(\"wechatInfo\") WeChatInfoEntity wechatInfo);\n\n @Select(\"SELECT * FROM wechat_info WHERE id = #{ID}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity selectWecahtUserByID(@Param(\"ID\")String ID);\n}", "public ScGridColumn<AcUpuTagSummaryVo> newMailCategoryCodeColumn()\n {\n return newMailCategoryCodeColumn(\"Mail Category Code\");\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\n public boolean isCommunity() {\n return false;\n }", "void initCommunityProperty();", "public ObjectId getCommunityId() {\r\n\t\treturn communityId;\r\n\t}", "public ACommunity getCisInformation(String client, String cisId);", "@Override\n\tpublic String execute() throws Exception {\n\t\t\n\t\tthis.communitylist = CommunityHibDao.select();\n\t\tActionContext.getContext().getSession().put(\"communitylist\", communitylist);\n\t\tSystem.out.println(communitylist.get(0).getCommunityName());\n\t\tSystem.out.println(\"Hello!\");\n\t\treturn super.execute();\n\t}", "public String get_snmpcommunity()\r\n\t{\r\n\t\treturn this.snmpcommunity;\r\n\t}", "public ScGridColumn<AcUpuTagSummaryVo> newMailClassCodeColumn()\n {\n return newMailClassCodeColumn(\"Mail Class Code\");\n }", "public ScGridColumn<AcUpuTagSummaryVo> newMailSubClassCodeColumn()\n {\n return newMailSubClassCodeColumn(\"Mail Sub Class Code\");\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "Collection getCommunities();", "@Override\n\tpublic ArrayList<Community> findAll() {\n\t\treturn null;\n\t}", "@Insert({\n \"insert into generalcourseinformation (courseid, code, \",\n \"name, teacher, credit, \",\n \"week, day_detail1, \",\n \"day_detail2, location, \",\n \"remaining, total, \",\n \"extra, index)\",\n \"values (#{courseid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{teacher,jdbcType=VARCHAR}, #{credit,jdbcType=INTEGER}, \",\n \"#{week,jdbcType=VARCHAR}, #{day_detail1,jdbcType=VARCHAR}, \",\n \"#{day_detail2,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, \",\n \"#{remaining,jdbcType=INTEGER}, #{total,jdbcType=INTEGER}, \",\n \"#{extra,jdbcType=VARCHAR}, #{index,jdbcType=INTEGER})\"\n })\n int insert(GeneralCourse record);", "public List<StudentCOOP> getStudentCOOP() {\n List<StudentCOOP> studentco = new ArrayList<StudentCOOP>();\n openConnection();\n try {\n getAllStudent = conn.prepareStatement(\"select * from APP.STUDENTCOOP\");\n rs = getAllStudent.executeQuery();\n while (rs.next()) {\n studentco.add(\n new StudentCOOP(rs.getString(\"ZID\"), rs.getString(\"FIRSTNAME\"), rs.getString(\"LASTNAME\"),\n rs.getString(\"GENDER\"), rs.getString(\"ADDRESS\"), rs.getInt(\"CONTACT\"), rs.getString(\"EMAIL\"),\n rs.getString(\"WORKEMAIL\"), rs.getString(\"NOTES\"), rs.getString(\"SUBJECT\"), \n rs.getInt(\"SEMESTERCOMPLETED\"), rs.getDouble(\"MARK\"), rs.getDouble(\"WAM\"))\n );\n }\n rs.close();\n getAllStudent.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n return studentco;\n }", "public void createTableComplaintsData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tDatabaseMetaData d=con.getMetaData();\n\t\t\t\tResultSet rs=d.getTables(null,null,\"ComplaintsData\",null);\n\t\t\t\tif(rs.next())\n\t\t\t\t{\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData table exist\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tString Create_Table=\"create table ComplaintsData(Customer_Name varchar(100),Address varchar(100),Contact varchar(30),Product varchar(100),Serial_No varchar(50),Module_No varchar(50),Complaint_No varchar(50),Category varchar(30))\";\n\t\t\t\t\tPreparedStatement ps=con.prepareStatement(Create_Table);\n\t\t\t\t\tps.executeUpdate();\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData created successfully!\");\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}", "@Override\n public String toString() {\n return bestCommunity + \"\";\n }", "public void set_snmpcommunity(String snmpcommunity)\r\n\t{\r\n\t\tthis.snmpcommunity = snmpcommunity;\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //LiquidacionImpor\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tLiquidacionImpor entity = new LiquidacionImpor();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,LiquidacionImporDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Importaciones.LiquidacionImpor.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseLiquidacionImpor(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public void setSnmpCommunity(String snmpCommunity) {\r\n this.snmpCommunity = snmpCommunity;\r\n }", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "List<CommunityDTO> findAll();", "public java.sql.ResultSet CitasActivasSoloMedico(String CodigoMedico){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas, 7, 3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo = \"+CodigoMedico+\" AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND phm.estado='0' AND sdp.numeroDocumento = pmd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY phm.fechas,jornada,phm.horas LIMIT 100 \");\r\n \t//System.out.println(\"SELECT ahm.codigo,ahm.horas,ahm.fechas,ahm.NombrePaciente,aes.nombre_especialidad,amd.nombre,amd.apellidos,ahm.estado,aes.codigo,amd.codigo,su.usu_codigo,SUBSTRING(ahm.horas, 7, 3) AS jornada FROM agm_horariomedico ahm,agm_medico amd,agm_especialidad aes,seg_datos_personales sdp,seg_usuario su WHERE amd.codigo = \"+CodigoMedico+\" AND ahm.codMedico_fk = amd.codigo AND amd.codEspe_fk = aes.codigo AND ahm.estado='0' AND sdp.numeroDocumento = amd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND ahm.fechas >= CURDATE() ORDER BY ahm.fechas,jornada,ahm.horas LIMIT 100 \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "int insert(CommunityInform record);", "public Collection<Community> getAllCommunities() {\n return communityStore.getAll();\n }", "public void Nouvelleligne() {\n int maxEleve = retourneMaxNumber() + 1;\n try {\n Connector1.statement.executeUpdate(\"Insert INTO eleve(id_el) VALUES (\" + maxEleve + \")\");\n Object[] val = {maxEleve, \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"};\n effaceTable(jTable2, mode);\n mode.addRow(val);\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n\n }\n\n }", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Override\n\tpublic String toSql() {\n\t\treturn null;\n\t}", "public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "private void remplirPriseEnCompte() {\r\n\t\tResultSet result = ctn.lectureData(\"SELECT * FROM PriseEnCompte\");\r\n\t\t// Remplissage tableau et combo Utilisateur\r\n\t\ttry {\r\n\t\t\twhile(result.next()) {\r\n\t\t\t\ttbPriseEnCompte.add(new StructPriseEnCompte(result.getLong(\"idPriseEnCompte\"), result.getString(\"Nom\"), result.getString(\"Description\")));\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\tctn.closeLectureData();\r\n\t\ttry {\r\n\t\t\tresult.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public void updateStudentCOOP(StudentCOOP toUpdate) {\n openConnection();\n try {\n updateStudent = conn.prepareStatement(\"update app.studentcoop set firstname=?, lastname=?, gender=?, address=?,\"\n + \" contact=?, email=?, workemail=?, notes=?, subject=?, semestercompleted=?, mark=?, wam=?\");\n \n updateStudent.setString(1, toUpdate.getZID());\n updateStudent.setString(1, toUpdate.getFName());\n updateStudent.setString(2, toUpdate.getLName());\n updateStudent.setString(3, toUpdate.getGEnder());\n updateStudent.setString(4, toUpdate.getADdress());\n updateStudent.setInt(5, toUpdate.getCOntact());\n updateStudent.setString(6, toUpdate.getEMail());\n updateStudent.setString(7, toUpdate.getWOrkemail());\n updateStudent.setString(8, toUpdate.getNOtes());\n updateStudent.setString(9, toUpdate.getSUbject());\n updateStudent.setInt(10, toUpdate.getSEmestercompleted());\n updateStudent.setDouble(11, toUpdate.getMArk());\n updateStudent.setDouble(12, toUpdate.getWAm());\n\n updateStudent.executeUpdate();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n }", "@SuppressWarnings(\"unchecked\")\n public void table_update(){\n int c;\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n con=DriverManager.getConnection(\"jdbc:mysql://localhost/footballdb\",\"root\",\"\");\n pst=con.prepareStatement(\"Select * from manager\");\n ResultSet Rs=pst.executeQuery();\n ResultSetMetaData rd=Rs.getMetaData();\n c=rd.getColumnCount();\n DefaultTableModel df=(DefaultTableModel)jTable1.getModel();\n df.setRowCount(0);\n while(Rs.next()){\n Vector v2=new Vector();\n for(int i=1;i<=c;i++){\n \n v2.add(Rs.getString(\"managerid\"));\n v2.add(Rs.getString(\"mname\"));\n v2.add(Rs.getString(\"teamid\"));\n \n }\n df.addRow(v2);\n \n }\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(manager.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(manager.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "public HashMap<Integer, HashMap<String, String>> getXMLMessageDataForCollabFromDB(ArrayList<Integer> interIDs) throws SQLException, NumberFormatException, XPathExpressionException, ParserConfigurationException, SAXException, IOException{\n\t HashMap<Integer, HashMap<String, String>> result = new HashMap();\n\t String query = null;\n\t HashMap<String, String> message;\n\t HashMap<String, ArrayList<String>> messageMap;\n\t \n//\t Select parentEventID,eventID,resourceName,roomName,networkID, buddyName, intemployeeID, containerID, contentType, contentSubType, resourceID, attributes\n\t \n\t String parentEventId;\n\t String eventId;\n\t String roomName;\n\t String networkId;\n\t String buddyName;\n\t String intEmployeeId;\n\t String employeeId = null;\n\t String containerId;\n\t String networkName;\n\t String employeeEmail = null;\n\t \n\t int contentTypeID;\n\t String contentType;\n\t int contentSubTypeID;\n\t String contentSubType = null;\n\t int resourceID;\n\t SQLXML attributes;\n\t int actionID;\n\t String actionType;\n\t ArrayList<String> resources;\n\t String resourceName;\n\t String resourceURL;\n\t String text;\n\t String messageAttributes = null;\n\t HashMap<String, String> msgAttributes = null;\n\t \n//\t stmt = getConnection(dbParams).createStatement();\n\t \n\t DOMSource domSource;\n\t Document document;\n\t XPath xpath = XPathFactory.newInstance().newXPath();\n\t \n\t String expression = \"//name[.='event.action']/following-sibling::*[1][name()='value']\";\n\t \n\t //loop through each interID\n\t for(int interID : interIDs){\n\t \n\t message = new HashMap();\n\t \n\t query = \"Select parentEventID,eventID,roomName,networkID, buddyName, intemployeeID, containerID, contentType, contentSubType, resourceID, attributes from Interactions where interID = \"+interID;\n//\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t parentEventId = rs.getString(1);\n\t eventId = rs.getString(2);\n\t roomName = rs.getString(3);\n\t networkId = rs.getString(4);\n\t buddyName = rs.getString(5);\n\t intEmployeeId = rs.getString(6);\n\t containerId = rs.getString(7);\n\t contentTypeID = rs.getInt(8);\n\t contentSubTypeID = rs.getInt(9);\n\t resourceID = rs.getInt(10);\n\t attributes = rs.getSQLXML(11);\n\t \n\t\t domSource = attributes.getSource(DOMSource.class);\n\t\t document = (Document) domSource.getNode();\n\t\t actionID = Integer.parseInt(xpath.evaluate(expression, document));\n\t\t \n\t\t //Get contentType\n\t\t contentType = getContentType(stmt, contentTypeID);\n\t\t //Get ContentSubType\n\t\t if(contentSubTypeID != -1){\n\t\t \t contentSubType = getContentSubType(stmt, contentSubTypeID);\t \n\t\t }\n\t\t \n\t\t //Get Action Type\n\t\t actionType = getActionType(actionID);\n\t\t //Get Resource Name and URL\n\t\t resources = getResourceNameAndURL(resourceID);\n\t\t resourceName = resources.get(0);\n\t\t resourceURL = resources.get(1);\n//\t\t Get Network Name\n\t\t networkName = getNetworkName(networkId);\n//\t\t Get EmployeeId\n\t\t if(intEmployeeId != null){\n\t\t \t employeeId = getEmployeeId(stmt, intEmployeeId);\n//\t\t\t Get Employee Email\n\t\t\t \n\t\t\t employeeEmail = getEmployeeEmail(stmt, intEmployeeId);\n\t\t\t if(employeeEmail == null){\n\t\t\t \t employeeEmail = buddyName;\n\t\t\t }\n\t\t }\n\t\t \n\n\t\t \n\t\t //Get Message Table data\n\t\t query = \"Select text from Messages where interID = \"+interID;\n//\t\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t text = rs.getString(1).trim().replaceAll(\"\\n\", \"\").replaceAll(\"\\r\", \"\");\n\t\t\t query = \"Select attributes from Messages where interID = \"+interID + \" and attributes is not null\";\n//\t\t\t System.out.println(query);\n\t\t rs = stmt.executeQuery(query);\n\t\t if(rs.next()){\n\t\t \t messageAttributes = rs.getString(1);\n\t\t }\n\t\t \t \n\t msgAttributes = new HashMap();\n\t //Get Attribute Names and Values\n\t\t if(messageAttributes != null){\n\t\t \t \n\t\t \t msgAttributes = getMessageAttributes(messageAttributes); \t \n\t\t }\n\t \n\t \n\t //Add all the values\n\t message.put(\"parentEventID\", parentEventId);\n\t message.put(\"eventId\", eventId);\n\t message.put(\"containerId\", containerId);\n\t message.put(\"roomName\", roomName);\n\t message.put(\"buddyName\", buddyName);\n\t message.put(\"networkID\", networkId);\n\t message.put(\"networkName\", networkName);\n\t message.put(\"employeeId\", employeeId);\n\t message.put(\"employeeEmail\", employeeEmail);\n\t message.put(\"intEmployeeID\", intEmployeeId);\n\t message.put(\"Content type\", contentType);\n\t if(contentSubTypeID != 0){\n\t \t message.put(\"Content sub-type\", contentSubType); \n\t }\n\t \n\t message.put(\"Action\", actionType);\n\t message.put(\"Resource name\", resourceName);\n\t message.put(\"Resource URL\", resourceURL);\n\t message.put(\"Text\", text);\n\t if(msgAttributes.size() > 0){\n\t \t message.putAll(msgAttributes); \n\t }\n\t \n//\t for(String attName : msgAttributes.keySet()){\n//\t message.put(attName, msgAttributes.get(attName));\n//\t }\n\n\t ArrayList<String> fileNames = getFileListsForCollab(interID);\n\t StringBuffer fileName = new StringBuffer();\n\t if(fileNames.size() > 0){\n\t \t for(int i = 0 ; i < fileNames.size(); i++){\n\t \t\t fileName.append(fileNames.get(i));\n\t \t\t if(i + 1 != fileNames.size()){\n\t \t\t\t fileName.append(\"#\");\n\t \t\t }\n\t \t }\n\t \t message.put(\"File\", fileName.toString());\n\t }\n\t \n\t result.put(interID, message);\n\t }\n\t \n\t return result;\n\t }", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public List<TcTipoNomina> getNominasValidasBenefComodin() {\n String nominasValidasBenefComodin = super.getQueryDefinition(\"nominasValidasBenefComodin\");\n \n Map<String, Object> mapValues = new HashMap<String, Object>();\n \n SqlParameterSource namedParameters = new MapSqlParameterSource(mapValues);\n DataSource ds = super.getJdbcTemplate().getDataSource();\n NamedParameterJdbcTemplate namedTemplate = new NamedParameterJdbcTemplate(ds);\n \n super.getJdbcTemplate().setFetchSize(100);\n return namedTemplate.query(nominasValidasBenefComodin, namedParameters, new TcTipoNominasValidasBenefComodinAux());\n }", "public PageList<JSONObject> getCommunityOperatorList(String communityName, int pageNum, int pageSize, String realname,\n String phone, long id, String username) {\n Map<String, Object> param = new HashMap<>();\n if (StringUtils.isNotBlank(communityName)) {\n param.put(\"communityName\", \"%\" + communityName + \"%\");\n }\n if (StringUtils.isNotBlank(phone)) {\n param.put(\"phone\", \"%\" + phone + \"%\");\n }\n if (StringUtils.isNotBlank(realname)) {\n param.put(\"realname\", \"%\" + realname + \"%\");\n }\n if (id > 0) {\n param.put(\"id\", id);\n }\n\n if (StringUtils.isNotBlank(username)) {\n param.put(\"username\", \"%\" + username + \"%\");\n }\n PageBounds pageBounds = new PageBounds(pageNum, pageSize);\n // 查询操作员信息\n PageList<Map> pageList = extCommunityAdminMapper.pageByCondition(param, pageBounds);\n\n PageList<JSONObject> pl = new PageList<>(pageList.getPaginator());\n\n if (pageList != null && pageList.size() > 0) {\n for (Map map : pageList) {\n JSONObject object = new JSONObject();\n object.put(\"id\", map.get(\"id\"));\n object.put(\"name\", map.get(\"name\"));\n object.put(\"realname\", map.get(\"realname\"));\n object.put(\"phone\", map.get(\"phone\"));\n object.put(\"tel\", map.get(\"tel\"));\n object.put(\"email\", map.get(\"email\"));\n object.put(\"status\", map.get(\"status\"));\n object.put(\"create_time\", map.get(\"createTime\"));\n object.put(\"username\", map.get(\"username\"));\n object.put(\"last_login_time\", map.get(\"latestLoginTime\"));\n object.put(\"community_id\", map.get(\"communityId\"));\n object.put(\"position\", map.get(\"position\"));\n // 根据管理员ID查询部门\n List<SysDeptSim> deptList = extSysDeptMapper.getSysDeptListByAdminId((long) map.get(\"id\"));\n if (deptList != null && deptList.size() > 0) {\n object.put(\"dept_name\", deptList.get(0).getName());\n object.put(\"dept_id\", deptList.get(0).getId());\n } else {\n object.put(\"dept_name\", null);\n object.put(\"dept_id\", null);\n }\n // 根据管理员ID查询角色\n List<SysRole> roleList = extSysRoleMapper.getSysRoleListByAdminId((long) map.get(\"id\"), Constant.App.Id.COMMUNITY_ADMIN.value());\n if (roleList != null && roleList.size() > 0) {\n object.put(\"role_name\", roleList.get(0).getName());\n object.put(\"role_id\", roleList.get(0).getId());\n } else {\n object.put(\"role_name\", null);\n object.put(\"role_id\", null);\n }\n\n // 查询主会员信息\n //FIXME 性能极差,中哥说的.\n//\t\t\t\tMap<String, Object> condition = new HashMap<>();\n//\t\t\t\tcondition.put(\"communityId\", map.get(\"communityId\"));\n//\t\t\t\tList<Map> masterInfoList = extMasterInfoMapper.selectMasterInfoAndPassport(condition);\n//\t\t\t\tJSONArray masterInfoArray = new JSONArray();\n//\t\t\t\tif (masterInfoList != null && masterInfoList.size() > 0) {\n//\t\t\t\t\tfor (Map masterInfoMap : masterInfoList) {\n//\t\t\t\t\t\tJSONObject masterInfoObject = new JSONObject();\n//\t\t\t\t\t\tmasterInfoObject.put(\"id\", masterInfoMap.get(\"id\"));\n//\t\t\t\t\t\tmasterInfoObject.put(\"username\", masterInfoMap.get(\"username\"));\n//\t\t\t\t\t\tmasterInfoArray.add(masterInfoObject);\n//\t\t\t\t\t}\n//\t\t\t\t}\n\n//\t\t\t\tobject.put(\"master_info_list\", masterInfoArray);\n JSONArray masterInfoArray = new JSONArray();\n object.put(\"master_info_list\", masterInfoArray);\n\n pl.add(object);\n }\n }\n//\t\tjson.put(\"totalRow\", pageList.getPaginator().getTotal());\n//\t\tjson.put(\"pageNumber\", pageNum);\n//\t\tjson.put(\"lastPage\", pageList.getPaginator().isLast());\n//\t\tjson.put(\"firstPage\", pageList.getPaginator().isFirst());\n//\t\tjson.put(\"totalPage\", pageList.getPaginator().getPages());\n//\t\tjson.put(\"pageSize\", pageSize);\n//\t\tjson.put(\"list\", array);\n\n return pl;\n }", "@Override\n\tpublic List<JSONObject> getCommunities(JSONObject params) {\n\t\tList<JSONObject> communities = this.selectList(\"getCommunities\",params);\n\t\tif(communities.size()!=0){\n\t\t\tparams.put(\"communities\", communities);\n\t\t\tList<JSONObject> members = this.selectList(\"selectCommunityMembers\",params);\n\t\t\tMap<String,List<JSONObject>> memberMap = new HashMap();\n\t\t\tfor(JSONObject memberJSON:members){\n\t\t\t\tString communityId = memberJSON.getString(\"communityId\");\n\t\t\t\tList<JSONObject> memberList= memberMap.get(communityId);\n\t\t\t\tif(memberList==null){\n\t\t\t\t\tmemberList = new ArrayList();\n\t\t\t\t\tmemberMap.put(communityId,memberList);\n\t\t\t\t}\n\t\t\t\tmemberList.add(memberJSON);\n\t\t\t}\n\t\t\tfor(JSONObject communityJSON:communities){\n\t\t\t\tString communityId = communityJSON.getString(\"communityId\");\n\t\t\t\tcommunityJSON.put(\"members\", memberMap.get(communityId)==null?new ArrayList():memberMap.get(communityId));\n\t\t\t}\n\t\t}\n\t\treturn communities;\n\t}", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "@Override\n public List<Community> getCommunities(Context context, Item item) throws SQLException\n {\n List<Community> result = new ArrayList<Community>();\n List<Collection> collections = item.getCollections();\n for(Collection collection : collections)\n {\n List<Community> owningCommunities = collection.getCommunities();\n for (Community community : owningCommunities) {\n result.add(community);\n result.addAll(communityService.getAllParents(context, community));\n }\n }\n\n return result;\n }", "public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private Map<Long, List<ObligacionCoactivoDTO>> consultaObligacionesComparendo() {\n logger.debug(\"CoactivoEJB::consultaObligacionesComparendo()\");\n Map<Long, List<ObligacionCoactivoDTO>> obligacionesDeudor = new HashMap<>();\n StringBuilder consulta = new StringBuilder();\n consulta.append(\"SELECT \");\n consulta.append(\"p.id_cartera, \");\n consulta.append(\"ca.saldo_capital, \");\n consulta.append(\"ca.saldo_interes, \");\n consulta.append(\"p.numero_obligacion, \");\n consulta.append(\"p.id_deudor, \");\n consulta.append(\"p.fecha_obligacion, \");\n consulta.append(\"p.id_funcionario, \");\n consulta.append(\"p.id_cargue_coactivo, \");\n consulta.append(\"p.id_precoactivo \");\n consulta.append(\"FROM precoactivo p \");\n consulta.append(\"JOIN cartera ca on ca.id_cartera = p.id_cartera \");\n consulta.append(\"WHERE p.id_estado_precoactivo = :estadoAprobado \");\n consulta.append(\"AND p.codigo_tipo_obligacion = :tipoComparendo \");\n\n Query query = em.createNativeQuery(consulta.toString());\n query.setParameter(\"estadoAprobado\", EnumEstadoPrecoactivo.AUTORIZADO.getValue());\n query.setParameter(\"tipoComparendo\", EnumTipoObligacion.COMPARENDO.getValue());\n @SuppressWarnings({ \"unchecked\" })\n List<Object[]> lsObligacionesComparendos = Utilidades.safeList(query.getResultList());\n\n for (Object[] obligacionComparendo : lsObligacionesComparendos) {\n int i = 0;\n BigInteger idCartera = (BigInteger) obligacionComparendo[i++];\n BigDecimal saldoCapital = (BigDecimal) obligacionComparendo[i++];\n BigDecimal saldoInteres = (BigDecimal) obligacionComparendo[i++];\n String numObligacion = (String) obligacionComparendo[i++];\n Long idDeudor = ((BigInteger) obligacionComparendo[i++]).longValue();\n Date fechaObligacion = (Date) obligacionComparendo[i++];\n Integer idFuncionario = (Integer) obligacionComparendo[i++];\n Long idCargue = ((BigInteger) obligacionComparendo[i++]).longValue();\n Long idPrecoactivo = ((BigInteger) obligacionComparendo[i++]).longValue();\n\n CoactivoDTO coactivo = new CoactivoDTO();\n coactivo.setCargueCoactivo(new CargueCoactivoDTO(idCargue));\n coactivo.setFuncionario(new FuncionarioDTO(idFuncionario));\n coactivo.setPersona(new PersonaDTO(idDeudor));\n // Arma obligacion que va a entrar a coactivo\n ObligacionCoactivoDTO obligacion = new ObligacionCoactivoDTO();\n obligacion.setCodigoTipoObligacion(EnumTipoObligacion.COMPARENDO.getValue());\n obligacion.setCartera(new CarteraDTO(idCartera.longValue()));\n obligacion.setNumeroObligacion(numObligacion);\n obligacion.setCoactivo(coactivo);\n obligacion.setFechaObligacion(fechaObligacion);\n obligacion.setValorObligacion(saldoCapital);\n obligacion.setValorInteresMoratorios(saldoInteres);\n obligacion.setIdPrecoativo(idPrecoactivo);\n if (!obligacionesDeudor.containsKey(idDeudor)) {\n obligacionesDeudor.put(idDeudor, new ArrayList<ObligacionCoactivoDTO>());\n }\n obligacionesDeudor.get(idDeudor).add(obligacion);\n }\n return obligacionesDeudor;\n }", "public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){\n\tString sql=\"select * from institucion where cod_institucion='\"+cod_solicitud+\"';\";\n\t\n\treturn db.queryForObject(sql, new InstitucionRowMapper());\n}", "public Socio getSocioInfoAtualizar() {\n\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem para pegar Socio\"); \n Statement stmt = null;\n\n\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM alterados\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio (rs.getString(\"nomeSocio\"),rs.getString(\"cpfSocio\"),rs.getString(\"rgSocio\"),\n rs.getString(\"matSocio\"),rs.getString(\"sexoSocio\"),rs.getString(\"diaNascSocio\"),\n rs.getString(\"mesNascSocio\"),rs.getString(\"anoNascSocio\"),rs.getString(\"enderecoSocio\"),\n rs.getString(\"numEndSocio\"),rs.getString(\"bairroSocio\"),rs.getString(\"cidadeSocio\"),\n rs.getString(\"estadoSocio\"),rs.getString(\"foneSocio\"),rs.getString(\"celSocio\"),\n rs.getString(\"emailSocio\"),rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"), rs.getInt(\"idSocioPK\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n\n \n Socio socioMax = new Socio();\n\n socioMax = listaSocio.get(0);\n\n //Se houver mais de um socio na lista vai procurar o de maior ID\n if(listaSocio.size()-1 > 0){\n\n for(int i=0; i<= listaSocio.size()-1; i++){\n\n Socio socio = new Socio();\n socio = listaSocio.get(i);\n\n if(socio.getIdAlterado()>= socioMax.getIdAlterado() ){\n socioMax = socio;\n }\n\n }\n\n }\n //Se não pega o primeiro\n else {\n socioMax = listaSocio.get(0);\n \n }\n\n System.out.println(socioMax.getIdAlterado());\n\n //Retorna o socio de maior ID, logo o ultimo inserido.\n return socioMax;\n }", "public abstract String toSQL();", "public void showData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\t\tString sql=\"select *from ComplaintsData\";\n\t\t\t\tps=con.prepareStatement(sql);\n\t\t\t\trs=ps.executeQuery();\n\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public ResultSet Cmus(Long comp_id) throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tSystem.out.println(comp_id);\r\n\t//String sql=\"select c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\";\r\n\t//System.out.println(sql);\r\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\");\r\n\treturn rs;\r\n}", "public M csmiNationNull(){if(this.get(\"csmiNationNot\")==null)this.put(\"csmiNationNot\", \"\");this.put(\"csmiNation\", null);return this;}", "public donorList() {\n initComponents();\n try {\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n Connection connection = DriverManager.getConnection( \"jdbc:sqlserver://localhost:1433;user=sa;password=123456;\" +\n \"databaseName=BloodBankMS;\");\n \n \n Statement statement = connection.createStatement(); \n \n ResultSet rs = statement.executeQuery(\"SELECT DonorID , DonorName ,DonorGender ,DonorAddress ,DonorBloodGroup , DonorArea , DonorPhoneNumber, DonorAge, DonorWeight from DONOR\"); \n ResultSetMetaData rsmetadata = rs.getMetaData(); \n int columns = rsmetadata.getColumnCount(); \n DefaultTableModel dtm = new DefaultTableModel(); \n Vector columns_name=new Vector();\n Vector data_rows=new Vector();\n for(int i= 1; i < columns+1; i++) \n { \n columns_name.addElement (rsmetadata.getColumnLabel(i)); \n } \n \n dtm.setColumnIdentifiers(columns_name);\n while (rs.next()) \n { \n data_rows = new Vector(); \n for (int j = 1; j <columns+1; j++) \n { \n data_rows.addElement(rs.getString(j)) ;\n } \n dtm.addRow(data_rows); \n \n } \n donorTable.setModel(dtm); \n \n } catch (Exception e) { \n e.printStackTrace(); \n }\n }", "@Override\n public DycpCompensacionDTO encontrar(String numControl) throws SIATException {\n try {\n String query =\n \" SELECT C.*, S.*, TT.*, SI.*, PER.*, CON.*, IMP.*, CON.DESCRIPCION, PER.DESCRIPCION as DESCRIPCION_PERIODO, IMP.DESCRIPCION as DESCRIPCION_IMPUESTO \"\n + \"FROM DYCP_COMPENSACION C, DYCP_SERVICIO S, DYCC_TIPOTRAMITE TT, DYCT_SALDOICEP SI, \"\n + \"DYCC_PERIODO PER, DYCC_CONCEPTO CON, DYCC_IMPUESTO IMP \"\n + \"WHERE C.NUMCONTROL = S.NUMCONTROL \"\n + \"AND TT.IDTIPOTRAMITE = S.IDTIPOTRAMITE AND SI.IDSALDOICEP = C.IDSALDOICEPORIGEN \"\n + \"AND PER.IDPERIODO = SI.IDPERIODO AND CON.IDCONCEPTO = SI.IDCONCEPTO AND IMP.IDIMPUESTO = CON.IDIMPUESTO \" \n + \"AND C.NUMCONTROL = ? ORDER BY C.IDSALDOICEPDESTINO DESC\";\n TipoTramiteMapper mapperTipoTramite = new TipoTramiteMapper();\n DycpServicioMapper mapperServicio = new DycpServicioMapper();\n mapperServicio.setMapperTipoTramite(mapperTipoTramite);\n CompensacionMapper mapper = new CompensacionMapper();\n DyctSaldoIcepMapper mapperSaldoIcep = new DyctSaldoIcepMapper();\n PeriodoMapper mapperPeriodo = new PeriodoMapper();\n ConceptoMapper mapperConcepto = new ConceptoMapper();\n ImpuestoMapper mapperImpuesto = new ImpuestoMapper();\n mapperSaldoIcep.setMapperPeriodo(mapperPeriodo);\n mapperConcepto.setMapperImpuesto(mapperImpuesto);\n mapperSaldoIcep.setMapperConcepto(mapperConcepto);\n mapper.setMapperServicio(mapperServicio);\n mapper.setMapperSaldoIcepOrigen(mapperSaldoIcep);\n return jdbcTemplateDYC.queryForObject(query, new Object[] { numControl }, mapper);\n } catch (DataAccessException dae) {\n log.error(ConstantesDyC1.TEXTO_1_ERROR_DAO + dae.getMessage() + ConstantesDyC1.TEXTO_2_ERROR_DAO +\n SQLOracleDyC.CONSULTA_DYCP_COMPENSACION + ConstantesDyC1.TEXTO_3_ERROR_DAO + \"numcontrol\" + numControl +\n ConstantesDyC1.TEXTO_8_CAUSAS + dae.getCause());\n throw new SIATException(dae);\n }\n }", "public Community()\r\n {\r\n //\r\n }", "private static String getTableName(String baseName, boolean isCommunity, boolean isCollection, boolean isDistinct,\n boolean isMap) {\n // isDistinct is meaningless in relation to isCommunity and isCollection\n // so we bounce that back first, ignoring other arguments\n if (isDistinct) {\n return baseName + \"_dis\";\n }\n\n // isCommunity and isCollection are mutually exclusive\n if (isCommunity) {\n baseName = baseName + \"_com\";\n } else if (isCollection) {\n baseName = baseName + \"_col\";\n }\n\n // isMap is additive to isCommunity and isCollection\n if (isMap) {\n baseName = baseName + \"_dmap\";\n }\n\n return baseName;\n }", "protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}", "@Override\n\tpublic CommunicationInfo getCommuInfo(HashMap<String, String> map) {\n\t\treturn null;\n\t}", "public void populateTable() {\n DefaultTableModel dtm = (DefaultTableModel)tblSalesPersonCommision.getModel();\n dtm.setRowCount(0);\n // for(OrderList orderlist:salesperson.getOrderlistcatalog().getSalesPersonOrder()){\n // for(Order order:salesperson.getOrderListSalesPerson().getOrderList()){ \n // for(OrderList orderlist:salesperson.getOrderlistcatalog().getOrCatalog()){\n // for(SalesPerson salesperson :business.getEmployeedirectory().getSalesPersonList()){\n \n for(OrderList orderlist:salesperson.getOrderlistcatalog().getOrCatalog()){\n Object [] row = new Object[4];\n // row[0]=.getCustomer().getCustomerId();\n // row[1]= market.getCustomer().getCustomerName();\n row[0]=orderlist;\n row[1]=orderlist.getOrdertotalprice();\n row[2]=orderlist.getSalespersoncomission();\n row[3]=orderlist.getTotalorderlistquantity();\n //3 tcomission = tcomission + orderlist.getSalespersoncomission();\n //3 totalquantity = totalquantity + orderlist.getTotalorderlistquantity();\n //3 totalorderprice = totalorderprice + orderlist.getOrdertotalprice();\n \n // row[0]=order;\n // row[1]=order.getAmountprice();\n \n dtm.addRow(row);\n // }\n // }\n } \n //2 salesperson.getOrderlistcatalog().setTotalquantitypersalesperson(totalquantity);\n //2 salesperson.getOrderlistcatalog().setTotalcommision(tcomission);\n //2 salesperson.getOrderlistcatalog().setTotalorderlistcsatalogprice(totalorderprice);\n}", "public boolean vérification_collab_simp(String username) {\ntry {\n\t\t\t\n\t\t\tjdbc.setConnection();\n\t\t\tStatement stm=jdbc.setConnection().createStatement();\n\t\t\tString strcheck=\"select collaborateur_simple.id from collaborateur_simple,utilisateur where collaborateur_simple.id=utilisateur.id and utilisateur.username=\"+'\"'+username+'\"';\n\t\t\t\n\t\t\t\t\n\t\t\tResultSet res = stm.executeQuery(strcheck);\n\t\t\t\n\t\t\t\n\t\t\twhile (res.next()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tjdbc.setConnection().close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void init(Map<String, Object> values) {\n\t\tthis.setType(\"community_name\", FieldType.TABLE_SELECTOR);\r\n\t\tthis.setType(\"did\", FieldType.TABLE_SELECTOR);\r\n\t\tthis.setType(\"contract_id\", FieldType.TABLE_SELECTOR);\r\n\r\n\t\tTableSelector selector_communities = UIHandler.selector(args -> {\r\n\t\t\tJTable t = (JTable) args[0];\r\n\t\t\tt.setModel(new CommunitiesTableModelImpl());\r\n\t\t\tRuntimeStore.runUI().refresh(new CommunityRequestImpl().query(), t.getModel());;\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tselector_communities.comfirm(args -> {\r\n\t\t\tUIHandler.handle_table_selector(\"community_name\", \"name\", args);\r\n\t\t\treturn null;\r\n\t\t}, \"0\");\r\n\r\n\t\tthis.setValue(\"community_name\", selector_communities);\r\n\t}", "public synchronized String getSenhaPromocional(MensagemPromocional msgPromo,String msisdn, Connection con) throws SQLException\n\t{\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet \t\t rs = null;\n\t\tString \t\t\t senha = null;\n\t\ttry\n\t\t{\n\t\t\tpstmt = con.prepareStatement(sqlSenha);\n\t\t\tpstmt.setInt(1,msgPromo.getCodServico());\n\t\t\tpstmt.setInt(2,msgPromo.getCodConteudo());\n\t\t\tpstmt.setInt(3,msgPromo.getCodPromocao());\n\t\t\trs = pstmt.executeQuery();\n\t\t\tif (rs.next())\n\t\t\t{\n\t\t\t\t// Caso a pesquisa de senha retornou que existe uma proxima disponive\n\t\t\t\t// entao atualiza o registro indicando qual o assinante que requisitou\n\t\t\t\t// antes de enviar a senha por sms\n\t\t\t\tsenha = rs.getString(\"CO_SENHA\");\n\t\t\t\t// Marca agora a utilizacao da senha pelo assinante\n\t\t\t\tPreparedStatement pstmtUpd = con.prepareStatement(sqlUpdSenha);\n\t\t\t\tpstmtUpd.setString\t\t(1,msisdn);\n\t\t\t\tpstmtUpd.setTimestamp\t(2,new Timestamp(Calendar.getInstance().getTimeInMillis()));\n\t\t\t\tpstmtUpd.setInt \t\t(3,msgPromo.getCodServico());\n\t\t\t\tpstmtUpd.setInt \t\t(4,msgPromo.getCodConteudo());\n\t\t\t\tpstmtUpd.setInt\t \t\t(5,msgPromo.getCodPromocao());\n\t\t\t\tpstmtUpd.setString\t\t(6,senha);\n\t\t\t\t\n\t\t\t\tpstmtUpd.executeUpdate();\n\t\t\t\tpstmtUpd.close();\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\tthrow e;\n\t\t}\n\t\tfinally{\n\t\t\ttry{// Fecha os objetos de consulta\n\t\t\t\tif (rs != null) rs.close();\n\t\t\t\tif (pstmt != null) pstmt.close();\n\t\t\t}catch(Exception e){};\n\t\t}\n\n\t\treturn senha;\n\t}", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "public String getNomTable();", "java.lang.String getSqlCode();", "public void setBestCommunity(int bestCommunity) {\n this.bestCommunity = bestCommunity;\n }", "public boolean asignaNumeroFac(java.sql.Connection conIns, int intCodEmp,int intCodLoc, int intCodTipDocFacEle, int intCodDoc, int intCodCot) \r\n {\r\n boolean blnRes = false;\r\n java.sql.Statement stmLoc, stmLocIns;\r\n java.sql.ResultSet rstLoc;\r\n String strSql = \"\";\r\n String strSqlIns = \"\";\r\n int intNumDoc = 0;\r\n int intNumDocGuia = 0;\r\n try \r\n {\r\n if (conIns != null){\r\n stmLoc = conIns.createStatement();\r\n strSql = \"SELECT CASE WHEN (ne_ultDoc+1) IS NULL THEN 1 ELSE (ne_ultDoc+1) END AS ultnum \"\r\n + \" FROM tbm_cabTipDoc WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n// System.out.println(\"numero \" + strSql);\r\n rstLoc = stmLoc.executeQuery(strSql);\r\n if (rstLoc.next()) {\r\n intNumDoc = rstLoc.getInt(\"ultnum\");\r\n }\r\n rstLoc.close();\r\n rstLoc = null;\r\n stmLoc.close();\r\n stmLoc = null;\r\n \r\n \r\n strSqlIns += \" UPDATE tbm_cabTipDoc SET ne_ultDoc=\" + intNumDoc + \" WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n strSqlIns += \";UPDATE tbm_cabmovinv SET ne_numdoc=\" +intNumDoc+\", ne_numgui=\"+intNumDocGuia+\", st_reg='A' , st_imp='S' \"\r\n + \" WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_doc=\" + intCodDoc + \" and st_reg not in ('I','E') AND ne_numcot=\" + intCodCot;\r\n strSqlIns += \" ; UPDATE tbm_cabdia SET tx_numdia='\" + intNumDoc + \"' WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_dia=\" + intCodDoc + \" and st_reg not in ('I','E') \";\r\n System.out.println(\"asignaNumeroFac \"+strSqlIns);\r\n stmLocIns = conIns.createStatement();\r\n stmLocIns.executeUpdate(strSqlIns);\r\n stmLocIns.close();\r\n stmLocIns = null;\r\n intNumFacElec=intNumDoc;\r\n blnRes = true;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "public void setCommunityName(String communityName) {\n this.communityName = communityName == null ? null : communityName.trim();\n }", "int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileProfileNameColumn()\n {\n return newMobileProfileNameColumn(\"Mobile Profile Name\");\n }", "@Select(\"select datetime,currentConfirmedCount,confirmedCount,suspectedCount,curedCount,deadCount from covid19_1 where datetime = #{datetime}\")\n List<Map<String, Object>> getNationalData(String datetime);", "public void generarDocumentosCoactivosAnteriores() {\n\n try {\n\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"Set Language 'Español'\");\n\n Query update = em.createNativeQuery(sql.toString());\n update.executeUpdate();\n\n // Consulta de coactivos\n sql = new StringBuilder();\n sql.append(\n \"SELECT c.id_proceso, c.id_coactivo, p.fecha_inicio, c.valor_total_obligaciones, p.numero_proceso, tp.id_trazabilidad_proceso , tp2.id_trazabilidad_proceso as traza2 \");\n sql.append(\"FROM coactivo c \");\n sql.append(\"JOIN proceso p ON p.id_proceso = c.id_proceso \");\n sql.append(\"JOIN trazabilidad_proceso tp ON p.id_proceso = tp.id_proceso \");\n sql.append(\"AND tp.id_estado_proceso = 22 \");\n sql.append(\"JOIN trazabilidad_proceso tp2 ON p.id_proceso = tp2.id_proceso \");\n sql.append(\"AND tp2.id_estado_proceso = 24 \");\n sql.append(\"WHERE NOT EXISTS (SELECT 1 FROM trazabilidad_proceso tp \");\n sql.append(\n \"WHERE EXISTS (select 1 from documento_proceso dp where dp.id_trazabilidad_proceso = tp.id_trazabilidad_proceso) \");\n sql.append(\"AND tp.id_proceso = p.id_proceso) \");\n sql.append(\"AND CAST(p.numero_proceso AS bigint) <= 6179 \");\n sql.append(\"ORDER BY c.id_coactivo\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n @SuppressWarnings(\"unchecked\")\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n for (Object[] filaCoactivo : listaResultados) {\n iLCoactivo.generarDocumentosAnteriores(filaCoactivo);\n }\n } catch (Exception e) {\n logger.error(\"Error en generación de documento de apertura de coactivo\", e);\n\n }\n }", "public PromocionTableModel() {\n \n //Establecemos la sentencia SQL que vamos a ejecutar\n super(\"SELECT ID_PROMOCION , NOMBRE, DESCUENTO FROM PROMOCION\");\n \n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Empresa\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tEmpresa entity = new Empresa();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,EmpresaDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Seguridad.Empresa.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseEmpresa(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public static void create_join_CP(String databaseCT,String rchain,Connection con2) throws SQLException{\n\t\t\n\t\tString table_name = databaseCT+\"_CT.\"+rchain.substring(0,rchain.length()-1) + \"_CT`\";\n\t\t//System.out.println(databaseCT+\"_CT\");\n\t\tString newTable_name = rchain.substring(0,rchain.length()-1) + \"_CT_KLD`\";\n\t\t//System.out.println(table_name);\n\t\t// table_name is input contingency table, newTable_name will be output KLD table\n\t\tStatement st=con2.createStatement();\n ResultSet rst=st.executeQuery(\"show columns from \"+table_name+\" ;\");\n // System.out.println(\"show columns from \"+table_name+\" ;\");\n while(rst.next()){\n \tcolumn_names.add(\"`\"+rst.getString(1)+\"`\");\n \tcolumn_names_CP.add(\"`\"+rst.getString(1)+\"_CP`\");\n \t// add conditional probability column for each attribute column\n }\n \n \n st.execute(\"drop table if exists \" + newTable_name);\n String query1=\"create table \" + newTable_name + \" ( id int(11) NOT NULL AUTO_INCREMENT, MULT BIGINT(21), \" ;\n // make query string for creating KLD table\n // auto index each row in table\n for(int i=1; i<column_names.size(); i++){\n \tquery1 = query1 + column_names.get(i) + \" VARCHAR(45),\" + column_names_CP.get(i) + \" float(7,6) ,\";\n // add column headers\t\t\n }\n query1 = query1 + \" JP float, JP_DB float, KLD float default 0, PRIMARY KEY (id) ) engine=INNODB;\";\n //System.out.println(query1);\n st.execute(query1);\n \n // copy the values from the mult table. CP values are null at this point.\n String query2 = \"insert into \" + newTable_name + \" ( MULT\";\n for(int i=1; i<column_names.size(); i++){\n \tquery2 = query2 + \", \" + column_names.get(i);\n }\n query2 = query2 + \" ) select * from \"+table_name+\"; \"; // Nov 28 @ zqian, do not use \"*\" in terms of query optimization\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t// Nov 28 @ zqian, adding covering index to CT table for query string \n System.out.println(query2);\n st.execute(query2);\n \n System.out.println(\"\\n insert into KLD table conditional probability for each node\"); // zqian\n //insert CP value to attributes\n insert_CP_Values(rchain, newTable_name,con2);\n System.out.println(\"\\n compute Bayes net joint probabilities \"); //zqian\n //compute Bayes net joint probabilities \n cal_KLD(newTable_name,con2);\n \n \n st.close();\n\t}", "@Override\r\n\tpublic List<Famille> listCompetences() {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\t//on crée une requête\r\n \t\tQuery req=session.createQuery(\"select C from FamilleComp C\");\r\n \t\tList<Famille> famillecomp=req.list();\r\n session.getTransaction().commit();\r\n \t\treturn famillecomp;\r\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n \n \n private void table(){\n \n int c;\n \n try{\n \n Connection con1 = ConnectionProvider.getConn();\n Statement stm = con1.createStatement();\n ResultSet rst = stm.executeQuery(\"select * from sales\");\n ResultSetMetaData rstm = rst.getMetaData();\n \n c = rstm.getColumnCount();\n \n DefaultTableModel dtm2 = (DefaultTableModel)jTable1.getModel();\n dtm2.setRowCount(0);\n \n while (rst.next()){\n \n Vector vec = new Vector();\n \n for(int a =1 ; a<=c; a++)\n {\n vec.add(rst.getString(\"CustomerName\"));\n vec.add(rst.getString(\"OrderNo\"));\n vec.add(rst.getString(\"TypeOfService\"));\n vec.add(rst.getString(\"OrderType\"));\n vec.add(rst.getString(\"Descript\"));\n vec.add(rst.getString(\"OrderConfirmation\"));\n vec.add(rst.getString(\"OrderHandledBy\"));\n vec.add(rst.getString(\"OrderDate\"));\n vec.add(rst.getString(\"WarrantyExpireDate\"));\n vec.add(rst.getString(\"FullAmount\"));\n vec.add(rst.getString(\"AmountPaid\"));\n vec.add(rst.getString(\"Balance\"));\n }\n \n dtm2.addRow(vec);\n }\n \n }\n catch(Exception e)\n {\n \n }\n \n \n }", "@Override\r\n public Integer oneObligorClassCount(OneObligorSC oneObligorSC) throws DAOException\r\n {\r\n\tDAOHelper.fixGridMaps(oneObligorSC, getSqlMap(), \"oneObligorMapper.oneObligorClassMap\");\r\n\treturn (Integer) getSqlMap().queryForObject(\"oneObligorMapper.oneObligorClassCount\", oneObligorSC);\r\n }", "public void infoCustomer() { ////AGGIUSTA\n\n CriteriaBuilder cb = em.getCriteriaBuilder();\n\n CriteriaQuery<Customer> cq = cb.createQuery(Customer.class);\n\n Root<Customer> cust = cq.from(Customer.class);\n\n cq.multiselect(cust.get(\"lastName\"), cb.count(cust).alias(\"numero di customer\")).groupBy(cust.get(\"lastName\"));\n\n System.out.print(\"lastName\");\n System.out.println(\"\\t Count\");\n\n /* List<Object[]> list = em.createQuery(cq).getResultList(); \n \nfor(Object[] object : list){ \n System.out.println(object[0] + \" \" + object[1]); \n \n} \n\n em.getTransaction().commit();\n em.close();\n emf.close();\n */\n }", "public HashMap<Integer, HashMap<String, String>> getMessageDataForCollabForText(ArrayList<Integer> interIDs){\n\t HashMap<Integer, HashMap<String, String>> result = new HashMap();\n\t String query = null;\n//\t stmt = getConnection(dbParams).createStatement();\n\t HashMap<String, String> message;\n\t HashMap<String, ArrayList<String>> messageMap;\n\t \n//\t stmt = getConnection(dbParams).createStatement();\n\t int contentTypeID;\n\t String contentType;\n\t int contentSubTypeID;\n\t String contentSubType = null;\n\t int resourceID;\n\t SQLXML attributes;\n\t int actionID;\n\t String actionType;\n\t ArrayList<String> resources;\n\t String resourceName;\n\t String resourceURL;\n\t String text = null;\n\t String messageAttributes = null;\n\t HashMap<String, String> msgAttributes = null;\n\t try{\n\t\t DOMSource domSource;\n\t\t Document document;\n\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n\t\t \n\t\t String expression = \"//name[.='event.action']/following-sibling::*[1][name()='value']\";\n\t \t//loop through each interID\n\t \tfor(int interID : interIDs){\n\n\t \n\t message = new HashMap();\n\t \n\t query = \"Select contentType, contentSubType, resourceID, attributes from Interactions where interID = \"+interID;\n\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t \n\t contentTypeID = rs.getInt(1);\n\t contentSubTypeID = rs.getInt(2);\n\t resourceID = rs.getInt(3);\n\t attributes = rs.getSQLXML(4);\n\t \n\t domSource = attributes.getSource(DOMSource.class);\n\t document = (Document) domSource.getNode();\n\t actionID = Integer.parseInt(xpath.evaluate(expression, document));\n\t \n\t //Get contentType\n\t contentType = getContentType(stmt, contentTypeID);\n\t //Get ContentSubType\n\t if(contentSubTypeID != -1){\n\t \t contentSubType = getContentSubType(stmt, contentSubTypeID);\n\t }\n\t \n\t //Get Action Type\n\t actionType = getActionType(actionID);\n\t //Get Resource Name and URL\n\t resources = getResourceNameAndURL(resourceID);\n\t resourceName = resources.get(0);\n\t resourceURL = resources.get(1);\n\t \n\t //Get Message Table data\n\t query = \"Select text from Messages where interID = \"+interID + \" and text IS NOT NULL\";\n\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t if(rs.getNString(1) != null){\n\t \ttext = rs.getString(1).replaceAll(\"/n\", \" \").replaceAll(\"/r\", \"\");\n\t }\n\t \n\t query = \"select attributes from messages where interId =\"+ interID + \" and attributes IS NOT NULL\";\n\t System.out.println(query);\n\t \trs = stmt.executeQuery(query);\n\t \tif(rs.next()){\n\t \t\tmessageAttributes = rs.getString(1);\t\n\t \t}\n\t \n\t \n\t //Get Attribute Names and Values\n\t \tmsgAttributes = new HashMap();\n\t \tif(messageAttributes != null){\n\t \t\tmsgAttributes = getMessageAttributes(messageAttributes);\n\t \t}\n\t \t\t\n\t ArrayList<String> fileNames = getFileListsForCollab(interID);\n\t //Add all the values\n\t message.put(\"contentType:\", contentType);\n\t \t if(contentSubTypeID != -1){\n\t \t \tmessage.put(\"contentSubType:\", contentSubType); \n\t\t }\n\t \n\t message.put(\"action:\", actionType.toLowerCase());\n\t message.put(\"resourceName:\", resourceName.toLowerCase());\n\t message.put(\"Resource URL:\", resourceURL.toLowerCase());\n\t if(text != null){\n\t \tmessage.put(\"Text Content:\", text.replaceAll(\"\\n\", \"\").replaceAll(\"\\r\", \"\").toLowerCase());\n\t }\n\t \n\t if(msgAttributes.size() > 0){\n\t\t for(String attName : msgAttributes.keySet()){\n\t\t message.put(attName+\":\", msgAttributes.get(attName).toLowerCase());\n\t\t }\t \t\n\t }\n\n\t StringBuffer fileName = new StringBuffer();\n\t if(fileNames.size() > 0){\n\t \t for(int i = 0 ; i < fileNames.size(); i++){\n\t \t \tfileName.append(fileNames.get(i));\n\t \t \tif(i + 1 != fileNames.size()){\n\t \t \t\tfileName.append(\"#\");\n\t \t \t}\n\t \t }\n\t \t message.put(\"File:\", fileName.toString().toLowerCase());\n\t }\n\t\n\t result.put(interID, message);\n\t \n\t \t}\n\t } catch(Exception e){\n\t \tSystem.err.println(e.getMessage());\n\t }\n\t return result;\n\t }", "public int siguienteRegistro(int codigoCiclo, int codigoPlan) {\n/* 454 */ int numero = 1;\n/* 455 */ String s = \"select max(codigo_meta) from cal_plan_metas\";\n/* 456 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* */ try {\n/* 458 */ boolean rta = this.dat.parseSql(s);\n/* 459 */ if (!rta) return 0; \n/* 460 */ this.rs = this.dat.getResultSet();\n/* 461 */ if (this.rs.next()) {\n/* 462 */ s = this.rs.getString(1);\n/* 463 */ if (!this.rs.wasNull()) {\n/* 464 */ numero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 467 */ if (numero < 10000) numero = 10000; \n/* 468 */ return numero;\n/* */ }\n/* 470 */ catch (Exception e) {\n/* 471 */ e.printStackTrace();\n/* 472 */ Utilidades.writeError(\"CalPlanMetasFactory:siguienteRegistro\", e);\n/* */ \n/* 474 */ return 0;\n/* */ } \n/* */ }", "int updateByPrimaryKey(CommunityInform record);", "private HashMap getTableRow(int rowNum)\r\n {\r\n HashMap hashRow = new HashMap() ;\r\n int colTotal = codeTableModel.getColumnCount()-1;\r\n for (int colCount=0; colCount <= codeTableModel.getColumnCount()-1; colCount++)\r\n { // for each column u will build a hashmap\r\n// if (colCount == 1 )\r\n// {//sponsor name is not in update sp.\r\n// continue;\r\n// }\r\n TableColumn column = codeTableColumnModel.getColumn(colCount) ;\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n Object val = null ;\r\n // the whole idea of setting up the columnBean as the identifier is that u get to know\r\n // all abt the structure details of the column, so u can create appropriate type of object\r\n // and stick it in to the hashMap\r\n if (columnBean.getDataType().equals(\"NUMBER\"))\r\n {\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount) == null\r\n ||(codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).equals(\"\")))\r\n {\r\n val = null ; //new Integer(0)\r\n }\r\n else\r\n {\r\n val = codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount);\r\n if (val instanceof ComboBoxBean)\r\n {\r\n if (((ComboBoxBean)val).getCode().equals(\"\"))// user deleted selection\r\n val = null;\r\n else\r\n val = new Integer(((ComboBoxBean)val).getCode().toString());\r\n }\r\n else\r\n {\r\n val = new Integer(val.toString()) ;\r\n }\r\n }\r\n }\r\n\r\n if (columnBean.getDataType().equals(\"VARCHAR2\"))\r\n {\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount)==null)\r\n {\r\n val = \"\";\r\n }\r\n else\r\n {\r\n val = codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).toString() ;\r\n }\r\n }\r\n\r\n if (columnBean.getDataType().equals(\"DATE\"))\r\n {\r\n //coeusdev-568 start\r\n //Date today = new Date();\r\n //coeusdev-568 end\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum), codeTableModel.getColumnCount()-1).equals(\"I\")) // if itz an insert\r\n { //AV_ & AW_ will be the same for insert\r\n //coeusdev-568 start\r\n //val = new java.sql.Timestamp(today.getTime());\r\n val = CoeusUtils.getDBTimeStamp();\r\n //coeusdev-568 end\r\n }\r\n else\r\n { // for update\r\n // there will be only two dates in any table one AV_UPDATE_TIMESTAMP and the other one AW_UPDATE_TIMESTAMP\r\n if (columnBean.getQualifier().equals(\"VALUE\"))\r\n { //AV_...\r\n //coeusdev-568 start\r\n //val = new java.sql.Timestamp(today.getTime());\r\n val = CoeusUtils.getDBTimeStamp();\r\n //coeusdev-568 end\r\n }\r\n else\r\n { //AW_...\r\n val = java.sql.Timestamp.valueOf(codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).toString()) ;\r\n }\r\n }\r\n }\r\n\r\n hashRow.put(columnBean.getColIdentifier(), val) ;\r\n } //end for\r\n return hashRow;\r\n }", "@Override public int conocerMonto(){\n\treturn 120;\n }", "public ScGridColumn<AcUpuTagSummaryVo> newOriginCountryCodeColumn()\n {\n return newOriginCountryCodeColumn(\"Origin Country Code\");\n }", "public Antecedentes getData(long dni) {\n\n\t\t\tMapSqlParameterSource params = new MapSqlParameterSource();\n\t\t\tparams.addValue(\"dni\", dni);\n\t\t\t\n\n\t\t \n\t\t\ttry {\n\t\t\t\treturn jdbc.queryForObject(\"select * from antecedentes where dni = :dni \", params, new RowMapper<Antecedentes>() {\n\t\t\n\t\t\t\t\t\t\tpublic Antecedentes mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tAntecedentes antecedentes = new Antecedentes();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tantecedentes.setDni(rs.getBigDecimal(\"dni\"));\n\t\t\t\t\t\t\t\tantecedentes.setBecario(rs.getString(\"becario\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_doctoral(rs.getString(\"tesista_doctoral\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_maestria(rs.getString(\"tesista_maestria\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_grado(rs.getString(\"tesista_grado\"));\n\t\t\t\t\t\t\t\tantecedentes.setInvestigadores(rs.getString(\"investigadores\"));\n\t\t\t\t\t\t\t\tantecedentes.setPasantes_id_y_facademica(rs.getString(\"pasantes_id_y_facademica\"));\n\t\t\t\t\t\t\t\tantecedentes.setPersonal_apoyo_id(rs.getString(\"personal_apoyo_id\"));\n\t\t\t\t\t\t\t\tantecedentes.setFinanciamiento_cientifico_tecnologico(rs.getString(\"financiamiento_cientifico_tecnologico\"));\n\t\t\t\t\t\t\t\tantecedentes.setActividades_divulgacion(rs.getString(\"actividades_divulgacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setExtension_rural_industrial(rs.getString(\"extension_rural_industrial\"));\n\t\t\t\t\t\t\t\tantecedentes.setPrestacion_servicios_sociales(rs.getString(\"prestacion_servicios_sociales\"));\n\t\t\t\t\t\t\t\tantecedentes.setProduccion_divulgacion_artistica(rs.getString(\"produccion_divulgacion_artistica\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtro_tipo_actividad(rs.getString(\"otro_tipo_actividad\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_personal(rs.getString(\"evaluacion_personal\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_programas(rs.getString(\"evaluacion_programas\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_institucional(rs.getString(\"evaluacion_institucional\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtro_tipo_evaluacion(rs.getString(\"otro_tipo_evaluacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setBecas(rs.getString(\"becas\"));\n\t\t\t\t\t\t\t\tantecedentes.setEstancias_pasantias(rs.getString(\"estancias_pasantias\"));\n\t\t\t\t\t\t\t\tantecedentes.setOperacion_mantenimiento(rs.getString(\"operacion_mantenimiento\"));\n\t\t\t\t\t\t\t\tantecedentes.setProduccion(rs.getString(\"produccion\"));\n\t\t\t\t\t\t\t\tantecedentes.setNormalizacion(rs.getString(\"normalizacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setEjercicio_profesion_ambito_no_academico(rs.getString(\"ejercicio_profesion_ambito_no_academico\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtra_actividad_cyt(rs.getString(\"otra_actividad_cyt\"));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn antecedentes;\n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t});\n\t\t\t}\n\t\t\t catch(EmptyResultDataAccessException erdae) {\n\t\t\t\t System.out.println(\"en antecedentesDAO devuelve null\");\n\t\t\t return null;\n\t\t\t }\n\t\t}", "String getIndexedCommunities(int index);", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}" ]
[ "0.54997647", "0.5357396", "0.5317105", "0.5215551", "0.5072615", "0.5071001", "0.5017789", "0.5000428", "0.49598852", "0.4889168", "0.48864365", "0.48431316", "0.48237577", "0.47921044", "0.47868294", "0.47798938", "0.47792456", "0.47678277", "0.47621578", "0.47428232", "0.4741272", "0.47294465", "0.47119945", "0.47119635", "0.46971083", "0.46799135", "0.46758044", "0.46756884", "0.46649364", "0.4647163", "0.46305314", "0.4629805", "0.46209544", "0.46180534", "0.46143177", "0.46116704", "0.4608346", "0.46069798", "0.45902452", "0.45788178", "0.4577987", "0.4576306", "0.45712313", "0.45689812", "0.45644385", "0.4561729", "0.45605737", "0.45388308", "0.45385447", "0.45385227", "0.45381257", "0.45300633", "0.45293885", "0.45277935", "0.45248333", "0.45220298", "0.45103744", "0.45101792", "0.45084998", "0.45069066", "0.45049724", "0.45045418", "0.45008707", "0.44964567", "0.4484146", "0.44832388", "0.44792983", "0.4469062", "0.4468208", "0.44564146", "0.44550925", "0.4454826", "0.44478637", "0.44475633", "0.44464204", "0.4446375", "0.44417506", "0.44403028", "0.4440266", "0.4435206", "0.44342417", "0.4425721", "0.44242805", "0.4421539", "0.44181347", "0.44164282", "0.4407985", "0.4407659", "0.44032204", "0.44009152", "0.4397981", "0.43971467", "0.4393428", "0.43869478", "0.43844765", "0.4380442", "0.43774787", "0.43749946", "0.43716592", "0.43714136" ]
0.5777076
0
This method was generated by MyBatis Generator. This method corresponds to the database table t_communityinform
int updateByPrimaryKey(CommunityInform record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CommunityInform> selectAll();", "public void setCommunity(int community) {\n this.community = community;\n }", "public String getCommunity() {\n return this.community;\n }", "CommunityInform selectByPrimaryKey(String id);", "@ApiModelProperty(value = \"小区id\")\n\tpublic Long getCommunityId() {\n\t\treturn communityId;\n\t}", "Community() {}", "@Override\n\tpublic int updateCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tJSONObject isExistJSON = this.selectOne(\"selectCommunityNameExist\", params);\n\t\tif(isExistJSON.getIntValue(\"isExist\") !=0){\n\t\t\tresult = -2;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this.delete(\"deleteCommunityMember\",params);\n\t\tif(params.getJSONArray(\"members\")!=null&&params.getJSONArray(\"members\").size()!=0){\n\t\t\tresult = this.insert(\"insertCommunityMember\",params);\n\t\t}\n\t\tresult = this.update(\"updateCommunity\", params);\n\t\treturn result ;\n\t}", "@Override\n\tpublic int insertCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tString communityId = UUIDUtil.getUUID();\n\t\tparams.put(\"communityId\", communityId);\n\t\tJSONObject isExistJSON = this.selectOne(\"selectCommunityNameExist\", params);\n\t\tif(isExistJSON.getIntValue(\"isExist\") !=0){\n\t\t\tresult = -2;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this.insert(\"insertCommunity\", params);\n\t\tif(params.getJSONArray(\"members\")!=null&&params.getJSONArray(\"members\").size()!=0){\n\t\t\tresult = this.insert(\"insertCommunityMember\",params);\n\t\t}\n\t\treturn result;\n\t}", "private void getCommunity() {\n DatabaseReference ref = FirebaseDatabase.getInstance()\n .getReference(\"Communities\").child(communityId);\n\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Community community = snapshot.getValue(Community.class);\n communityName = community.getName();\n getSupportActionBar().setTitle(communityName);\n Glide.with(getBaseContext()).load(community.getImage()).into(communityProfile);\n description.setText(community.getDescription());\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "public void setCommunityId(Long communityId) {\n\t\tthis.communityId = communityId;\n\t}", "public String getCommunityName() {\n return communityName;\n }", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "@Mapper\npublic interface WeChatInfoDao {\n\n\n /**\n * 插入微信信息\n * @param wechatInfo\n * @return\n */\n @Insert(\"INSERT INTO wechat_info(parentid,unionid,openid,nickname,sex,province,city,country,headImgUrl,\" +\n \"status,ticket_url,ticket,is_guide,reward) VALUES(#{parentid},#{unionid},#{openid},#{nickname},#{sex},#{province}\" +\n \",#{city},#{country},#{headImgUrl},#{status},#{ticketUrl},#{ticket},#{isGuide},#{reward})\")\n @Options(useGeneratedKeys=true, keyProperty=\"id\")\n int insert(WeChatInfoEntity wechatInfo);\n\n /**\n * 根据openID 查找用户信息\n * @param openid\n * @return\n */\n @Select(\"SELECT * FROM wechat_info WHERE openid = #{openid}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"nickname\", property = \"nickname\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity findByOpenID(@Param(\"openid\") String openid);\n\n /**\n * 根据openID 修改二维码信息\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET ticket_url=#{ticketUrl},ticket=#{ticket} WHERE openid=#{openid}\")\n void updateTicketUrlByOpenID(WeChatInfoEntity wechatInfo);\n\n /**\n * 取消关注\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET status=1 WHERE openid=#{openid}\")\n void updateStatusByOpenID(WeChatInfoEntity wechatInfo);\n\n\n /**\n * 更改status 状态\n * @param wechatInfo\n */\n @SelectProvider(type=WeChatInfoSqlProvider.class, method=\"updateByOpenIdSql\")\n void updateStatus(@Param(\"wechatInfo\") WeChatInfoEntity wechatInfo);\n\n @Select(\"SELECT * FROM wechat_info WHERE id = #{ID}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity selectWecahtUserByID(@Param(\"ID\")String ID);\n}", "public ScGridColumn<AcUpuTagSummaryVo> newMailCategoryCodeColumn()\n {\n return newMailCategoryCodeColumn(\"Mail Category Code\");\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\n public boolean isCommunity() {\n return false;\n }", "void initCommunityProperty();", "public ObjectId getCommunityId() {\r\n\t\treturn communityId;\r\n\t}", "public ACommunity getCisInformation(String client, String cisId);", "@Override\n\tpublic String execute() throws Exception {\n\t\t\n\t\tthis.communitylist = CommunityHibDao.select();\n\t\tActionContext.getContext().getSession().put(\"communitylist\", communitylist);\n\t\tSystem.out.println(communitylist.get(0).getCommunityName());\n\t\tSystem.out.println(\"Hello!\");\n\t\treturn super.execute();\n\t}", "public String get_snmpcommunity()\r\n\t{\r\n\t\treturn this.snmpcommunity;\r\n\t}", "public ScGridColumn<AcUpuTagSummaryVo> newMailClassCodeColumn()\n {\n return newMailClassCodeColumn(\"Mail Class Code\");\n }", "public ScGridColumn<AcUpuTagSummaryVo> newMailSubClassCodeColumn()\n {\n return newMailSubClassCodeColumn(\"Mail Sub Class Code\");\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "Collection getCommunities();", "@Override\n\tpublic ArrayList<Community> findAll() {\n\t\treturn null;\n\t}", "@Insert({\n \"insert into generalcourseinformation (courseid, code, \",\n \"name, teacher, credit, \",\n \"week, day_detail1, \",\n \"day_detail2, location, \",\n \"remaining, total, \",\n \"extra, index)\",\n \"values (#{courseid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{teacher,jdbcType=VARCHAR}, #{credit,jdbcType=INTEGER}, \",\n \"#{week,jdbcType=VARCHAR}, #{day_detail1,jdbcType=VARCHAR}, \",\n \"#{day_detail2,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, \",\n \"#{remaining,jdbcType=INTEGER}, #{total,jdbcType=INTEGER}, \",\n \"#{extra,jdbcType=VARCHAR}, #{index,jdbcType=INTEGER})\"\n })\n int insert(GeneralCourse record);", "public List<StudentCOOP> getStudentCOOP() {\n List<StudentCOOP> studentco = new ArrayList<StudentCOOP>();\n openConnection();\n try {\n getAllStudent = conn.prepareStatement(\"select * from APP.STUDENTCOOP\");\n rs = getAllStudent.executeQuery();\n while (rs.next()) {\n studentco.add(\n new StudentCOOP(rs.getString(\"ZID\"), rs.getString(\"FIRSTNAME\"), rs.getString(\"LASTNAME\"),\n rs.getString(\"GENDER\"), rs.getString(\"ADDRESS\"), rs.getInt(\"CONTACT\"), rs.getString(\"EMAIL\"),\n rs.getString(\"WORKEMAIL\"), rs.getString(\"NOTES\"), rs.getString(\"SUBJECT\"), \n rs.getInt(\"SEMESTERCOMPLETED\"), rs.getDouble(\"MARK\"), rs.getDouble(\"WAM\"))\n );\n }\n rs.close();\n getAllStudent.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n return studentco;\n }", "public void createTableComplaintsData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tDatabaseMetaData d=con.getMetaData();\n\t\t\t\tResultSet rs=d.getTables(null,null,\"ComplaintsData\",null);\n\t\t\t\tif(rs.next())\n\t\t\t\t{\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData table exist\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tString Create_Table=\"create table ComplaintsData(Customer_Name varchar(100),Address varchar(100),Contact varchar(30),Product varchar(100),Serial_No varchar(50),Module_No varchar(50),Complaint_No varchar(50),Category varchar(30))\";\n\t\t\t\t\tPreparedStatement ps=con.prepareStatement(Create_Table);\n\t\t\t\t\tps.executeUpdate();\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData created successfully!\");\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}", "@Override\n public String toString() {\n return bestCommunity + \"\";\n }", "public void set_snmpcommunity(String snmpcommunity)\r\n\t{\r\n\t\tthis.snmpcommunity = snmpcommunity;\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //LiquidacionImpor\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tLiquidacionImpor entity = new LiquidacionImpor();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,LiquidacionImporDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Importaciones.LiquidacionImpor.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseLiquidacionImpor(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public void setSnmpCommunity(String snmpCommunity) {\r\n this.snmpCommunity = snmpCommunity;\r\n }", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "List<CommunityDTO> findAll();", "public java.sql.ResultSet CitasActivasSoloMedico(String CodigoMedico){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas, 7, 3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo = \"+CodigoMedico+\" AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND phm.estado='0' AND sdp.numeroDocumento = pmd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY phm.fechas,jornada,phm.horas LIMIT 100 \");\r\n \t//System.out.println(\"SELECT ahm.codigo,ahm.horas,ahm.fechas,ahm.NombrePaciente,aes.nombre_especialidad,amd.nombre,amd.apellidos,ahm.estado,aes.codigo,amd.codigo,su.usu_codigo,SUBSTRING(ahm.horas, 7, 3) AS jornada FROM agm_horariomedico ahm,agm_medico amd,agm_especialidad aes,seg_datos_personales sdp,seg_usuario su WHERE amd.codigo = \"+CodigoMedico+\" AND ahm.codMedico_fk = amd.codigo AND amd.codEspe_fk = aes.codigo AND ahm.estado='0' AND sdp.numeroDocumento = amd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND ahm.fechas >= CURDATE() ORDER BY ahm.fechas,jornada,ahm.horas LIMIT 100 \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "int insert(CommunityInform record);", "public Collection<Community> getAllCommunities() {\n return communityStore.getAll();\n }", "public void Nouvelleligne() {\n int maxEleve = retourneMaxNumber() + 1;\n try {\n Connector1.statement.executeUpdate(\"Insert INTO eleve(id_el) VALUES (\" + maxEleve + \")\");\n Object[] val = {maxEleve, \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"};\n effaceTable(jTable2, mode);\n mode.addRow(val);\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n\n }\n\n }", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Override\n\tpublic String toSql() {\n\t\treturn null;\n\t}", "public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "private void remplirPriseEnCompte() {\r\n\t\tResultSet result = ctn.lectureData(\"SELECT * FROM PriseEnCompte\");\r\n\t\t// Remplissage tableau et combo Utilisateur\r\n\t\ttry {\r\n\t\t\twhile(result.next()) {\r\n\t\t\t\ttbPriseEnCompte.add(new StructPriseEnCompte(result.getLong(\"idPriseEnCompte\"), result.getString(\"Nom\"), result.getString(\"Description\")));\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\tctn.closeLectureData();\r\n\t\ttry {\r\n\t\t\tresult.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public void updateStudentCOOP(StudentCOOP toUpdate) {\n openConnection();\n try {\n updateStudent = conn.prepareStatement(\"update app.studentcoop set firstname=?, lastname=?, gender=?, address=?,\"\n + \" contact=?, email=?, workemail=?, notes=?, subject=?, semestercompleted=?, mark=?, wam=?\");\n \n updateStudent.setString(1, toUpdate.getZID());\n updateStudent.setString(1, toUpdate.getFName());\n updateStudent.setString(2, toUpdate.getLName());\n updateStudent.setString(3, toUpdate.getGEnder());\n updateStudent.setString(4, toUpdate.getADdress());\n updateStudent.setInt(5, toUpdate.getCOntact());\n updateStudent.setString(6, toUpdate.getEMail());\n updateStudent.setString(7, toUpdate.getWOrkemail());\n updateStudent.setString(8, toUpdate.getNOtes());\n updateStudent.setString(9, toUpdate.getSUbject());\n updateStudent.setInt(10, toUpdate.getSEmestercompleted());\n updateStudent.setDouble(11, toUpdate.getMArk());\n updateStudent.setDouble(12, toUpdate.getWAm());\n\n updateStudent.executeUpdate();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n }", "@SuppressWarnings(\"unchecked\")\n public void table_update(){\n int c;\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n con=DriverManager.getConnection(\"jdbc:mysql://localhost/footballdb\",\"root\",\"\");\n pst=con.prepareStatement(\"Select * from manager\");\n ResultSet Rs=pst.executeQuery();\n ResultSetMetaData rd=Rs.getMetaData();\n c=rd.getColumnCount();\n DefaultTableModel df=(DefaultTableModel)jTable1.getModel();\n df.setRowCount(0);\n while(Rs.next()){\n Vector v2=new Vector();\n for(int i=1;i<=c;i++){\n \n v2.add(Rs.getString(\"managerid\"));\n v2.add(Rs.getString(\"mname\"));\n v2.add(Rs.getString(\"teamid\"));\n \n }\n df.addRow(v2);\n \n }\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(manager.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(manager.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "public HashMap<Integer, HashMap<String, String>> getXMLMessageDataForCollabFromDB(ArrayList<Integer> interIDs) throws SQLException, NumberFormatException, XPathExpressionException, ParserConfigurationException, SAXException, IOException{\n\t HashMap<Integer, HashMap<String, String>> result = new HashMap();\n\t String query = null;\n\t HashMap<String, String> message;\n\t HashMap<String, ArrayList<String>> messageMap;\n\t \n//\t Select parentEventID,eventID,resourceName,roomName,networkID, buddyName, intemployeeID, containerID, contentType, contentSubType, resourceID, attributes\n\t \n\t String parentEventId;\n\t String eventId;\n\t String roomName;\n\t String networkId;\n\t String buddyName;\n\t String intEmployeeId;\n\t String employeeId = null;\n\t String containerId;\n\t String networkName;\n\t String employeeEmail = null;\n\t \n\t int contentTypeID;\n\t String contentType;\n\t int contentSubTypeID;\n\t String contentSubType = null;\n\t int resourceID;\n\t SQLXML attributes;\n\t int actionID;\n\t String actionType;\n\t ArrayList<String> resources;\n\t String resourceName;\n\t String resourceURL;\n\t String text;\n\t String messageAttributes = null;\n\t HashMap<String, String> msgAttributes = null;\n\t \n//\t stmt = getConnection(dbParams).createStatement();\n\t \n\t DOMSource domSource;\n\t Document document;\n\t XPath xpath = XPathFactory.newInstance().newXPath();\n\t \n\t String expression = \"//name[.='event.action']/following-sibling::*[1][name()='value']\";\n\t \n\t //loop through each interID\n\t for(int interID : interIDs){\n\t \n\t message = new HashMap();\n\t \n\t query = \"Select parentEventID,eventID,roomName,networkID, buddyName, intemployeeID, containerID, contentType, contentSubType, resourceID, attributes from Interactions where interID = \"+interID;\n//\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t parentEventId = rs.getString(1);\n\t eventId = rs.getString(2);\n\t roomName = rs.getString(3);\n\t networkId = rs.getString(4);\n\t buddyName = rs.getString(5);\n\t intEmployeeId = rs.getString(6);\n\t containerId = rs.getString(7);\n\t contentTypeID = rs.getInt(8);\n\t contentSubTypeID = rs.getInt(9);\n\t resourceID = rs.getInt(10);\n\t attributes = rs.getSQLXML(11);\n\t \n\t\t domSource = attributes.getSource(DOMSource.class);\n\t\t document = (Document) domSource.getNode();\n\t\t actionID = Integer.parseInt(xpath.evaluate(expression, document));\n\t\t \n\t\t //Get contentType\n\t\t contentType = getContentType(stmt, contentTypeID);\n\t\t //Get ContentSubType\n\t\t if(contentSubTypeID != -1){\n\t\t \t contentSubType = getContentSubType(stmt, contentSubTypeID);\t \n\t\t }\n\t\t \n\t\t //Get Action Type\n\t\t actionType = getActionType(actionID);\n\t\t //Get Resource Name and URL\n\t\t resources = getResourceNameAndURL(resourceID);\n\t\t resourceName = resources.get(0);\n\t\t resourceURL = resources.get(1);\n//\t\t Get Network Name\n\t\t networkName = getNetworkName(networkId);\n//\t\t Get EmployeeId\n\t\t if(intEmployeeId != null){\n\t\t \t employeeId = getEmployeeId(stmt, intEmployeeId);\n//\t\t\t Get Employee Email\n\t\t\t \n\t\t\t employeeEmail = getEmployeeEmail(stmt, intEmployeeId);\n\t\t\t if(employeeEmail == null){\n\t\t\t \t employeeEmail = buddyName;\n\t\t\t }\n\t\t }\n\t\t \n\n\t\t \n\t\t //Get Message Table data\n\t\t query = \"Select text from Messages where interID = \"+interID;\n//\t\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t text = rs.getString(1).trim().replaceAll(\"\\n\", \"\").replaceAll(\"\\r\", \"\");\n\t\t\t query = \"Select attributes from Messages where interID = \"+interID + \" and attributes is not null\";\n//\t\t\t System.out.println(query);\n\t\t rs = stmt.executeQuery(query);\n\t\t if(rs.next()){\n\t\t \t messageAttributes = rs.getString(1);\n\t\t }\n\t\t \t \n\t msgAttributes = new HashMap();\n\t //Get Attribute Names and Values\n\t\t if(messageAttributes != null){\n\t\t \t \n\t\t \t msgAttributes = getMessageAttributes(messageAttributes); \t \n\t\t }\n\t \n\t \n\t //Add all the values\n\t message.put(\"parentEventID\", parentEventId);\n\t message.put(\"eventId\", eventId);\n\t message.put(\"containerId\", containerId);\n\t message.put(\"roomName\", roomName);\n\t message.put(\"buddyName\", buddyName);\n\t message.put(\"networkID\", networkId);\n\t message.put(\"networkName\", networkName);\n\t message.put(\"employeeId\", employeeId);\n\t message.put(\"employeeEmail\", employeeEmail);\n\t message.put(\"intEmployeeID\", intEmployeeId);\n\t message.put(\"Content type\", contentType);\n\t if(contentSubTypeID != 0){\n\t \t message.put(\"Content sub-type\", contentSubType); \n\t }\n\t \n\t message.put(\"Action\", actionType);\n\t message.put(\"Resource name\", resourceName);\n\t message.put(\"Resource URL\", resourceURL);\n\t message.put(\"Text\", text);\n\t if(msgAttributes.size() > 0){\n\t \t message.putAll(msgAttributes); \n\t }\n\t \n//\t for(String attName : msgAttributes.keySet()){\n//\t message.put(attName, msgAttributes.get(attName));\n//\t }\n\n\t ArrayList<String> fileNames = getFileListsForCollab(interID);\n\t StringBuffer fileName = new StringBuffer();\n\t if(fileNames.size() > 0){\n\t \t for(int i = 0 ; i < fileNames.size(); i++){\n\t \t\t fileName.append(fileNames.get(i));\n\t \t\t if(i + 1 != fileNames.size()){\n\t \t\t\t fileName.append(\"#\");\n\t \t\t }\n\t \t }\n\t \t message.put(\"File\", fileName.toString());\n\t }\n\t \n\t result.put(interID, message);\n\t }\n\t \n\t return result;\n\t }", "@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public List<TcTipoNomina> getNominasValidasBenefComodin() {\n String nominasValidasBenefComodin = super.getQueryDefinition(\"nominasValidasBenefComodin\");\n \n Map<String, Object> mapValues = new HashMap<String, Object>();\n \n SqlParameterSource namedParameters = new MapSqlParameterSource(mapValues);\n DataSource ds = super.getJdbcTemplate().getDataSource();\n NamedParameterJdbcTemplate namedTemplate = new NamedParameterJdbcTemplate(ds);\n \n super.getJdbcTemplate().setFetchSize(100);\n return namedTemplate.query(nominasValidasBenefComodin, namedParameters, new TcTipoNominasValidasBenefComodinAux());\n }", "public PageList<JSONObject> getCommunityOperatorList(String communityName, int pageNum, int pageSize, String realname,\n String phone, long id, String username) {\n Map<String, Object> param = new HashMap<>();\n if (StringUtils.isNotBlank(communityName)) {\n param.put(\"communityName\", \"%\" + communityName + \"%\");\n }\n if (StringUtils.isNotBlank(phone)) {\n param.put(\"phone\", \"%\" + phone + \"%\");\n }\n if (StringUtils.isNotBlank(realname)) {\n param.put(\"realname\", \"%\" + realname + \"%\");\n }\n if (id > 0) {\n param.put(\"id\", id);\n }\n\n if (StringUtils.isNotBlank(username)) {\n param.put(\"username\", \"%\" + username + \"%\");\n }\n PageBounds pageBounds = new PageBounds(pageNum, pageSize);\n // 查询操作员信息\n PageList<Map> pageList = extCommunityAdminMapper.pageByCondition(param, pageBounds);\n\n PageList<JSONObject> pl = new PageList<>(pageList.getPaginator());\n\n if (pageList != null && pageList.size() > 0) {\n for (Map map : pageList) {\n JSONObject object = new JSONObject();\n object.put(\"id\", map.get(\"id\"));\n object.put(\"name\", map.get(\"name\"));\n object.put(\"realname\", map.get(\"realname\"));\n object.put(\"phone\", map.get(\"phone\"));\n object.put(\"tel\", map.get(\"tel\"));\n object.put(\"email\", map.get(\"email\"));\n object.put(\"status\", map.get(\"status\"));\n object.put(\"create_time\", map.get(\"createTime\"));\n object.put(\"username\", map.get(\"username\"));\n object.put(\"last_login_time\", map.get(\"latestLoginTime\"));\n object.put(\"community_id\", map.get(\"communityId\"));\n object.put(\"position\", map.get(\"position\"));\n // 根据管理员ID查询部门\n List<SysDeptSim> deptList = extSysDeptMapper.getSysDeptListByAdminId((long) map.get(\"id\"));\n if (deptList != null && deptList.size() > 0) {\n object.put(\"dept_name\", deptList.get(0).getName());\n object.put(\"dept_id\", deptList.get(0).getId());\n } else {\n object.put(\"dept_name\", null);\n object.put(\"dept_id\", null);\n }\n // 根据管理员ID查询角色\n List<SysRole> roleList = extSysRoleMapper.getSysRoleListByAdminId((long) map.get(\"id\"), Constant.App.Id.COMMUNITY_ADMIN.value());\n if (roleList != null && roleList.size() > 0) {\n object.put(\"role_name\", roleList.get(0).getName());\n object.put(\"role_id\", roleList.get(0).getId());\n } else {\n object.put(\"role_name\", null);\n object.put(\"role_id\", null);\n }\n\n // 查询主会员信息\n //FIXME 性能极差,中哥说的.\n//\t\t\t\tMap<String, Object> condition = new HashMap<>();\n//\t\t\t\tcondition.put(\"communityId\", map.get(\"communityId\"));\n//\t\t\t\tList<Map> masterInfoList = extMasterInfoMapper.selectMasterInfoAndPassport(condition);\n//\t\t\t\tJSONArray masterInfoArray = new JSONArray();\n//\t\t\t\tif (masterInfoList != null && masterInfoList.size() > 0) {\n//\t\t\t\t\tfor (Map masterInfoMap : masterInfoList) {\n//\t\t\t\t\t\tJSONObject masterInfoObject = new JSONObject();\n//\t\t\t\t\t\tmasterInfoObject.put(\"id\", masterInfoMap.get(\"id\"));\n//\t\t\t\t\t\tmasterInfoObject.put(\"username\", masterInfoMap.get(\"username\"));\n//\t\t\t\t\t\tmasterInfoArray.add(masterInfoObject);\n//\t\t\t\t\t}\n//\t\t\t\t}\n\n//\t\t\t\tobject.put(\"master_info_list\", masterInfoArray);\n JSONArray masterInfoArray = new JSONArray();\n object.put(\"master_info_list\", masterInfoArray);\n\n pl.add(object);\n }\n }\n//\t\tjson.put(\"totalRow\", pageList.getPaginator().getTotal());\n//\t\tjson.put(\"pageNumber\", pageNum);\n//\t\tjson.put(\"lastPage\", pageList.getPaginator().isLast());\n//\t\tjson.put(\"firstPage\", pageList.getPaginator().isFirst());\n//\t\tjson.put(\"totalPage\", pageList.getPaginator().getPages());\n//\t\tjson.put(\"pageSize\", pageSize);\n//\t\tjson.put(\"list\", array);\n\n return pl;\n }", "@Override\n\tpublic List<JSONObject> getCommunities(JSONObject params) {\n\t\tList<JSONObject> communities = this.selectList(\"getCommunities\",params);\n\t\tif(communities.size()!=0){\n\t\t\tparams.put(\"communities\", communities);\n\t\t\tList<JSONObject> members = this.selectList(\"selectCommunityMembers\",params);\n\t\t\tMap<String,List<JSONObject>> memberMap = new HashMap();\n\t\t\tfor(JSONObject memberJSON:members){\n\t\t\t\tString communityId = memberJSON.getString(\"communityId\");\n\t\t\t\tList<JSONObject> memberList= memberMap.get(communityId);\n\t\t\t\tif(memberList==null){\n\t\t\t\t\tmemberList = new ArrayList();\n\t\t\t\t\tmemberMap.put(communityId,memberList);\n\t\t\t\t}\n\t\t\t\tmemberList.add(memberJSON);\n\t\t\t}\n\t\t\tfor(JSONObject communityJSON:communities){\n\t\t\t\tString communityId = communityJSON.getString(\"communityId\");\n\t\t\t\tcommunityJSON.put(\"members\", memberMap.get(communityId)==null?new ArrayList():memberMap.get(communityId));\n\t\t\t}\n\t\t}\n\t\treturn communities;\n\t}", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "@Override\n public List<Community> getCommunities(Context context, Item item) throws SQLException\n {\n List<Community> result = new ArrayList<Community>();\n List<Collection> collections = item.getCollections();\n for(Collection collection : collections)\n {\n List<Community> owningCommunities = collection.getCommunities();\n for (Community community : owningCommunities) {\n result.add(community);\n result.addAll(communityService.getAllParents(context, community));\n }\n }\n\n return result;\n }", "public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private Map<Long, List<ObligacionCoactivoDTO>> consultaObligacionesComparendo() {\n logger.debug(\"CoactivoEJB::consultaObligacionesComparendo()\");\n Map<Long, List<ObligacionCoactivoDTO>> obligacionesDeudor = new HashMap<>();\n StringBuilder consulta = new StringBuilder();\n consulta.append(\"SELECT \");\n consulta.append(\"p.id_cartera, \");\n consulta.append(\"ca.saldo_capital, \");\n consulta.append(\"ca.saldo_interes, \");\n consulta.append(\"p.numero_obligacion, \");\n consulta.append(\"p.id_deudor, \");\n consulta.append(\"p.fecha_obligacion, \");\n consulta.append(\"p.id_funcionario, \");\n consulta.append(\"p.id_cargue_coactivo, \");\n consulta.append(\"p.id_precoactivo \");\n consulta.append(\"FROM precoactivo p \");\n consulta.append(\"JOIN cartera ca on ca.id_cartera = p.id_cartera \");\n consulta.append(\"WHERE p.id_estado_precoactivo = :estadoAprobado \");\n consulta.append(\"AND p.codigo_tipo_obligacion = :tipoComparendo \");\n\n Query query = em.createNativeQuery(consulta.toString());\n query.setParameter(\"estadoAprobado\", EnumEstadoPrecoactivo.AUTORIZADO.getValue());\n query.setParameter(\"tipoComparendo\", EnumTipoObligacion.COMPARENDO.getValue());\n @SuppressWarnings({ \"unchecked\" })\n List<Object[]> lsObligacionesComparendos = Utilidades.safeList(query.getResultList());\n\n for (Object[] obligacionComparendo : lsObligacionesComparendos) {\n int i = 0;\n BigInteger idCartera = (BigInteger) obligacionComparendo[i++];\n BigDecimal saldoCapital = (BigDecimal) obligacionComparendo[i++];\n BigDecimal saldoInteres = (BigDecimal) obligacionComparendo[i++];\n String numObligacion = (String) obligacionComparendo[i++];\n Long idDeudor = ((BigInteger) obligacionComparendo[i++]).longValue();\n Date fechaObligacion = (Date) obligacionComparendo[i++];\n Integer idFuncionario = (Integer) obligacionComparendo[i++];\n Long idCargue = ((BigInteger) obligacionComparendo[i++]).longValue();\n Long idPrecoactivo = ((BigInteger) obligacionComparendo[i++]).longValue();\n\n CoactivoDTO coactivo = new CoactivoDTO();\n coactivo.setCargueCoactivo(new CargueCoactivoDTO(idCargue));\n coactivo.setFuncionario(new FuncionarioDTO(idFuncionario));\n coactivo.setPersona(new PersonaDTO(idDeudor));\n // Arma obligacion que va a entrar a coactivo\n ObligacionCoactivoDTO obligacion = new ObligacionCoactivoDTO();\n obligacion.setCodigoTipoObligacion(EnumTipoObligacion.COMPARENDO.getValue());\n obligacion.setCartera(new CarteraDTO(idCartera.longValue()));\n obligacion.setNumeroObligacion(numObligacion);\n obligacion.setCoactivo(coactivo);\n obligacion.setFechaObligacion(fechaObligacion);\n obligacion.setValorObligacion(saldoCapital);\n obligacion.setValorInteresMoratorios(saldoInteres);\n obligacion.setIdPrecoativo(idPrecoactivo);\n if (!obligacionesDeudor.containsKey(idDeudor)) {\n obligacionesDeudor.put(idDeudor, new ArrayList<ObligacionCoactivoDTO>());\n }\n obligacionesDeudor.get(idDeudor).add(obligacion);\n }\n return obligacionesDeudor;\n }", "public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){\n\tString sql=\"select * from institucion where cod_institucion='\"+cod_solicitud+\"';\";\n\t\n\treturn db.queryForObject(sql, new InstitucionRowMapper());\n}", "public Socio getSocioInfoAtualizar() {\n\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem para pegar Socio\"); \n Statement stmt = null;\n\n\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM alterados\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio (rs.getString(\"nomeSocio\"),rs.getString(\"cpfSocio\"),rs.getString(\"rgSocio\"),\n rs.getString(\"matSocio\"),rs.getString(\"sexoSocio\"),rs.getString(\"diaNascSocio\"),\n rs.getString(\"mesNascSocio\"),rs.getString(\"anoNascSocio\"),rs.getString(\"enderecoSocio\"),\n rs.getString(\"numEndSocio\"),rs.getString(\"bairroSocio\"),rs.getString(\"cidadeSocio\"),\n rs.getString(\"estadoSocio\"),rs.getString(\"foneSocio\"),rs.getString(\"celSocio\"),\n rs.getString(\"emailSocio\"),rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"), rs.getInt(\"idSocioPK\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n\n \n Socio socioMax = new Socio();\n\n socioMax = listaSocio.get(0);\n\n //Se houver mais de um socio na lista vai procurar o de maior ID\n if(listaSocio.size()-1 > 0){\n\n for(int i=0; i<= listaSocio.size()-1; i++){\n\n Socio socio = new Socio();\n socio = listaSocio.get(i);\n\n if(socio.getIdAlterado()>= socioMax.getIdAlterado() ){\n socioMax = socio;\n }\n\n }\n\n }\n //Se não pega o primeiro\n else {\n socioMax = listaSocio.get(0);\n \n }\n\n System.out.println(socioMax.getIdAlterado());\n\n //Retorna o socio de maior ID, logo o ultimo inserido.\n return socioMax;\n }", "public abstract String toSQL();", "public void showData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\t\tString sql=\"select *from ComplaintsData\";\n\t\t\t\tps=con.prepareStatement(sql);\n\t\t\t\trs=ps.executeQuery();\n\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public ResultSet Cmus(Long comp_id) throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tSystem.out.println(comp_id);\r\n\t//String sql=\"select c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\";\r\n\t//System.out.println(sql);\r\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\");\r\n\treturn rs;\r\n}", "public M csmiNationNull(){if(this.get(\"csmiNationNot\")==null)this.put(\"csmiNationNot\", \"\");this.put(\"csmiNation\", null);return this;}", "public donorList() {\n initComponents();\n try {\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n Connection connection = DriverManager.getConnection( \"jdbc:sqlserver://localhost:1433;user=sa;password=123456;\" +\n \"databaseName=BloodBankMS;\");\n \n \n Statement statement = connection.createStatement(); \n \n ResultSet rs = statement.executeQuery(\"SELECT DonorID , DonorName ,DonorGender ,DonorAddress ,DonorBloodGroup , DonorArea , DonorPhoneNumber, DonorAge, DonorWeight from DONOR\"); \n ResultSetMetaData rsmetadata = rs.getMetaData(); \n int columns = rsmetadata.getColumnCount(); \n DefaultTableModel dtm = new DefaultTableModel(); \n Vector columns_name=new Vector();\n Vector data_rows=new Vector();\n for(int i= 1; i < columns+1; i++) \n { \n columns_name.addElement (rsmetadata.getColumnLabel(i)); \n } \n \n dtm.setColumnIdentifiers(columns_name);\n while (rs.next()) \n { \n data_rows = new Vector(); \n for (int j = 1; j <columns+1; j++) \n { \n data_rows.addElement(rs.getString(j)) ;\n } \n dtm.addRow(data_rows); \n \n } \n donorTable.setModel(dtm); \n \n } catch (Exception e) { \n e.printStackTrace(); \n }\n }", "@Override\n public DycpCompensacionDTO encontrar(String numControl) throws SIATException {\n try {\n String query =\n \" SELECT C.*, S.*, TT.*, SI.*, PER.*, CON.*, IMP.*, CON.DESCRIPCION, PER.DESCRIPCION as DESCRIPCION_PERIODO, IMP.DESCRIPCION as DESCRIPCION_IMPUESTO \"\n + \"FROM DYCP_COMPENSACION C, DYCP_SERVICIO S, DYCC_TIPOTRAMITE TT, DYCT_SALDOICEP SI, \"\n + \"DYCC_PERIODO PER, DYCC_CONCEPTO CON, DYCC_IMPUESTO IMP \"\n + \"WHERE C.NUMCONTROL = S.NUMCONTROL \"\n + \"AND TT.IDTIPOTRAMITE = S.IDTIPOTRAMITE AND SI.IDSALDOICEP = C.IDSALDOICEPORIGEN \"\n + \"AND PER.IDPERIODO = SI.IDPERIODO AND CON.IDCONCEPTO = SI.IDCONCEPTO AND IMP.IDIMPUESTO = CON.IDIMPUESTO \" \n + \"AND C.NUMCONTROL = ? ORDER BY C.IDSALDOICEPDESTINO DESC\";\n TipoTramiteMapper mapperTipoTramite = new TipoTramiteMapper();\n DycpServicioMapper mapperServicio = new DycpServicioMapper();\n mapperServicio.setMapperTipoTramite(mapperTipoTramite);\n CompensacionMapper mapper = new CompensacionMapper();\n DyctSaldoIcepMapper mapperSaldoIcep = new DyctSaldoIcepMapper();\n PeriodoMapper mapperPeriodo = new PeriodoMapper();\n ConceptoMapper mapperConcepto = new ConceptoMapper();\n ImpuestoMapper mapperImpuesto = new ImpuestoMapper();\n mapperSaldoIcep.setMapperPeriodo(mapperPeriodo);\n mapperConcepto.setMapperImpuesto(mapperImpuesto);\n mapperSaldoIcep.setMapperConcepto(mapperConcepto);\n mapper.setMapperServicio(mapperServicio);\n mapper.setMapperSaldoIcepOrigen(mapperSaldoIcep);\n return jdbcTemplateDYC.queryForObject(query, new Object[] { numControl }, mapper);\n } catch (DataAccessException dae) {\n log.error(ConstantesDyC1.TEXTO_1_ERROR_DAO + dae.getMessage() + ConstantesDyC1.TEXTO_2_ERROR_DAO +\n SQLOracleDyC.CONSULTA_DYCP_COMPENSACION + ConstantesDyC1.TEXTO_3_ERROR_DAO + \"numcontrol\" + numControl +\n ConstantesDyC1.TEXTO_8_CAUSAS + dae.getCause());\n throw new SIATException(dae);\n }\n }", "public Community()\r\n {\r\n //\r\n }", "private static String getTableName(String baseName, boolean isCommunity, boolean isCollection, boolean isDistinct,\n boolean isMap) {\n // isDistinct is meaningless in relation to isCommunity and isCollection\n // so we bounce that back first, ignoring other arguments\n if (isDistinct) {\n return baseName + \"_dis\";\n }\n\n // isCommunity and isCollection are mutually exclusive\n if (isCommunity) {\n baseName = baseName + \"_com\";\n } else if (isCollection) {\n baseName = baseName + \"_col\";\n }\n\n // isMap is additive to isCommunity and isCollection\n if (isMap) {\n baseName = baseName + \"_dmap\";\n }\n\n return baseName;\n }", "protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}", "@Override\n\tpublic CommunicationInfo getCommuInfo(HashMap<String, String> map) {\n\t\treturn null;\n\t}", "public void populateTable() {\n DefaultTableModel dtm = (DefaultTableModel)tblSalesPersonCommision.getModel();\n dtm.setRowCount(0);\n // for(OrderList orderlist:salesperson.getOrderlistcatalog().getSalesPersonOrder()){\n // for(Order order:salesperson.getOrderListSalesPerson().getOrderList()){ \n // for(OrderList orderlist:salesperson.getOrderlistcatalog().getOrCatalog()){\n // for(SalesPerson salesperson :business.getEmployeedirectory().getSalesPersonList()){\n \n for(OrderList orderlist:salesperson.getOrderlistcatalog().getOrCatalog()){\n Object [] row = new Object[4];\n // row[0]=.getCustomer().getCustomerId();\n // row[1]= market.getCustomer().getCustomerName();\n row[0]=orderlist;\n row[1]=orderlist.getOrdertotalprice();\n row[2]=orderlist.getSalespersoncomission();\n row[3]=orderlist.getTotalorderlistquantity();\n //3 tcomission = tcomission + orderlist.getSalespersoncomission();\n //3 totalquantity = totalquantity + orderlist.getTotalorderlistquantity();\n //3 totalorderprice = totalorderprice + orderlist.getOrdertotalprice();\n \n // row[0]=order;\n // row[1]=order.getAmountprice();\n \n dtm.addRow(row);\n // }\n // }\n } \n //2 salesperson.getOrderlistcatalog().setTotalquantitypersalesperson(totalquantity);\n //2 salesperson.getOrderlistcatalog().setTotalcommision(tcomission);\n //2 salesperson.getOrderlistcatalog().setTotalorderlistcsatalogprice(totalorderprice);\n}", "public boolean vérification_collab_simp(String username) {\ntry {\n\t\t\t\n\t\t\tjdbc.setConnection();\n\t\t\tStatement stm=jdbc.setConnection().createStatement();\n\t\t\tString strcheck=\"select collaborateur_simple.id from collaborateur_simple,utilisateur where collaborateur_simple.id=utilisateur.id and utilisateur.username=\"+'\"'+username+'\"';\n\t\t\t\n\t\t\t\t\n\t\t\tResultSet res = stm.executeQuery(strcheck);\n\t\t\t\n\t\t\t\n\t\t\twhile (res.next()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tjdbc.setConnection().close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void init(Map<String, Object> values) {\n\t\tthis.setType(\"community_name\", FieldType.TABLE_SELECTOR);\r\n\t\tthis.setType(\"did\", FieldType.TABLE_SELECTOR);\r\n\t\tthis.setType(\"contract_id\", FieldType.TABLE_SELECTOR);\r\n\r\n\t\tTableSelector selector_communities = UIHandler.selector(args -> {\r\n\t\t\tJTable t = (JTable) args[0];\r\n\t\t\tt.setModel(new CommunitiesTableModelImpl());\r\n\t\t\tRuntimeStore.runUI().refresh(new CommunityRequestImpl().query(), t.getModel());;\r\n\t\t\treturn null;\r\n\t\t});\r\n\r\n\t\tselector_communities.comfirm(args -> {\r\n\t\t\tUIHandler.handle_table_selector(\"community_name\", \"name\", args);\r\n\t\t\treturn null;\r\n\t\t}, \"0\");\r\n\r\n\t\tthis.setValue(\"community_name\", selector_communities);\r\n\t}", "public synchronized String getSenhaPromocional(MensagemPromocional msgPromo,String msisdn, Connection con) throws SQLException\n\t{\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet \t\t rs = null;\n\t\tString \t\t\t senha = null;\n\t\ttry\n\t\t{\n\t\t\tpstmt = con.prepareStatement(sqlSenha);\n\t\t\tpstmt.setInt(1,msgPromo.getCodServico());\n\t\t\tpstmt.setInt(2,msgPromo.getCodConteudo());\n\t\t\tpstmt.setInt(3,msgPromo.getCodPromocao());\n\t\t\trs = pstmt.executeQuery();\n\t\t\tif (rs.next())\n\t\t\t{\n\t\t\t\t// Caso a pesquisa de senha retornou que existe uma proxima disponive\n\t\t\t\t// entao atualiza o registro indicando qual o assinante que requisitou\n\t\t\t\t// antes de enviar a senha por sms\n\t\t\t\tsenha = rs.getString(\"CO_SENHA\");\n\t\t\t\t// Marca agora a utilizacao da senha pelo assinante\n\t\t\t\tPreparedStatement pstmtUpd = con.prepareStatement(sqlUpdSenha);\n\t\t\t\tpstmtUpd.setString\t\t(1,msisdn);\n\t\t\t\tpstmtUpd.setTimestamp\t(2,new Timestamp(Calendar.getInstance().getTimeInMillis()));\n\t\t\t\tpstmtUpd.setInt \t\t(3,msgPromo.getCodServico());\n\t\t\t\tpstmtUpd.setInt \t\t(4,msgPromo.getCodConteudo());\n\t\t\t\tpstmtUpd.setInt\t \t\t(5,msgPromo.getCodPromocao());\n\t\t\t\tpstmtUpd.setString\t\t(6,senha);\n\t\t\t\t\n\t\t\t\tpstmtUpd.executeUpdate();\n\t\t\t\tpstmtUpd.close();\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\tthrow e;\n\t\t}\n\t\tfinally{\n\t\t\ttry{// Fecha os objetos de consulta\n\t\t\t\tif (rs != null) rs.close();\n\t\t\t\tif (pstmt != null) pstmt.close();\n\t\t\t}catch(Exception e){};\n\t\t}\n\n\t\treturn senha;\n\t}", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "public String getNomTable();", "java.lang.String getSqlCode();", "public void setBestCommunity(int bestCommunity) {\n this.bestCommunity = bestCommunity;\n }", "public boolean asignaNumeroFac(java.sql.Connection conIns, int intCodEmp,int intCodLoc, int intCodTipDocFacEle, int intCodDoc, int intCodCot) \r\n {\r\n boolean blnRes = false;\r\n java.sql.Statement stmLoc, stmLocIns;\r\n java.sql.ResultSet rstLoc;\r\n String strSql = \"\";\r\n String strSqlIns = \"\";\r\n int intNumDoc = 0;\r\n int intNumDocGuia = 0;\r\n try \r\n {\r\n if (conIns != null){\r\n stmLoc = conIns.createStatement();\r\n strSql = \"SELECT CASE WHEN (ne_ultDoc+1) IS NULL THEN 1 ELSE (ne_ultDoc+1) END AS ultnum \"\r\n + \" FROM tbm_cabTipDoc WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n// System.out.println(\"numero \" + strSql);\r\n rstLoc = stmLoc.executeQuery(strSql);\r\n if (rstLoc.next()) {\r\n intNumDoc = rstLoc.getInt(\"ultnum\");\r\n }\r\n rstLoc.close();\r\n rstLoc = null;\r\n stmLoc.close();\r\n stmLoc = null;\r\n \r\n \r\n strSqlIns += \" UPDATE tbm_cabTipDoc SET ne_ultDoc=\" + intNumDoc + \" WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n strSqlIns += \";UPDATE tbm_cabmovinv SET ne_numdoc=\" +intNumDoc+\", ne_numgui=\"+intNumDocGuia+\", st_reg='A' , st_imp='S' \"\r\n + \" WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_doc=\" + intCodDoc + \" and st_reg not in ('I','E') AND ne_numcot=\" + intCodCot;\r\n strSqlIns += \" ; UPDATE tbm_cabdia SET tx_numdia='\" + intNumDoc + \"' WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_dia=\" + intCodDoc + \" and st_reg not in ('I','E') \";\r\n System.out.println(\"asignaNumeroFac \"+strSqlIns);\r\n stmLocIns = conIns.createStatement();\r\n stmLocIns.executeUpdate(strSqlIns);\r\n stmLocIns.close();\r\n stmLocIns = null;\r\n intNumFacElec=intNumDoc;\r\n blnRes = true;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "public void setCommunityName(String communityName) {\n this.communityName = communityName == null ? null : communityName.trim();\n }", "int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileProfileNameColumn()\n {\n return newMobileProfileNameColumn(\"Mobile Profile Name\");\n }", "@Select(\"select datetime,currentConfirmedCount,confirmedCount,suspectedCount,curedCount,deadCount from covid19_1 where datetime = #{datetime}\")\n List<Map<String, Object>> getNationalData(String datetime);", "public void generarDocumentosCoactivosAnteriores() {\n\n try {\n\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"Set Language 'Español'\");\n\n Query update = em.createNativeQuery(sql.toString());\n update.executeUpdate();\n\n // Consulta de coactivos\n sql = new StringBuilder();\n sql.append(\n \"SELECT c.id_proceso, c.id_coactivo, p.fecha_inicio, c.valor_total_obligaciones, p.numero_proceso, tp.id_trazabilidad_proceso , tp2.id_trazabilidad_proceso as traza2 \");\n sql.append(\"FROM coactivo c \");\n sql.append(\"JOIN proceso p ON p.id_proceso = c.id_proceso \");\n sql.append(\"JOIN trazabilidad_proceso tp ON p.id_proceso = tp.id_proceso \");\n sql.append(\"AND tp.id_estado_proceso = 22 \");\n sql.append(\"JOIN trazabilidad_proceso tp2 ON p.id_proceso = tp2.id_proceso \");\n sql.append(\"AND tp2.id_estado_proceso = 24 \");\n sql.append(\"WHERE NOT EXISTS (SELECT 1 FROM trazabilidad_proceso tp \");\n sql.append(\n \"WHERE EXISTS (select 1 from documento_proceso dp where dp.id_trazabilidad_proceso = tp.id_trazabilidad_proceso) \");\n sql.append(\"AND tp.id_proceso = p.id_proceso) \");\n sql.append(\"AND CAST(p.numero_proceso AS bigint) <= 6179 \");\n sql.append(\"ORDER BY c.id_coactivo\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n @SuppressWarnings(\"unchecked\")\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n for (Object[] filaCoactivo : listaResultados) {\n iLCoactivo.generarDocumentosAnteriores(filaCoactivo);\n }\n } catch (Exception e) {\n logger.error(\"Error en generación de documento de apertura de coactivo\", e);\n\n }\n }", "public PromocionTableModel() {\n \n //Establecemos la sentencia SQL que vamos a ejecutar\n super(\"SELECT ID_PROMOCION , NOMBRE, DESCUENTO FROM PROMOCION\");\n \n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Empresa\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tEmpresa entity = new Empresa();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,EmpresaDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Seguridad.Empresa.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseEmpresa(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public static void create_join_CP(String databaseCT,String rchain,Connection con2) throws SQLException{\n\t\t\n\t\tString table_name = databaseCT+\"_CT.\"+rchain.substring(0,rchain.length()-1) + \"_CT`\";\n\t\t//System.out.println(databaseCT+\"_CT\");\n\t\tString newTable_name = rchain.substring(0,rchain.length()-1) + \"_CT_KLD`\";\n\t\t//System.out.println(table_name);\n\t\t// table_name is input contingency table, newTable_name will be output KLD table\n\t\tStatement st=con2.createStatement();\n ResultSet rst=st.executeQuery(\"show columns from \"+table_name+\" ;\");\n // System.out.println(\"show columns from \"+table_name+\" ;\");\n while(rst.next()){\n \tcolumn_names.add(\"`\"+rst.getString(1)+\"`\");\n \tcolumn_names_CP.add(\"`\"+rst.getString(1)+\"_CP`\");\n \t// add conditional probability column for each attribute column\n }\n \n \n st.execute(\"drop table if exists \" + newTable_name);\n String query1=\"create table \" + newTable_name + \" ( id int(11) NOT NULL AUTO_INCREMENT, MULT BIGINT(21), \" ;\n // make query string for creating KLD table\n // auto index each row in table\n for(int i=1; i<column_names.size(); i++){\n \tquery1 = query1 + column_names.get(i) + \" VARCHAR(45),\" + column_names_CP.get(i) + \" float(7,6) ,\";\n // add column headers\t\t\n }\n query1 = query1 + \" JP float, JP_DB float, KLD float default 0, PRIMARY KEY (id) ) engine=INNODB;\";\n //System.out.println(query1);\n st.execute(query1);\n \n // copy the values from the mult table. CP values are null at this point.\n String query2 = \"insert into \" + newTable_name + \" ( MULT\";\n for(int i=1; i<column_names.size(); i++){\n \tquery2 = query2 + \", \" + column_names.get(i);\n }\n query2 = query2 + \" ) select * from \"+table_name+\"; \"; // Nov 28 @ zqian, do not use \"*\" in terms of query optimization\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t// Nov 28 @ zqian, adding covering index to CT table for query string \n System.out.println(query2);\n st.execute(query2);\n \n System.out.println(\"\\n insert into KLD table conditional probability for each node\"); // zqian\n //insert CP value to attributes\n insert_CP_Values(rchain, newTable_name,con2);\n System.out.println(\"\\n compute Bayes net joint probabilities \"); //zqian\n //compute Bayes net joint probabilities \n cal_KLD(newTable_name,con2);\n \n \n st.close();\n\t}", "@Override\r\n\tpublic List<Famille> listCompetences() {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\t//on crée une requête\r\n \t\tQuery req=session.createQuery(\"select C from FamilleComp C\");\r\n \t\tList<Famille> famillecomp=req.list();\r\n session.getTransaction().commit();\r\n \t\treturn famillecomp;\r\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n \n \n private void table(){\n \n int c;\n \n try{\n \n Connection con1 = ConnectionProvider.getConn();\n Statement stm = con1.createStatement();\n ResultSet rst = stm.executeQuery(\"select * from sales\");\n ResultSetMetaData rstm = rst.getMetaData();\n \n c = rstm.getColumnCount();\n \n DefaultTableModel dtm2 = (DefaultTableModel)jTable1.getModel();\n dtm2.setRowCount(0);\n \n while (rst.next()){\n \n Vector vec = new Vector();\n \n for(int a =1 ; a<=c; a++)\n {\n vec.add(rst.getString(\"CustomerName\"));\n vec.add(rst.getString(\"OrderNo\"));\n vec.add(rst.getString(\"TypeOfService\"));\n vec.add(rst.getString(\"OrderType\"));\n vec.add(rst.getString(\"Descript\"));\n vec.add(rst.getString(\"OrderConfirmation\"));\n vec.add(rst.getString(\"OrderHandledBy\"));\n vec.add(rst.getString(\"OrderDate\"));\n vec.add(rst.getString(\"WarrantyExpireDate\"));\n vec.add(rst.getString(\"FullAmount\"));\n vec.add(rst.getString(\"AmountPaid\"));\n vec.add(rst.getString(\"Balance\"));\n }\n \n dtm2.addRow(vec);\n }\n \n }\n catch(Exception e)\n {\n \n }\n \n \n }", "@Override\r\n public Integer oneObligorClassCount(OneObligorSC oneObligorSC) throws DAOException\r\n {\r\n\tDAOHelper.fixGridMaps(oneObligorSC, getSqlMap(), \"oneObligorMapper.oneObligorClassMap\");\r\n\treturn (Integer) getSqlMap().queryForObject(\"oneObligorMapper.oneObligorClassCount\", oneObligorSC);\r\n }", "public void infoCustomer() { ////AGGIUSTA\n\n CriteriaBuilder cb = em.getCriteriaBuilder();\n\n CriteriaQuery<Customer> cq = cb.createQuery(Customer.class);\n\n Root<Customer> cust = cq.from(Customer.class);\n\n cq.multiselect(cust.get(\"lastName\"), cb.count(cust).alias(\"numero di customer\")).groupBy(cust.get(\"lastName\"));\n\n System.out.print(\"lastName\");\n System.out.println(\"\\t Count\");\n\n /* List<Object[]> list = em.createQuery(cq).getResultList(); \n \nfor(Object[] object : list){ \n System.out.println(object[0] + \" \" + object[1]); \n \n} \n\n em.getTransaction().commit();\n em.close();\n emf.close();\n */\n }", "public HashMap<Integer, HashMap<String, String>> getMessageDataForCollabForText(ArrayList<Integer> interIDs){\n\t HashMap<Integer, HashMap<String, String>> result = new HashMap();\n\t String query = null;\n//\t stmt = getConnection(dbParams).createStatement();\n\t HashMap<String, String> message;\n\t HashMap<String, ArrayList<String>> messageMap;\n\t \n//\t stmt = getConnection(dbParams).createStatement();\n\t int contentTypeID;\n\t String contentType;\n\t int contentSubTypeID;\n\t String contentSubType = null;\n\t int resourceID;\n\t SQLXML attributes;\n\t int actionID;\n\t String actionType;\n\t ArrayList<String> resources;\n\t String resourceName;\n\t String resourceURL;\n\t String text = null;\n\t String messageAttributes = null;\n\t HashMap<String, String> msgAttributes = null;\n\t try{\n\t\t DOMSource domSource;\n\t\t Document document;\n\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n\t\t \n\t\t String expression = \"//name[.='event.action']/following-sibling::*[1][name()='value']\";\n\t \t//loop through each interID\n\t \tfor(int interID : interIDs){\n\n\t \n\t message = new HashMap();\n\t \n\t query = \"Select contentType, contentSubType, resourceID, attributes from Interactions where interID = \"+interID;\n\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t \n\t contentTypeID = rs.getInt(1);\n\t contentSubTypeID = rs.getInt(2);\n\t resourceID = rs.getInt(3);\n\t attributes = rs.getSQLXML(4);\n\t \n\t domSource = attributes.getSource(DOMSource.class);\n\t document = (Document) domSource.getNode();\n\t actionID = Integer.parseInt(xpath.evaluate(expression, document));\n\t \n\t //Get contentType\n\t contentType = getContentType(stmt, contentTypeID);\n\t //Get ContentSubType\n\t if(contentSubTypeID != -1){\n\t \t contentSubType = getContentSubType(stmt, contentSubTypeID);\n\t }\n\t \n\t //Get Action Type\n\t actionType = getActionType(actionID);\n\t //Get Resource Name and URL\n\t resources = getResourceNameAndURL(resourceID);\n\t resourceName = resources.get(0);\n\t resourceURL = resources.get(1);\n\t \n\t //Get Message Table data\n\t query = \"Select text from Messages where interID = \"+interID + \" and text IS NOT NULL\";\n\t System.out.println(query);\n\t rs = stmt.executeQuery(query);\n\t rs.next();\n\t if(rs.getNString(1) != null){\n\t \ttext = rs.getString(1).replaceAll(\"/n\", \" \").replaceAll(\"/r\", \"\");\n\t }\n\t \n\t query = \"select attributes from messages where interId =\"+ interID + \" and attributes IS NOT NULL\";\n\t System.out.println(query);\n\t \trs = stmt.executeQuery(query);\n\t \tif(rs.next()){\n\t \t\tmessageAttributes = rs.getString(1);\t\n\t \t}\n\t \n\t \n\t //Get Attribute Names and Values\n\t \tmsgAttributes = new HashMap();\n\t \tif(messageAttributes != null){\n\t \t\tmsgAttributes = getMessageAttributes(messageAttributes);\n\t \t}\n\t \t\t\n\t ArrayList<String> fileNames = getFileListsForCollab(interID);\n\t //Add all the values\n\t message.put(\"contentType:\", contentType);\n\t \t if(contentSubTypeID != -1){\n\t \t \tmessage.put(\"contentSubType:\", contentSubType); \n\t\t }\n\t \n\t message.put(\"action:\", actionType.toLowerCase());\n\t message.put(\"resourceName:\", resourceName.toLowerCase());\n\t message.put(\"Resource URL:\", resourceURL.toLowerCase());\n\t if(text != null){\n\t \tmessage.put(\"Text Content:\", text.replaceAll(\"\\n\", \"\").replaceAll(\"\\r\", \"\").toLowerCase());\n\t }\n\t \n\t if(msgAttributes.size() > 0){\n\t\t for(String attName : msgAttributes.keySet()){\n\t\t message.put(attName+\":\", msgAttributes.get(attName).toLowerCase());\n\t\t }\t \t\n\t }\n\n\t StringBuffer fileName = new StringBuffer();\n\t if(fileNames.size() > 0){\n\t \t for(int i = 0 ; i < fileNames.size(); i++){\n\t \t \tfileName.append(fileNames.get(i));\n\t \t \tif(i + 1 != fileNames.size()){\n\t \t \t\tfileName.append(\"#\");\n\t \t \t}\n\t \t }\n\t \t message.put(\"File:\", fileName.toString().toLowerCase());\n\t }\n\t\n\t result.put(interID, message);\n\t \n\t \t}\n\t } catch(Exception e){\n\t \tSystem.err.println(e.getMessage());\n\t }\n\t return result;\n\t }", "public int siguienteRegistro(int codigoCiclo, int codigoPlan) {\n/* 454 */ int numero = 1;\n/* 455 */ String s = \"select max(codigo_meta) from cal_plan_metas\";\n/* 456 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* */ try {\n/* 458 */ boolean rta = this.dat.parseSql(s);\n/* 459 */ if (!rta) return 0; \n/* 460 */ this.rs = this.dat.getResultSet();\n/* 461 */ if (this.rs.next()) {\n/* 462 */ s = this.rs.getString(1);\n/* 463 */ if (!this.rs.wasNull()) {\n/* 464 */ numero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 467 */ if (numero < 10000) numero = 10000; \n/* 468 */ return numero;\n/* */ }\n/* 470 */ catch (Exception e) {\n/* 471 */ e.printStackTrace();\n/* 472 */ Utilidades.writeError(\"CalPlanMetasFactory:siguienteRegistro\", e);\n/* */ \n/* 474 */ return 0;\n/* */ } \n/* */ }", "private HashMap getTableRow(int rowNum)\r\n {\r\n HashMap hashRow = new HashMap() ;\r\n int colTotal = codeTableModel.getColumnCount()-1;\r\n for (int colCount=0; colCount <= codeTableModel.getColumnCount()-1; colCount++)\r\n { // for each column u will build a hashmap\r\n// if (colCount == 1 )\r\n// {//sponsor name is not in update sp.\r\n// continue;\r\n// }\r\n TableColumn column = codeTableColumnModel.getColumn(colCount) ;\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n Object val = null ;\r\n // the whole idea of setting up the columnBean as the identifier is that u get to know\r\n // all abt the structure details of the column, so u can create appropriate type of object\r\n // and stick it in to the hashMap\r\n if (columnBean.getDataType().equals(\"NUMBER\"))\r\n {\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount) == null\r\n ||(codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).equals(\"\")))\r\n {\r\n val = null ; //new Integer(0)\r\n }\r\n else\r\n {\r\n val = codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount);\r\n if (val instanceof ComboBoxBean)\r\n {\r\n if (((ComboBoxBean)val).getCode().equals(\"\"))// user deleted selection\r\n val = null;\r\n else\r\n val = new Integer(((ComboBoxBean)val).getCode().toString());\r\n }\r\n else\r\n {\r\n val = new Integer(val.toString()) ;\r\n }\r\n }\r\n }\r\n\r\n if (columnBean.getDataType().equals(\"VARCHAR2\"))\r\n {\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount)==null)\r\n {\r\n val = \"\";\r\n }\r\n else\r\n {\r\n val = codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).toString() ;\r\n }\r\n }\r\n\r\n if (columnBean.getDataType().equals(\"DATE\"))\r\n {\r\n //coeusdev-568 start\r\n //Date today = new Date();\r\n //coeusdev-568 end\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowNum), codeTableModel.getColumnCount()-1).equals(\"I\")) // if itz an insert\r\n { //AV_ & AW_ will be the same for insert\r\n //coeusdev-568 start\r\n //val = new java.sql.Timestamp(today.getTime());\r\n val = CoeusUtils.getDBTimeStamp();\r\n //coeusdev-568 end\r\n }\r\n else\r\n { // for update\r\n // there will be only two dates in any table one AV_UPDATE_TIMESTAMP and the other one AW_UPDATE_TIMESTAMP\r\n if (columnBean.getQualifier().equals(\"VALUE\"))\r\n { //AV_...\r\n //coeusdev-568 start\r\n //val = new java.sql.Timestamp(today.getTime());\r\n val = CoeusUtils.getDBTimeStamp();\r\n //coeusdev-568 end\r\n }\r\n else\r\n { //AW_...\r\n val = java.sql.Timestamp.valueOf(codeTableModel.getValueAt(sorter.getIndexForRow(rowNum),colCount).toString()) ;\r\n }\r\n }\r\n }\r\n\r\n hashRow.put(columnBean.getColIdentifier(), val) ;\r\n } //end for\r\n return hashRow;\r\n }", "@Override public int conocerMonto(){\n\treturn 120;\n }", "public ScGridColumn<AcUpuTagSummaryVo> newOriginCountryCodeColumn()\n {\n return newOriginCountryCodeColumn(\"Origin Country Code\");\n }", "public Antecedentes getData(long dni) {\n\n\t\t\tMapSqlParameterSource params = new MapSqlParameterSource();\n\t\t\tparams.addValue(\"dni\", dni);\n\t\t\t\n\n\t\t \n\t\t\ttry {\n\t\t\t\treturn jdbc.queryForObject(\"select * from antecedentes where dni = :dni \", params, new RowMapper<Antecedentes>() {\n\t\t\n\t\t\t\t\t\t\tpublic Antecedentes mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tAntecedentes antecedentes = new Antecedentes();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tantecedentes.setDni(rs.getBigDecimal(\"dni\"));\n\t\t\t\t\t\t\t\tantecedentes.setBecario(rs.getString(\"becario\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_doctoral(rs.getString(\"tesista_doctoral\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_maestria(rs.getString(\"tesista_maestria\"));\n\t\t\t\t\t\t\t\tantecedentes.setTesista_grado(rs.getString(\"tesista_grado\"));\n\t\t\t\t\t\t\t\tantecedentes.setInvestigadores(rs.getString(\"investigadores\"));\n\t\t\t\t\t\t\t\tantecedentes.setPasantes_id_y_facademica(rs.getString(\"pasantes_id_y_facademica\"));\n\t\t\t\t\t\t\t\tantecedentes.setPersonal_apoyo_id(rs.getString(\"personal_apoyo_id\"));\n\t\t\t\t\t\t\t\tantecedentes.setFinanciamiento_cientifico_tecnologico(rs.getString(\"financiamiento_cientifico_tecnologico\"));\n\t\t\t\t\t\t\t\tantecedentes.setActividades_divulgacion(rs.getString(\"actividades_divulgacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setExtension_rural_industrial(rs.getString(\"extension_rural_industrial\"));\n\t\t\t\t\t\t\t\tantecedentes.setPrestacion_servicios_sociales(rs.getString(\"prestacion_servicios_sociales\"));\n\t\t\t\t\t\t\t\tantecedentes.setProduccion_divulgacion_artistica(rs.getString(\"produccion_divulgacion_artistica\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtro_tipo_actividad(rs.getString(\"otro_tipo_actividad\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_personal(rs.getString(\"evaluacion_personal\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_programas(rs.getString(\"evaluacion_programas\"));\n\t\t\t\t\t\t\t\tantecedentes.setEvaluacion_institucional(rs.getString(\"evaluacion_institucional\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtro_tipo_evaluacion(rs.getString(\"otro_tipo_evaluacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setBecas(rs.getString(\"becas\"));\n\t\t\t\t\t\t\t\tantecedentes.setEstancias_pasantias(rs.getString(\"estancias_pasantias\"));\n\t\t\t\t\t\t\t\tantecedentes.setOperacion_mantenimiento(rs.getString(\"operacion_mantenimiento\"));\n\t\t\t\t\t\t\t\tantecedentes.setProduccion(rs.getString(\"produccion\"));\n\t\t\t\t\t\t\t\tantecedentes.setNormalizacion(rs.getString(\"normalizacion\"));\n\t\t\t\t\t\t\t\tantecedentes.setEjercicio_profesion_ambito_no_academico(rs.getString(\"ejercicio_profesion_ambito_no_academico\"));\n\t\t\t\t\t\t\t\tantecedentes.setOtra_actividad_cyt(rs.getString(\"otra_actividad_cyt\"));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn antecedentes;\n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t});\n\t\t\t}\n\t\t\t catch(EmptyResultDataAccessException erdae) {\n\t\t\t\t System.out.println(\"en antecedentesDAO devuelve null\");\n\t\t\t return null;\n\t\t\t }\n\t\t}", "String getIndexedCommunities(int index);", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}" ]
[ "0.5777076", "0.54997647", "0.5357396", "0.5317105", "0.5215551", "0.5072615", "0.5071001", "0.5017789", "0.5000428", "0.49598852", "0.4889168", "0.48864365", "0.48431316", "0.48237577", "0.47921044", "0.47868294", "0.47798938", "0.47792456", "0.47678277", "0.47621578", "0.47428232", "0.4741272", "0.47294465", "0.47119945", "0.47119635", "0.46971083", "0.46799135", "0.46758044", "0.46756884", "0.46649364", "0.4647163", "0.46305314", "0.4629805", "0.46209544", "0.46180534", "0.46143177", "0.46116704", "0.4608346", "0.46069798", "0.45902452", "0.45788178", "0.4577987", "0.4576306", "0.45712313", "0.45689812", "0.45644385", "0.4561729", "0.45605737", "0.45388308", "0.45385447", "0.45385227", "0.45381257", "0.45300633", "0.45293885", "0.45277935", "0.45248333", "0.45220298", "0.45103744", "0.45101792", "0.45084998", "0.45069066", "0.45049724", "0.45045418", "0.45008707", "0.44964567", "0.4484146", "0.44832388", "0.44792983", "0.4469062", "0.4468208", "0.44564146", "0.44550925", "0.4454826", "0.44478637", "0.44475633", "0.44464204", "0.4446375", "0.44417506", "0.44403028", "0.4440266", "0.4435206", "0.44342417", "0.4425721", "0.44242805", "0.4421539", "0.44181347", "0.44164282", "0.4407985", "0.4407659", "0.44032204", "0.44009152", "0.4397981", "0.43971467", "0.4393428", "0.43844765", "0.4380442", "0.43774787", "0.43749946", "0.43716592", "0.43714136" ]
0.43869478
94
Build a WordRenderer using the given Colors and Fonts.
public AbstractWordRenderer(ColorRangeContainer colorRange, List<Font> fonts, double xOffset, double yOffset, float strokeWidth) { this.colorRange = colorRange; this.fonts = fonts; this.xOffset = xOffset; this.yOffset = yOffset; this.strokeWidth = strokeWidth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void buildFonts() {\r\n fontSMALL = new Font( strDEFAULT_TYPEFACE, Font.BOLD, FONT_SIZE_SM );\r\n fontMEDIUM = new Font( strDEFAULT_TYPEFACE, Font.BOLD, FONT_SIZE_MD );\r\n fontLARGE = new Font( strDEFAULT_TYPEFACE, Font.BOLD, FONT_SIZE_LG );\r\n }", "Font createFont();", "public FontRenderer(float x, float y, String text, FontType font, float size) {\n\t\tthis.text = text;\n\t\tthis.font = font;\n\t\tthis.size = size;\n\t\tcolor = new Vector4f(1, 1, 1, 1);\n\t\t\n\t\ttransform.setPosition(x, y);\n\t\tsetSize(size);\n\t\t\n\t\tprogram = FontShaderProgram.INSTANCE;\n\t\t\n\t\ttexture = font.getTexture().setParameters(GL11.GL_LINEAR, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_TEXTURE_MIN_FILTER);\n\t\t\n\t\tif(text.length() < 1)\n\t\t\tmesh = new Mesh().createEmpty();\n\t\telse\n\t\t\tcreateFont(false);\n\t}", "private void createFont(boolean created) {\n\t\tVertexTex[] vertices = new VertexTex[text.length() * 4];\n\t\t\n\t\tint[] indices = new int[text.length() * 6];\n\t\t\n\t\tfloat cursor = 0;\n\t\tfor(int i = 0; i < text.length(); i++) {\n\t\t\tFontChar c = font.getChar(text.charAt(i));\n\t\t\tif(c == null)\n\t\t\t\tc = font.getChar('?');\n\t\t\t\n\t\t\t\n\t\t\tfloat x = cursor + c.X_OFFSET;\n\t\t\tfloat y = -c.Y_OFFSET;\n\t\t\t\n\t\t\tvertices[0 + i * 4] = new VertexTex(\n\t\t\t\tnew Vector3f(x, y, 0),\n\t\t\t\tnew Vector2f(c.T_X / texture.getWidth(), c.T_Y / texture.getHeight())\n\t\t\t);\n\t\t\t\n\t\t\tvertices[1 + i * 4] = new VertexTex(\n\t\t\t\tnew Vector3f(x + c.T_WIDTH, y, 0),\n\t\t\t\tnew Vector2f((c.T_X + c.T_WIDTH) / texture.getWidth(), c.T_Y / texture.getHeight())\n\t\t\t);\n\t\t\t\n\t\t\tvertices[2 + i * 4] = new VertexTex(\n\t\t\t\tnew Vector3f(x + c.T_WIDTH, y - c.T_HEIGHT, 0),\n\t\t\t\tnew Vector2f((c.T_X + c.T_WIDTH) / texture.getWidth(), (c.T_Y + c.T_HEIGHT) / texture.getHeight())\n\t\t\t);\n\t\t\t\n\t\t\tvertices[3 + i * 4] = new VertexTex(\n\t\t\t\tnew Vector3f(x, y - c.T_HEIGHT, 0),\n\t\t\t\tnew Vector2f(c.T_X / texture.getWidth(), (c.T_Y + c.T_HEIGHT) / texture.getHeight())\n\t\t\t);\n\t\t\t\n\t\t\tcursor += c.X_ADVANCE;\n\t\t\t\n\t\t\tindices[0 + i * 6] = 3 + i * 4;\n\t\t\tindices[1 + i * 6] = 0 + i * 4;\n\t\t\tindices[2 + i * 6] = 1 + i * 4;\n\t\t\tindices[3 + i * 6] = 3 + i * 4;\n\t\t\tindices[4 + i * 6] = 1 + i * 4;\n\t\t\tindices[5 + i * 6] = 2 + i * 4;\n\t\t}\n\t\t\n\t\tif(created)\n\t\t\tmesh.reallocateData(GL15.GL_STATIC_DRAW, vertices, indices);\n\t\telse\n\t\t\tmesh = new Mesh(vertices, indices);\n\t}", "FONT createFONT();", "public void createFont()\n {\n my_font = new Font(\"Helvetica\", Font.BOLD, (int) (getWidth() * FONT_SIZE));\n }", "@SuppressWarnings(\"unchecked\")\n public TF addFont() {\n final ParameterizedType pt = (ParameterizedType) getClass()\n .getGenericSuperclass();\n final ParameterizedType paramType = (ParameterizedType) pt\n .getActualTypeArguments()[2];\n final Class<TF> fontClass = (Class<TF>) paramType.getRawType();\n try {\n final Constructor<TF> c = fontClass\n .getDeclaredConstructor(ACellStyle.class);\n return c.newInstance(this);\n }\n catch (final Exception e) {\n throw new ReportBuilderException(e);\n }\n }", "public FontFactory(String font, int size, String text) {\n this.font = new Font(font, Font.BOLD, size);\n ttf = new TrueTypeFont(this.font, true);\n this.text = text;\n }", "@Override\n protected void buildInitialFactories() {\n WordGenerator wgen = new RandomWordGenerator(\"23456789abcdefghjklmnpqrstuvwxyz\");\n RandomRangeColorGenerator cgen = new RandomRangeColorGenerator(new int[] { 0, 100 }, new int[] { 0, 100 },\n new int[] { 0, 100 });\n TextPaster textPaster = new RandomTextPaster(new Integer(4), new Integer(4), cgen, true);\n\n BackgroundGenerator backgroundGenerator = new FunkyBackgroundGenerator(new Integer(90), new Integer(30));\n\n Font[] fontsList = new Font[] { new Font(\"Arial\", 0, 10), new Font(\"Tahoma\", 0, 10),\n new Font(\"Verdana\", 0, 10), };\n\n FontGenerator fontGenerator = new RandomFontGenerator(new Integer(20), new Integer(20), fontsList);\n\n WordToImage wordToImage = new ComposedWordToImage(fontGenerator, backgroundGenerator, textPaster);\n this.addFactory(new GimpyFactory(wgen, wordToImage));\n }", "public XSSFFontFormatting createFontFormatting(){\n CTDxf dxf = getDxf(true);\n CTFont font;\n if(!dxf.isSetFont()) {\n font = dxf.addNewFont();\n } else {\n font = dxf.getFont();\n }\n\n return new XSSFFontFormatting(font, _sh.getWorkbook().getStylesSource().getIndexedColors());\n }", "public static Font create(Doc paramDoc, String paramString1, String paramString2) throws PDFNetException {\n/* 171 */ return __Create(Create(paramDoc.__GetHandle(), paramString1, paramString2), paramDoc);\n/* */ }", "public static Font create(Doc paramDoc, int paramInt, boolean paramBoolean) throws PDFNetException {\n/* 143 */ return __Create(Create(paramDoc.__GetHandle(), paramInt, paramBoolean), paramDoc);\n/* */ }", "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}", "StyledTextRenderer2(Device device, Font font, GC gc, int tabLength) {\n\tthis.device = device;\n\tthis.regularFont = font;\n\tthis.printerGC = gc;\n\tcalculateLineHeight();\n\tsetTabLength(tabLength);\n}", "public static Font create(Doc paramDoc, int paramInt) throws PDFNetException {\n/* 128 */ return __Create(Create(paramDoc.__GetHandle(), paramInt, false), paramDoc);\n/* */ }", "public FontController createFont(ControllerCore genCode) {\n\t\tfontTXT = new FontController(\"font\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(font$1LBL);\n\t\t\t\tsetProperty(\"font\");\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 fontTXT;\n\t}", "public FontRenderer(float x, float y, String text, FontType font) {\n\t\tthis(x, y, text, font, 1);\n\t}", "private void setupFonts()\r\n\t{\r\n\t\tSystem.out.println(\"In setupFonts()\");\r\n\t\t\r\n\t\t// set up the text fonts\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttextFont = Font.createFont(Font.TRUETYPE_FONT, AppletResourceLoader.getFileFromJar(GameConstants.PATH_FONTS + \"FOXLEY8_.ttf\"));\r\n\t\t\ttextFont = textFont.deriveFont(16.0f);\r\n\t\t\ttextFontBold = textFont.deriveFont(Font.BOLD, 16.0f);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"ERROR IN setupFonts(): \" + e.getClass().getName() + \" - \" + e.getMessage());\r\n\t\t}\r\n\t}", "public CustomRenderer(final Paint[] colors) {\n\t\t\tthis.colors = colors;\n\t\t}", "public static synchronized BitmapFont getFontWithSize(int size, String word){\n \t\n \tString laCode = Locale.getDefault().getLanguage();\n \t\n \tif(word != null){\n \t\tword = getUniqueLetters(word);\n \t}\n \t\n \t\n \t\n \t\n\n\t\tif (laCode.equalsIgnoreCase(\"ja\") && word != null) {\n\t\t\tBitmapFont font = forenTable.get(word);\n\n\t\t\tif (font != null) {\n\t\t\t\treturn font;\n\t\t\t} else {\n\t\t\t\tFreeTypeFontGenerator generator = new FreeTypeFontGenerator(\n\t\t\t\t\t\tGdx.files.internal(\"SupportFiles/fontTest.otf\"));\n\t\t\t\tFreeTypeFontGenerator.FreeTypeFontParameter parameter = new FreeTypeFontGenerator.FreeTypeFontParameter();\n\t\t\t\tparameter.characters = word;\n\t\t\t\tparameter.size = size;\n\n\t\t\t\tfont = generator.generateFont(parameter);\n\t\t\t\tforenTable.put(word, font);\n\t\t\t\tgenerator.dispose();\n\t\t\t\treturn font;\n\t\t\t}\n\n\t\t} else if (laCode.equalsIgnoreCase(\"zh\") && word != null) {\n\t\t\tBitmapFont font = forenTable.get(word);\n\n\t\t\tif (font != null) {\n\t\t\t\treturn font;\n\t\t\t} else {\n\t\t\t\tFreeTypeFontGenerator generator = new FreeTypeFontGenerator(\n\t\t\t\t\t\tGdx.files.internal(\"SupportFiles/fontTest.otf\"));\n\t\t\t\tFreeTypeFontGenerator.FreeTypeFontParameter parameter = new FreeTypeFontGenerator.FreeTypeFontParameter();\n\t\t\t\tparameter.characters = word;\n\t\t\t\tparameter.size = size;\n\n\t\t\t\tfont = generator.generateFont(parameter);\n\t\t\t\tforenTable.put(word, font);\n\t\t\t\tgenerator.dispose();\n\t\t\t\treturn font;\n\t\t\t}\n\n\t\t} else if (laCode.equalsIgnoreCase(\"ko\") && word != null) {\n\n\t\t\tBitmapFont font = forenTable.get(word);\n\n\t\t\tif (font != null) {\n\t\t\t\treturn font;\n\t\t\t} else {\n\t\t\t\tFreeTypeFontGenerator generator = new FreeTypeFontGenerator(\n\t\t\t\t\t\tGdx.files\n\t\t\t\t\t\t\t\t.internal(\"SupportFiles/AppleSDGothicNeo-Bold.otf\"));\n\t\t\t\tFreeTypeFontGenerator.FreeTypeFontParameter parameter = new FreeTypeFontGenerator.FreeTypeFontParameter();\n\t\t\t\tparameter.characters = word;\n\t\t\t\tparameter.size = size;\n\n\t\t\t\tfont = generator.generateFont(parameter);\n\t\t\t\tforenTable.put(word, font);\n\t\t\t\tgenerator.dispose();\n\t\t\t\treturn font;\n\t\t\t}\n\n\t\t} else if (laCode.equalsIgnoreCase(\"ru\") && word != null) {\n\t\t\tBitmapFont font = forenTable.get(word);\n\n\t\t\tif (font != null) {\n\t\t\t\treturn font;\n\t\t\t} else {\n\t\t\t\tFreeTypeFontGenerator generator = new FreeTypeFontGenerator(\n\t\t\t\t\t\tGdx.files.internal(\"SupportFiles/GenevaCY.dfont\"));\n\t\t\t\tFreeTypeFontGenerator.FreeTypeFontParameter parameter = new FreeTypeFontGenerator.FreeTypeFontParameter();\n\t\t\t\tparameter.characters = word;\n\t\t\t\tparameter.size = size;\n\n\t\t\t\tfont = generator.generateFont(parameter);\n\t\t\t\tforenTable.put(word, font);\n\t\t\t\tgenerator.dispose();\n\t\t\t\treturn font;\n\t\t\t}\n \t\t\n \t}else{\n \t\tBitmapFont bitmapFont = fontTable.get(size);\n if (bitmapFont != null){\n return bitmapFont;\n }else {\n\n FreeTypeFontGenerator generator = new FreeTypeFontGenerator(Gdx.files.internal(\"SupportFiles/CooperBlack.ttf\"));\n FreeTypeFontGenerator.FreeTypeFontParameter parameter = new FreeTypeFontGenerator.FreeTypeFontParameter();\n parameter.size = size; \n fontTable.put(size, generator.generateFont(parameter));\n generator.dispose();\n }\n\n return fontTable.get(size);\n \t}\n \t\n \t\n \n }", "public BDFTextRenderer(BDFFontContainer bdfFont) {\n this.bdfFont = bdfFont;\n }", "public static Font create(Doc paramDoc, Font paramFont, String paramString) throws PDFNetException {\n/* 157 */ return __Create(Create(paramDoc.__GetHandle(), paramFont.a, paramString), paramDoc);\n/* */ }", "@Override\r\n\tpublic void render(GameContainer gc, Renderer r) {\n\t\tr.drawTextInBox(posX, posY, width, height, color1, text);\r\n\t\t//r.noiseGen();\r\n\t}", "public Font createFont() {\n\t\treturn null;\n\t}", "private static native Font createFont(String name, GFontPeer peer, int gdkfont);", "public Text(String text, Color color, String font)\n {\n this.text = text;\n this.color = color;\n this.font = font;\n \n /*\n GreenfootImage textImg=new GreenfootImage(\" \"+text+\" \", 24, Color.RED, new Color(0, 0, 0, 0));\n GreenfootImage image=new GreenfootImage(textImg.getWidth()+8, textImg.getHeight()+8);\n image.setColor(Color.BLACK);\n image.fill();\n image.setColor(Color.WHITE);\n image.fillRect(3, 3, image.getWidth()-6, image.getHeight()-6);\n image.setColor(Color.YELLOW);\n image.drawImage(textImg, (image.getWidth()-textImg.getWidth())/2, (image.getHeight()-textImg.getHeight())/2);\n setImage(image);\n */\n }", "AbstractTextPaster(Integer minAcceptedWordLength, Integer maxAcceptedWordLength, Color textColor) {\n this(minAcceptedWordLength, maxAcceptedWordLength);\n\n if (textColor != null) {\n this.colorGenerator = new SingleColorGenerator(textColor);\n }\n }", "FontMapperImpl() {\n/* 55 */ this.substitutes.put(\"Courier\", \n/* 56 */ Arrays.asList(new String[] { \"CourierNew\", \"CourierNewPSMT\", \"LiberationMono\", \"NimbusMonL-Regu\" }));\n/* 57 */ this.substitutes.put(\"Courier-Bold\", \n/* 58 */ Arrays.asList(new String[] { \"CourierNewPS-BoldMT\", \"CourierNew-Bold\", \"LiberationMono-Bold\", \"NimbusMonL-Bold\" }));\n/* */ \n/* 60 */ this.substitutes.put(\"Courier-Oblique\", \n/* 61 */ Arrays.asList(new String[] { \"CourierNewPS-ItalicMT\", \"CourierNew-Italic\", \"LiberationMono-Italic\", \"NimbusMonL-ReguObli\" }));\n/* */ \n/* 63 */ this.substitutes.put(\"Courier-BoldOblique\", \n/* 64 */ Arrays.asList(new String[] { \"CourierNewPS-BoldItalicMT\", \"CourierNew-BoldItalic\", \"LiberationMono-BoldItalic\", \"NimbusMonL-BoldObli\" }));\n/* */ \n/* 66 */ this.substitutes.put(\"Helvetica\", \n/* 67 */ Arrays.asList(new String[] { \"ArialMT\", \"Arial\", \"LiberationSans\", \"NimbusSanL-Regu\" }));\n/* 68 */ this.substitutes.put(\"Helvetica-Bold\", \n/* 69 */ Arrays.asList(new String[] { \"Arial-BoldMT\", \"Arial-Bold\", \"LiberationSans-Bold\", \"NimbusSanL-Bold\" }));\n/* */ \n/* 71 */ this.substitutes.put(\"Helvetica-Oblique\", \n/* 72 */ Arrays.asList(new String[] { \"Arial-ItalicMT\", \"Arial-Italic\", \"Helvetica-Italic\", \"LiberationSans-Italic\", \"NimbusSanL-ReguItal\" }));\n/* */ \n/* 74 */ this.substitutes.put(\"Helvetica-BoldOblique\", \n/* 75 */ Arrays.asList(new String[] { \"Arial-BoldItalicMT\", \"Helvetica-BoldItalic\", \"LiberationSans-BoldItalic\", \"NimbusSanL-BoldItal\" }));\n/* */ \n/* 77 */ this.substitutes.put(\"Times-Roman\", \n/* 78 */ Arrays.asList(new String[] { \"TimesNewRomanPSMT\", \"TimesNewRoman\", \"TimesNewRomanPS\", \"LiberationSerif\", \"NimbusRomNo9L-Regu\" }));\n/* */ \n/* 80 */ this.substitutes.put(\"Times-Bold\", \n/* 81 */ Arrays.asList(new String[] { \"TimesNewRomanPS-BoldMT\", \"TimesNewRomanPS-Bold\", \"TimesNewRoman-Bold\", \"LiberationSerif-Bold\", \"NimbusRomNo9L-Medi\" }));\n/* */ \n/* */ \n/* 84 */ this.substitutes.put(\"Times-Italic\", \n/* 85 */ Arrays.asList(new String[] { \"TimesNewRomanPS-ItalicMT\", \"TimesNewRomanPS-Italic\", \"TimesNewRoman-Italic\", \"LiberationSerif-Italic\", \"NimbusRomNo9L-ReguItal\" }));\n/* */ \n/* */ \n/* 88 */ this.substitutes.put(\"Times-BoldItalic\", \n/* 89 */ Arrays.asList(new String[] { \"TimesNewRomanPS-BoldItalicMT\", \"TimesNewRomanPS-BoldItalic\", \"TimesNewRoman-BoldItalic\", \"LiberationSerif-BoldItalic\", \"NimbusRomNo9L-MediItal\" }));\n/* */ \n/* */ \n/* 92 */ this.substitutes.put(\"Symbol\", Arrays.asList(new String[] { \"Symbol\", \"SymbolMT\", \"StandardSymL\" }));\n/* 93 */ this.substitutes.put(\"ZapfDingbats\", Arrays.asList(new String[] { \"ZapfDingbatsITC\", \"Dingbats\", \"MS-Gothic\" }));\n/* */ \n/* */ \n/* */ \n/* 97 */ for (String baseName : Standard14Fonts.getNames()) {\n/* */ \n/* 99 */ if (!this.substitutes.containsKey(baseName)) {\n/* */ \n/* 101 */ String mappedName = Standard14Fonts.getMappedFontName(baseName);\n/* 102 */ this.substitutes.put(baseName, copySubstitutes(mappedName));\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 110 */ String ttfName = \"/org/apache/pdfbox/resources/ttf/LiberationSans-Regular.ttf\";\n/* 111 */ InputStream ttfStream = FontMapper.class.getResourceAsStream(ttfName);\n/* 112 */ if (ttfStream == null)\n/* */ {\n/* 114 */ throw new IOException(\"Error loading resource: \" + ttfName);\n/* */ }\n/* 116 */ TTFParser ttfParser = new TTFParser();\n/* 117 */ this.lastResortFont = ttfParser.parse(ttfStream);\n/* */ }\n/* 119 */ catch (IOException e) {\n/* */ \n/* 121 */ throw new RuntimeException(e);\n/* */ } \n/* */ }", "public FontDisplay()\r\n\t{\r\n\t\t// Get all Fonts from the System\r\n\t\tGraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\r\n\t\tFont[] fonts = ge.getAllFonts();\r\n\r\n\t\t// Build a list of styled Font Names\r\n\t\tStringBuilder sb = new StringBuilder(\"<html><body style='font-size: 18px'>\");\r\n\t\tfor (Font font : fonts)\r\n\t\t{\r\n\t\t\tsb.append(\"<p style='font-family: \");\r\n\t\t\tsb.append(font.getFontName());\r\n\t\t\tsb.append(\"'>\");\r\n\t\t\tsb.append(font.getFontName());\r\n\t\t\tsb.append(\"</p>\");\r\n\t\t}\r\n\r\n\t\t// Add built list to EditorPane\r\n\t\tJEditorPane fontEP = new JEditorPane();\r\n\t\tfontEP.setMargin(new Insets(10, 10, 10, 10));\r\n\t\tfontEP.setContentType(\"text/html\");\r\n\t\tfontEP.setText(sb.toString());\r\n\t\tfontEP.setEditable(false);\r\n\r\n\t\t// Add EditorPane to ScrollPane\r\n\t\tJScrollPane scrollPane = new JScrollPane(fontEP);\r\n\t\tscrollPane.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));\r\n\r\n\t\t// Create a Label for the EditorPane\r\n\t\tJLabel titleLabel = new JLabel(\"Available Fonts on System\",\r\n SwingConstants.CENTER);\r\n\t\ttitleLabel.setFont(new Font(titleLabel.getFont().getName(), Font.BOLD, 17));\r\n\t\ttitleLabel.setForeground(new Color(21, 149, 211));\r\n\r\n\t\tImageIcon logo = new ImageIcon(\"Snowbound_Software_logo_full_2012.png\");\r\n\t\tJLabel logoLabel = new JLabel();\r\n\t\tlogoLabel.setIcon(logo);\r\n\t\tJPanel logoPane = new JPanel();\r\n\t\tlogoPane.setLayout(new BoxLayout(logoPane, BoxLayout.X_AXIS));\r\n\t\tlogoPane.add(logoLabel);\r\n\t\tlogoPane.add(Box.createHorizontalStrut(12));\r\n\t\tlogoPane.add(new JSeparator(JSeparator.VERTICAL));\r\n\t\tlogoPane.add(Box.createHorizontalStrut(6));\r\n\t\t// Add Label to Panel\r\n\t\tJPanel labelPane = new JPanel(new BorderLayout(0, 10));\r\n\t\tlabelPane.setBorder(BorderFactory.createEmptyBorder(12, 12, 0, 12));\r\n\t\tlabelPane.add(logoPane, BorderLayout.WEST);\r\n\t\tlabelPane.add(titleLabel, BorderLayout.CENTER);\r\n\t\tlabelPane.add(new JSeparator(), BorderLayout.SOUTH);\r\n\r\n\t\t// Add Panels to Frame\r\n\t\tthis.getContentPane().setLayout(new BorderLayout());\r\n\t\tthis.add(labelPane, BorderLayout.NORTH);\r\n\t\tthis.add(scrollPane, BorderLayout.CENTER);\r\n\r\n\t\t// Initialize Frame\r\n\t\tthis.setTitle(\"Snowbound Software :: Font Display\");\r\n\t\tthis.setSize(500, 650);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t}", "public void generateWordDocument(String directory, String nameOfTheDocument) throws Exception{\n\t\t\n\t\t//Create empty document (instance of Document classe from Apose.Words)\n\t\tDocument doc = new Document();\n\t\t\n\t\t//Every word document have section, so now we are creating section\n\t\tSection section = new Section(doc);\n\t\tdoc.appendChild(section);\n\t\t\n\t\tsection.getPageSetup().setPaperSize(PaperSize.A4);\n\t\tsection.getPageSetup().setHeaderDistance (35.4); // 1.25 cm\n\t\tsection.getPageSetup().setFooterDistance (35.4); // 1.25 cm\n\t\t\n\t\t//Crating the body of section\n\t\tBody body = new Body(doc);\n\t\tsection.appendChild(body);\n\t\t\n\t\t//Crating paragraph\n\t\tParagraph paragraph = new Paragraph(doc);\n\t\t\n\t\tparagraph.getParagraphFormat().setStyleName(\"Heading 1\");\n\t\tparagraph.getParagraphFormat().setAlignment(ParagraphAlignment.CENTER);\n\t\t//Crating styles\n\t\tStyle style = doc.getStyles().add(StyleType.PARAGRAPH, \"Style1\");\n\t\tstyle.getFont().setSize(24);\n\t\tstyle.getFont().setBold(true);\n\t\tstyle.getFont().setColor(Color.RED);\n\t\t//paragraph.getParagraphFormat().setStyle(style);\n\t\tbody.appendChild(paragraph);\n\t\t\n\t\tStyle styleForIntroduction = doc.getStyles().add(StyleType.PARAGRAPH, \"Style2\");\n\t\tstyle.getFont().setSize(40);\n\t\tstyle.getFont().setBold(false);\n\t\tstyle.getFont().setItalic(true);\n\t\tstyle.getFont().setColor(Color.CYAN);\n\t\t\n\t\tStyle styleForText = doc.getStyles().add(StyleType.PARAGRAPH, \"Style3\");\n\t\tstyle.getFont().setSize(15);\n\t\tstyle.getFont().setBold(false);\n\t\tstyle.getFont().setItalic(false);\n\t\tstyle.getFont().setColor(Color.BLACK);\n\t\t\n\t\t//Crating run of text\n\t\tRun textRunHeadin1 = new Run(doc);\n\t\ttry {\n\t\t\ttextRunHeadin1.setText(\"Probni test fajl\" + \"\\r\\r\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tparagraph.appendChild(textRunHeadin1);\n\t\t\n\t\t\n\t\t//Creating paragraph1 for every question in list\n\t\tfor (Question question : questions) {\n\t\t\t\n\t\t\t\n\t\t\t\t//Paragraph for Instruction Question\n\t\t\t\tParagraph paragraphForInstruction = new Paragraph(doc);\n\t\t\t\tparagraphForInstruction.getParagraphFormat().setStyleName(\"Heading 1\");\n\t\t\t\tparagraphForInstruction.getParagraphFormat().setAlignment(ParagraphAlignment.LEFT);\n\t\t\t\tparagraphForInstruction.getParagraphFormat().setStyle(styleForIntroduction);\n\t\t\t\tparagraphForInstruction.getParagraphFormat().setStyleName(\"Heading 3\");\n\t\t\t\t\n\t\t\t\tRun runIntroduction = new Run(doc);\n\t\t\t\t\n\t\t\t\trunIntroduction.getFont().setColor(Color.BLUE);\n\t\t\t\ttry {\n\t\t\t\t\trunIntroduction.setText(((Question)question).getTextInstructionForQuestion()+\"\\r\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tparagraphForInstruction.appendChild(runIntroduction);\n\t\t\t\tbody.appendChild(paragraphForInstruction);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Paragraph for Question\n\t\t\t\tParagraph paragraphForQuestion = new Paragraph(doc);\n\t\t\t\tparagraphForQuestion.getParagraphFormat().setStyleName(\"Heading 1\");\n\t\t\t\tparagraphForQuestion.getParagraphFormat().setAlignment(ParagraphAlignment.LEFT);\n\t\t\t\tparagraphForQuestion.getParagraphFormat().setStyle(styleForText);\n\t\t\t\tparagraphForQuestion.getParagraphFormat().setStyleName(\"Normal\");\n\t\t\t\t\n\t\t\t\tRun runText = new Run(doc);\n\t\t\t\tif(question instanceof QuestionBasic){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunText.setText(((QuestionBasic)question).toStringForDocument()+\"\\r\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tif(question instanceof QuestionFillTheBlank){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunText.setText(((QuestionFillTheBlank)question).toStringForDocument());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tif(question instanceof QuestionMatching){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunText.setText(((QuestionMatching)question).toStringForDocument());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tif(question instanceof QuestionTrueOrFalse){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunText.setText(((QuestionTrueOrFalse)question).toStringForDocument());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tparagraphForQuestion.appendChild(runText);\n\t\t\t\tbody.appendChild(paragraphForQuestion);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tdoc.save(directory + nameOfTheDocument +\".doc\");\n\t}", "@Override\n\t\t\tpublic Render<EntityTF2Character> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderTF2Character(manager);\n\t\t\t}", "public static Font createTrueTypeFont(Doc paramDoc, String paramString) throws PDFNetException {\n/* 188 */ return __Create(CreateTrueTypeFont(paramDoc.__GetHandle(), paramString, true, true), paramDoc);\n/* */ }", "public void init() {\n\n /**\n * FontFile1 = A stream containing a Type 1 font program\n * FontFile2 = A stream containing a TrueType font program\n * FontFile3 = A stream containing a font program other than Type 1 or\n * TrueType. The format of the font program is specified by the Subtype entry\n * in the stream dictionary\n */\n try {\n\n // get an instance of our font factory\n FontFactory fontFactory = FontFactory.getInstance();\n\n if (entries.containsKey(FONT_FILE)) {\n Stream fontStream = (Stream) library.getObject(entries, FONT_FILE);\n if (fontStream != null) {\n font = fontFactory.createFontFile(\n fontStream, FontFactory.FONT_TYPE_1);\n }\n }\n\n if (entries.containsKey(FONT_FILE_2)) {\n Stream fontStream = (Stream) library.getObject(entries, FONT_FILE_2);\n if (fontStream != null) {\n font = fontFactory.createFontFile(\n fontStream, FontFactory.FONT_TRUE_TYPE);\n }\n }\n\n if (entries.containsKey(FONT_FILE_3)) {\n\n Stream fontStream = (Stream) library.getObject(entries, FONT_FILE_3);\n String subType = fontStream.getObject(\"Subtype\").toString();\n if (subType != null &&\n (subType.equals(FONT_FILE_3_TYPE_1C) ||\n subType.equals(FONT_FILE_3_CID_FONT_TYPE_0) ||\n subType.equals(FONT_FILE_3_CID_FONT_TYPE_0C))\n ) {\n font = fontFactory.createFontFile(\n fontStream, FontFactory.FONT_TYPE_1);\n }\n if (subType != null && subType.equals(FONT_FILE_3_OPEN_TYPE)) {\n// font = new NFontOpenType(fontStreamBytes);\n font = fontFactory.createFontFile(\n fontStream, FontFactory.FONT_OPEN_TYPE);\n }\n }\n }\n // catch everything, we can fall back to font substitution if a failure\n // occurs. \n catch (Throwable e) {\n logger.log(Level.FINE, \"Error Reading Embedded Font \", e);\n }\n\n }", "public void initializeText(){\n\t\tfont = new BitmapFont();\n\t\tfont1 = new BitmapFont();\n\t\tfont1.setColor(Color.BLUE);\n\t\tfont2 = new BitmapFont();\n\t\tfont2.setColor(Color.BLACK);\n\t}", "private Font getFont(String fontColor, float fontSize, int fotStyle) {\n Font cellPaymentReciptFont = FontFactory.getFont(\"Arial\", 10f);\n if (null != fontColor && fontColor.equalsIgnoreCase(RED_COLOR)) {\n cellPaymentReciptFont.setColor(BaseColor.RED);\n } else if (null != fontColor && fontColor.equalsIgnoreCase(GREEN_COLOR)) {\n cellPaymentReciptFont.setColor(BaseColor.GREEN);\n } else {\n cellPaymentReciptFont.setColor(BaseColor.BLACK);\n }\n cellPaymentReciptFont.setSize(fontSize);\n cellPaymentReciptFont.setStyle(fotStyle);\n return cellPaymentReciptFont;\n }", "public static Font createTrueTypeFont(Doc paramDoc, String paramString, boolean paramBoolean1, boolean paramBoolean2) throws PDFNetException {\n/* 251 */ return __Create(CreateTrueTypeFont(paramDoc.__GetHandle(), paramString, paramBoolean1, paramBoolean2), paramDoc);\n/* */ }", "public Digraph createGraph() {\n wordGraph = new Digraph(words.size());\n\n for (int v = 0; v < words.size(); v++) {\n for (int w = 0; w < words.size(); w++) {\n if (compareWords(words.get(v), words.get(w))) {\n wordGraph.addEdge(w, v);\n }\n }\n }\n return wordGraph;\n }", "public void fontLoader(){\n try {\n //create the font to use. Specify the size!\n customFont = Font.createFont(Font.TRUETYPE_FONT, new File(\".\\\\resources\\\\DS-DIGI.ttf\")).deriveFont(40f);\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n ge.registerFont(customFont);\n } catch (IOException e) {\n e.printStackTrace();\n } catch(FontFormatException e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\t\tprotected Void call() throws Exception {\n\t\t\t\twordCloudMap = new LinkedHashMap<WordCloud, String>();\n\t\t\t\twordFrequencyMap = new LinkedHashMap<String, List<WordFrequency>>();\n\t\t\t\t\n\t\t\t\ttranslatorSkippedWords = new HashMap<String, ArrayList<String>>();\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < selectedTranslators.size(); ++i) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"1\");\n\t\t\t\t\t\n\t\t\t\t\tString translator = selectedTranslators.get(i);\n\t\t\t\t\t\n\t\t\t\t\tfinal FrequencyAnalyzer frequencyAnalyzer = new FrequencyAnalyzer();\n\t\t\t\t\tfrequencyAnalyzer.setWordFrequenciesToReturn(200);\n\t\t\t\t\tfrequencyAnalyzer.setNormalizer(new LowerCaseNormalizer());\n\t\t\t\n\t\t\t\t\tBasicConfigurator.configure();\t\n\t\t\t\t\t\n\t\t\t\t\tString text = textReader.getWholeFilteredText(translator, removeStopWords);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"2\");\n\t\t\t\t\t\n\t\t\t\t\tList<WordFrequency> wordFrequencies = frequencyAnalyzer.load(new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)));\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"3\");\n\t\t\t\t\t\n\t\t\t\t\twordFrequencyMap.put(translator, wordFrequencies);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"4\");\n\t\t\t\t\t\n\t\t\t\t\tDimension dimension = new Dimension(250,600);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"5\");\n\t\t\t\t\t\n\t\t\t\t\tfinal WordCloud wordCloud = new WordCloud(dimension, CollisionMode.PIXEL_PERFECT);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"6\");\n\t\t\t\t\t\n\t\t\t\t\twordCloud.setPadding(2);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"7\");\n\t\t\t\t\t\n\t\t\t\t\t///////////////////////////////////IDE/////////////////////////////////////\n//\t\t\t\t\twordCloud.setBackground(new PixelBoundryBackground(\"images/lighthouse.png\"));\n\t\t\t\t\t///////////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\n\t\t\t\t\t//////////////////////////////////JAR//////////////////////////////////////\n\t\t\t\t\twordCloud.setBackground(new PixelBoundryBackground(getClass().getResourceAsStream(\"/lighthouse.png\")));\n\t\t\t\t\t///////////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"8\");\n\t\t\t\t\t\n\t\t\t\t\twordCloud.setBackgroundColor(new Color(0xFFFFFF));\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"9\");\n\t\t\t\t\t\n\t\t\t\t\twordCloud.setColorPalette(new ColorPalette(new Color(0x4055F1), new Color(0x408DF1), new Color(0x40AAF1), new Color(0x40C5F1), new Color(0x40D3F1), new Color(0x663096)));\n\t\t\t\t\tSystem.out.println(\"10\");\n\t\t\t\t\t\n\t\t\t\t\twordCloud.setFontScalar(new LinearFontScalar(10, 40));\n\t\n\t\t\t\t\tSystem.out.println(\"11\");\n\t\t\t\t\t\n\t\t\t\t\twordCloud.build(wordFrequencies);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"12\");\n\t\t\t\t\t\n\t\t\t\t\twordCloudMap.put(wordCloud, translator);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"13\");\n\t\t\t\t\t\n\t\t\t\t\tArrayList<String> skippedWords = new ArrayList<String>();\n\t\t\t\t\t\n\t\t\t\t\tfor (Word word : wordCloud.getSkipped()) {\n\t\t\t\t\t\tskippedWords.add(word.getWord());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttranslatorSkippedWords.put(translator, skippedWords);\n\t\t\t\t\t\n\t\t\t\t\tupdateProgress(i+1, selectedTranslators.size());\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tSystem.out.println(wordFrequencies);\n\t\t\t\t\n\t\t\t\tPlatform.runLater(new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tScrollPane scrollPane = new ScrollPane();\n\t\t\t\t\t\t\n\t\t\t\t\t\tGridPane gridPane = new GridPane();\n\t\t\t\t\t\t\n\t\t\t\t\t\tgridPane.minWidthProperty().bind(Bindings.createDoubleBinding(() -> \n\t\t\t\t\t\tscrollPane.getViewportBounds().getWidth(), scrollPane.viewportBoundsProperty()));\n\t\t\t\t\t\t\n\t\t\t\t\t\tgridPane.setPadding(new Insets(20,20,20,20));\n\t\t\t\t\t\t\n\t\t\t\t\t\tint counter = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (Entry<WordCloud, String> pair : wordCloudMap.entrySet()) { \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tColumnConstraints columnConstraints = new ColumnConstraints();\n\t\t\t\t columnConstraints.setPercentWidth(100.0 / wordCloudMap.size());\n\t\t\t\t gridPane.getColumnConstraints().add(columnConstraints);\n\t\t\t\t \n\t\t\t\t\t\t\tWordCloud wordCloud = pair.getKey();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tImageView imageView = new ImageView();\n\t\t\t\t\t\t\timageView.setImage(SwingFXUtils.toFXImage(wordCloud.getBufferedImage(), null));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tGridPane.setHalignment(imageView, HPos.CENTER);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tLabel translatorLabel = new Label(wordCloudMap.get(wordCloud));\n\t\t\t\t\t\t\ttranslatorLabel.setFont(new Font(15));\n\t\t\t\t\t\t\ttranslatorLabel.setPadding(new Insets(20,0,0,0));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tGridPane.setHalignment(translatorLabel, HPos.CENTER);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tgridPane.add(imageView, counter, 0);\n\t\t\t\t\t\t\tgridPane.add(translatorLabel, counter, 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t++counter;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tscrollPane.setContent(gridPane);\n\t\t\t\t\t\t\n\t\t\t\t\t\tborderPane.setCenter(scrollPane);\n\t\t\t\t\t\t\n\t\t\t\t\t\tsaveButton.setDisable(false);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn null;\n\t\t\t}", "public FontConfig() {\n\t\tthis.name = \"Monospaced\";\n\t\tthis.style = FontStyle.PLAIN;\n\t\tthis.size = DEFAULT_SIZE;\n\t}", "StyledTextRenderer2(Device device, Font font, StyledText2 styledText, int tabLength) {\n\tthis.device = device;\n\tthis.regularFont = font;\n\tthis.styledText = styledText;\n\tcalculateLineHeight();\n\tsetTabLength(tabLength);\n}", "public FontRenderer(float x, float y, String text) {\n\t\tthis(x, y, text, FontType.FNT_ARIAL);\n\t}", "public ConsoleWriter(TextConsole console, int fgColor) {\n this.console = console;\n this.fgColor = fgColor;\n }", "public void init( )\n {\n metFont = new HersheyFont( getDocumentBase(), getParameter(\"font\"));\n }", "public ColorRenderer() {\r\n\t}", "public static void generateCustomFont(String customFontString, File collectionsFile, HashMap books) throws IOException\n\t{\n\t\tSystem.out.println(\"Generating fonts...\");\n\t\t\n\t\t// Create a glyph directory\n\t\tFile glyphDirectory = new File(collectionsFile.getParent(), \"glyphs\");\n\t\t\n\t\tif (!glyphDirectory.exists())\n\t\t{\n\t\t\tglyphDirectory.mkdir();\n\t\t}\n\t\t\n\t\tFont font = new Font(customFontString, Font.PLAIN, 14);\n\t\t\n\t\tBufferedImage testFontImage = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);\n\t\t\n\t\tGraphics2D testGraphics = (Graphics2D) testFontImage.getGraphics();\n\t\ttestGraphics.setFont(font);\n\t\tFontMetrics fontMetrics = testGraphics.getFontMetrics();\n\t\tint ascent = fontMetrics.getAscent();\n\t\t\n\t\tFontRenderContext testFontRenderContext = testGraphics.getFontRenderContext();\n\t\t\n\t\tHashMap<Integer, BufferedImage> glyphs = new HashMap<Integer, BufferedImage>();\n\t\t\n\t\tfor (Object bookObject: books.values())\n\t\t{\n\t\t\tBook book = (Book) bookObject;\n\t\t\t\n\t\t\tfor (Object chapterObject: book.chapters)\n\t\t\t{\n\t\t\t\tChapter chapter = (Chapter) chapterObject;\n\t\t\t\t\n\t\t\t\tchar[] charArray = chapter.allVerses.toString().toCharArray();\n\t\t\t\t\n\t\t\t\tint startIndex = 0;\n\t\t\t\tint c = 0;\n\t\t\t\t\n\t\t\t\t// Go through verse data and convert characters not yet converted\n\t\t\t\tfor (int i = 0; i < charArray.length; i++)\n\t\t\t\t{\n\t\t\t\t\tc |= charArray[i];\n\t\t\t\t\t\n\t\t\t\t\t// If next character will be a Tamil vowel then skip to next character\n\t\t\t\t\tif (i < charArray.length - 1 && charArray[i + 1] >= '\\u0BBE' && charArray[i + 1] <= '\\u0BCD')\n\t\t\t\t\t{\n\t\t\t\t\t\tstartIndex = i;\n\t\t\t\t\t\tc <<= 16;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!glyphs.containsKey(c))\n\t\t\t\t\t{\n\t\t\t\t\t\tRectangle2D stringBounds = font.getStringBounds(charArray, startIndex, i + 1, testFontRenderContext);\n\t\t\t\t\t\t\n\t\t\t\t\t\tString hexString = Integer.toHexString(c);\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(hexString + \": \" + ((char) c) + \", height: \" + fontMetrics.getHeight());\n\t\t\t\t\t\t\n\t\t\t\t\t\tBufferedImage fontImage = new BufferedImage((int) stringBounds.getWidth(), fontMetrics.getHeight(), BufferedImage.TYPE_INT_ARGB);\n\t\t\t\t\t\t\n\t\t\t\t\t\tGraphics2D graphics = (Graphics2D) fontImage.getGraphics();\n\n\t\t\t\t\t\tgraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\t\t\tgraphics.setColor(Color.BLACK);\n\t\t\t\t\t\tgraphics.setFont(font);\n\n\t\t\t\t\t\t// Convert character to a bitmap\n\t\t\t\t\t\tgraphics.drawString(new String(charArray, startIndex, i - startIndex + 1), 0, ascent);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//ImageIO.write(fontImage, \"PNG\", new File(glyphDirectory, hexString + \".png\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\tglyphs.put(c, fontImage);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tstartIndex = i + 1;\n\t\t\t\t\tc = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Go through HashMap and generate new HashMap of glyph indexes.\n\t\tHashMap<Integer, Integer> glyphIndexes = new HashMap<Integer, Integer>();\n\t\t\n\t\tint index = 0;\n\t\tfor (int key: glyphs.keySet())\n\t\t{\n\t\t\tglyphIndexes.put(key, index);\n\t\t\tImageIO.write(glyphs.get(key), \"PNG\", new File(glyphDirectory, index + \".png\"));\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Fonts generated.\");\n\n\t}", "public static Font createTrueTypeFont(Doc paramDoc, String paramString, boolean paramBoolean) throws PDFNetException {\n/* 220 */ return __Create(CreateTrueTypeFont(paramDoc.__GetHandle(), paramString, paramBoolean, true), paramDoc);\n/* */ }", "public DisplayText (GraphicsContext gc, Canvas gameCanvas, int size) {\n\t\tthis.gc = gc;\n\t\tthis.gameCanvas = gameCanvas;\n\t\t\n\t\t vector = Font.loadFont(getClass().getResourceAsStream(\"/fonts/Vectorb.ttf\"), size); //load my custom font at the specified size \n\t}", "public PdfFontProgram() {\n super();\n }", "protected void applyFont() {\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\t// pe.applyFont();\n\t\t\t}\n\t\t}\n\t}", "public static Font createType1Font(Doc paramDoc, String paramString, boolean paramBoolean) throws PDFNetException {\n/* 432 */ return __Create(CreateType1Font(paramDoc.__GetHandle(), paramString, paramBoolean), paramDoc);\n/* */ }", "public interface PocketWordConstants {\n /** File extension for Pocket Word files. */\n public static final String FILE_EXTENSION = \".psw\";\n \n /** Name of the default style. */\n public static final String DEFAULT_STYLE = \"Standard\";\n \n /** Family name for Paragraph styles. */\n public static final String PARAGRAPH_STYLE_FAMILY = \"paragraph\";\n \n /** Family name for Text styles. */\n public static final String TEXT_STYLE_FAMILY = \"text\";\n \n \n /** \n * Generic Pocket Word formatting code. \n *\n * Formatting codes are 0xEz, where z indicates the specific format code.\n */\n public static final byte FORMATTING_TAG = (byte)0xE0;\n \n /** Font specification tag. The two bytes following inidicate which font. */\n public static final byte FONT_TAG = (byte)0xE5;\n \n /** Font size tag. The two bytes following specify font size in points. */\n public static final byte FONT_SIZE_TAG = (byte)0xE6;\n \n /** Colour tag. Two bytes following index a 4-bit colour table. */\n public static final byte COLOUR_TAG = (byte)0xE7;\n \n /** Font weight tag. Two bytes following indicate weighting of font. */\n public static final byte FONT_WEIGHT_TAG = (byte)0xE8;\n \n /** Normal font weight value. */\n public static final byte FONT_WEIGHT_NORMAL = (byte)0x04;\n \n /** Fine font weight value. */\n public static final byte FONT_WEIGHT_FINE = (byte)0x01;\n \n /** Bold font weight value. */\n public static final byte FONT_WEIGHT_BOLD = (byte)0x07;\n \n /** Thick font weight value. */\n public static final byte FONT_WEIGHT_THICK = (byte)0x09;\n\n /** Italic tag. Single byte following indicates whether italic is on. */\n public static final byte ITALIC_TAG = (byte)0xE9;\n \n /** Underline tag. Single byte following indicates whether underline is on. */\n public static final byte UNDERLINE_TAG = (byte)0xEA;\n \n /** Strikethrough tag. Single byte following indicates whether strikethrough is on. */\n public static final byte STRIKETHROUGH_TAG = (byte)0XEB;\n \n /** Highlighting tag. Single byte following indicates whether highlighting is on. */\n public static final byte HIGHLIGHT_TAG = (byte)0xEC;\n \n}", "private static void updateColors() {\n try {\n text.setBackground(colorScheme[0]); outputText.setBackground(colorScheme[0]); \n //frame.setBackground(colorScheme[0]);\n\n //Determines the color to set the splitter\n if(colorScheme[0].equals(Color.BLACK)) splitter.setBackground(Color.DARK_GRAY.darker());\n else if(colorScheme[0].equals(new Color(35,37,50))) splitter.setBackground(new Color(35,37,50).brighter());\n else if(colorScheme[0].equals(Color.GRAY) || colorScheme[0].equals(Color.LIGHT_GRAY) || colorScheme[0].equals(Color.WHITE)) splitter.setBackground(null);\n else splitter.setBackground(colorScheme[0].darker());\n\n text.getStyledDocument().getForeground(attributeScheme[11]); //Will work, but needs to be refreshed somehow.\n outputText.setForeground(colorScheme[11]); \n } catch (Exception e) {\n System.out.println(\"The error was here!\");\n e.printStackTrace();\n }\n }", "public void assertCustomFonts()\n {\n Style root = getStyle(\"base\");\n assertFonts(root);\n }", "static Font getFont(int style, int size) {\n\t\treturn new Font(\"Monospaced\", style, size);\n\t}", "private void createText() {\n Texture texture = new Texture(Gdx.files.internal(\"Text/item.png\"));\n texture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n TextureRegion region = new TextureRegion(texture);\n display = new BitmapFont(Gdx.files.internal(\"Text/item.fnt\"), region, false);\n display.setUseIntegerPositions(false);\n display.setColor(Color.BLACK);\n }", "public void writeFont(PdfWriter pdfWriter, PdfIndirectReference pdfIndirectReference, Object[] objArr) throws DocumentException, IOException {\n int i;\n int i2 = 0;\n int intValue = objArr[0].intValue();\n int intValue2 = objArr[1].intValue();\n byte[] bArr = objArr[2];\n if (!(objArr[3].booleanValue() && this.subset)) {\n i = bArr.length - 1;\n for (int i3 = 0; i3 < bArr.length; i3++) {\n bArr[i3] = 1;\n }\n } else {\n i2 = intValue;\n i = intValue2;\n }\n PdfIndirectReference pdfIndirectReference2 = null;\n PdfStream fullFontStream = getFullFontStream();\n if (fullFontStream != null) {\n pdfIndirectReference2 = pdfWriter.addToBody(fullFontStream).getIndirectReference();\n }\n PdfDictionary fontDescriptor = getFontDescriptor(pdfIndirectReference2);\n if (fontDescriptor != null) {\n pdfIndirectReference2 = pdfWriter.addToBody(fontDescriptor).getIndirectReference();\n }\n pdfWriter.addToBody((PdfObject) getFontBaseType(pdfIndirectReference2, i2, i, bArr), pdfIndirectReference);\n }", "public static void main(String[] args) {\n if(args.length >= 3) {\n try {\n File tableFile = new File(args[0]);\n String fontName = args[1];\n int fontSize = Integer.parseInt(args[2]);\n Font font = new Font(fontName, Font.PLAIN, fontSize);\n String fontFileName = args[3];\n FontCreator creator = new FontCreator();\n creator.setVisible(true);\n creator.pack();\n creator.create(tableFile, font, fontFileName);\n creator.setVisible(false);\n System.exit(0);\n } catch(Exception e) {\n e.printStackTrace();\n System.exit(1);\n }\n } else {\n printUsage();\n }\n }", "public PrintableDoc(double margin, double pageWidth, double pageHeight, String fontName, String text)\r\n\t{\r\n\t\tthis.margin = margin;\r\n\t\tthis.pageWidth = pageWidth;\r\n\t\tthis.pageHeight = pageHeight;\r\n\t\tthis.fontName = fontName;\r\n\t\tthis.text = text;\r\n\t}", "public static Font createType1Font(Doc paramDoc, String paramString) throws PDFNetException {\n/* 417 */ return __Create(CreateType1Font(paramDoc.__GetHandle(), paramString, true), paramDoc);\n/* */ }", "public Obj getEmbeddedFont() throws PDFNetException {\n/* 809 */ return Obj.__Create(GetEmbeddedFont(this.a), this.b);\n/* */ }", "abstract Font getFont();", "private void initFonts() {\n Typeface typeFace = Typeface.createFromAsset(getAssets(), \"fonts/BuriedBeforeBB_Reg.otf\");\n\n TextView textViewScore = (TextView) findViewById(R.id.txtScore);\n TextView textViewLives = (TextView) findViewById(R.id.txtLives);\n TextView txtGameOver = (TextView) findViewById(R.id.txtGameOver);\n TextView txtGameOver2 = (TextView) findViewById(R.id.txtGameOver2);\n\n textViewScore.setTypeface(typeFace);\n textViewLives.setTypeface(typeFace);\n txtGameOver.setTypeface(typeFace);\n txtGameOver2.setTypeface(typeFace);\n txtNextLevel.setTypeface(typeFace);\n }", "public Font deriveFont(float size){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplySize(size, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }", "public void create() {\n PDDocument document = new PDDocument();\n PDPage page = new PDPage();\n document.addPage(page);\n\n // Create a new font object selecting one of the PDF base fonts\n PDFont font = PDType1Font.HELVETICA_BOLD;\n try (document) {\n // Start a new content stream which will \"hold\" the to be created content\n writeDataToDocument(document, page, font);\n // Save the results and ensure that the document is properly closed:\n document.save(\"Hello World.pdf\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n }", "public FontRenderer getFontRenderer()\n {\n return this.textRenderer;\n }", "public MyText(String text, double x1, double y2, Color color, int fontSize) {\n\t\tthis.x1 = x1;\n\t\tthis.y2 = y2;\n\t\tthis.text = text;\n\t\tthis.color = color;\n\t\tthis.fontSize = fontSize;\n\t}", "public static void main(String[] args) throws Exception\n {\n String dataDir = Utils.getDataDir(AsposeSpecifyDefaultFontswhileRendering.class);\n\n Document doc = new Document(dataDir + \"document.doc\");\n\n // If the default font defined here cannot be found during rendering then the closest font on the machine is used instead.\n FontSettings.setDefaultFontName(\"Arial Unicode MS\");\n\n // Now the set default font is used in place of any missing fonts during any rendering calls.\n doc.save(dataDir + \"Rendering.SetDefaultFont_Out.pdf\");\n doc.save(dataDir + \"Rendering.SetDefaultFont_Out.xps\");\n\n System.out.println(\"Process Completed Successfully\");\n }", "public LabelBuilder setFont(FontCallback<LabelsContext> fontColorCallback) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.setFont(fontColorCallback);\n\t\treturn this;\n\t}", "public Text(double x, double y, VDMColor c, int thickness,\n String text, boolean bold, String font) {\n super(x, y, c, thickness);\n\n _b = bold;\n _t = text;\n _f = font;\n }", "@SuppressWarnings(\"deprecation\")\r\n public static Texture createTextTexture(final String[] lines, final Font font, final TextAlignment textAlignment, final Color foreGround,\r\n final Color backGround)\r\n {\r\n Texture texture;\r\n int length;\r\n int index;\r\n FontMetrics fontMetrics;\r\n int fontHeight;\r\n int height;\r\n int width;\r\n int[] linesWidth;\r\n int heightP2;\r\n int widthP2;\r\n int x;\r\n int y;\r\n\r\n // No lines, so little texture is need\r\n length = lines.length;\r\n if(length < 1)\r\n {\r\n return new Texture(\"TEXT_\" + (TextIn3DUtil.NEXT_ID++), 1, 1, backGround);\r\n }\r\n\r\n linesWidth = new int[length];\r\n\r\n // Compute textu height\r\n fontMetrics = Toolkit.getDefaultToolkit().getFontMetrics(font);\r\n fontHeight = fontMetrics.getHeight();\r\n height = fontHeight * length;\r\n\r\n // Compute texture width and memorize each line width\r\n width = 0;\r\n for(index = 0; index < length; index++)\r\n {\r\n linesWidth[index] = fontMetrics.stringWidth(lines[index]);\r\n width = Math.max(width, linesWidth[index]);\r\n }\r\n\r\n // Compute near power of dimension values\r\n widthP2 = Math3D.computePowerOf2couple(width)[1];\r\n heightP2 = Math3D.computePowerOf2couple(height)[1];\r\n\r\n Debug.println(DebugLevel.VERBOSE, \"TextUtil.createTextTexture() BEFORE \" + width + \"x\" + height + \" => \" + widthP2 + \"x\" + heightP2);\r\n if((widthP2 < width) && (widthP2 < 1024))\r\n {\r\n widthP2 *= 2;\r\n }\r\n if((heightP2 < height) && (heightP2 < 1024))\r\n {\r\n heightP2 *= 2;\r\n }\r\n Debug.println(DebugLevel.VERBOSE, \"TextUtil.createTextTexture() AFTER \" + width + \"x\" + height + \" => \" + widthP2 + \"x\" + heightP2);\r\n\r\n // For good card only ...\r\n // widthP2 = width;\r\n // heightP2 = height;\r\n // ... For good card only\r\n\r\n // Create empty texture\r\n texture = new Texture(\"TEXT_\" + (TextIn3DUtil.NEXT_ID++), widthP2, heightP2, ColorsUtil.TRANSPARENT);\r\n texture.fillRect(0, 0, width, height, backGround, false);\r\n\r\n // Print each line\r\n y = fontMetrics.getAscent();\r\n for(index = 0; index < length; index++)\r\n {\r\n x = 0;\r\n switch(textAlignment)\r\n {\r\n case LEFT:\r\n x = 0;\r\n break;\r\n case CENTER:\r\n x = (width - linesWidth[index]) / 2;\r\n break;\r\n case RIGHT:\r\n x = width - linesWidth[index];\r\n break;\r\n }\r\n\r\n texture.fillString(x, y, lines[index], foreGround, font, false);\r\n y += fontHeight;\r\n }\r\n\r\n texture.flush();\r\n\r\n return texture;\r\n }", "public static void setTextFonts(Context mContext, String[] fonts, String[] texts, TextView textViewItem) {\n\t\t\n\t\tString content = texts[0];\n\t\tTypeface content_font = Typefaces.get(mContext, fonts[0]);\n\t\t// set texts\n\t\tif(texts.length > 1) {\n\t\t\tint i = 0;\n\t\t\twhile(i < texts.length) {\n\t\t\t\tString text = texts[i];\n\t\t\t\tif(content.contains(\"{\" + (i-1) + \"}\")) {\n\t\t\t\t\tcontent = content.replace(\"{\" + (i-1) + \"}\", text);\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\t// set fonts\n\t\tSpannableStringBuilder SS = new SpannableStringBuilder(content);\n\t\tint last_index = 0;\n\t\tchar[] last_array = null;\n\t\tif(texts.length > 1) {\n\t\t\tint index = 1;\n\t\t\twhile(index < texts.length) {\n\t\t\t\tString text = texts[index];\n\t\t\t\t\n\t\t\t\tint current_index = content.indexOf(text);\n\t\t\t\t\n\t\t\t\tchar[] charArrayCurrent = text.toCharArray();\n\t\t\t\tTypeface current_font = Typefaces.get(mContext, fonts[index]);\n\t\t\t\t\n\t\t\t\tif(last_index <= 0) {\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", content_font), 0, current_index, Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", current_font), current_index, current_index + charArrayCurrent.length,Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t} else {\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", content_font), last_index + last_array.length + 1, current_index,Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t SS.setSpan (new CustomTypefaceSpan(\"\", current_font), current_index, current_index + charArrayCurrent.length,Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t}\n\t\t\t\t\n\t\t last_index = current_index;\n\t\t last_array = charArrayCurrent;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\tif(last_index + last_array.length < content.length()) {\n\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", content_font), last_index + last_array.length + 1, content.length(),Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t}\n\t\t}\n // set text\n textViewItem.setText(SS);\n\t\t\n\t}", "public static Font createTrueTypeFont(Doc paramDoc, InputStream paramInputStream) throws PDFNetException {\n/* 205 */ return __Create(CreateTrueTypeFontFromStream(paramDoc.__GetHandle(), paramInputStream, true, true), paramDoc);\n/* */ }", "public WordImplementation(final ImmutableMap<Locale, Translation> translations) {\n this.translations = Preconditions.checkNotNull(translations);\n }", "@Test\n public void Test_Output_Font() throws Exception {\n String actual_value = \"\";\n String expected_value = \"1 0 obj \\n<< \\n/ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] \\n\";\n expected_value += \"/Font \\n<< \\n/F2 \\n<< \\n/Type /Font \\n/BaseFont /Helvetica \\n/SubType /Type1 \\n\";\n expected_value += \">> \\n>> \\n>> \\n\";\n\n PdfResource resrc = new PdfResource();\n resrc.addFont(new PdfFont(PdfFont.HELVETICA, false, false));\n actual_value = new String(resrc.dumpInfo());\n \n assertThat(actual_value, equalTo(expected_value));\n }", "public void draw(Graphics2D gc){\r\n\r\n Font curFont = gc.getFont();\r\n gc.setFont(font);\r\n Paint curColor = gc.getPaint();\r\n gc.setPaint(textColor);\r\n //gc.drawString(text, x, y); // This would look better but doesn't seem to work with hit testing.\r\n\r\n FontRenderContext frc = gc.getFontRenderContext();\r\n TextLayout textLayout = new TextLayout(text, font, frc);\r\n AffineTransform moveTo = AffineTransform.getTranslateInstance(x, y);\r\n textShape = textLayout.getOutline(moveTo);\r\n gc.fill(textShape);\r\n gc.setFont(curFont);\r\n gc.setPaint(curColor);\r\n }", "public static void main(String[] args) {\n WriteDocx wd = new WriteDocx();\n String kalimat = \"Just the thought of another day\\n\"\n + \"How did we end up this way\\n\"\n + \"What did we do wrong?\\n\"\n + \"God\\n\"\n + \"\\n\"\n + \"Even though the days go on\\n\"\n + \"So far, so far away from\\n\"\n + \"It seems so close\\n\"\n + \"\\n\"\n + \"Always weighing on my shoulder\\n\"\n + \"A time like no other\\n\"\n + \"It all changed on that day\\n\"\n + \"Sadness and so much pain\\n\"\n + \"\\n\"\n + \"You can touch the sorrow here\\n\"\n + \"I don’t know what to blame\\n\"\n + \"I just watch and watch again\\n\"\n + \"O...\\n\"\n + \"\\n\"\n + \"Even though the days go on\\n\"\n + \"So far, so far away from\\n\"\n + \"It seems so close\\n\"\n + \"\\n\"\n + \"Even though the days go on\\n\"\n + \"So far, so far away from\\n\"\n + \"It seems so close\\n\"\n + \"\\n\"\n + \"What did it leave behind?\\n\"\n + \"What did it take from us and wash away?\\n\"\n + \"It may be long\\n\"\n + \"But with our hearts start a new\\n\"\n + \"And keep it up and not give up\\n\"\n + \"With our heads held high\\n\"\n + \"\\n\"\n + \"You have seen hell and made it back again\\n\"\n + \"How to forget? We can’t forget\\n\"\n + \"The lives that were lost along the way\\n\"\n + \"And then you realize that wherever you go\\n\"\n + \"There you are\\n\"\n + \"Time won’t stop\\n\"\n + \"So we keep moving on\\n\"\n + \"\\n\"\n + \"Yesterday’s night turns to light\\n\"\n + \"Tomorrow’s night returns to light\\n\"\n + \"O... Be the light\\n\"\n + \"\\n\"\n + \"Always weighing on my shoulder\\n\"\n + \"A time like no other\\n\"\n + \"It all changed on that day\\n\"\n + \"Sadness and so much pain\\n\"\n + \"\\n\"\n + \"Anyone can close their eyes\\n\"\n + \"Pretend that nothing is wrong\\n\"\n + \"Open your eyes\\n\"\n + \"And look for light\\n\"\n + \"O...\\n\"\n + \"\\n\"\n + \"What did it leave behind?\\n\"\n + \"What did it take from us and wash away?\\n\"\n + \"It may be long\\n\"\n + \"But with our hearts start a new\\n\"\n + \"And keep it up and not give up\\n\"\n + \"With our heads held high\\n\"\n + \"\\n\"\n + \"Yeah, yeah...\\n\"\n + \"\\n\"\n + \"You have seen hell and made it back again\\n\"\n + \"How to forget? We can’t forget\\n\"\n + \"The lives that were lost along the way\\n\"\n + \"And then you realize that wherever you go\\n\"\n + \"There you are\\n\"\n + \"Time won’t stop\\n\"\n + \"So we keep moving on\\n\"\n + \"\\n\"\n + \"Yesterday’s night turns to light\\n\"\n + \"Tomorrow’s night returns to light\\n\"\n + \"O... Be the light\\n\"\n + \"\\n\"\n + \"Some days just pass by and\\n\"\n + \"Some days are unforgettable\\n\"\n + \"We can’t choose the reason why\\n\"\n + \"But we can choose what to do from the day after\\n\"\n + \"So with that hope, with that determination\\n\"\n + \"Let’s make tomorrow a brighter and better day\\n\"\n + \"\\n\"\n + \"O...\\n\"\n + \"Yeah...\\n\"\n + \"O...\\n\"\n + \"Yeah... Yeah...\\n\"\n + \"Uh Ooo...\";\n wd.Write(\"BE THE LIGHT\",\"ONE OK ROCK\",kalimat,\"center\",\"D:\\\\test.docx\");\n }", "public void initFont() {\r\n\t\tFont dosFont = null;\r\n try {\r\n \t//setup font\r\n\t\t\t\tURL fontUrl = getURL(\"fonts/DOSFont.ttf\");\r\n\t\t \tdosFont = Font.createFont(Font.TRUETYPE_FONT, fontUrl.openStream());\r\n\t \tdosFont = dosFont.deriveFont(Font.PLAIN, 15);\r\n\t \tGraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\r\n\t \tge.registerFont(dosFont);\r\n\t } catch(Exception e) {\r\n\t e.printStackTrace();\r\n\t System.exit(-1);\r\n\t }\r\n screen.setFont(dosFont);//set font on JTextArea\r\n\t}", "Text createText();", "AbstractTextPaster(Integer minAcceptedWordLength, Integer maxAcceptedWordLength,\n ColorGenerator colorGenerator, Boolean manageColorPerGlyph) {\n this(minAcceptedWordLength, maxAcceptedWordLength, colorGenerator);\n this.manageColorPerGlyph = manageColorPerGlyph != null ? manageColorPerGlyph.booleanValue() : this.manageColorPerGlyph;\n }", "@FXML\r\n void fontAction() {\r\n // default css code for each characteristics of the text\r\n String textFont = \"-fx-font-family: \";\r\n String textSize = \"-fx-font-size: \";\r\n String textStyle = \"\";\r\n\r\n // Create and take the input from the Font dialog\r\n Dialog<Font> fontSelector = new FontSelectorDialog(null);\r\n Optional<Font> result = fontSelector.showAndWait();\r\n\r\n // add changes to the default CSS code above based on the users\r\n if (result.isPresent()) {\r\n Font newFont = result.get();\r\n textFont += \"\\\"\" + newFont.getFamily() + \"\\\";\";\r\n textSize += newFont.getSize() + \"px;\";\r\n\r\n // some basics CSS font characteristics\r\n String style = newFont.getStyle();\r\n String style_italic = \"-fx-font-style: italic;\";\r\n String style_regular = \"-fx-font-weight: normal ;\";\r\n String style_bold = \"-fx-font-weight: bold;\";\r\n switch (style) {\r\n case \"Bold Italic\":\r\n textStyle += style_bold + \"\\n\" + style_italic;\r\n case \"Italic\":\r\n textStyle += style_italic;\r\n case \"Regular\":\r\n textStyle += style_regular;\r\n case \"Regular Italic\":\r\n textStyle += style_italic;\r\n default:\r\n textStyle += style_bold;\r\n }\r\n\r\n // Add all characteristic to a single string\r\n String finalText = textFont + \"\\n\" + textSize;\r\n finalText += \"\\n\" + textStyle;\r\n // Display options and set that options to the text\r\n defOutput.setStyle(finalText);\r\n }\r\n }", "public static void setTextFonts2(Context mContext, String[] fonts, String[] texts, TextView textViewItem) {\n\n\t\tString content = texts[0];\n\t\tTypeface content_font = Typefaces.get(mContext, fonts[0]);\n\t\t// set texts\n\t\tif(texts.length > 1) {\n\t\t\tint i = 0;\n\t\t\twhile(i < texts.length) {\n\t\t\t\tString text = texts[i];\n\t\t\t\tif(content.contains(\"{\" + (i-1) + \"}\")) {\n\t\t\t\t\tcontent = content.replace(\"{\" + (i-1) + \"}\", text);\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\t// set fonts\n\t\tSpannableStringBuilder SS = new SpannableStringBuilder(content);\n\t\tint last_index = 0;\n\t\tchar[] last_array = null;\n\t\tif(texts.length > 1) {\n\t\t\tint index = 1;\n\t\t\twhile(index < texts.length) {\n\t\t\t\tString text = texts[index];\n\n\t\t\t\tint current_index = content.indexOf(text);\n\n\t\t\t\tchar[] charArrayCurrent = text.toCharArray();\n\t\t\t\tTypeface current_font = Typefaces.get(mContext, fonts[index]);\n\n\t\t\t\tif(last_index <= 0) {\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", content_font), 0, current_index, Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", current_font), current_index, current_index + charArrayCurrent.length,Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t} else {\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", content_font), last_index + last_array.length + 1, current_index,Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", current_font), current_index, current_index + charArrayCurrent.length,Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t}\n\n\t\t\t\tlast_index = current_index;\n\t\t\t\tlast_array = charArrayCurrent;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\tif(last_index + last_array.length < content.length()) {\n\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", content_font), last_index + last_array.length + 1, content.length(),Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t}\n\t\t}\n\t\t// set text\n\t\ttextViewItem.setText(SS);\n\n\t}", "@Override\r\n public void build(GraphicsConfiguration gc) {\n\r\n RWTLabel startLabel = new RWTLabel();\r\n startLabel.setString(\"10年後・・・\");\r\n startLabel.setColor(Color.black);\r\n startLabel.setRelativePosition(0.05f, 0.3f);\r\n Font f = new Font(\"\", Font.PLAIN, 20);\r\n startLabel.setFont(f);\r\n addWidget(startLabel);\r\n\r\n RWTLabel scenario1Label = new RWTLabel();\r\n scenario1Label.setString(\"ヤヲ・二・ナッタ「よく来たね~」\");\r\n scenario1Label.setColor(Color.black);\r\n scenario1Label.setRelativePosition(0.05f, 0.5f);\r\n Font a = new Font(\"\", Font.PLAIN, 20);\r\n scenario1Label.setFont(a);\r\n addWidget(scenario1Label);\r\n\r\n RWTLabel scenario2Label = new RWTLabel();\r\n scenario2Label.setString(\"「僕を倒したら最強のマフィアだよ~⤴」\");\r\n scenario2Label.setColor(Color.black);\r\n scenario2Label.setRelativePosition(0.05f, 0.7f);\r\n Font b = new Font(\"\", Font.PLAIN, 20);\r\n scenario2Label.setFont(b);\r\n addWidget(scenario2Label);\r\n\r\n repaint();\r\n }", "public Word(String str, ArrayList<Location> locations, ArrayList<Location> curlocations) {\n String curstr = \"\";\n for (Location loc : locations) {\n curstr += loc.getTile().getLetter();\n }\n this.str = curstr;\n this.locations = locations;\n this.curlocations = curlocations;\n }", "public static FontEncoding createFontSpecificEncoding() {\n FontEncoding encoding = new FontEncoding();\n encoding.fontSpecific = true;\n for (int ch = 0; ch < 256; ch++) {\n encoding.unicodeToCode.put(ch, ch);\n encoding.codeToUnicode[ch] = ch;\n encoding.unicodeDifferences.put(ch, ch);\n }\n return encoding;\n }", "@Override\n public Color getFontColor(){\n return Color.BLACK;\n }", "private FontData() {\n }", "public WritingFont() {\n\t\tproperties.set(NAME, \"Untitled\");\n\t\tproperties.set(MEDIAN, .6f);\n\t\tproperties.set(DESCENT, .3f);\n\t\tproperties.set(LEADING, .1f);\n\t}", "public Dictionary() { //constructor\r\n try {\r\n createDictionary(); //create dictionary\r\n addCustomWords(); //add any user define words in it\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void generatePDF(String directory, String nameOfTheDocument) throws Exception{\n\t\t\n\t\t//Create empty document (instance of Document classe from Apose.Words)\n\t\tDocument doc = new Document();\n\t\t\n\t\t//Every word document have section, so now we are creating section\n\t\tSection section = new Section(doc);\n\t\tdoc.appendChild(section);\n\t\t\n\t\tsection.getPageSetup().setPaperSize(PaperSize.A4);\n\t\tsection.getPageSetup().setHeaderDistance (35.4); // 1.25 cm\n\t\tsection.getPageSetup().setFooterDistance (35.4); // 1.25 cm\n\t\t\n\t\t//Crating the body of section\n\t\tBody body = new Body(doc);\n\t\tsection.appendChild(body);\n\t\t\n\t\t//Crating paragraph\n\t\tParagraph paragraph = new Paragraph(doc);\n\t\t\n\t\tparagraph.getParagraphFormat().setStyleName(\"Heading 1\");\n\t\tparagraph.getParagraphFormat().setAlignment(ParagraphAlignment.CENTER);\n\t\t//Crating styles\n\t\tStyle style = doc.getStyles().add(StyleType.PARAGRAPH, \"Style1\");\n\t\tstyle.getFont().setSize(24);\n\t\tstyle.getFont().setBold(true);\n\t\tstyle.getFont().setColor(Color.RED);\n\t\t//paragraph.getParagraphFormat().setStyle(style);\n\t\tbody.appendChild(paragraph);\n\t\t\n\t\tStyle styleForIntroduction = doc.getStyles().add(StyleType.PARAGRAPH, \"Style2\");\n\t\tstyle.getFont().setSize(40);\n\t\tstyle.getFont().setBold(false);\n\t\tstyle.getFont().setItalic(true);\n\t\tstyle.getFont().setColor(Color.CYAN);\n\t\t\n\t\tStyle styleForText = doc.getStyles().add(StyleType.PARAGRAPH, \"Style3\");\n\t\tstyle.getFont().setSize(15);\n\t\tstyle.getFont().setBold(false);\n\t\tstyle.getFont().setItalic(false);\n\t\tstyle.getFont().setColor(Color.BLACK);\n\t\t\n\t\t//Crating run of text\n\t\tRun textRunHeadin1 = new Run(doc);\n\t\ttry {\n\t\t\ttextRunHeadin1.setText(\"Probni test fajl\" + \"\\r\\r\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tparagraph.appendChild(textRunHeadin1);\n\t\t\n\t\t\n\t\t//Creating paragraph1 for every question in list\n\t\tfor (Question question : questions) {\n\t\t\t\n\t\t\t\n\t\t\t\t//Paragraph for Instruction Question\n\t\t\t\tParagraph paragraphForInstruction = new Paragraph(doc);\n\t\t\t\tparagraphForInstruction.getParagraphFormat().setStyleName(\"Heading 1\");\n\t\t\t\tparagraphForInstruction.getParagraphFormat().setAlignment(ParagraphAlignment.LEFT);\n\t\t\t\tparagraphForInstruction.getParagraphFormat().setStyle(styleForIntroduction);\n\t\t\t\tparagraphForInstruction.getParagraphFormat().setStyleName(\"Heading 3\");\n\t\t\t\t\n\t\t\t\tRun runIntroduction = new Run(doc);\n\t\t\t\t\n\t\t\t\trunIntroduction.getFont().setColor(Color.BLUE);\n\t\t\t\ttry {\n\t\t\t\t\trunIntroduction.setText(((Question)question).getTextInstructionForQuestion()+\"\\r\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tparagraphForInstruction.appendChild(runIntroduction);\n\t\t\t\tbody.appendChild(paragraphForInstruction);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Paragraph for Question\n\t\t\t\tParagraph paragraphForQuestion = new Paragraph(doc);\n\t\t\t\tparagraphForQuestion.getParagraphFormat().setStyleName(\"Heading 1\");\n\t\t\t\tparagraphForQuestion.getParagraphFormat().setAlignment(ParagraphAlignment.LEFT);\n\t\t\t\tparagraphForQuestion.getParagraphFormat().setStyle(styleForText);\n\t\t\t\tparagraphForQuestion.getParagraphFormat().setStyleName(\"Normal\");\n\t\t\t\t\n\t\t\t\tRun runText = new Run(doc);\n\t\t\t\tif(question instanceof QuestionBasic){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunText.setText(((QuestionBasic)question).toStringForDocument()+\"\\r\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tif(question instanceof QuestionFillTheBlank){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunText.setText(((QuestionFillTheBlank)question).toStringForDocument());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tif(question instanceof QuestionMatching){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunText.setText(((QuestionMatching)question).toStringForDocument());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tif(question instanceof QuestionTrueOrFalse){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunText.setText(((QuestionTrueOrFalse)question).toStringForDocument());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tparagraphForQuestion.appendChild(runText);\n\t\t\t\tbody.appendChild(paragraphForQuestion);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tdoc.save(directory + nameOfTheDocument +\".pdf\");\n\t\t\n\t}", "public RandomTextGenerator(HashMap<Integer, String> source, String preFix, int numWords, boolean debug) {\n\t\tdata = new HashMap<>(source);\n\t\tcurrPrefix = preFix;\n\t\tthis.numWords = numWords;\n\t\tthis.debug = debug;\n\t\tif (debug) {\n\t\t\trandom = new Random(SEED_CONST);\n\t\t} else {\n\t\t\trandom = new Random();\n\t\t}\n\t}", "private void handleFont(TagWrapper wrapper) {\n final int start = wrapper.startIndex;\n final int end = mBuilder.length();\n\n // check font color\n HtmlDocument.TagAttribute attr = wrapper.tag.getAttribute(HTML4.COLOR_ATTRIBUTE);\n if (attr != null) {\n //TS: zheng.zou 2015-06-25 EMAIL BUGFIX_1030617 MOD_S\n int c = -1;\n try {\n c = Color.parseColor(attr.getValue());\n } catch (IllegalArgumentException ex) {\n LogUtils.w(LOG_TAG, \"handleFont parseColor error, can not parse color = \\\"\" + attr.getValue() + \"\\\" ex=\" + ex);\n }\n //TS: zheng.zou 2015-06-25 EMAIL BUGFIX_1030617 MOD_E\n if (c != -1) {\n mBuilder.setSpan(new ForegroundColorSpan(c | 0xFF000000), start, end,\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n }\n\n // check font size\n attr = wrapper.tag.getAttribute(HTML4.SIZE_ATTRIBUTE);\n if (attr != null) {\n int i = Integer.parseInt(attr.getValue());\n if (i != -1) {\n mBuilder.setSpan(new AbsoluteSizeSpan(i * WEB_TO_ANDROID_SIZE_MULTIPLIER,\n true /* use dip */), start, end,Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n }\n\n // check font typeface\n attr = wrapper.tag.getAttribute(HTML4.FACE_ATTRIBUTE);\n if (attr != null) {\n String[] families = attr.getValue().split(\",\");\n for (String family : families) {\n mBuilder.setSpan(new TypefaceSpan(family.trim()), start, end,\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n }\n }", "public BoardCanvas() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n int height1 = screenSize.height * 9 / 14;\n int remainNum = height1 % 9;\n int heightBoard = height1 - remainNum;\n setBounds(0, 0, heightBoard, heightBoard);\n GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\n HashSet<String> availableNames = new HashSet();\n for (String name : env.getAvailableFontFamilyNames()) {\n availableNames.add(name);\n }\n for (String pf : preferredFonts) {\n if (availableNames.contains(pf)) {\n font = new Font(pf, Font.PLAIN, 20);\n break;\n }\n }\n }", "public PatchTextStyleProperties font(String font) {\n this.font = font;\n return this;\n }", "public WDXToUnicode(XWPFDocument docx, ArrayList<FontLogAbs> fontLogs) {\n this.docx = docx;\n // Initialize All types of fonts for Sinhala types\n sinhalaUnicodeFonts = CTFonts.Factory.newInstance();\n sinhalaUnicodeFonts.setAscii(sinhalaUnicodeFont);\n sinhalaUnicodeFonts.setHAnsi(sinhalaUnicodeFont);\n sinhalaUnicodeFonts.setCs(sinhalaUnicodeFont);\n\n\n // Initialize All types of fonts for Tamil types\n tamilUnicodeFonts = CTFonts.Factory.newInstance();\n tamilUnicodeFonts.setAscii(tamilUnicodeFont);\n tamilUnicodeFonts.setHAnsi(tamilUnicodeFont);\n tamilUnicodeFonts.setCs(tamilUnicodeFont);\n\n this.documentStyles = this.docx.getStyles();\n\n this.stylesCopy = new HashMap<>();\n this.styeleConvertedFont = new HashMap<>();\n\n this.engine = new Engine(fontLogs);\n }", "public FontController createContainerFont(ControllerCore genCode) {\n\t\tcontainerFontTXT = new FontController(\"containerFont\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(containerFont$1LBL);\n\t\t\t\tsetProperty(\"containerFont\");\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 containerFontTXT;\n\t}", "FontMatch(FontInfo info) {\n/* 704 */ this.info = info;\n/* */ }", "public static void main(String[] args)\r\n\t{\r\n\t\tnew FontDisplay();\r\n\t}", "public void GetFontW (){\n fontBolW = false;\n fontBolS = true;\n fontBolA = true;\n fontBol = true;\n }", "@Override\n public void render(Canvas canvas, Rect2i bounds, TextRenderStyle defaultRenderStyle) {\n canvas.drawWidget(widget, bounds);\n }" ]
[ "0.57716024", "0.5673587", "0.5550485", "0.545357", "0.5435061", "0.52783674", "0.52766234", "0.52623516", "0.5240583", "0.5211008", "0.51290274", "0.50898254", "0.5007666", "0.4986848", "0.49842367", "0.49403635", "0.49320722", "0.49257416", "0.49041742", "0.48315945", "0.47812206", "0.4719176", "0.47131607", "0.46971273", "0.46725914", "0.46523783", "0.4646899", "0.4638311", "0.46373487", "0.463398", "0.4625767", "0.4613815", "0.45944768", "0.4585118", "0.45848006", "0.45668516", "0.4539784", "0.45381993", "0.45368934", "0.45099553", "0.45067728", "0.44987702", "0.44949225", "0.4488234", "0.4487877", "0.44878507", "0.44786772", "0.44654292", "0.44627014", "0.44506478", "0.44415516", "0.4440896", "0.44322255", "0.44241244", "0.4393609", "0.4386513", "0.43740886", "0.43702647", "0.4363992", "0.43545133", "0.43539068", "0.43529448", "0.43493828", "0.43393615", "0.4331635", "0.43282187", "0.43232486", "0.4321672", "0.43108264", "0.43102372", "0.43048197", "0.43020847", "0.42905694", "0.42887583", "0.42852637", "0.42830968", "0.4281105", "0.4273022", "0.4267425", "0.42628625", "0.42537352", "0.4249342", "0.42436945", "0.4237479", "0.42351994", "0.42331898", "0.42328677", "0.4231758", "0.42288238", "0.42257416", "0.42226198", "0.42225134", "0.4217995", "0.4212895", "0.42086613", "0.42005658", "0.41940424", "0.4190577", "0.41877097", "0.4186276" ]
0.6837174
0
Render a word onto a BufferedImage.
protected void preRender(BufferedImage image) { g = image.createGraphics(); RenderingHints hints = new RenderingHints( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); hints.add(new RenderingHints(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY)); g.setRenderingHints(hints); frc = g.getFontRenderContext(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BufferedImage getImage(String word) throws CaptchaException\n {\n int wordLenght;\n //check word\n wordLenght = checkWordLenght(word);\n //create attribute string from word\n AttributedString attributedWord = getAttributedString(word, wordLenght);\n\n //create backgound\n BufferedImage background = getBackround();\n //apply text on background\n return pasteText(background, attributedWord);\n\n }", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "protected abstract Image generateImage(Graphics g, String text, Dimension d);", "public void render (DrawingCanvas canvas){\n //System.out.println(\"drawing \"+wd+\"*\"+ht+\" at (\"+x+\",\"+y+\")\");\n canvas.setForeground(col);\n canvas.drawString(str, x, y, false);\n canvas.setForeground(Color.lightGray);\n canvas.drawRect(x,y-13,(str.length()*8),16);\n }", "BufferedImage pasteText(BufferedImage background,\n AttributedString attributedWord)\n throws CaptchaException {\n //get graphics\n Graphics graph = background.getGraphics();\n // calcul text position\n\n int x = (getImageWidth() - getMaxAcceptedWordLength()) / 2;\n int y = (getImageHeight() - getMinFontSize()) / 2;\n graph.drawString(attributedWord.getIterator(), x, y);\n graph.dispose();\n return background;\n }", "void exports(String text,String name){\n BufferedImage img = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2d = img.createGraphics();\n Font font = new Font(\"Arial\", Font.PLAIN, 48);\n g2d.setFont(font);\n FontMetrics fm = g2d.getFontMetrics();\n int width = fm.stringWidth(text);\n int height = fm.getHeight();\n g2d.dispose();\n\n img = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n g2d = img.createGraphics();\n g2d.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);\n g2d.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);\n g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n g2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n g2d.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);\n g2d.setFont(font);\n fm = g2d.getFontMetrics();\n g2d.setColor(Color.BLACK);\n g2d.drawString(text, 0, fm.getAscent());\n g2d.dispose();\n try {\n ImageIO.write(img, \"png\", new File(name+\".png\"));\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n }", "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "public static String customTextFilter(BufferedImage img, String txt) {\n\n int newHeight = img.getHeight() / 200;\n int newWidth = img.getWidth() / 200;\n String html = \"\";\n int aux = 0;\n\n for (int i = 0; i < 200; i++) {\n if (i > 0) {\n html += \"\\n<br>\\n\";\n }\n for (int j = 0; j < 200; j++) {\n if (aux == txt.length()) {\n html += \"<b>&nbsp</b>\";\n aux = 0;\n } else {\n Color c = regionAvgColor(j * newWidth, (j * newWidth) + newWidth,\n i * newHeight, (i * newHeight) + newHeight, newHeight,\n newWidth, img);\n html += \"<b style='color:rgb(\" + c.getRed() + \",\"\n + c.getGreen() + \",\" + c.getBlue() + \");'>\"\n + txt.substring(aux, aux + 1) + \"</b>\";\n aux++;\n }\n }\n }\n String style = \"body{\\nfont-size: 15px\\n}\";\n String title = \"Imagen Texto\";\n int styleIndex = HTML.indexOf(\"?S\"), titleIndex = HTML.indexOf(\"?T\"),\n bodyIndex = HTML.indexOf(\"?B\");\n String htmlFile = HTML.substring(0, styleIndex) + style;\n htmlFile += HTML.substring(styleIndex + 2, titleIndex) + title;\n htmlFile += HTML.substring(titleIndex + 2, bodyIndex) + html;\n htmlFile += HTML.substring(bodyIndex + 2);\n return htmlFile;\n }", "@Override\r\n\tpublic void render(GameContainer gc, Renderer r) {\n\t\tr.drawTextInBox(posX, posY, width, height, color1, text);\r\n\t\t//r.noiseGen();\r\n\t}", "public abstract Color draw(Graphics2D g2d, String bin, int x, int y);", "public void printASCIIArt(String string) {\n\t\tint width = 500;\n int height = 30;\n\n BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n java.awt.Graphics g = image.getGraphics();\n g.setFont(new Font(\"SansSerif\", Font.CENTER_BASELINE, 16));\n\n Graphics2D graphics = (Graphics2D) g;\n graphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n graphics.drawString(string, 10, 20);\n\n //save this image\n //ImageIO.write(image, \"png\", new File(\"/users/mkyong/ascii-art.png\"));\n\n for (int y = 0; y < height; y++) {\n StringBuilder sb = new StringBuilder();\n for (int x = 0; x < width; x++) {\n\n sb.append(image.getRGB(x, y) == -16777216 ? \" \" : \"$\");\n\n }\n\n if (sb.toString().trim().isEmpty()) {\n continue;\n }\n\n System.out.println(sb);\n }\n\t}", "abstract BufferedImage pasteText(final BufferedImage background, final AttributedString attributedWord)\n throws CaptchaException;", "public void render () {\n image (img, xC, yC, xLength * getPixelSize(), yLength * getPixelSize());\n }", "public void displayWord(String word) {\n\t\twordLabel.setLabel(word);\n\t\twordLabel.setLocation((getWidth() - wordLabel.getWidth()) / 2, MARGIN + SCAFFOLD_HEIGHT + WORD_SPACING);\n\t}", "private void drawDescription(){\n image.clear();\n \n String[] words = desc.split(\" \");\n int lineCounter = 1;\n int length = 0;\n int index = 0;\n String line1 = \"\";\n String line2 = \"\";\n String line3 = \"\";\n String line4 = \"\";\n String line5 = \"\";\n \n image.setColor(DESCRIPTION_BG_COLOR);\n image.fill();\n image.setColor(DESCRIPTION_COLOR);\n \n // Determines how many words to put on each line so it fits in the image\n while(index != words.length){\n if((length += words[index].length() + 1) * DESCRIPTION_FONT.getSize() * 0.6 < image.getWidth()){\n length += words[index].length() + 1;\n if(lineCounter == 1) line1 += words[index] + \" \";\n else if(lineCounter == 2) line2 += words[index] + \" \";\n else if(lineCounter == 3) line3 += words[index] + \" \";\n else if(lineCounter == 4) line4 += words[index] + \" \";\n else if(lineCounter == 5) line5 += words[index] + \" \";\n index++;\n }\n else{\n lineCounter++;\n length = 0;\n }\n }\n \n // Determines where to draw each string so that it always stays centered\n if(lineCounter == 1) image.drawString(line1, (image.getWidth() - (int)(line1.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() / 2) + DESCRIPTION_FONT.getSize() / 4);\n else if(lineCounter == 2){\n image.drawString(line1, (image.getWidth() - (int)(line1.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 2 / 5) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line2, (image.getWidth() - (int)(line2.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 3 / 5) + DESCRIPTION_FONT.getSize() / 4);\n }\n else if(lineCounter == 3){\n image.drawString(line1, (image.getWidth() - (int)(line1.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 3 / 10) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line2, (image.getWidth() - (int)(line2.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() / 2) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line3, (image.getWidth() - (int)(line3.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 7 / 10) + DESCRIPTION_FONT.getSize() / 4);\n }\n else if(lineCounter == 4){\n image.drawString(line1, (image.getWidth() - (int)(line1.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() / 5) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line2, (image.getWidth() - (int)(line2.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 2 / 5) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line3, (image.getWidth() - (int)(line3.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 3 / 5) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line4, (image.getWidth() - (int)(line4.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 4 / 5) + DESCRIPTION_FONT.getSize() / 4);\n }\n else if(lineCounter == 5){\n image.drawString(line1, (image.getWidth() - (int)(line1.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() / 10) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line2, (image.getWidth() - (int)(line2.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 3 / 10) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line3, (image.getWidth() - (int)(line3.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() / 2) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line4, (image.getWidth() - (int)(line4.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 7 / 10) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line5, (image.getWidth() - (int)(line5.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 9 / 10) + DESCRIPTION_FONT.getSize() / 4);\n }\n setImage(image);\n }", "public void displayWord(String word) {\n\t\tif (display!=null) {\n\t\t\tremove (display);\n\t\t}\n\t\tdisplay=new GLabel(word);\n\t\tdisplay.setFont(\"-20\");\n\t\tadd(display, 50, 440);\n\t}", "public abstract void drawString(String str, int x, int y);", "public void draw(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "public interface WordAnalyser {\n\n /**\n * Gets the bounds of all words it encounters in the image\n * \n */\n List<Rectangle> getWordBoundaries();\n\n /**\n * Gets the partial binary pixel matrix of the given word.\n * \n * @param wordBoundary\n * The bounds of the word\n */\n BinaryImage getWordMatrix(Rectangle wordBoundary);\n\n}", "private BufferedImage createCharImage(char character) {\n\t\tBufferedImage image = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);\r\n\t\tGraphics2D graphics = image.createGraphics();\r\n\t\t\r\n\t\tif (antiAliasing) {\r\n\t\t\tgraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\r\n\t\t}\r\n\t\t\r\n\t\tgraphics.setFont(font);\r\n\t\tFontMetrics metrics = graphics.getFontMetrics();\r\n\t\tgraphics.dispose();\r\n\t\t\r\n\t\tint charWidth = metrics.charWidth(character);\r\n\t\tint charHeight = metrics.getHeight();\r\n\t\t\r\n\t\t// Character not represented in provided font\r\n\t\tif (charWidth == 0) return null;\r\n\t\t\r\n\t\t// Generate character image\r\n\t\timage = new BufferedImage(charWidth, charHeight, BufferedImage.TYPE_INT_ARGB);\r\n\t\tgraphics = image.createGraphics();\r\n\t\t\r\n\t\tif (antiAliasing) {\r\n\t\t\tgraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\r\n\t\t}\r\n\t\t\r\n\t\tgraphics.setFont(font);\r\n\t\tgraphics.setPaint(Color.WHITE);\r\n\t\tgraphics.drawString(String.valueOf(character), 0, metrics.getAscent());\r\n\t\tgraphics.dispose();\r\n\t\t\r\n\t\treturn image;\r\n\t}", "public static void bgfx_dbg_text_image(@NativeType(\"uint16_t\") int _x, @NativeType(\"uint16_t\") int _y, @NativeType(\"uint16_t\") int _width, @NativeType(\"uint16_t\") int _height, @NativeType(\"void const *\") ByteBuffer _data, @NativeType(\"uint16_t\") int _pitch) {\n if (CHECKS) {\n check(_data, _height * _pitch);\n }\n nbgfx_dbg_text_image((short)_x, (short)_y, (short)_width, (short)_height, memAddress(_data), (short)_pitch);\n }", "public void paint(Graphics g){\n\n // Draw our Image object.\n\n \nimage = Toolkit.getDefaultToolkit().getImage(\"D:\\\\screenShot.jpg\");\n g.drawImage(image,i,j,k,l, this); // at location 50,10\n System.out.print(\"inside\");\n g.drawString(\"hello\",500,500);\n \n // 200 wide and high\n }", "void RenderString(GameContainer gameContainer, Graphics graphics)\r\n\t{\n\t\t\r\n\t}", "public void displayImageToConsole();", "public static BufferedImage getTextImage (String text, String fontName, float fontSize) {\n\t\tBufferedImage img = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);\n\t\tGraphics2D g2d = img.createGraphics();\n\t\tFont font = ExternalResourceManager.getFont(fontName).deriveFont(fontSize);\n\t\tg2d.setFont(font);\n//\t\tnew Font\n\t\tFontMetrics fm = g2d.getFontMetrics();\n\t\tint w = fm.stringWidth(text), h = fm.getHeight();\n\t\tg2d.dispose();\n\t\t// draw image\n\t\timg = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n\t\tg2d = img.createGraphics();\n\t\tg2d.setFont(font);\n fm = g2d.getFontMetrics();\n g2d.setColor(Color.BLACK);\n g2d.setBackground(new Color(0, 0, 0, 0));\n g2d.drawString(text, 0, fm.getAscent());\n g2d.dispose();\n\t\treturn img;\n\t}", "int tex(BufferedImage image) {\n return this.renderEngine.a(image);\n }", "@Override\n\tpublic String drawForConsole() {\n\t\tString[][] output = new String[this.getWidth()][this.getHeight()];\n\t\tString image = \"\";\n\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\t\tif (x == 0 || x == this.getWidth() - 1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (y == 0 || y == this.getHeight() -1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (this.isFilledIn()) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\toutput[x][y] = \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\t\timage += output[x][y];\n\t\t\t\tif (x == this.getWidth() - 1) {\n\t\t\t\t\timage += \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn image;\n\t}", "@Override\n\tpublic void render() {\n\t\tif (this.hidden) {\n\t\t\treturn;\n\t\t}\n\n\t\tsuper.render();\n\n\t\tthis.font.draw(Graphics.batch, this.label, this.getX(),\n\t\t\tthis.getY() + (this.getHeight() - this.font.getLineHeight()) / 2);\n\t}", "private void print2(String word, int height) {\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = height - i; j > 0; j--) {\n\t\t\t\tta.append(spece);\n\t\t\t}\n\t\t\tfor (int j = 0; j < (i + 1); j++) {\n\t\t\t\tta.append(word);\n\t\t\t}\n\t\t\tta.append(\"\\r\\n\");\n\t\t}\n\t}", "public abstract String visualize(byte input);", "public void renderText(float x ,float y ){\n ttf.drawString(x, y, text);\n }", "void renderString(Graphics2D graphic, double x, double y, double dx, double dy, GlyphVector gv,\n Feature feature, Fill fill, double rotation) {\n AffineTransform temp = graphic.getTransform();\n AffineTransform labelAT = new AffineTransform();\n \n Point2D mapCentre = new java.awt.geom.Point2D.Double(x, y);\n Point2D graphicCentre = new java.awt.geom.Point2D.Double();\n temp.transform(mapCentre, graphicCentre);\n labelAT.translate(graphicCentre.getX(), graphicCentre.getY());\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"rotation \" + rotation);\n }\n \n double shearY = temp.getShearY();\n double scaleY = temp.getScaleY();\n double scaleX = temp.getScaleX();\n double originalRotation = Math.atan(shearY / scaleY);\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"originalRotation \" + originalRotation);\n }\n \n labelAT.rotate(rotation - originalRotation);\n \n double xToyRatio = Math.abs(scaleX / scaleY);\n labelAT.scale(xToyRatio, 1.0 / xToyRatio);\n graphic.setTransform(labelAT);\n \n applyFill(graphic, fill, feature);\n \n // we move this to the centre of the image.\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"about to draw at \" + x + \",\" + y + \" with the start of the string at \"\n + (x + dx) + \",\" + (y + dy));\n }\n \n graphic.drawGlyphVector(gv, (float) dx, (float) dy);\n // tl.draw(graphic, (float) dx, (float) dy);\n \n //graphics.drawString(label,(float)x,(float)y);\n resetFill(graphic);\n graphic.setTransform(temp);\n \n return;\n }", "public void displayWord(String word) {\n\t\t// first make sure there isn't an existing label - if there is, remove it\n\t\tGObject checkForOldLabel = getElementAt(guessPosX,guessPosY);\n\t\tif (checkForOldLabel != null) {\n\t\t\tremove(checkForOldLabel);\n\t\t}\n\t\t// then re-add the label for the updated \"guessed\" word\n\t\tguessSoFar = new GLabel(word);\n\t\tguessPosX = scaffoldStart.getX()/2;\n\t\tguessPosY = scaffoldStart.getY()+scaffoldStart.getY()/10;\n\t\tguessSoFar.setLocation(guessPosX,guessPosY);\n\t\tguessSoFar.setFont(new Font(\"Arial\",Font.BOLD, 24));\n\t\tadd(guessSoFar);\n\t}", "public void render (Graphics2D g);", "private ModelInstance newText(String text)\n {\n BufferedImage onePixelImage = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);\n Graphics2D awtGraphics2D = onePixelImage.createGraphics();\n awtGraphics2D.setFont(awtFont != null ? awtFont : DEFAULT_FONT);\n FontMetrics awtFontMetrics = awtGraphics2D.getFontMetrics();\n int textWidthPixels = text.isEmpty() ? 1 : awtFontMetrics.stringWidth(text);\n int textHeightPixels = awtFontMetrics.getHeight();\n awtGraphics2D.dispose();\n\n // Create image for use in texture\n BufferedImage bufferedImageRGBA8 = new BufferedImage(textWidthPixels, textHeightPixels, BufferedImage.TYPE_INT_ARGB);\n awtGraphics2D = bufferedImageRGBA8.createGraphics();\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);\n awtGraphics2D.setFont(awtFont != null ? awtFont : DEFAULT_FONT);\n awtFontMetrics = awtGraphics2D.getFontMetrics();\n awtGraphics2D.setColor(awtColor);\n int x = 0;\n int y = awtFontMetrics.getAscent();\n if (!text.isEmpty())\n awtGraphics2D.drawString(text, x, y);\n awtGraphics2D.dispose();\n\n Pixmap pixmap = new Pixmap(textWidthPixels, textHeightPixels, Pixmap.Format.RGBA8888);\n BytePointer rgba8888BytePointer = new BytePointer(pixmap.getPixels());\n DataBuffer dataBuffer = bufferedImageRGBA8.getRaster().getDataBuffer();\n for (int i = 0; i < dataBuffer.getSize(); i++)\n {\n rgba8888BytePointer.putInt(i * Integer.BYTES, dataBuffer.getElem(i));\n }\n\n Texture libGDXTexture = new Texture(new PixmapTextureData(pixmap, null, false, false));\n Material material = new Material(TextureAttribute.createDiffuse(libGDXTexture),\n ColorAttribute.createSpecular(1, 1, 1, 1),\n new BlendingAttribute(GL41.GL_SRC_ALPHA, GL41.GL_ONE_MINUS_SRC_ALPHA));\n long attributes = VertexAttributes.Usage.Position | VertexAttributes.Usage.Normal | VertexAttributes.Usage.TextureCoordinates;\n\n float textWidthMeters = textHeightMeters * (float) textWidthPixels / (float) textHeightPixels;\n\n float x00 = 0.0f;\n float y00 = 0.0f;\n float z00 = 0.0f;\n float x10 = textWidthMeters;\n float y10 = 0.0f;\n float z10 = 0.0f;\n float x11 = textWidthMeters;\n float y11 = textHeightMeters;\n float z11 = 0.0f;\n float x01 = 0.0f;\n float y01 = textHeightMeters;\n float z01 = 0.0f;\n float normalX = 0.0f;\n float normalY = 0.0f;\n float normalZ = 1.0f;\n Model model = modelBuilder.createRect(x00, y00, z00, x10, y10, z10, x11, y11, z11, x01, y01, z01, normalX, normalY, normalZ, material, attributes);\n return new ModelInstance(model);\n }", "public void renderText(String text, int x, int y)\n {\n renderText(text, x, y, 0x00000000);\n }", "public interface TextPipe {\n public void drawString(SunGraphics2D g2d, String s,\n double x, double y);\n public void drawGlyphVector(SunGraphics2D g2d, GlyphVector g,\n float x, float y);\n public void drawChars(SunGraphics2D g2d,\n char data[], int offset, int length,\n int x, int y);\n}", "public void renderImage()\n {\n for (int i = 0; i < _imageWriter.getNx(); i++)\n {\n for (int j = 0; j < _imageWriter.getNy(); j++)\n {\n Ray ray;\n ray = new Ray(_scene.getCamera().constructRayThroughPixel(_imageWriter.getNx(), _imageWriter.getNy(),j,i,\n _scene.getScreenDistance(), _imageWriter.getWidth(),_imageWriter.getHeight()));\n\n if(i==255 && j==255)\n System.out.print(\"111\");\n Map<Geometry, List<Point3D>> intersectionPoints = new HashMap<>(getSceneRayIntersections(ray));\n\n if(intersectionPoints.isEmpty())\n _imageWriter.writePixel(j, i, _scene.getBackground());\n else\n {\n Map<Geometry, Point3D> closestPoint = getClosestPoint(intersectionPoints);\n Map.Entry<Geometry,Point3D> entry;\n Iterator<Entry<Geometry, Point3D>> it = closestPoint.entrySet().iterator();\n entry = it.next();\n _imageWriter.writePixel(j, i, calcColor(entry.getKey(), entry.getValue(), ray));\n }\n\n }\n }\n //printGrid(1);\n\n }", "void drawOutput(String output);", "@Override\n public void drawBytes(byte[] buf, int s, int len, int x, int y) {\n graphics.drawBytes(buf, s, len, x, y - descent);\n if (bold) {\n graphics.drawBytes(buf, s, len, x + 1, y - descent);\n }\n\n if (underline) {\n graphics.drawLine(x, y - 1, x + len * char_width, y - 1);\n }\n\n }", "void draw_text(int x, int y, char[][] _display, String txt) {\n for (int i = 0; i < txt.length(); i++)\n {\n draw_char(x + i, y, _display, txt.charAt(i));\n }\n }", "void render(Graphics g);", "private void print0(String word, int height) {\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < (i + 1); j++) {\n\t\t\t\tta.append(word);\n\t\t\t}\n\t\t\tta.append(\"\\r\\n\");\n\t\t}\n\t}", "public final void render(Surface surface, Shape clip, AffineTransform tx, CharSequence str,\n final int x, final int y, Color color) {\n if (str == null || str.length() == 0)\n return;\n\n int charsCount = str.length();\n\n if ((bdfFont != null) && (charsCount > 0)) {\n int offset = 0;\n final int bdfFontDepth = bdfFont.getDepth();\n\n float f_max = (1 << bdfFontDepth) - 1;\n if (f_max == 0) f_max = 1;\n\n BDFParser.Rectangle glyph_box = new BDFParser.Rectangle();\n final Point2D src = new Point2D.Double();\n final Point2D dst = new Point2D.Double();\n\n int x_min = Integer.MAX_VALUE;\n int y_min = Integer.MAX_VALUE;\n int x_max = Integer.MIN_VALUE;\n int y_max = Integer.MIN_VALUE;\n\n for (int i = 0; i < charsCount; i++) {\n BDFGlyph glyph = bdfFont.getGlyph(str.charAt(i));\n if (glyph == null) {\n continue;\n }\n\n glyph_box = glyph.getBbx(glyph_box);\n\n final int fHeight = glyph_box.height;\n final int[] fData = glyph.getData();\n final int scan = fData.length / fHeight;\n\n int fg_r = color.getRed();\n int fg_g = color.getGreen();\n int fg_b = color.getBlue();\n\n //box location\n final int bx = x + offset + glyph_box.x;\n final int by = y - fHeight - glyph_box.y;\n\n for (int k = 0; k < fHeight; k++) {\n final int offsetLine = k * scan;\n for (int j = 0; j < scan; j++) {\n int fPixel = fData[offsetLine + j];\n if (fPixel != 0) {\n\n //pixel location\n int px = bx + j;\n int py = by + k;\n\n if (tx != null) {\n src.setLocation(px, py);\n tx.transform(src, dst);\n px = (int) dst.getX();\n py = (int) dst.getY();\n }\n\n //clip\n if (clip == null || clip.contains(px, py)) {\n //compute color\n int bg_color = surface.getRGBPixel(px, py);\n\n int bg_r = (bg_color & 0x00FF0000) >> 16;\n int bg_g = (bg_color & 0x0000FF00) >> 8;\n int bg_b = (bg_color & 0x000000FF);\n\n //todo improve this pixel composition\n\n float alpha = fPixel / f_max;\n\n int r = bg_r + ((int) ((fg_r - bg_r) * alpha)) & 0xFF;\n int g = bg_g + ((int) ((fg_g - bg_g) * alpha)) & 0xFF;\n int b = bg_b + ((int) ((fg_b - bg_b) * alpha)) & 0xFF;\n\n fPixel = (((r << 16) + (g << 8) + b) | 0xFF000000);\n\n surface.setRGBPixel(px, py, fPixel);\n\n if (x_min > px) x_min = px;\n if (y_min > py) y_min = py;\n if (x_max < px) x_max = px;\n if (y_max < py) y_max = py;\n }\n }\n }\n }\n offset += glyph.getDWidth().width;\n }\n if (x_min < Integer.MAX_VALUE && y_min < Integer.MAX_VALUE &&\n x_max > Integer.MIN_VALUE && y_max > Integer.MIN_VALUE)\n surface.update(x_min, y_min, x_max - x_min + 1, y_max - y_min + 1);\n }\n }", "public void draw(Graphics2D gc){\r\n\r\n Font curFont = gc.getFont();\r\n gc.setFont(font);\r\n Paint curColor = gc.getPaint();\r\n gc.setPaint(textColor);\r\n //gc.drawString(text, x, y); // This would look better but doesn't seem to work with hit testing.\r\n\r\n FontRenderContext frc = gc.getFontRenderContext();\r\n TextLayout textLayout = new TextLayout(text, font, frc);\r\n AffineTransform moveTo = AffineTransform.getTranslateInstance(x, y);\r\n textShape = textLayout.getOutline(moveTo);\r\n gc.fill(textShape);\r\n gc.setFont(curFont);\r\n gc.setPaint(curColor);\r\n }", "public void displayWord(String word) \n\t{ \n\t\tguessedLabel.setLabel(word);\n\t\tadd(guessedLabel);\n\t}", "public void displayToScreen(String str){\r\n textPane1.setText(str);\r\n paintDiamond();\r\n }", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "private void drawString(Graphics g, String s, int x, int y) {\n g.setColor(colour);\n g.setFont(FONT);\n FontMetrics fm = g.getFontMetrics(FONT);\n g.drawString(s, x * fm.charWidth('W'), y * fm.getAscent());\n }", "public void paintComponent(Graphics g){\n\t\t\tg.drawImage(img, 0,0,getWidth(), getHeight(), this);\n\t\t\tg.setFont(new Font(\"Times\", Font.BOLD, 55));\n\t\t\tg.drawString(\"DOGFIGHT\", 30, 60);\n\t\t}", "private void print1(String word, int height) {\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = height - i; j > 0; j--) {\n\t\t\t\tta.append(word);\n\t\t\t}\n\t\t\tta.append(\"\\r\\n\");\n\t\t}\n\t}", "public void render();", "private void addRenderPieces(Text text) {\n Rectangle rectangle = new Rectangle();\n rectangle.setX(text.getX());\n rectangle.setY(text.getY());\n rectangle.setWidth(text.getLayoutBounds().getWidth());\n rectangle.setHeight(lineHeight);\n rectangle.setFill(Color.VIOLET);\n rectangle.toBack();\n root.getChildren().add(rectangle);\n renderPieces.add(rectangle);\n }", "@Test\r\n public void testInjest() throws Exception {\r\n System.out.println(\"injest\");\r\n String doc = \"crowd.xml\";\r\n ImageWord word = new ImageWord();\r\n word.setUrl(doc);\r\n ImageTextSource source = new ImageTextSource();\r\n Set sourceSet = new HashSet();\r\n sourceSet.add(\"crowd\");\r\n source.setWordSet(sourceSet);\r\n word.setTextSrc(source);\r\n word.setType(\"svg\");\r\n word.setDataSource(\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" version=\\\"1.0\\\" x=\\\"0px\\\" y=\\\"0px\\\" width=\\\"100px\\\" height=\\\"100px\\\" viewBox=\\\"0 0 100 100\\\" enable-background=\\\"new 0 0 100 100\\\" xml:space=\\\"preserve\\\">\\n\" +\r\n \"<path d=\\\"M19.453,27.837c3.151,0,5.698-2.551,5.698-5.697c0-3.15-2.546-5.702-5.698-5.702 c-3.15,0-5.696,2.551-5.696,5.702C13.757,25.286,16.303,27.837,19.453,27.837z\\\"/>\\n\" +\r\n \"<circle cx=\\\"81.189\\\" cy=\\\"22.138\\\" r=\\\"5.699\\\"/>\\n\" +\r\n \"<path d=\\\"M50.35,27.837c3.147,0,5.697-2.551,5.697-5.697c0-3.15-2.55-5.702-5.697-5.702 c-3.151,0-5.702,2.551-5.702,5.702C44.648,25.286,47.199,27.837,50.35,27.837z\\\"/>\\n\" +\r\n \"<circle cx=\\\"81.189\\\" cy=\\\"22.138\\\" r=\\\"5.699\\\"/>\\n\" +\r\n \"<path d=\\\"M89.036,35.577l9.913-11.868c1.292-1.549,1.085-3.858-0.467-5.151c-1.551-1.293-3.85-1.086-5.146,0.462 c0,0-7.637,9.068-7.658,9.057c-1.274,1.124-2.936,1.811-4.763,1.811c-1.71,0-3.278-0.597-4.507-1.59 c-0.019,0.007-0.01,0.004-0.006,0l-7.873-9.277c-0.771-0.923-1.904-1.366-3.019-1.301c-1.116-0.064-2.242,0.378-3.018,1.301 c0,0-7.637,9.068-7.654,9.057c-1.273,1.124-2.939,1.811-4.763,1.811c-1.709,0-3.278-0.597-4.507-1.59h-0.004l-7.875-9.277 c-0.78-0.93-1.92-1.372-3.044-1.301c-1.128-0.071-2.274,0.371-3.045,1.301c0,0-7.64,9.068-7.658,9.057 c-1.273,1.124-2.939,1.811-4.768,1.811c-1.71,0-3.274-0.597-4.507-1.59l-7.878-9.277c-1.292-1.549-3.596-1.756-5.146-0.462 c-1.552,1.292-1.755,3.602-0.463,5.151L11.61,36.194v12.185c0,0.337,0.026,0.661,0.071,0.987l-1.595,30.765 c-0.146,2.055,1.405,3.838,3.458,3.979c2.054,0.141,3.834-1.401,3.975-3.459l1.269-24.463c0.224,0.017,0.44,0.035,0.665,0.035 c0.273,0,0.542-0.014,0.807-0.044l1.679,24.472c0.137,2.058,1.921,3.6,3.978,3.459c2.05-0.142,3.605-1.925,3.46-3.979 l-2.124-30.939c0.026-0.267,0.044-0.541,0.044-0.813V35.577l7.35-8.799l7.861,9.417v2.594L39,62.291h2.903l-0.925,17.84 c-0.141,2.055,1.405,3.838,3.458,3.979c2.058,0.141,3.842-1.401,3.983-3.459l0.952-18.36h2.199l1.255,18.36 c0.15,2.058,1.93,3.6,3.983,3.459c2.054-0.142,3.604-1.925,3.463-3.979l-1.225-17.84h2.864L58.193,37.37v-1.793l7.318-8.764 l7.838,9.382v12.185c0,0.337,0.021,0.661,0.067,0.987l-1.596,30.765c-0.141,2.055,1.405,3.838,3.458,3.979 c2.054,0.141,3.838-1.401,3.983-3.459l1.267-24.463c0.215,0.017,0.436,0.035,0.66,0.035c0.271,0,0.542-0.014,0.807-0.044 l1.674,24.472c0.145,2.058,1.929,3.6,3.983,3.459c2.05-0.142,3.601-1.925,3.459-3.979l-2.125-30.939 c0.032-0.267,0.049-0.541,0.049-0.813V35.577z\\\"/>\\n\" +\r\n \"<circle cx=\\\"81.189\\\" cy=\\\"22.138\\\" r=\\\"5.699\\\"/>\\n\" +\r\n \"</svg>\");\r\n String xml = new Util().generateXML(word);\r\n IwRepoDAOMarkLogicImplStud instance = new IwRepoDAOMarkLogicImplStud();\r\n boolean expResult = true;\r\n System.out.println(xml);\r\n boolean result = instance.injest(doc, xml);\r\n assertEquals(expResult, result);\r\n }", "private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }", "private void render() {\n\t\tBufferStrategy bs = this.getBufferStrategy();\r\n\t\tif (bs == null) {\r\n\t\t\tcreateBufferStrategy(3);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//Initiates Graphics class using bufferStrategy\r\n\t\tGraphics g = bs.getDrawGraphics();\r\n\t\t\r\n\t\t//displays img on screen\r\n\t\tg.drawImage(img, 0, 0, null);\r\n\t\t\r\n\t\tg.setColor(Color.CYAN);\r\n\t\tg.drawString(fps + \" FPS\", 10, 10);\r\n\t\tg.setFont(new Font(\"Arial\", 0, 45));\r\n\r\n\t\tg.dispose();//clears graphics\r\n\t\tbs.show();//shows graphics\r\n\t}", "public void displayText() {\n\n // Draws the border on the slideshow aswell as the text\n image(border, slideshowPosX - borderDisplace, textPosY - textMargin - borderDisplace);\n\n // color of text background\n fill(textBackground);\n\n //background for text\n rect(textPosX - textMargin, textPosY - textMargin, textSizeWidth + textMargin * 2, textSizeHeight + textMargin * 2);\n\n //draw text\n image(texts[scene], textPosX, textPosY, textSizeWidth, textSizeHeight, 0, 0 + scrolled, texts[scene].width, textSizeHeight + scrolled);\n }", "void texImage2D(int target, int level, int resourceId, int border);", "public void draw(Graphics2D g2d) {\r\n g2d.setFont(new Font(font, Font.BOLD, size));\r\n g2d.drawString(text, x, y);\r\n }", "BinaryImage getWordMatrix(Rectangle wordBoundary);", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y);", "public void paint(Graphics g) {\n\t\tg.drawRect(0, 0, getWidth() - 1, getHeight() - 1);\n\n\t\t/* display the string inside the rectangle. */\n\t\tg.drawString(strBuffer.toString(), 10, 20);\n\t}", "private void drawImage(Graphics g) {\n ProxyModel proxyModel = ProxyModel.instance();\n ClassLoader cl = this.getClass().getClassLoader();\n Graphics2D g2d = (Graphics2D) g;\n InputStream url = cl.getResourceAsStream(\"title.png\");\n BufferedImage img = null;\n\n try {\n img = ImageIO.read(url);\n } catch (IOException e) {\n e.printStackTrace();\n return;\n }\n\n Font font = new Font(\"Serif\", Font.PLAIN, 24);\n g2d.drawImage(img, 0, 0, 600, 600, null);\n g2d.setColor(new Color(20, 20, 20));\n g2d.setFont(font);\n g2d.drawString(\"SANTORINI BOARD GAME GUI SIMULATION\", 15, 640);\n\n /*\n g2d.drawImage(img, 0, 0, 600, 600, null);\n JTextField textField = new JTextField(\"Nickname\",20);\n textField.setFont(font);\n this.add(textField);\n\n */\n\n }", "public void drawString(AttributedCharacterIterator iterator, int x, int y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att\");\r\n\t}", "private void drawText(Graphics2D g2, String text, String fontName) {\n\n int fontSize = Math.round(getHeight() * factor);\n\n Font baseFont = new Font(fontName, Font.PLAIN, fontSize);\n Font font = baseFont.deriveFont(attr);\n\n GlyphVector gv = font.createGlyphVector(frc, text);\n Rectangle pixelBounds = gv.getPixelBounds(frc, 0, 0);\n\n int centerX = getWidth() / 2;\n int centerY = getHeight() / 2;\n\n float offsetX = pixelBounds.x + (pixelBounds.width / 2);\n float offsetY = pixelBounds.y + (pixelBounds.height / 2);\n\n AffineTransform at = new AffineTransform();\n at.translate(centerX - offsetX, centerY - offsetY);\n Shape outline = gv.getOutline();\n outline = at.createTransformedShape(outline);\n g2.fill(outline);\n }", "public void renderImage() {\r\n\r\n\t\tfinal int nX = _imageWriter.getNx();\r\n\t\tfinal int nY = _imageWriter.getNy();\r\n\t\tfinal double dist = _scene.get_screenDistance();\r\n\t\tfinal double width = _imageWriter.getWidth();\r\n\t\tfinal double height = _imageWriter.getHeight();\r\n\t\tfinal Camera camera = _scene.get_camera();\r\n\r\n\t\tfinal Pixel thePixel = new Pixel(nY, nX);\r\n\r\n// Generate threads\r\n\t\tThread[] threads = new Thread[_threads];\r\n\t\tfor (int i = _threads - 1; i >= 0; --i) {\r\n\t\t\tthreads[i] = new Thread(() -> {\r\n\t\t\t\tPixel pixel = new Pixel();\r\n\r\n\t\t\t\twhile (thePixel.nextPixel(pixel)) {\r\n\t\t\t\t\tif (_imageWriter.getAcceleration()) {\r\n\r\n\t\t\t\t\t\tColor generalColor = renderMini2(pixel.col, pixel.row);\r\n\t\t\t\t\t\t_imageWriter.writePixel(pixel.row, pixel.col, generalColor.getColor());\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tColor avgColor = renderHelp(pixel.col, pixel.row);\r\n\t\t\t\t\t\t_imageWriter.writePixel(pixel.row, pixel.col, avgColor.getColor());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n// Start threads\r\n\t\tfor (Thread thread : threads)\r\n\t\t\tthread.start();\r\n\r\n// Wait for all threads to finish\r\n\t\tfor (Thread thread : threads)\r\n\t\t\ttry {\r\n\t\t\t\tthread.join();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t}\r\n\t\tif (_print)\r\n\t\t\tSystem.out.printf(\"\\r100%%\\n\");\r\n\t}", "public void geraWord() throws IOException, SQLException {\n String matricula2 = JOptionPane.showInputDialog(\"Matricula: \");\n String escola = JOptionPane.showInputDialog(\"Escola: \");\n String titulo2 = JOptionPane.showInputDialog(\"Titulo: \");\n String prof = JOptionPane.showInputDialog(\"Professor: \");\n String turma = JOptionPane.showInputDialog(\"Turma: \");\n String nomeAluno = JOptionPane.showInputDialog(\"Nome: \");\n String data = JOptionPane.showInputDialog(\"Data: \");\n String valor = JOptionPane.showInputDialog(\"Valor: \");\n XWPFDocument document = new XWPFDocument();\n CTSectPr sectPr = document.getDocument().getBody().addNewSectPr();\n CTPageMar pageMar = sectPr.addNewPgMar();\n pageMar.setLeft(BigInteger.valueOf(500));\n pageMar.setTop(BigInteger.valueOf(100));\n pageMar.setRight(BigInteger.valueOf(500));\n pageMar.setBottom(BigInteger.valueOf(100));\n File f = new File(\"ALICE_COSTA 201511130024.jpg\");\n BufferedImage i = ImageIO.read(f);\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n ImageIO.write(i, \"jpg\", os);\n InputStream is = new ByteArrayInputStream(os.toByteArray());\n\n File f2 = new File(\"brasao.gif\");\n BufferedImage i2 = ImageIO.read(f2);\n ByteArrayOutputStream os2 = new ByteArrayOutputStream();\n ImageIO.write(i2, \"gif\", os2);\n InputStream is2 = new ByteArrayInputStream(os2.toByteArray());\n\n File f3 = new File(\"logo.gif\");\n BufferedImage i3 = ImageIO.read(f3);\n ByteArrayOutputStream os3 = new ByteArrayOutputStream();\n ImageIO.write(i3, \"gif\", os3);\n InputStream is3 = new ByteArrayInputStream(os3.toByteArray());\n\n try {\n\n XWPFParagraph paragrafo = document.createParagraph();\n paragrafo.setAlignment(ParagraphAlignment.DISTRIBUTE);\n paragrafo.setSpacingAfter(200);\n // XWPFHeaderFooterPolicy policy = document.getHeaderFooterPolicy();\n XWPFRun p = paragrafo.createRun();\n p.setText(\" \");\n p.addPicture(is, Document.PICTURE_TYPE_JPEG, \"ALICE_COSTA 201511130024.jpg\", Units.toEMU(60), Units.toEMU(60));\n p.addTab();\n p.addTab();\n p.addTab();\n p.addTab();\n p.addTab();\n p.addTab();\n p.setText(\" \");\n\n p.addPicture(is2, Document.PICTURE_TYPE_GIF, \"brasao.gif\", Units.toEMU(60), Units.toEMU(60));\n p.addTab();\n p.addTab();\n p.addTab();\n p.addTab();\n p.addTab();\n p.addTab();\n p.addPicture(is3, Document.PICTURE_TYPE_GIF, \"logo.gif\", Units.toEMU(60), Units.toEMU(60));\n\n } catch (InvalidFormatException e1) {\n System.out.println(e1.getMessage());\n }\n\n XWPFParagraph matricula = document.createParagraph();\n matricula.setFirstLineIndent(100);\n matricula.setIndentFromRight(9500);\n matricula.setAlignment(ParagraphAlignment.CENTER);\n\n XWPFRun matriculaR = matricula.createRun();\n matriculaR.setFontFamily(\"Arial\");\n matriculaR.setText(matricula2);\n matriculaR.setFontSize(12);\n matriculaR.setColor(\"000000\");\n\n XWPFParagraph titulo = document.createParagraph();\n titulo.setAlignment(ParagraphAlignment.CENTER);\n XWPFRun tituloR = titulo.createRun();\n tituloR.setFontSize(12);\n tituloR.setFontFamily(\"Arial\");\n tituloR.setColor(\"000000\");\n titulo.setSpacingAfterLines(100);\n\n tituloR.setText(escola);\n tituloR.addBreak();\n tituloR.setText(titulo2);\n tituloR.addBreak();\n\n XWPFParagraph paragraphThree = document.createParagraph();\n paragraphThree.setAlignment(ParagraphAlignment.NUM_TAB);\n XWPFRun paragraphThreeRunOne = paragraphThree.createRun();\n paragraphThreeRunOne.setFontSize(12);\n paragraphThreeRunOne.setFontFamily(\"Arial\");\n paragraphThreeRunOne.setColor(\"000000\");\n paragraphThreeRunOne.setText(\"Professor (A): \");\n paragraphThreeRunOne.setText(prof);\n int aux = prof.length() / 6;\n int aux2 = nomeAluno.length() / 6;\n int primeiroTab = 10;\n int segundoTab = 11;\n if (prof.length() % 6 == prof.length()) {\n aux = 1;\n if (prof.length() <= 5) {\n aux--;\n }\n }\n if (nomeAluno.length() % 6 == nomeAluno.length()) {\n aux2 = 1;\n if (nomeAluno.length() <= 5) {\n //aux2+=2;\n }\n }\n aux = primeiroTab - aux;\n aux2 = segundoTab - aux2;\n for (int j = 0; j <= aux; j++) {\n System.out.println(j);\n paragraphThreeRunOne.addTab();\n }\n paragraphThreeRunOne.setText(\"Turma: \");\n paragraphThreeRunOne.setText(turma);\n\n XWPFParagraph paragrafo2 = document.createParagraph();\n paragrafo2.setAlignment(ParagraphAlignment.LEFT);\n\n XWPFRun paragrafo2R = paragrafo2.createRun();\n paragrafo2R.setFontFamily(\"Arial\");\n paragrafo2R.setFontSize(12);\n paragrafo2R.setText(\"Aluno (a): \");\n paragrafo2R.setText(nomeAluno);\n for (int j = 0; j <= aux2; j++) {\n System.out.println(j);\n paragrafo2R.addTab();\n }\n paragrafo2R.setText(\"Data: \");\n paragrafo2R.setText(data);\n XWPFParagraph paragrafo3 = document.createParagraph();\n paragrafo2.setAlignment(ParagraphAlignment.LEFT);\n XWPFRun paragrafo3R = paragrafo3.createRun();\n paragrafo3R.setFontFamily(\"Arial\");\n paragrafo3R.setFontSize(12);\n for (int j = 0; j < 13; j++) {//System.out.println(j);\n paragrafo3R.addTab();\n }\n paragrafo3R.setText(\"Valor: \");\n paragrafo3R.setText(valor);\n\n FileOutputStream outStream = null;\n try {\n outStream = new FileOutputStream(\"teste.docx\");\n } catch (FileNotFoundException e) {\n System.out.println(e.getMessage());\n }\n try {\n document.write(outStream);\n outStream.close();\n } catch (FileNotFoundException e) {\n System.out.println(e.getMessage());\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n }", "private BufferedImage getFontImage() {\n\t\t\tfinal BufferedImage fontImage = new BufferedImage(64, 64, BufferedImage.TYPE_INT_ARGB);\n\n\t\t\tfinal Graphics2D gt = (Graphics2D) fontImage.getGraphics();\n\t\t\tgt.setFont(awtFont);\n\t\t\tgt.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\tgt.setColor(Color.WHITE);\n\n\t\t\t// TODO: should really use MaxAscent here? Would likely waste space\n\t\t\tgt.drawString(String.valueOf(c), FontTextureHelper.padding, fontMetrics.getAscent() + FontTextureHelper.padding);\n\n\t\t\treturn fontImage;\n\t\t}", "public static final void drawBitmapString( SpriteBatch batch, String str, float x, float y, LibAnchor ank, float alpha )\n {\n int frame = 0;\n int frameWidth = NUMBERS.getImage().getFrameWidth();\n int stringWidth = ( str.length() * frameWidth );\n float drawX = x;\n float drawY = y;\n\n //consider anchor\n switch( ank )\n {\n case ELeftTop: { drawX -= 0; drawY -= 0; break; }\n case ECenterTop: { drawX -= stringWidth / 2; drawY -= 0; break; }\n case ERightTop: { drawX -= stringWidth; drawY -= 0; break; }\n case ELeftMiddle: { drawX -= 0; drawY -= NUMBERS.getImage().getTotalHeight() / 2; break; }\n case ECenterMiddle: { drawX -= stringWidth / 2; drawY -= NUMBERS.getImage().getTotalHeight() / 2; break; }\n case ERightMiddle: { drawX -= stringWidth; drawY -= NUMBERS.getImage().getTotalHeight() / 2; break; }\n case ELeftBottom: { drawX -= 0; drawY -= NUMBERS.getImage().getTotalHeight(); break; }\n case ECenterBottom: { drawX -= stringWidth / 2; drawY -= NUMBERS.getImage().getTotalHeight(); break; }\n case ERightBottom: { drawX -= stringWidth; drawY -= NUMBERS.getImage().getTotalHeight(); break; }\n }\n\n //browse all chars\n for ( int i = 0; i < str.length(); ++i )\n {\n switch ( str.charAt( i ) )\n {\n case ' ': frame = -1; break;\n case '%': frame = 10; break;\n default: frame = 0 + Integer.parseInt( String.valueOf( str.charAt( i ) ) ); break;\n }\n\n //draw frame if desired\n if ( frame == -1 )\n {\n drawX += frameWidth / 2;\n }\n else\n {\n NUMBERS.setCurrentFrameIndex( frame );\n NUMBERS.draw\n (\n batch,\n drawX,\n drawY,\n LibAnchor.ELeftTop,\n alpha,\n false,\n LibUI.SCALATION_NONE,\n LibUI.SCALATION_NONE,\n LibUI.ROTATION_NONE\n );\n\n drawX += frameWidth;\n }\n }\n }", "public abstract double drawString(AEColor clr, double font_size, String str, double mid_x, double mid_y);", "private void renderTypeString() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(Color.BLACK);\n StdDraw.setPenColor(Color.WHITE);\n StdDraw.enableDoubleBuffering();\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2, \"Typed the seed and end with letter S\");\n StdDraw.show();\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, float alignWidth, HAlignment alignment);", "void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color);", "public void drawString(AttributedCharacterIterator iterator, float x, float y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att2\");\r\n\t}", "public BufferedImage add_text(BufferedImage image, String text) {\n // convert all items to byte arrays: image, message, message length\n byte img[] = get_byte_data(image);\n byte msg[] = text.getBytes();\n byte len[] = bit_conversion(msg.length);\n try {\n encode_text(img, len, 0); // 0 first positiong\n encode_text(img, msg, 32); // 4 bytes of space for length:\n // 4bytes*8bit = 32 bits\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"Target File cannot hold message!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n return image;\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "void writeGraphics() throws Exception;", "private void draw (String printable, StringBuffer canvas) {\r\n \t\t\tcanvas.append(\"| \");\r\n \t\t\t\r\n \t\t\tcanvas.append(printable);\r\n \t\t\tfor (int i=printable.length(); i<width-4; i++) //Fill in the spaces.\r\n \t\t\t{\r\n \t\t\t\tcanvas.append(' ');\r\n \t\t\t}\r\n \t\t\tcanvas.append(\" |\\n\");\r\n \t\t}", "@Override\n\tpublic void paint(Graphics g, String text, Dimension d) {\n\t\tif (needsRegeneratedImage || image==null){\n\t\t\timage = generateImage(g, text, d);\n\t\t\t// Now we don't need to regenerate for a while\n\t\t\tneedsRegeneratedImage=false;\n\t\t}\n\t\tg.drawImage(image, 0, 0, null);\n\t}", "private void renderTex() {\n final float\n w = xdim(),\n h = ydim(),\n x = xpos(),\n y = ypos() ;\n GL11.glBegin(GL11.GL_QUADS) ;\n GL11.glTexCoord2f(0, 0) ;\n GL11.glVertex2f(x, y + (h / 2)) ;\n GL11.glTexCoord2f(0, 1) ;\n GL11.glVertex2f(x + (w / 2), y + h) ;\n GL11.glTexCoord2f(1, 1) ;\n GL11.glVertex2f(x + w, y + (h / 2)) ;\n GL11.glTexCoord2f(1, 0) ;\n GL11.glVertex2f(x + (w / 2), y) ;\n GL11.glEnd() ;\n }", "public String colouredText(String word) { //O(1)\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString colorWord = sb.append(ConsoleColour.RED_BRIGHT).append(word).append(ConsoleColour.RESET).toString();\n\t\treturn colorWord;\n\t}", "public void drawImage(float x, float y, float width, float height);", "public WorldImage draw() {\n return new OverlayImage(\n new Stem(this.leftLength, this.leftTheta, this.left).draw(),\n new Stem(this.rightLength, this.rightTheta, this.right).draw()); \n }", "public void renderText(String text, int x, int y, int color)\n {\n renderText(text, x, y, color, 1.0f);\n }", "public void printScreen() {\n Graphics g;\n try {\n g = this.getGraphics();\n g.setColor(Color.red);\n if (dbImage != null) {\n g.drawImage(dbImage, 0, 0, null);\n String text = \"Score:\" + gameData.score.score;//text of displated score\n g.drawString(text, 50, 50);\n } else {\n System.out.println(\"printScreen:graphic is null\");\n }\n Toolkit.getDefaultToolkit().sync();\n g.dispose();\n } catch (Exception e) {\n System.out.println(\"Graphics error: \" + e);\n }\n }", "public void paintComponent(Graphics g){\n super.paintComponent(g);\n\n //casting the Graphics g to Graphics2D which is the updated version\n Graphics2D g2d = (Graphics2D)g;\n g2d.setFont(new Font(\"Times new Roman,\", Font.PLAIN,20));\n g2d.setColor(Color.white);\n //class rendering hints attribute to specify whether you want objects to be rendered as quickly as possible\n g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\n int y = textY;\n\n for(String line : text.split(\"\\n\")){\n int stringLength = (int)g2d.getFontMetrics().getStringBounds(line,g2d).getWidth();\n int x = getWidth()/2 - stringLength/2;\n g2d.drawString(line,x, y +=28);\n }\n }", "public void run(){\n // If there is not word to recognized or the word is empty then do not recognize it\n if(word == null || word.trim().isEmpty()){\n return;\n }\n\n // Set up the highlighter\n DefaultHighlighter.DefaultHighlightPainter highLighter = FileUtils.getInstance().getHighlighter();\n\n // Highlight words at the exact position\n try{\n textPane.getHighlighter().addHighlight(startPosition, endPosition, highLighter);\n }catch(Exception e){\n e.printStackTrace();\n }\n }", "public static final void drawInto(final Graphics2D g,\n final String text, final Rectangle2D rect) {\n final Graphics2D gfx = (Graphics2D) g.create();\n final StringDrawer sd = new StringDrawer(gfx, text);\n final double width = sd.getWidth();\n final Rectangle2D fit = PaintUtil.fitInto(rect, width, sd.getHeight());\n final double scale = fit.getWidth() / width;\n gfx.translate(fit.getCenterX(), fit.getCenterY());\n gfx.scale(scale, scale);\n sd.draw(ORIGIN, CENTER_H, CENTER_V);\n gfx.dispose();\n }", "public void drawText(Font theFont, String str, int x, int y)\r\n\t{\n\t\tFont ft = g.getFont();\r\n\r\n\t\tg.setFont(theFont);\r\n\r\n\t\t// @@@ IM ignore the WMFGraphics method, since it relies on JDK1.2 code\r\n\t\t// (AttributedIterator)\r\n\t\t// g.drawString(str, x, y);\r\n\t\twmf.textOut(x, y, str);\r\n\r\n\t\t// restore the font\r\n\t\tg.setFont(ft);\r\n\t\tif (DEBUG_OUTPUT)\r\n\t\t\tMWC.Utilities.Errors.Trace.trace(\"drawText\");\r\n\t}", "@Override\n\tpublic void paint(Graphics e) {\n\t\tsuper.paint(e);\n\t\te.drawString(text, 20, 20);\n\t}", "private void createText() {\n Texture texture = new Texture(Gdx.files.internal(\"Text/item.png\"));\n texture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n TextureRegion region = new TextureRegion(texture);\n display = new BitmapFont(Gdx.files.internal(\"Text/item.fnt\"), region, false);\n display.setUseIntegerPositions(false);\n display.setColor(Color.BLACK);\n }", "public abstract void render(Graphics g);", "@Override\r\n\tpublic void onCustomDraw(Graphics2D g) {\n\t\tg.setColor(Color.black);\r\n\t\tg.fillRect(x, y, width, height);\r\n\t\tg.setColor(Color.green);\r\n\t\tfor(int i = 0; i < 50; i++){\r\n\t\t\tif(text[i] != null){\r\n\t\t\t\tg.drawString(text[i], 11, (i*10)+20);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void draw(String str, double x, double y, double size, int color, Align align) {\n GL11.glEnable(GL11.GL_BLEND);\n //GL11.glDepthMask(false);\n double scale = size / mcFont().FONT_HEIGHT;\n GL11.glPushMatrix(); {\n GL11.glTranslated(x, y, 0);\n GL11.glScaled(scale, scale, 1);\n String[] ss = str.split(\"\\n\");\n for(int i = 0; i < ss.length; ++i) {\n GL11.glPushMatrix(); {\n double dy = i * mcFont().FONT_HEIGHT;\n GL11.glTranslated(0, dy, 0);\n drawSingleLine(ss[i], color, align);\n } GL11.glPopMatrix();\n }\n } GL11.glPopMatrix();\n }", "public void printImage() {\n\t System.out.print(\"\\n\");\n for (int i=0; i<width*height; i++) {\n if (i % width==0) System.out.print(\"\\n\");\n System.out.print(image[i]+ \" \");\n }\n System.out.print(\"\\n\\n\");\n }", "private static byte[] mergeImageAndText(BufferedImage im, String name, String event, Point pointName, Point pointEvent) throws IOException {\n\t\tGraphics2D g2 = im.createGraphics(); //graohics obj banaya to draw\n\t\tSystem.out.println(name);\n\t\tg2.setFont(new Font(\"TimesRoman\", Font.BOLD,28));\n\t\tg2.setColor(Color.BLACK);\n\t\tg2.drawString(name, pointName.x, pointName.y);//write text\n\t\tg2.drawString(event, pointEvent.x, pointEvent.y);//write text\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tImageIO.write(im, \"jpg\", baos);\n\t\treturn baos.toByteArray();\n\t}", "public void drawString(String text, CustomFont font, int RGB, int x, int y) {\n\t\tchar[] charArray = text.toCharArray();\n\n\t\tint x_off = 0;\n\t\tint y_off = 0;\n\n\t\t\n\t\tfor (int i = 0; i < charArray.length; i++) {\n\t\t\tchar c = charArray[i];\n\t\t\tSprite char_sprite = font.getCharacter(c);\n\n\t\t\t/*\n\t\t\t * New Line padding.\n\t\t\t */\n\t\t\tif (c == '\\n') {\n\t\t\t\ty_off += 16;\n\t\t\t\tx_off = 0;\n\t\t\t}\n\n\t\t\tif (char_sprite == null)\n\t\t\t\tcontinue;\n\n\t\t\t/*\n\t\t\t * Padding right.\n\t\t\t */\n\t\t\tif (c == '!' || c == '?') {\n\t\t\t\tx_off += 2;\n\t\t\t}\n\n\t\t\tdrawRenderable(char_sprite, RGB, x + x_off, y + y_off);\n\n\t\t\t/*\n\t\t\t * Padding left.\n\t\t\t */\n\n\t\t\tint next_char_index = i + 1;\n\n\t\t\tif (next_char_index < charArray.length) {\n\t\t\t\tchar next_char = charArray[next_char_index];\n\n\t\t\t\tif (next_char == '!' || next_char == '.') {\n\t\t\t\t\tx_off += 4;\n\t\t\t\t} else if (next_char == (next_char | 32)) {\n\t\t\t\t\tx_off += 6;\n\t\t\t\t} else {\n\t\t\t\t\tx_off += 7;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void printWord(){\n\t\tint length = word.length;\n\t\tfor(int i = 0; i < length; i++){\n\t\t\tSystem.out.print(word[i]);\n\t\t}\n\t}", "protected abstract void render(Graphics g);", "public void draw() {\n\t\tGL11.glColor3f(0.5f,0.5f,1.0f);\n\t\n\t\t// draw quad\n\t\tGL11.glBegin(GL11.GL_QUADS);\n\t\t\tGL11.glVertex2f(x,y);\n\t\t\tGL11.glVertex2f(x+width,y);\n\t\t\tGL11.glVertex2f(x+width,y+height);\n\t\t\tGL11.glVertex2f(x,y+height);\n\t\tGL11.glEnd();\n\t\t\n\t\tif(text != null || !text.equals(\"\"))\n\t\t\tfont.drawString(text, x, y);\n\t\n\t}", "public void renderText(String text, int x, int y, float scale)\n {\n renderText(text, x, y, 0x00000000, scale);\n }" ]
[ "0.6215641", "0.61671424", "0.6062172", "0.60193545", "0.60104394", "0.59172416", "0.5903655", "0.587042", "0.57504606", "0.5707554", "0.56413543", "0.56301963", "0.55897605", "0.5567721", "0.550769", "0.55075914", "0.5506373", "0.5500525", "0.5490695", "0.54892135", "0.5487037", "0.5463107", "0.543038", "0.5416996", "0.54113847", "0.53843546", "0.5384224", "0.5352721", "0.53457206", "0.53430945", "0.5312627", "0.5311851", "0.5310978", "0.53106576", "0.5298417", "0.52871096", "0.5286597", "0.52662075", "0.5265975", "0.52629495", "0.52471054", "0.5243351", "0.52256536", "0.52221626", "0.52177334", "0.5194373", "0.5191187", "0.519046", "0.51902235", "0.51816213", "0.517032", "0.51654375", "0.51586616", "0.5158302", "0.5148173", "0.5147091", "0.51460177", "0.514435", "0.5142743", "0.51327664", "0.5122194", "0.5121237", "0.50948805", "0.50899947", "0.5088677", "0.5080655", "0.5068178", "0.5065869", "0.50651765", "0.50530076", "0.5047643", "0.5047488", "0.5043331", "0.50369364", "0.50298715", "0.50283635", "0.5015197", "0.5013503", "0.50111586", "0.5010072", "0.49989367", "0.49954802", "0.49951577", "0.49941674", "0.4990077", "0.4986333", "0.4975284", "0.49749976", "0.49676213", "0.49584967", "0.4956425", "0.49531427", "0.4951263", "0.4943902", "0.49433467", "0.49361622", "0.4935716", "0.49356014", "0.49239153", "0.49153447", "0.49128795" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { ArrayList<Integer> source = new ArrayList<Integer>(); ArrayList<Integer> res = new ArrayList<Integer>(); System.out.println(res); }
{ "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
use name mapping array as key.
public void add(String[] names) { add(names, names); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getKey() { return name; }", "public ABLKey Key(String name) {\r\n\t\treturn new ABLKey(BrickFinder.getDefault().getKey(name));\r\n\t}", "public abstract String mapItemToKey(String str);", "public void insertIntoMap(String key, String name) {\n\t\tif (mapNames.containsKey(key)) {\n\t\t\t// Add new name onto the end of the existing ArrayList.\n\t\t\tmapNames.get(key).add(name);\n\t\t} else {\n\n\t\t\t// Create new ArrayList with the unparsed name as the value\n\t\t\tArrayList<String> arrName = new ArrayList<String>();\n\t\t\tarrName.add(name);\n\t\t\tmapNames.put(key, arrName);\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic IHierarchicalKey caseEStringToStringMapEntry(\r\n\t\t\t\t\tEntry<String, String> object) {\r\n\t\t\t\treturn new NamedElementKey(object);\r\n\t\t\t}", "public OrderedNameMap() {\r\n\t\tthis(CASE_SENSITIVE);\r\n\t}", "private void renameMapNames () {\n if (mappingNum == 0) {\n mapNames = null;\n return;\n }\n this.mapNames = new String[mappingNum];\n for (int i = 0; i < mappingNum; i++) {\n mapNames[i] = GBSHDF5Constants.MAPBASE + this.getThreeFigureString(i);\n }\n }", "public static void main(String[] args) {\n\t\tArrayList<String> givenArray = new ArrayList<String>();\n\t\tArrayList<String> listOfNamesStartingWithA = new ArrayList<String>();\n\t\tArrayList<String> listOfNamesStartingWithG = new ArrayList<String>();\n\t\tgivenArray.add(\"apple\");\n\t\tgivenArray.add(\"appleinc\");\n\t\tgivenArray.add(\"applemac\");\n\t\tgivenArray.add(\"google\");\n\t\t\n\t\tHashMap<String, ArrayList> map = new HashMap<String, ArrayList>();\n\t\tmap.clone();\n\t\tIterator<String> itr = givenArray.iterator();\n\t\t\n\t\twhile(itr.hasNext()) {\n\t\t\tString arrayListOb = itr.next();\n\n\t\t\tString key =arrayListOb.substring(0, 1);\n\t\t\tif(key.startsWith(\"a\")) {\n\t\t\t\tlistOfNamesStartingWithA.add(arrayListOb);\t\n\t\t\t\tmap.put(key, listOfNamesStartingWithA);\t\n\t\t\t}\n\t\t\tif(key.startsWith(\"g\")) {\n\t\t\t\tlistOfNamesStartingWithG.add(arrayListOb);\n\t\t\t\tmap.put(key, listOfNamesStartingWithG);\n\t\t\t}\t\t\t\t\n\t\t\tSystem.out.println(key);\n\t\t\tSystem.out.println(map.get(key));\n\t\t}\n\t\tSystem.out.println(map.size());\n\t\t//System.out.println(map.get(\"g\"));\n\t\t//System.out.println(map.get(\"a\"));\n\t\t/*for(Map.Entry<String,ArrayList> entry: map.entrySet())\n\t\t{\n\t\t\tSystem.out.println(map.get(\"a\"));\n\t\t}*/\n\t}", "public static Map<Byte, String> genTypeToNameMap(){\n byte[] types = genAllTypes();\n String[] names = genAllTypeNames();\n Map<Byte,String> ret = new HashMap<Byte, String>();\n for(int i=0;i<types.length;i++){\n ret.put(types[i], names[i]);\n }\n return ret;\n }", "protected String getKeymapName() {\n String nm = getClass().getName();\n int index = nm.lastIndexOf('.');\n if (index >= 0) {\n nm = nm.substring(index+1);\n }\n return nm;\n }", "private void setTranslationKey(String name) {\n\t\t\r\n\t}", "public abstract String mapKeyToItem(String str);", "private Map<Integer, Integer> buildRenaming() {\n\t\tMap<Integer, Integer> map = new HashMap<>();\n\n\t\tfor(int i = 0; i < this.dimension; i++){\n\t\t\tfor(int j = 0; j < this.dimension; j++)\n\t\t\t\tmap.put(board_p[i][j].var(), board[i][j].var());\n\t\t}\n\n\t\treturn map;\n\t}", "private String getKey(int[] arr) {\n StringBuilder sb = new StringBuilder();\n for(int a : arr) {\n sb.append(String.valueOf(a));\n }\n\n return sb.toString();\n }", "static String[] getKey() {\n return key;\n }", "XClass getMapKey();", "private void initializeNamesMap (Workspace[] wss) {\n // fill name mapping with proper values\n namesMap = new HashMap(wss.length * 2);\n for (int i = 0; i < wss.length; i++) {\n // create new string for each display name to be able to search\n // using '==' operator in findProgrammaticName(String displayName) method\n namesMap.put(wss[i].getName(), new String(wss[i].getDisplayName()));;\n }\n }", "String getShortNameKey();", "public static Map<String, Byte> genNameToTypeMap(){\n byte[] types = genAllTypes();\n String[] names = genAllTypeNames();\n Map<String, Byte> ret = new HashMap<String, Byte>();\n for(int i=0;i<types.length;i++){\n ret.put(names[i], types[i]);\n }\n return ret;\n }", "@VisibleForTesting\n public static TagKey[] createTagKeys(int size, String name) {\n TagKey[] keys = new TagKey[size];\n for (int i = 0; i < size; i++) {\n keys[i] = TagKey.create(name + i);\n }\n return keys;\n }", "protected String nameToKey(String searchName) {\n\t\tif( searchName == null ) throw new NullPointerException(\"searchName is null\");\n\t\treturn hex(sha1(searchName));\n\t}", "private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }", "String getLookupKey();", "default String getKey() {\n return key(getClassName(), getName());\n }", "public String key(String name) {\r\n String value;\r\n value = this.children.stream().filter(child -> child.equals(name)).findFirst().get().children.get(0).data;\r\n return value;\r\n }", "private void setProperlyOrderedPrefixNamePairs(String[] prefixMatchArray){\n prefixMatchArray[0] = repositoryWithDualKeyNCategory.isKey2(prefixMatchArray[0]) ? repositoryWithDualKeyNCategory.getKey1FromKey2(prefixMatchArray[0]) : prefixMatchArray[0];\n prefixMatchArray[1] = repositoryWithDualKeyNCategory.isKey2(prefixMatchArray[0]) ? prefixMatchArray[0] : repositoryWithDualKeyNCategory.getKey2FromKey1(prefixMatchArray[0]);\n }", "@Override // android.media.MediaFormat.FilteredMappedKeySet\n public String mapItemToKey(String item) {\n return this.mPrefix + item;\n }", "protected Object getKeyArray()\n/* */ {\n/* 91 */ return this.m_keyTable;\n/* */ }", "@Override\r\n\t\t\tpublic IHierarchicalKey caseEAnnotation(EAnnotation object) {\r\n\t\t\t\treturn new NamedElementKey(object);\r\n\t\t\t}", "public EDataMapNames(Object source, int eventType, List<String> mapNames) {\r\n\t\tsuper(source, eventType);\r\n\t\tthis.mapNames = mapNames;\r\n\t}", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "@Override // android.media.MediaFormat.FilteredMappedKeySet\n public String mapItemToKey(String item) {\n return item;\n }", "abstract public String getKey();", "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 }", "private String loadAttributeName() {\n return parseMapField().getKey();\n }", "KeyColor(String name){\n this.name = name;\n }", "String getLongNameKey();", "@Override\n public Comparable getSeriesKey(int series) {\n assert 0 <= series && series < names.size();\n \n return names.get(series);\n }", "private static AbstractType<?> keyType(CollectionType<?> type)\n {\n return type.nameComparator();\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "private int genKey()\n {\n return (nameValue.getData() + scopeDefined.getTag()).hashCode();\n }", "String getKey(int index);", "@Override\n public int hashCode() {\n return name.hashCode();\n }", "public Set keyNames() {\n return new LinkedHashSet<>( asList( idName() ) );\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static List<Key> getTagKeysByName(String[] tagNames) {\r\n\t\tString query = \"select key from \" + Tag.class.getName();\r\n\t\tQuery q = PMF.get().getPersistenceManager().newQuery(query);\r\n\t\tString filter = \"\";\r\n\t\tString params = \"\";\r\n\t\tfor (int i = 0; i < tagNames.length; i++) {\r\n\t\t\t// Switch it to lowercase\r\n\t\t\ttagNames[i] = tagNames[i].toLowerCase();\r\n\t\t\tif (i < tagNames.length - 1) {\r\n\t\t\t\tfilter += \"searchTerms.contains(n\" + i + \") || \";\r\n\t\t\t\tparams += \"String n\" + i + \", \";\r\n\t\t\t} else {\r\n\t\t\t\tfilter += \"searchTerms.contains(n\" + i + \")\";\r\n\t\t\t\tparams += \"String n\" + i;\r\n\t\t\t}\r\n\r\n\t\t}\r\n//\t\tSystem.out.println(\"FILTER: \" + filter);\r\n//\t\tSystem.out.println(\"PARAMS: \" + params);\r\n\t\tq.setFilter(filter);\r\n\t\tq.declareParameters(params);\r\n\t\treturn (List<Key>) q.executeWithArray((Object[]) tagNames);\r\n\t}", "public static void main(String[] args) {\n String[] names= {\"Mehmet\", \"Asha\", \"Amina\", \"Omar\", \"Siyar\", \"Danny\"};\n \n Map<Integer, String> nameMap=new LinkedHashMap<>();\n \n int key=1;\n \n for(String name:names) {\n nameMap.put(key, name);\n key++;\n }\n System.out.println(nameMap);\n \n for(Map.Entry<Integer,String>entry:nameMap.entrySet()) {\n \t\tString mapValue=entry.getKey()+\" == \"+entry.getValue();\n \t\tSystem.out.println(mapValue);\n \t\t\n \t\t\n \t}\n \n Iterator<Entry<Integer, String>>it=nameMap.entrySet().iterator();\n\t\twhile(it.hasNext()) {\n\t\t\tMap.Entry entry=it.next();\n\t\t\tString valueFromMap=entry.getKey()+\" : \"+entry.getValue();\n\t\t\tSystem.out.println(valueFromMap);\n\t\t}\n\t\t\n\n }", "void setKeyArray(int i, com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key key);", "void setKeyArray(com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key[] keyArray);", "@Test\n public void mapKeys() {\n check(MAPKEYS);\n query(\"for $i in \" + MAPKEYS.args(\n MAPNEW.args(\" for $i in 1 to 3 return \" +\n MAPENTRY.args(\"$i\", \"$i+1\"))) + \" order by $i return $i\", \"1 2 3\");\n query(\"let $map := \" + MAPNEW.args(\" for $i in 1 to 3 return \" +\n MAPENTRY.args(\"$i\", \"$i + 1\")) +\n \"for $k in \" + MAPKEYS.args(\"$map\") + \" order by $k return \" +\n MAPGET.args(\"$map\", \"$k\"), \"2 3 4\");\n }", "public interface Key<T> {\n String getName();\n Class<T> getType();\n\n static <T> Key<T> of(Class<T> type) {\n return of(type.getName(), type);\n }\n\n static <T> Key<T> of(String name, Class<T> type) {\n return new Key<T>() {\n @Override\n public String getName() {\n return name;\n }\n\n @Override\n public Class<T> getType() {\n return type;\n }\n };\n }\n }", "static String toLookupKey(final String left, final String right) {\n return toLookupKey(left, SPLIT_STR, right);\n }", "public String createKey(String type) {\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n break;\n }\n }\n countKeys[i]++;\n String key = String.format(\"%s$%d\", EnumFactory.typeStrings[i],countKeys[i]);\n return key;\n }", "abstract Map<String, Integer> mapOfNamesToSalary();", "public SleepycatIndexedMapTest(String name) {\r\n super(name);\r\n }", "Object getKey();", "@Override // android.media.MediaFormat.FilteredMappedKeySet\n public String mapKeyToItem(String key) {\n return key;\n }", "public abstract void setNamedComponents(Map<String,List<Component>> namedComponents);", "public String[] getFieldNameMapping() {\r\n return null;\r\n }", "@Override\n public void setKey(byte[] key) {\n }", "private void rebuildKey() {\r\n\r\n final StringBuffer sb = new StringBuffer();\r\n\r\n sb.append(getClassField().getCanonicalName());\r\n for (final Object k : this.keyPartList) {\r\n sb.append(k.toString()).append('|');\r\n }\r\n this.key = sb.toString();\r\n }", "public MultiKeyMap() {\n this.map = new java.util.HashMap<String,V>();\n return;\n }", "@Override\n public HashMap<String, List<String>> initializeMapping(HashMap<String, List<String>> mapping) {\n mapping.put(\"xEncoder\", Arrays.asList(\"outtakeMotor1\", \"outtake1\"));\n mapping.put(\"yEncoder\", Arrays.asList(\"wobbleMotor\"));\n\n return mapping;\n }", "@Override\n default String getKey(){\n return key();\n }", "abstract protected Map<String, T> lookup(List<String> values);", "public ZoneKey generateZoneKey(final Name name, final List<Record> list) {\n\t\treturn generateZoneKey(name, list, false, false);\n\t}", "String[] supportedKeys();", "private void mapSetUp() {\n\t\tfor (int i = 0; i < allChar.length; i++) {\n\t\t\tmap.put(allChar[i], shuffledChar[i]);\n\t\t}\n\t}", "public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }", "@Override\n List<String> keys();", "public void setName(int idx, String name) {\n\t\tnvPairs.set(idx << 1, name);\n\t}", "public NameKey toNameKey() {\n if (this.scientificNameAuthorship == null)\n return this;\n Set<NameFlag> fl = this.flags;\n if (fl != null && fl.contains(NameFlag.AUTONYM)) {\n fl = new HashSet<>(this.flags);\n fl.remove(NameFlag.AUTONYM);\n fl = fl.isEmpty() ? null : fl;\n\n }\n return new NameKey(this.analyser, this.code, this.scientificName, null, this.rank, this.type, fl);\n }", "public void addKey(String key){\n itemMap.put(key, new ArrayList<>());\n }", "QueryKey createQueryKey(String name);", "public String getNameKey() {\n return getName();\n }", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "@Override\n\tprotected Object getCacheKey(String viewName, Locale locale) {\n\t\treturn viewName;\n\t}", "public void setNameArray(com.walgreens.rxit.ch.cda.PN[] nameArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(nameArray, NAME$8);\n }\n }", "public Map instantiateBackingMap(String sName);", "private Symbol getAnnotationMapKeySymbol(String keyName)\n {\n return Symbol.valueOf(keyName);\n }", "private String calcIndexName(NamePool pool, \n String fingerName,\n List definitions,\n Configuration config) \n {\n StringBuffer sbuf = new StringBuffer();\n sbuf.append(\"key|\" + fingerName);\n for (int k = 0; k < definitions.size(); k++) \n {\n KeyDefinition def = (KeyDefinition)definitions.get(k);\n \n // Capture the match pattern.\n String matchStr = def.getMatch().toString();\n sbuf.append(\"|\" + Long.toString(Hash64.hash(matchStr), 16));\n \n // Capture the 'use' expression\n if (def.getUse() instanceof Expression) \n {\n // Saxon likes to dump debug stuff to a PrintStream, and we need to\n // capture to a buffer.\n //\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n PrintStream ps = new PrintStream(bytes);\n \n ((Expression)def.getUse()).display(10, ps, config);\n ps.flush();\n String useStr = bytes.toString();\n sbuf.append(\"|\" + Long.toString(Hash64.hash(useStr), 16));\n }\n else\n sbuf.append(\"|non-exp\");\n } // for k\n \n return sbuf.toString();\n }", "public K getName() {\n return key;\n }" ]
[ "0.6013974", "0.6000741", "0.59079176", "0.57475084", "0.5687204", "0.56510985", "0.56153464", "0.55266947", "0.5521161", "0.55165786", "0.54886574", "0.54740953", "0.5444368", "0.5407447", "0.5394915", "0.53933704", "0.53907216", "0.5322189", "0.5319876", "0.5312858", "0.52991", "0.52936906", "0.5288072", "0.52617985", "0.5260219", "0.52589136", "0.5250706", "0.5237945", "0.5235511", "0.523341", "0.5232309", "0.5232309", "0.5232309", "0.5232309", "0.5232309", "0.5232309", "0.52233464", "0.521686", "0.52118254", "0.51848817", "0.5184172", "0.5169014", "0.516121", "0.5160209", "0.51577175", "0.51577175", "0.51577175", "0.51577175", "0.51577175", "0.51577175", "0.51577175", "0.51577175", "0.51577175", "0.51577175", "0.51577175", "0.51577175", "0.51577175", "0.51533437", "0.5145524", "0.5144388", "0.51408076", "0.5131206", "0.51255023", "0.51065385", "0.5104484", "0.5098046", "0.5085187", "0.5084613", "0.5078057", "0.50544584", "0.50518745", "0.50400513", "0.50365156", "0.5030348", "0.5025405", "0.5020484", "0.50145614", "0.5013618", "0.5012421", "0.5002334", "0.49881393", "0.49867648", "0.49824086", "0.49823362", "0.4978694", "0.49753407", "0.49670464", "0.49523196", "0.49505562", "0.4944109", "0.49409717", "0.49325737", "0.49325737", "0.49325737", "0.49325737", "0.49263397", "0.49165103", "0.4914494", "0.49103448", "0.49049157", "0.49024922" ]
0.0
-1
Convert rubles in euro.
public int rubleToEuro(int value) { return value / EURO; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int euroToRuble(int value) {\n return value * EURO;\n }", "private void convert()\n {\n if (choiceBox.getValue().equals(\"US-Dollar\"))\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double dollar = currencyConverter.euroToDollar(euro);\n txtYen.setText(DEC2FORMAT.format(dollar));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n else\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double yen = currencyConverter.euroToYen(euro);\n txtYen.setText(DEC2FORMAT.format(yen));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n }", "public String getEU( ) {\r\n return eu;\r\n }", "private String convertToCelsius(String string) {\n\t\tDecimalFormat df2 = new DecimalFormat(\".##\");\n\t\treturn df2.format((Double.parseDouble(string)-273.15));\n\t}", "public void setEU( String eu ) {\r\n this.eu = eu;\r\n }", "public double convert(double amount, Unit u);", "Uom getCurrencyUom();", "public void gebuehren(double promille) {\n long gebuehren = (saldo.promille(promille) * saldo.getVorzeichen());\n auszug = auszug.concat(\"-\" + gebuehren + \" \" + waehrung.getKuerzel() + \" (gebuehren)\\n\");\n saldo = new Betrag(saldo.subtrahiere(gebuehren / 100) / 100, saldo.getWaehrung());\n }", "private String convertFahrenheitToCelsius(double f) {\n double c = (f - 32.0) * (5.0 / 9.0);\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(c);\n }", "public void btnEuro (View v) {\n\n convDevise(1,'€');\n\n }", "public void convert(View v){\n EditText etUSD = findViewById(R.id.etUSD);\n EditText etLKR = findViewById(R.id.etLKR);\n\n //Get text From usd TextField\n String text= etUSD.getText().toString();\n //Convert Text To Double\n double usd = Double.parseDouble(text);\n\n // Convert to LKR\n double lkr = usd*195;\n //convert double to string\n String lkrText = String.valueOf(lkr);\n\n //Set lkrTest Value to Test Field\n etLKR.setText(lkrText);\n\n\n\n }", "protected double toPounds(double weightOunces){\n\t\treturn 0.0625 * weightOunces;\n\t}", "Uom getOrigCurrencyUom();", "@Test\n public void FinalConvertEURStandard(){\n CurrencyRates one = new CurrencyRates();\n\n //Initialise list of sums\n ArrayList<Double> sumList1 = new ArrayList<Double>();\n sumList1.add(10.50);\n sumList1.add(11.50);\n sumList1.add(80.00);\n sumList1.add(10.12);\n sumList1.add(50.60);\n sumList1.add(70.60);\n\n double finalSum = one.finalSumAUD(sumList1);\n\n //converts AUD to EUR\n double retValue = one.AUDtoNewCurrency(4, one.exchangeRate, finalSum);\n assertEquals(144.66, retValue, 0.0);\n\n }", "public double getEUtilization() {\n return eUtilization;\n }", "public static double fahrenheitToCelsius(double fahrenheit){\n \n //declare variable for converted temperature\n double convertedTemperature = ((5.0 / 9) * (fahrenheit - 32));\n \n //return value of converted temperature\n return convertedTemperature; \n }", "public String centsToDollar() {\n return partieEntier + \".\" +\n String.format(\"%02d\", partieFractionnaire) + \"$\";\n }", "public void setEUtilization(double argEUtilization) {\n\t\teUtilization = argEUtilization;\n }", "public static String convertToRawCasesAccounting(long units, int UnitsPerSKU) {\n\n\t\t boolean IsNegative=false;\n\t\t if(units<0) {\n\t\t\t units = units*-1;\n\t\t\t IsNegative = true;\n\t\t }\n\t\t \n\t\t String ret = \"\";\n\t\t if (UnitsPerSKU != 0) {\n\t\t\t double RawCasesDouble = (double) units / (double) UnitsPerSKU;\n\t\t\t String RawCasesString = RawCasesDouble + \"\";\n\t\t\t if (RawCasesString.indexOf(\".\") != -1) {\n\t\t\t\t RawCasesString = RawCasesString.substring(0,\n\t\t\t\t\t\t RawCasesString.indexOf(\".\"));\n\t\t\t }\n\t\t\t long RawCases = Utilities.parseLong(RawCasesString);\n\n\t\t\t long RawCasesUnits = RawCases * UnitsPerSKU;\n\n\t\t\t long bottles = units - RawCasesUnits;\n\n\t\t\t if (bottles == 0) {\n\t\t\t\t ret = getDisplayCurrencyFormat(RawCases) + \"\";\n\t\t\t } else {\n\t\t\t\t ret = getDisplayCurrencyFormat(RawCases) + \"~\" + bottles;\n\t\t\t }\n\t\t }\n\t\t \n\t\t if(IsNegative){\n\t\t\t ret = \"(\"+ret+\")\";\n\t\t }\n\t\t \treturn ret;\n\t\t }", "public static void main(String[] args) {\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"--- Dollar in Euro Umrechner ---\");\n\t\tSystem.out.print(\"Dollar: \");\n\t\tdouble dollar = Double.parseDouble(scanner.nextLine());\n\t\tSystem.out.print(\"Kurs: \");\n\t\tdouble kurs = Double.parseDouble(scanner.nextLine());\n\t\t\n\t\tdouble euro = dollar * kurs;\n\t\tSystem.out.println(\"Euro: \" + String.format(\"%.2f\", euro));\n\t\t\n\t\tscanner.close();\n\t}", "double kelvinToFahrenheit(double kelvin)\n\t{\n\t\treturn Math.round(((kelvin - 273.15) * (9.0 / 5.0) + 32) * 100.0) / 100.0;\n\t}", "public static double convertKelvinToCelsius(double kelvinTemperature) {\n\t\tdouble celsiusTemperature = kelvinTemperature - 273;\n\t\t\n\t\treturn celsiusTemperature;\n\t}", "public void conversion(double amount, Currency convertTo) {\n\t\tDollar dollar = new Dollar();\n\t\tif(dollar.getClass().getName() == convertTo.getClass().getName()) {\n\t\t\tSystem.out.println(\"Rupee to Dollar\"+(amount*0.014));\n\t\t}\n\t\tEuro euro= new Euro();\n\t\tif(euro.getClass().getName() == convertTo.getClass().getName()) {\n\t\t\tSystem.out.println(\"Rupee to Euro\"+(amount*0.012));\n\t\t}\n\t}", "@Test\n public void desiredCurNumberConversionEUR(){\n CurrencyRates one = new CurrencyRates();\n assertEquals(\"EUR\", one.desiredCurNumberConversion(4));\n }", "public BigDecimal calcularValorUtilizado(Emenda e) {\n\t\t\n\t\tBigDecimal valorUsado = new BigDecimal(0);\t\t\n\t\tList<IndicacaoEmenda> indicacoes = indicacaoEService.findByEmenda(e);\n\t\t\n\t\tfor (IndicacaoEmenda indicacao : indicacoes) {\n\t\t\tvalorUsado = valorUsado.add(indicacao.getValorDestinado());\n\t\t}\n\t\t\n\t\treturn valorUsado;\n\t}", "void FahtoCel() {\n\t\tSystem.out.println(\"Your converted celcius degrees is: \" + fahrenheit + \" degrees celcius.\");\t// prints out converted degrees, with fahrenheit = conversion.fahrenheit\r\n\t}", "private double usdToBitcoin(double usd) {\n return usd/(usd + 120);\n }", "private static double celsiusToFahrenheit(double c){\n\n return ((c*9)/5)+52;\n\n }", "public static double celsius2Fahrenheit(double celsius) {\n return 9/5.0 * celsius + 32;\n }", "org.adscale.format.opertb.AmountMessage.Amount getExchangeprice();", "@Override\r\n\tpublic double getPesoTeorico() {\r\n\r\n\t\treturn anamnese.getAltura() * anamnese.getAltura() * 22.0;\r\n\t}", "private Double conversionElectric(Double quant) {\n return quant;\n }", "public double convertirTemperaturas(){\r\n double resultado=.0;\r\n if(unidadOrigen=='C' && unidadDestino == 'F'){\r\n resultado=Math.round(conversorTemperatura.obtenerDeCelsiusAFahrenheit());\r\n }else if(unidadOrigen=='C' && unidadDestino == 'K'){\r\n resultado=conversorTemperatura.obtenerDeCelsiusAKelvin();\r\n }else if(unidadOrigen=='F' && unidadDestino == 'C'){\r\n resultado=Math.round(conversorTemperatura.obtenerDeFahrenheitACelsius());\r\n }else if(unidadOrigen=='F' && unidadDestino == 'K'){\r\n resultado=conversorTemperatura.obtenerDeFahrenheitAKelvin();\r\n }else if (unidadOrigen=='K' && unidadDestino == 'C'){\r\n resultado=conversorTemperatura.obtenerDeKelvinACelsius();\r\n }else if (unidadOrigen=='K' && unidadDestino == 'F'){\r\n resultado=conversorTemperatura.obtenerDeKelvinAFahrenheit();\r\n }else if (unidadOrigen=='C' && unidadDestino == 'C'){\r\n resultado=conversorTemperatura.getNumero();\r\n }\r\n return resultado;\r\n }", "private static void displayConversion(double celsius, double fahrenheit) {\n String celsiusOutput = String.format(\"%.2f\", celsius);\n String fahrenheitOutput = String.format(\"%.2f\", fahrenheit);\n System.out.println(\"\\n\" + celsiusOutput + \" degrees Celsius is equal to \" + fahrenheitOutput + \" degrees Fahrenheit.\");\n }", "private String convertCelsiusToFahrenheit(double c) {\n double f = (c * (9.0 / 5.0)) + 32.0;\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(f);\n }", "private String longitudeConversion() {\n int lon = record[5];\n if (lon >= 0) {\n lon = lon & 255;\n }\n lon = (lon << 8) + (record[4] & 255);\n float flon = Float.parseFloat(\"\" + lon + \".\" + (((record[7] & 255) << 8) + (record[6] & 255)));\n int degs = (int) flon / 100;\n float min = flon - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "public int dollarToRuble(int value) {\n return value * DOLLAR;\n }", "public String unitPriceOfPdfEnglishDrm()\n \t{\n \t\tString unitPriceOfPdfEnglish = productRequirementsPageLocators.pdfEnglishUnitPrice.getText();\n \t\tSystem.out.println(\"unit price of pdf englihs is: \"+unitPriceOfPdfEnglish);\n\t\treturn unitPriceOfPdfEnglish;\n\n \t}", "public static String convert(String currencyfrom, String currencyto,List<Time> times, Double amount){\n if(currencyfrom.equals(currencyto)){\n return String.format(\"%.2f\",amount);\n }\n if(times.size() > 0) { // if the time list is empty return null\n times.sort((i, j) -> i.getDate().compareTo(j.getDate())); // sort time list by its date from old to new\n for (int i = times.size()-1; i >= 0; i-=1) { // search time object from new to old\n for (int j = 0; j < times.get(i).getExchanges().size(); j += 1) { // check whether the exchange rete between these 2 currencies in this time object\n if (times.get(i).getExchanges().get(j).getFromCurrency().getName().equals(currencyfrom) && times.get(i).getExchanges().get(j).getToCurrency().getName().equals(currencyto)) {\n return String.format(\"%.2f\", amount * times.get(i).getExchanges().get(j).getRate());\n }\n }\n return \"No such exchange rate between \" + currencyfrom + \" and \" + currencyto;// if the corresponding exchange rate is not found in all time object\n }\n\n }\n return null;\n }", "static double convert(double in) {\n return (in * 0.254);\n }", "static double geocentricToGeodetic(double geocentricLatitude) {\n return (Math.atan(Math.tan(geocentricLatitude) / (1.0 - E_ECC_SQUARED)));\n }", "public String conversion() {\n try {\n transactionFailure = null;\n amountConverted = converterFacade.conversion(fromCurrencyCode,\n toCurrencyCode, amountToConvert);\n } catch (Exception e) {\n handleException(e);\n }\n return jsf22Bugfix();\n }", "public static double footPoundsToElectronVolts(double num) { return (num*8.462*Math.exp(18)); }", "private String formatUsNumber(Editable text) {\n\t\tStringBuilder cashAmountBuilder = null;\n\t\tString USCurrencyFormat = text.toString();\n//\t\tif (!text.toString().matches(\"^\\\\$(\\\\d{1,3}(\\\\,\\\\d{3})*|(\\\\d+))(\\\\.\\\\d{2})?$\")) { \n\t\t\tString userInput = \"\" + text.toString().replaceAll(\"[^\\\\d]\", \"\");\n\t\t\tcashAmountBuilder = new StringBuilder(userInput);\n\n\t\t\twhile (cashAmountBuilder.length() > 3 && cashAmountBuilder.charAt(0) == '0') {\n\t\t\t\tcashAmountBuilder.deleteCharAt(0);\n\t\t\t}\n\t\t\twhile (cashAmountBuilder.length() < 3) {\n\t\t\t\tcashAmountBuilder.insert(0, '0');\n\t\t\t}\n\t\t\tcashAmountBuilder.insert(cashAmountBuilder.length() - 2, '.');\n\t\t\tUSCurrencyFormat = cashAmountBuilder.toString();\n\t\t\tUSCurrencyFormat = Util.getdoubleUSPriceFormat(Double.parseDouble(USCurrencyFormat));\n\n//\t\t}\n\t\tif(\"0.00\".equals(USCurrencyFormat)){\n\t\t\treturn \"\";\n\t\t}\n\t\tif(!USCurrencyFormat.contains(\"$\"))\n\t\t\treturn \"$\"+USCurrencyFormat;\n\t\treturn USCurrencyFormat;\n\t}", "private static double hpToEz(double hp) {\n return 1.015 + Math.cos(Math.toRadians(89.038 + hp));\n }", "public String formatRut(Object rut) {\r\n\t\tString value = rut.toString();\r\n\t\tvalue = value.trim();\r\n\t\tjava.util.Locale pais = java.util.Locale.GERMANY;\r\n\t\tif (!value.equalsIgnoreCase(\"&nbsp;\")) {\r\n\t\t\tchar DV = value.charAt(value.length() - 1);\r\n\t\t\tvalue = value.substring(0, value.length() - 1);\r\n\t\t\tjava.text.DecimalFormat dec = (java.text.DecimalFormat) java.text.NumberFormat.getInstance(pais);\r\n\t\t\tjava.lang.Double valor = null;\r\n\t\t\tdec.applyPattern(\"#,##0\");\r\n\t\t\tvalor = java.lang.Double.valueOf(value);\r\n\t\t\treturn dec.format(valor.doubleValue()) + \"-\" + DV;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn \"&nbsp;\";\r\n\t}", "public void convertiButton(View view){\n\n //log per controllare il funzionamento del bottone\n Log.i(\"Stato Botone\",\"Premuto\");\n\n //creo una variabile che associo il numero inserito nella barra di text viev\n //cercando l'input tramite id.\n EditText valuta=(EditText) findViewById(R.id.numeroConvertire);\n\n //con questo log riesco a controllare il valore inserito dall'utente\n Log.i(\"Il valore inserito\",valuta.getText().toString());\n\n //Assrgno il valore della variabile valuta alla stringa ammountEuroString.\n String ammoutEuroStringa=valuta.getText().toString();\n\n //converto la stringa in un Double con il metodo parseDouble\n double ammoutnEuroDouble=Double.parseDouble(ammoutEuroStringa);\n\n //effettuo le varie conversioi utilizzando il valore convertito in double\n double ammoutDollari=ammoutnEuroDouble*1.3;\n\n double ammountYen=ammoutnEuroDouble*3.4;\n\n double ammountYuhan=ammoutnEuroDouble*10.4;\n\n //il Toast mi consente di restituire il valore convertito.\n Toast.makeText(this,\"il valore da\"+\" Euro a dollari é=\"+ammoutDollari,Toast.LENGTH_SHORT).show();\n\n Toast.makeText(this,\"il valore da\"+\" Euro a Yen é=\"+ammountYen,Toast.LENGTH_SHORT).show();\n\n Toast.makeText(this,\"il valore da\"+\" Euro a Yuhan é=\"+ammountYuhan,Toast.LENGTH_SHORT).show();\n\n }", "@Override\r\n\tpublic Map<Character, Double> SetUnitPrice() {\r\n\t\tPricePerUnit.put('A', 1.25);\r\n\t\tPricePerUnit.put('B', 4.25);\r\n\t\tPricePerUnit.put('C', 1.00);\r\n\t\tPricePerUnit.put('D', 0.75);\r\n\t\treturn PricePerUnit;\r\n\t}", "private void berechneNeuenWert () {\r\n try {\r\n double ergebnis = 0d;\r\n for (JTextComponent wert : this.wertOperator.keySet()) {\r\n if (this.ignoriereWhitespaceEingabefelder && wert.getText().trim().length() == 0) {\r\n continue;\r\n }\r\n final char operator = this.wertOperator.get(wert);\r\n final double operand = Double.parseDouble(wert.getDocument().getText(0, wert.getDocument().getLength()).trim());\r\n switch (operator) {\r\n case '*':\r\n ergebnis *= operand;\r\n break;\r\n case '/':\r\n ergebnis /= operand;\r\n break;\r\n case '-':\r\n ergebnis -= operand;\r\n break;\r\n case '+':\r\n ergebnis += operand;\r\n break;\r\n case '=':\r\n ergebnis = operand;\r\n break;\r\n }\r\n }\r\n String text = Double.toString(ergebnis);\r\n if (this.anzahlDerNachkommastellen <= 0 && text.indexOf('.') != -1) {\r\n text = text.substring(0,text.indexOf('.'));\r\n }\r\n else {\r\n // Kommastellen hinzufügen\r\n if (text.indexOf('.') == -1) {\r\n text += '.';\r\n }\r\n // ggf. mit Nullen hinten auffüllen\r\n while (text.indexOf('.') + anzahlDerNachkommastellen > text.length() -1) {\r\n text += '0';\r\n }\r\n // Abschneiden zuviel vorhandener Stellen\r\n if (text.length() - 1 > text.indexOf('.') +anzahlDerNachkommastellen) {\r\n text = text.substring(0,text.indexOf('.')+anzahlDerNachkommastellen+1);\r\n }\r\n }\r\n this.setText(text);\r\n }\r\n catch (final Exception berechnungsProblem) {\r\n this.setText(this.zeigeFehlerAn ? \"#WERT!\" : \"\");\r\n }\r\n }", "int getLatE6();", "int getLatE6();", "public void calcPrecioTotal() {\n try {\n float result = precioUnidad * Float.parseFloat(unidades.getText().toString());\n prTotal.setText(String.valueOf(result) + \"€\");\n }catch (Exception e){\n prTotal.setText(\"0.0€\");\n }\n }", "String getTradeCurrency();", "public Double convert(Integer uom_from, Double value, String uom_to) {\r\n\t\tproduct_uom from = getProductUoM(uom_from);\r\n\t\treturn convert(from, value, uom_to);\r\n\t}", "private double calc_E(KeplerElements a) {\n\t\tdouble sqrome2 = Math.sqrt(1.0 - a.e * a.e);\r\n\t\tdouble cta = Math.cos(a.ta);\r\n\t\tdouble sta = Math.sin(a.ta);\r\n\t\tdouble sine0 = (sqrome2 * sta) / (1.0 + a.e * cta);\r\n\t\tdouble cose0 = (a.e + cta) / (1.0 + a.e * cta);\r\n\t\tdouble e0 = Math.atan2(sine0, cose0);\r\n\t\treturn e0;\r\n\r\n\t}", "public static double celsiusToFahrenheit(double celsius){\n \n //declare variable for converted temperature\n double convertedTemperature = ((9.0 / 5) * celsius + 32);\n \n //return value of converted temperature\n return convertedTemperature;\n \n }", "static double geodeticToGeocentric(double geodeticLatitude) {\n return (Math.atan((1.0 - E_ECC_SQUARED) * Math.tan(geodeticLatitude)));\n }", "public String getProductPaperBackPrice() {\n\t\tString paperBackWholePrice = driver\n\t\t\t\t.findElements(By.cssSelector(getLocator(search_result_page_prod_paper_price_whole))).get(0).getText();\n\t\tString paperBackCurrency = driver\n\t\t\t\t.findElements(By.cssSelector(getLocator(search_result_page_prod_paper_price_currency))).get(0)\n\t\t\t\t.getText();\n\t\tString paperBackFracPrice = driver\n\t\t\t\t.findElements(By.cssSelector(getLocator(search_result_page_prod_paper_price_fractional))).get(0)\n\t\t\t\t.getText();\n\t\tString paperBackPrice = paperBackCurrency + paperBackWholePrice + \".\" + paperBackFracPrice;\n\t\treturn paperBackPrice;\n\t}", "public double getUSValue(float toUSDollarRatio);", "public static double convert(\n final double input, final FrequencyUnit inputUnit,\n final FrequencyUnit outputUnit) {\n double hertz;\n\n // convert to hertz's\n switch (inputUnit) {\n case KILOHERTZ:\n hertz = kiloHertzToHertz(input);\n break;\n case MEGAHERTZ:\n hertz = megaHertzToHertz(input);\n break;\n case GIGAHERTZ:\n hertz = gigaHertzToHertz(input);\n break;\n case TERAHERTZ:\n hertz = teraHertzToHertz(input);\n break;\n\n case HERTZ:\n default:\n hertz = input;\n break;\n }\n\n // convert from Hertz to required output unit\n switch (outputUnit) {\n case KILOHERTZ:\n return hertzToKiloHertz(hertz);\n case MEGAHERTZ:\n return hertzToMegaHertz(hertz);\n case GIGAHERTZ:\n return hertzToGigaHertz(hertz);\n case TERAHERTZ:\n return hertzToTeraHertz(hertz);\n\n case HERTZ:\n default:\n return hertz;\n }\n }", "public abstract double toBasicUnit(double unit);", "public Double convert(product_uom from, Double value, Integer uom_to) throws Exception {\r\n\t\tproduct_uom to = getProductUoM(uom_to);\r\n\t\treturn convert(from, value, to);\r\n\t}", "public Double convert(Integer uom_from, Double value, product_uom to) throws Exception {\r\n\t\tproduct_uom from = getProductUoM(uom_from);\r\n\t\treturn convert(from, value, to);\r\n\t}", "public void convertToEUnitsY( EUnit targetUnits ) {\r\n if( (yEUnit == null) || (targetUnits == null) || (yEUnit.equals( targetUnits )) || (this.data == null) ) {\r\n return;\r\n }\r\n EUnitConverter.convert( this.data, this.yEUnit, targetUnits );\r\n setYEUnit( targetUnits );\r\n }", "abstract String convertEnglishNumber(String number);", "@Test\n public void testFinalConvertAUDStandard(){\n // set up\n CurrencyRates one = new CurrencyRates();\n\n //Initialise list of sums\n ArrayList<Double> sumList1 = new ArrayList<Double>();\n sumList1.add(10.50);\n sumList1.add(11.50);\n sumList1.add(80.00);\n sumList1.add(10.12);\n sumList1.add(50.60);\n sumList1.add(70.60);\n\n double finalSum = one.finalSumAUD(sumList1);\n\n //converts AUD to USD\n double retValue = one.AUDtoNewCurrency(1, one.exchangeRate, finalSum);\n assertEquals(233.32, retValue, 0.0);\n\n }", "@Test\r\n\tpublic void test() {\n\t\tdouble actual = conv.dollarToRupees(25);\r\n\t\tassertEquals(2500.0,actual,0);\r\n\t\t//assertEquals(expected,actual,precision[delta])\r\n\t\t\r\n\t}", "private void totalPrice() {\n double totalPrice;\n \n String stu = studentSubTotal.getText();\n stu = stu.substring(1);\n double stuTotal = Double.parseDouble(stu);\n\n String adult = adultSubTotal.getText();\n adult = adult.substring(1);\n double adultTotal = Double.parseDouble(adult);\n\n String senior = seniorSubTotal.getText();\n senior = senior.substring(1);\n double seniorTotal = Double.parseDouble(senior);\n\n totalPrice = stuTotal + adultTotal + seniorTotal;\n NumberFormat gbp = NumberFormat.getCurrencyInstance(Locale.UK);\n String totalStr = String.valueOf(gbp.format(totalPrice));\n totalPriceTextField.setText(totalStr);\n\n }", "public String kalkulatu() {\n\t\tString emaitza = \"\";\n\t\tDouble d = 0.0;\n\t\ttry {\n\t\t\td = Double.parseDouble(et_sarrera.getText().toString());\n\t\t} catch (NumberFormatException e) {\n\t\t\tet_sarrera.setText(\"0\");\n\t\t}\n\t\tif (st_in.compareTo(\"m\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 100.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1609.344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.0254);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"km\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1000.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 100000.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1000000.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1.609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.0000254);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"cm\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 100000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 100.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 10.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 160934.4);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 2.54);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"mm\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 10.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 25.4);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"ml\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1.609344);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1609.344);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 160934.4);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.000015782828);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"inch\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.0000254);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.0254);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 2.54);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 25.4);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.000015782828);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t}\n\t\t}\n\t\treturn emaitza;\n\t}", "public static double convertkgTOlb (double kg) {\n\tdouble lb=kg*2.2046;\n\treturn lb;\n}", "@Test\r\n\tpublic void test2() {\n\t\tDouble actual = conv.dollarToRupees(10);\r\n\t\tassertNotNull(actual);\r\n\t}", "private String latitudeConversion() {\n int lat = record[1];\n if (lat >= 0) {\n lat = lat & 255;\n }\n lat = (lat << 8) + (record[0] & 255);\n float flat = Float.parseFloat((\"\" + lat + \".\" + (((record[3] & 255) << 8) + (record[2] & 255))));\n int degs = (int) flat / 100;\n float min = flat - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "public static double converToDolar(double quantity, String currency){\n //MXN(mexicanos) COP(colombiano) ARG\n switch (currency){\n case \"MXN\":\n quantity = quantity*0.052;\n break;\n case \"COP\":\n quantity=quantity*0.00031;\n break;\n case \"ARG\":\n quantity = quantity*0.011;\n break;\n\n }\n return quantity;\n }", "public String getFormattedPrice() {\n NumberFormat ukFormat = NumberFormat.getCurrencyInstance(Locale.UK);\n ukFormat.setMinimumFractionDigits(2);\n ukFormat.setMaximumFractionDigits(2);\n BigDecimal result = new BigDecimal(\"0.00\");\n if (baseSize != null) {\n result = baseSize.getPrice();\n Double multiplier = baseSize.getMultiplier();\n for (ToppingEntity topping : toppings) {\n topping.setMultiplier(multiplier);\n result = result.add(topping.getPrice());\n }\n }\n return ukFormat.format(result.doubleValue());\n }", "public double berechneVolumen() {\n\t\treturn laenge * breite * hoehe;\n\t}", "public Double convert(Integer uom_from, Double value, Integer uom_to) throws Exception {\r\n\t\tproduct_uom from = getProductUoM(uom_from);\r\n\t\tproduct_uom to = getProductUoM(uom_to);\r\n\t\treturn convert(from, value, to);\r\n\t}", "public void convert_right()\n {\n //If the box is empty then empty the other box\n if (box_right.getText().toString().equals(\"\")) {\n app_input = true;\n box_left.setText(\"\");\n return;\n }\n\n long left_id = spinnerl.getSelectedItemId();\n long right_id = spinnerr.getSelectedItemId();\n\n double amount = Double.parseDouble(box_right.getText().toString());\n if (left_id == right_id)\n {\n app_input = true;\n box_left.setText(Double.toString(amount));\n return;\n }\n\n\n double left_value = left_id == 0 ? 1.0 : rates.rates.get(spinnerl.getSelectedItem().toString());\n double right_value = right_id == 0 ? 1.0 : rates.rates.get(spinnerr.getSelectedItem().toString());\n\n double result = amount / right_value * left_value;\n app_input = true;\n box_left.setText(Double.toString(result));\n }", "public double getCelsius(){\n return ((fahrenheit-32)*(5.0/9));\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Type the country: \");\n String country = scanner.nextLine();\n\n switch (country) {\n case \"bulgaria\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro = scanner.nextDouble();\n double exchangeRateGBP = 1.96;\n double bulgarianMoney = euro * exchangeRateGBP;\n Locale locale = new Locale(\"en\", \"BG\");\n NumberFormat currencyFormatter = NumberFormat.getCurrencyInstance(locale);\n String output = String.format(\" %.2f euro at an exchange rate of %.2f is %s.\", euro, exchangeRateGBP, currencyFormatter.format(bulgarianMoney));\n System.out.println(output);\n break;\n case \"turkey\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro1 = scanner.nextDouble();\n double exchangeRateTurkishLira = 6.97;\n double turkishMoney = euro1 * exchangeRateTurkishLira;\n Locale locale1 = new Locale(\"en\", \"TR\");\n NumberFormat currencyFormatter1 = NumberFormat.getCurrencyInstance(locale1);\n String output1 = String.format(\" %.2f euro at an exchange rate of %.2f is %s.\", euro1, exchangeRateTurkishLira, currencyFormatter1.format(turkishMoney));\n System.out.println(output1);\n break;\n case \"romania\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro2 = scanner.nextDouble();\n double exchangeRateRomanianRon = 4.84;\n double romanianMoney = euro2 * exchangeRateRomanianRon;\n Locale locale2 = new Locale(\"en\", \"RO\");\n NumberFormat currencyFormatter2 = NumberFormat.getCurrencyInstance(locale2);\n String output2 = String.format(\" %.2f euro at an exchange rate of %.2f is %s.\", euro2, exchangeRateRomanianRon, currencyFormatter2.format(romanianMoney));\n System.out.println(output2);\n break;\n case \"moldavia\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro3 = scanner.nextDouble();\n double exchangeRateMoldavianLeu = 19.48;\n double moldavianMoney = euro3 * exchangeRateMoldavianLeu;\n Locale locale3 = new Locale(\"en\", \"MD\");\n NumberFormat currencyFormatter3 = NumberFormat.getCurrencyInstance(locale3);\n String output3 = String.format(\" %.2f euro at an exchange rate of %.2f is %s.\", euro3, exchangeRateMoldavianLeu, currencyFormatter3.format(moldavianMoney));\n System.out.println(output3);\n break;\n case \"canada\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro4 = scanner.nextDouble();\n double exchangeRateCanadianDollar = 1.55;\n double canadianMoney = euro4 * exchangeRateCanadianDollar;\n Locale locale4 = new Locale(\"en\", \"CA\");\n NumberFormat currencyFormatter4 = NumberFormat.getCurrencyInstance(locale4);\n String output4 = String.format(\" %.2f euro at an exchange rate of %.2f is %s.\", euro4, exchangeRateCanadianDollar, currencyFormatter4.format(canadianMoney));\n System.out.println(output4);\n break;\n case \"usa\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro5 = scanner.nextDouble();\n double exchangeRateUSDollar = 1.09;\n double americanMoney = euro5 * exchangeRateUSDollar;\n Locale locale5 = new Locale(\"en\", \"US\");\n NumberFormat currencyFormatter5 = NumberFormat.getCurrencyInstance(locale5);\n String output5 = String.format(\" %.2f euros at an exchange rate of %.2f is %s.\", euro5, exchangeRateUSDollar, currencyFormatter5.format(americanMoney));\n System.out.println(output5);\n break;\n case \"hungary\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro6 = scanner.nextDouble();\n double exchangeRateHungarianForint = 354.97;\n double hungarianMoney = euro6 * exchangeRateHungarianForint;\n Locale locale6 = new Locale(\"en\", \"HU\");\n NumberFormat currencyFormatter6 = NumberFormat.getCurrencyInstance(locale6);\n String output6 = String.format(\" %.2f euros at an exchange rate of %.2f is %s.\", euro6, exchangeRateHungarianForint, currencyFormatter6.format(hungarianMoney));\n System.out.println(output6);\n break;\n default:\n System.out.println(\"The entered country is not in our list but you can still calculate if you know the exchange rate.\\nWhat is the exchange rate?\");\n double exchangeRate = scanner.nextDouble();\n System.out.println(\"How many euros are you exchanging?\");\n double euro7 = scanner.nextDouble();\n double exchangedMoney = euro7 * exchangeRate;\n String output7 = String.format(\" %.2f euros at an exchange rate of %.2f is %.2f.\", euro7, exchangeRate, exchangedMoney);\n System.out.println(output7);\n }\n }", "public void BigE_and_Truana()\r\n\t{\r\n\t\t/* ____________ First get an approximate value of BIGE ______________________*/\r\n\t\t\r\n\t\tTANE = Trig.DegTAN ( EM ) / ( Trig.DegCOS ( EM ) - E );\r\n\t BIGE = Math.atan ( TANE ) * TRGVAR.R_to_D;\r\n\t E0 = E * TRGVAR.R_to_D;\r\n\t \r\n\t BIGE = BIGE % 360;\r\n\t BIGE0 = BIGE ;\r\n\t \r\n\t BIGE = BIGE0 + ( EM + E0 * Trig.DegSIN ( BIGE0 ) - BIGE0 ) / ( 1. - E * Trig.DegCOS ( BIGE0 ));\r\n\t \r\n\t /* ____________ Get more accurate value of BIGE by iteration ______________________*/\r\n\t \r\n\t COUNT = 0;\r\n\t ERROR = Math.abs (( BIGE - BIGE0 ) / BIGE0 );\r\n\t BIGE0 = BIGE ;\r\n\t \r\n\t while ( ERROR > 0.000001 || COUNT < 20) {\r\n\t \tBIGE = BIGE0 + ( EM + E0 * Trig.DegSIN ( BIGE0 ) - BIGE0 ) / ( 1. - E * Trig.DegCOS ( BIGE0 ));\r\n\t \tERROR = Math.abs (( BIGE - BIGE0 ) / BIGE0 ); //loop body\r\n\t \tBIGE0 = BIGE;\r\n\t \tCOUNT++;\r\n\t \t}\r\n\t \r\n\t TANVB2 = Math.sqrt (( 1.+E ) / ( 1.-E )) * Trig.DegTAN ( BIGE / 2. );\r\n\t \r\n\t TRUANA = 2. * Math.atan ( TANVB2 ) * TRGVAR.R_to_D;\r\n\t TRUANA = TRUANA % 360;\r\n\t \r\n\t System.out.println( \" ERROR = \" + ERROR + \" COUNT = \" + COUNT + \" BIGE = \" + BIGE + \" TRUANA = \" + TRUANA );\r\n\t \r\n\r\n\t}", "public static double convertFahtoCel(double temp){\r\n return ((temp - 32) * 5) / 9;\r\n }", "private String externalConversion() {\n int reading = ((record[19] & 255) + ((record[21] & 0x03) << 8));\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = externalConversion.eval(variables);\n\n String x = result + \"\";\n\n if(this.counter){\n x = Integer.parseInt(x) * (60/rate) + \"\";\n }\n\n return x;\n }", "public static double convertFahtoKel(double temp){\r\n return ((temp - 32) * 5) / 9 + 273;\r\n }", "public String getCurrency() {\n return this.currency;\n }", "Currency getCurrency();", "@Test\n\tvoid toRadiansConversionTestWithDegreeInput() throws CustomException {\n\t\tdouble input = 180;\n\t\tdouble actual = 3.141592653589793;\n\t\tdouble result = TrigLib.sine(input);\n\t\tassertNotEquals(result, actual, \"Output is not as expected as input is not converted to radians\");\n\t}", "public int rubleToDollar(int value) {\n return value / DOLLAR;\n }", "private int getUnitsToConvert() throws IOException {\n int sum = 0;\n for (Converter converter : converters) {\n sum += converter.getUnitsToConvert();\n }\n return sum;\n }", "public void euroFalse(View view) { // Sets euro to be false\n euro = false;\n }", "private String locateToUsFormat(Location location) {\n\t\t\n\t\tString latitudeString = Location.convert(location.getLatitude(), Location.FORMAT_DEGREES);\n\t\tString longitudeString = Location.convert(location.getLongitude(), Location.FORMAT_DEGREES);\n\t\treturn latitudeString.replace(',', '.') + \",\" + longitudeString.replace(',', '.');\n\t}", "public double getKelvin(){\n return ((fahrenheit+459.67)*(5.0/9));\n }", "float mo106363e();", "public String getToUnit() {\r\n return this.toUnit;\r\n }", "public static double convertToOunces(double Number, double ounceConversion) {\n\t\treturn Number * ounceConversion;\n\t}", "@Override public double getCosto(){\n double d = 190.00;\n return d;\n }", "public double getEnergia() { return energia; }", "public String getPriceString() {\n\t\treturn Utils.formatCurrencyNumber(price);//Double.toString(price.doubleValue()); //price.toString();\n\t}", "public abstract double mo9740e();", "public ResponseCurrencyConversionBo converCurrency() {\n\n ResponseCurrencyConversionBo responseCurrencyConversionBo = new ResponseCurrencyConversionBo();\n\n try {\n long startTime = System.nanoTime();\n HttpClient client = HttpClientBuilder.create().build();\n String url = myPropertiesReader.getPropertyValue(\"unitconvertersUrl\");\n url = MessageFormat.format(url, requestCurrencyConversionBo.getSourceCountryCurrency(),requestCurrencyConversionBo.getTargetCountryCurrency());\n HttpGet post = new HttpGet(url);\n\n HttpResponse response = client.execute(post);\n if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {\n\n BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\n String finalResult = \"\";\n StringBuffer result = new StringBuffer();\n String line = \"\";\n while ((line = rd.readLine()) != null) {\n result.append(line);\n }\n\n finalResult = result.toString();\n log.info(finalResult);\n String currencyRate = finalResult.substring(finalResult.indexOf(\"<p class=\\\"bigtext\\\">\"),finalResult.lastIndexOf(\"<p class=\\\"bigtext\\\">\"));\n log.info(currencyRate);\n currencyRate = currencyRate.replace(\"<p class=\\\"bigtext\\\">\",\"\").replace(\"</p>\",\"\");\n log.info(currencyRate);\n String[] currencyRateSplitByBR = currencyRate.split(\"<br>\");\n log.info(currencyRateSplitByBR[0]);\n String finalCurrencyRate = currencyRateSplitByBR[0].split(\"=\")[1].replaceAll(\"[a-zA-Z]\", \"\").trim();\n log.info(finalCurrencyRate);\n responseCurrencyConversionBo.setCurrencyRate(finalCurrencyRate);\n }\n } catch (Exception e) {\n e.printStackTrace();\n log.error(e.getMessage());\n }\n\n return responseCurrencyConversionBo;\n }", "public Double convert(product_uom from, Double value, product_uom to) throws Exception {\r\n\t\tif ((from == null) || (to == null))\r\n\t\t\treturn null;\r\n\t\treturn from.convert(value, to);\r\n\t}" ]
[ "0.7168471", "0.6394981", "0.6298489", "0.6164196", "0.5901208", "0.5752184", "0.5690839", "0.56090254", "0.5579214", "0.5495803", "0.54880166", "0.5443117", "0.5390621", "0.5368086", "0.5356229", "0.5321628", "0.5298447", "0.52832055", "0.5233334", "0.5212672", "0.5204879", "0.51877904", "0.51849324", "0.5163307", "0.5156129", "0.5111191", "0.5082952", "0.50738573", "0.5072477", "0.50567657", "0.50563896", "0.5053156", "0.50518227", "0.5043708", "0.5036841", "0.5033073", "0.5032322", "0.50076807", "0.5000237", "0.4991888", "0.49799722", "0.49499562", "0.4938993", "0.4926151", "0.4919482", "0.48823777", "0.48814356", "0.4876653", "0.4874133", "0.48703238", "0.48703238", "0.4868235", "0.4864086", "0.48607123", "0.48553768", "0.4837925", "0.48368523", "0.483389", "0.48338586", "0.48258322", "0.482524", "0.48209146", "0.48071873", "0.4805117", "0.4801978", "0.47951823", "0.47938108", "0.47849038", "0.47847235", "0.47807348", "0.4779896", "0.47649163", "0.4763701", "0.4762353", "0.4759527", "0.47579563", "0.47519124", "0.47493553", "0.47431844", "0.47410694", "0.4736313", "0.47163", "0.4709696", "0.4705068", "0.4703409", "0.47032136", "0.46920273", "0.46868777", "0.46868002", "0.46826738", "0.46806905", "0.46788573", "0.46732506", "0.4672276", "0.46647903", "0.46647358", "0.46616548", "0.46564862", "0.46491238", "0.46490642" ]
0.7301436
0
Convert rubles in dollars.
public int rubleToDollar(int value) { return value / DOLLAR; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int dollarToRuble(int value) {\n return value * DOLLAR;\n }", "public String centsToDollar() {\n return partieEntier + \".\" +\n String.format(\"%02d\", partieFractionnaire) + \"$\";\n }", "public int getDollars()\r\n {\r\n return dollars;\r\n }", "public int getDollars() {\n return dollars;\n }", "public double convert(double amount, Unit u);", "private void convert()\n {\n if (choiceBox.getValue().equals(\"US-Dollar\"))\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double dollar = currencyConverter.euroToDollar(euro);\n txtYen.setText(DEC2FORMAT.format(dollar));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n else\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double yen = currencyConverter.euroToYen(euro);\n txtYen.setText(DEC2FORMAT.format(yen));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n }", "public static double converToDolar(double quantity, String currency){\n //MXN(mexicanos) COP(colombiano) ARG\n switch (currency){\n case \"MXN\":\n quantity = quantity*0.052;\n break;\n case \"COP\":\n quantity=quantity*0.00031;\n break;\n case \"ARG\":\n quantity = quantity*0.011;\n break;\n\n }\n return quantity;\n }", "public static String toDollarsAndCents(int cents){\n \n NumberFormat currencyFormatter = \n NumberFormat.getCurrencyInstance();\n return currencyFormatter.format(cents/100.0);\n }", "public int rubleToEuro(int value) {\n return value / EURO;\n }", "private static String convertToFormat(int number) {\n int cents = number%100;\n number /= 100;\n return \"$\" + String.valueOf(number) + \".\" + String.valueOf(cents);\n }", "public int euroToRuble(int value) {\n return value * EURO;\n }", "public int getAsCents(){\n return (dollars*100 + cents);\n }", "private static int convertToCents(String amount) {\n\n /* First check if the format of the amount is correct */\n if(!validAmount(amount)) {\n return -1;\n }\n\n /* Look for the dot (if there is one), to separate cents from dollars */\n int dotIdx = amount.indexOf('.');\n\n /* Calculate the number of cents */\n int numCents = 0;\n if(dotIdx != -1){\n for(int i = dotIdx+1; i < Math.min(dotIdx+3, amount.length()); i++){\n numCents = numCents*10 + amount.charAt(i) - '0';\n }\n if(numCents < 10){\n numCents *= 10;\n }\n }\n\n /* Calculate the number of dollars */\n if(dotIdx == -1){\n dotIdx = amount.length();\n }\n int numDollars = 0;\n for(int i = 0; i < dotIdx; i++){\n if(Character.isDigit(amount.charAt(i))){\n numDollars = numDollars*10 + amount.charAt(i) - '0';\n }\n }\n\n if (numDollars >= 100000) { return -2; }\n\n return numDollars*100 + numCents;\n }", "protected double toPounds(double weightOunces){\n\t\treturn 0.0625 * weightOunces;\n\t}", "public static void main(String[] args) {\n int cents = new Scanner(System.in).nextInt();\n double convertedCents = cents*131;\n int wholeDollars = (int) (convertedCents/100);\n int wholeCents = (int) (convertedCents%100);\n\n System.out.printf(\"%03d.%03d\",wholeDollars, wholeCents);\n\n }", "public String toString() {\n return \"$\"+getDollars() +\".\"+ getCents();\n }", "public static String formatR(Currency c) {\r\n return c.twoDecFormat();\r\n }", "private String formatUsNumber(Editable text) {\n\t\tStringBuilder cashAmountBuilder = null;\n\t\tString USCurrencyFormat = text.toString();\n//\t\tif (!text.toString().matches(\"^\\\\$(\\\\d{1,3}(\\\\,\\\\d{3})*|(\\\\d+))(\\\\.\\\\d{2})?$\")) { \n\t\t\tString userInput = \"\" + text.toString().replaceAll(\"[^\\\\d]\", \"\");\n\t\t\tcashAmountBuilder = new StringBuilder(userInput);\n\n\t\t\twhile (cashAmountBuilder.length() > 3 && cashAmountBuilder.charAt(0) == '0') {\n\t\t\t\tcashAmountBuilder.deleteCharAt(0);\n\t\t\t}\n\t\t\twhile (cashAmountBuilder.length() < 3) {\n\t\t\t\tcashAmountBuilder.insert(0, '0');\n\t\t\t}\n\t\t\tcashAmountBuilder.insert(cashAmountBuilder.length() - 2, '.');\n\t\t\tUSCurrencyFormat = cashAmountBuilder.toString();\n\t\t\tUSCurrencyFormat = Util.getdoubleUSPriceFormat(Double.parseDouble(USCurrencyFormat));\n\n//\t\t}\n\t\tif(\"0.00\".equals(USCurrencyFormat)){\n\t\t\treturn \"\";\n\t\t}\n\t\tif(!USCurrencyFormat.contains(\"$\"))\n\t\t\treturn \"$\"+USCurrencyFormat;\n\t\treturn USCurrencyFormat;\n\t}", "public void convert(View v){\n EditText etUSD = findViewById(R.id.etUSD);\n EditText etLKR = findViewById(R.id.etLKR);\n\n //Get text From usd TextField\n String text= etUSD.getText().toString();\n //Convert Text To Double\n double usd = Double.parseDouble(text);\n\n // Convert to LKR\n double lkr = usd*195;\n //convert double to string\n String lkrText = String.valueOf(lkr);\n\n //Set lkrTest Value to Test Field\n etLKR.setText(lkrText);\n\n\n\n }", "private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}", "private String convertToCelsius(String string) {\n\t\tDecimalFormat df2 = new DecimalFormat(\".##\");\n\t\treturn df2.format((Double.parseDouble(string)-273.15));\n\t}", "public String convertAmount(long num) {\n String sign = \"\";\n if (num == 0){\n return \"zero\"; \n }\n else if (num < 0) {\n // if number negative, making it as positive number and saving the sign in the variable\n num = -num;\n sign = \"Negative\";\n }\n \n String inWords = \"\";\n int place = 0;\n \n // do this for every set of 3 digits from right till your left with northing\n do {\n // get the right most 3 numbers \n long n = num % 1000;\n // check if it not 0\n if (n != 0){\n // call the changeUptoThousand for the 3 digit number\n String s = changeUptoThousand((int) n);\n // add the appropriate word from thousand \n inWords = s + specialdigitNames[place] + inWords;\n }\n place++;\n //change the number leaving the right most 3 digits whic are processed above\n num /= 1000;\n } \n while (num > 0);\n // add the sign and the number\n return (sign + inWords).trim();\n }", "String format(double balance);", "public static String formatCurrency( double amt ) {\n return formatCurrency( amt, 2 );\n }", "@Test\n public void FinalConvertJPYStandard(){\n CurrencyRates one = new CurrencyRates();\n\n //Initialise list of sums\n ArrayList<Double> sumList1 = new ArrayList<Double>();\n sumList1.add(10.50);\n sumList1.add(11.50);\n sumList1.add(80.00);\n sumList1.add(10.12);\n sumList1.add(50.60);\n sumList1.add(70.60);\n\n double finalSum = one.finalSumAUD(sumList1);\n\n //converts AUD to JPY\n double retValue = one.AUDtoNewCurrency(5, one.exchangeRate, finalSum);\n assertEquals(17205.02, retValue, 0.0);\n\n }", "private String moneyFormat(String money)\n {\n if(money.indexOf('.') == -1)\n {\n return \"$\" + money;\n }\n else\n {\n String dec = money.substring(money.indexOf('.')+1 , money.length());\n if(dec.length() == 1)\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec + \"0\";\n }\n else\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec.substring(0,2);\n }\n }\n }", "@Override\n public String toString() {\n String printString;\n if (cents == 0) {\n printString = String.format(\"$%d.00\", dollars);\n } else {\n printString = String.format(\"$%d.%d\", dollars, cents);\n }\n return printString;\n }", "private double usdToBitcoin(double usd) {\n return usd/(usd + 120);\n }", "public static String getDisplayCurrencyFormatTwoDecimalFixedAccountingDr(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###.#\");\n\t\tformat.setMaximumFractionDigits(2);\n\t\tformat.setMinimumFractionDigits(2);\n\t\t\n\t\tif (val < 0){\n\t\t\treturn format.format(val * -1) + \" Cr\";\t\n\t\t}else{\n\t\t\treturn format.format(val) + \" Dr\";\t\n\t\t}\n\n\t}", "public String CurrencyFormatter(double val) {\n\n\n NumberFormat nf = NumberFormat.getCurrencyInstance();\n DecimalFormatSymbols decimalFormatSymbols = ((DecimalFormat) nf).getDecimalFormatSymbols();\n decimalFormatSymbols.setCurrencySymbol(\"\");\n ((DecimalFormat) nf).setDecimalFormatSymbols(decimalFormatSymbols);\n String ft=nf.format(val).trim();\n return ft;\n\n }", "public void conversion(double amount, Currency convertTo) {\n\t\tDollar dollar = new Dollar();\n\t\tif(dollar.getClass().getName() == convertTo.getClass().getName()) {\n\t\t\tSystem.out.println(\"Rupee to Dollar\"+(amount*0.014));\n\t\t}\n\t\tEuro euro= new Euro();\n\t\tif(euro.getClass().getName() == convertTo.getClass().getName()) {\n\t\t\tSystem.out.println(\"Rupee to Euro\"+(amount*0.012));\n\t\t}\n\t}", "public static String convertToRawCasesAccounting(long units, int UnitsPerSKU) {\n\n\t\t boolean IsNegative=false;\n\t\t if(units<0) {\n\t\t\t units = units*-1;\n\t\t\t IsNegative = true;\n\t\t }\n\t\t \n\t\t String ret = \"\";\n\t\t if (UnitsPerSKU != 0) {\n\t\t\t double RawCasesDouble = (double) units / (double) UnitsPerSKU;\n\t\t\t String RawCasesString = RawCasesDouble + \"\";\n\t\t\t if (RawCasesString.indexOf(\".\") != -1) {\n\t\t\t\t RawCasesString = RawCasesString.substring(0,\n\t\t\t\t\t\t RawCasesString.indexOf(\".\"));\n\t\t\t }\n\t\t\t long RawCases = Utilities.parseLong(RawCasesString);\n\n\t\t\t long RawCasesUnits = RawCases * UnitsPerSKU;\n\n\t\t\t long bottles = units - RawCasesUnits;\n\n\t\t\t if (bottles == 0) {\n\t\t\t\t ret = getDisplayCurrencyFormat(RawCases) + \"\";\n\t\t\t } else {\n\t\t\t\t ret = getDisplayCurrencyFormat(RawCases) + \"~\" + bottles;\n\t\t\t }\n\t\t }\n\t\t \n\t\t if(IsNegative){\n\t\t\t ret = \"(\"+ret+\")\";\n\t\t }\n\t\t \treturn ret;\n\t\t }", "private String convertFahrenheitToCelsius(double f) {\n double c = (f - 32.0) * (5.0 / 9.0);\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(c);\n }", "public double redondear(double decimal, int escala) {\n\n BigDecimal bd = new BigDecimal(decimal).setScale(escala, RoundingMode.HALF_UP);\n\n return Double.parseDouble(bd.toString());\n }", "@Test\r\n\tpublic void test2() {\n\t\tDouble actual = conv.dollarToRupees(10);\r\n\t\tassertNotNull(actual);\r\n\t}", "@Override\n\t\tpublic Double convert(String s) {\n\t\t\treturn Double.parseDouble(s);\n\t\t}", "private String getFormattedPrice(double unformattedPrice) {\n String formattedData = String.format(\"%.02f\", unformattedPrice);\n return formattedData;\n }", "public static double convertC(String[][] money,String[][] convertionRate) {\n\t\tdouble sum = 0.0;\n\t\t\n\t\tfor (int i = 0; i < money.length; i++) {\n\t\t\tdouble d1 = Double.parseDouble(money[i][1]);\n\t\t\tdouble d2 = Double.parseDouble(convertionRate[i][1]);\n\t\t\tsum += d1 * d2;\n\t\t}\n\n\t return sum;\n\t }", "@Test\n public void testFinalConvertAUDStandard(){\n // set up\n CurrencyRates one = new CurrencyRates();\n\n //Initialise list of sums\n ArrayList<Double> sumList1 = new ArrayList<Double>();\n sumList1.add(10.50);\n sumList1.add(11.50);\n sumList1.add(80.00);\n sumList1.add(10.12);\n sumList1.add(50.60);\n sumList1.add(70.60);\n\n double finalSum = one.finalSumAUD(sumList1);\n\n //converts AUD to USD\n double retValue = one.AUDtoNewCurrency(1, one.exchangeRate, finalSum);\n assertEquals(233.32, retValue, 0.0);\n\n }", "double getMoney();", "Uom getCurrencyUom();", "public static String getDisplayCurrencyFormatRoundedAccounting(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###\");\n\t\tformat.setMaximumFractionDigits(0);\n\t\tformat.setMinimumFractionDigits(0);\n\t\t\n\t\tif (val < 0){\n\t\t\treturn \"(\"+ format.format(val * -1) + \")\";\t\n\t\t}else{\n\t\t\treturn format.format(val);\t\n\t\t}\n\n\t}", "public double calcDollarAmount(double euroAmount, double exchangeRate) {\n return Math.ceil(euroAmount * exchangeRate * 100) / 100;\n\n }", "public String KaToDaa(double ka) {\n // dal = 100*ka\n double daa = 100*ka;\n return check_after_decimal_point(daa);\n }", "private static String format2(double d) {\n return new DecimalFormat(\"#.00\").format(d);\n }", "public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}", "public static String convert(String currencyfrom, String currencyto,List<Time> times, Double amount){\n if(currencyfrom.equals(currencyto)){\n return String.format(\"%.2f\",amount);\n }\n if(times.size() > 0) { // if the time list is empty return null\n times.sort((i, j) -> i.getDate().compareTo(j.getDate())); // sort time list by its date from old to new\n for (int i = times.size()-1; i >= 0; i-=1) { // search time object from new to old\n for (int j = 0; j < times.get(i).getExchanges().size(); j += 1) { // check whether the exchange rete between these 2 currencies in this time object\n if (times.get(i).getExchanges().get(j).getFromCurrency().getName().equals(currencyfrom) && times.get(i).getExchanges().get(j).getToCurrency().getName().equals(currencyto)) {\n return String.format(\"%.2f\", amount * times.get(i).getExchanges().get(j).getRate());\n }\n }\n return \"No such exchange rate between \" + currencyfrom + \" and \" + currencyto;// if the corresponding exchange rate is not found in all time object\n }\n\n }\n return null;\n }", "public static String cashInWords (Double cash) {\n String s = \"\";\n int cashInCents = (BigDecimal.valueOf(cash).movePointRight(2)).intValue();\n int hrivna = cash.intValue();\n int cop = cashInCents%100;\n if (hrivna/1000000>=1) s+=ch999(hrivna / 1000000, \"million \");\n if (hrivna%1000000/1000>=1) s+=ch999(hrivna % 1000000 / 1000, \"thousand \");\n if (hrivna%1000000%1000>=1) s+=ch999(hrivna % 1000000 % 1000, \"\");\n if (hrivna>0) s+=\"hryvnas \";\n if (hrivna>0&&cop>0) s+=\"and \";\n if (cop>0) s+=ch999(cop, \"cop.\");\n\n return s;\n }", "private static Double convertToKilograms(Double pounds) {\n double kilos;\n kilos = pounds / 2.2046;\n return kilos;\n }", "public String getModifiedNumber(BigDecimal bd) {\r\n String str = \"\";\r\n String temp = \"\";\r\n str = bd.toString();\r\n double num = Double.parseDouble(str);\r\n double doubleVal;\r\n\r\n NumberFormat nFormat = NumberFormat.getInstance(Locale.US);\r\n nFormat.setMaximumFractionDigits(1);\r\n nFormat.setMinimumFractionDigits(1);\r\n\r\n /*\r\n * if ((num / getPowerOfTen(12)) > 0.99) // check for Trillion {\r\n * doubleVal = (num / getPowerOfTen(12)); temp =\r\n * String.valueOf(truncate(doubleVal)) + \"Tn\"; } else if ((num /\r\n * getPowerOfTen(9)) > 0.99) // check for Billion { doubleVal = (num /\r\n * getPowerOfTen(9)); temp = String.valueOf(truncate(doubleVal)) + \"Bn\";\r\n * } else\r\n */\r\n if ((num / getPowerOfTen(6)) > 0.99) // check for Million\r\n {\r\n doubleVal = (num / getPowerOfTen(6));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"M\";\r\n temp= nFormat.format(doubleVal) + \"M\";\r\n } else if ((num / getPowerOfTen(3)) > 0.99) // check for K\r\n {\r\n doubleVal = (num / getPowerOfTen(3));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"K\";\r\n temp =nFormat.format(doubleVal) + \"K\";\r\n } else {\r\n //temp = String.valueOf(num);\r\n temp = nFormat.format(num);\r\n }\r\n return temp;\r\n }", "abstract String convertEnglishNumber(String number);", "@Override\n\t\tpublic java.math.BigDecimal convert(String s) {\n\t\t\treturn new java.math.BigDecimal(s);\n\t\t}", "public static String formatDoubleAmount(double amount){\n NumberFormat formatter = new DecimalFormat(\"$#,###,##0.00;($#,###,##0.00)\");\n return formatter.format(amount); \n }", "private double convertToDbl(Object a) {\n double result = 0;\n\n //If the object is a Character...\n if(a instanceof Character){\n char x = (Character)a;\n result = (double)(x - '0'); // -'0' as it will convert the ascii number (e.g 4 is 52 in ascii) to the standard number\n }\n\n //If it is a Double...\n else if(a instanceof Double){\n result = (Double)a;\n }\n\n return result;\n }", "public String DaToCa(double da) {\n // ca = 10*da\n double ca = da*10;\n return check_after_decimal_point(ca);\n }", "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "String getTradeCurrency();", "@Test\n public void FinalConvertEURStandard(){\n CurrencyRates one = new CurrencyRates();\n\n //Initialise list of sums\n ArrayList<Double> sumList1 = new ArrayList<Double>();\n sumList1.add(10.50);\n sumList1.add(11.50);\n sumList1.add(80.00);\n sumList1.add(10.12);\n sumList1.add(50.60);\n sumList1.add(70.60);\n\n double finalSum = one.finalSumAUD(sumList1);\n\n //converts AUD to EUR\n double retValue = one.AUDtoNewCurrency(4, one.exchangeRate, finalSum);\n assertEquals(144.66, retValue, 0.0);\n\n }", "public static double avrund2(double des) {\n\t\treturn (int)(des*100 + 0.5)/100.0;\n\t}", "public String getDollarString()\n\t{\n\t\treturn String.format(\"%01.2f\", (float)CurrentValue/100.0f);\n\t}", "public static void main( String[] args ) {\n System.out.println(NumUtil.format4DecimalPoint(1));\n System.out.println(NumUtil.format4DecimalPoint(1.1));\n System.out.println(NumUtil.format4DecimalPoint(1.12));\n System.out.println(NumUtil.format4DecimalPoint(1.123));\n System.out.println(NumUtil.format4DecimalPoint(1.1234));\n System.out.println(NumUtil.format4DecimalPoint(1.12345));\n System.out.println(NumUtil.format4DecimalPoint(1.123456));\n System.out.println(NumUtil.format4DecimalPoint(12.123456));\n \n double a = 0.09d;\n double b = 0.01d;\n double c = 0.1d;\n \n System.out.println( ( a + b ) );\n System.out.println( c - ( a + b ) == 0 );\n \n //Currency Testing\n Locale canadianEnglish = new Locale( \"en\",\"CA\" );\n NumberFormat currencyFormat = NumberFormat.getCurrencyInstance( Locale.CANADA_FRENCH );\n currencyFormat.setCurrency( Currency.getInstance( Locale.CANADA ) );\n currencyFormat.setMinimumFractionDigits( 2 );\n currencyFormat.setMaximumFractionDigits( 4 );\n double amt = -1.21234;\n System.out.println(amt + \" formats as \" + currencyFormat.format( amt ));\n System.out.println( formatPercent( 2.34d ));\n System.out.println( formatPercent( 0.54d ));\n System.out.println( formatPercent( 99.99999d ));\n System.out.println( formatPercent( 99d ));\n System.out.println( formatPercent( 100d ));\n System.out.println( formatPercent( 150d ));\n System.out.println( formatPercent( 150.1d ));\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\");\n \n System.out.println(\"formatNoDecimalPoint\");\n \n System.out.println(\"0.000 -> \"+NumUtil.formatNoDecimalPoint(0.000));\n System.out.println(\"0.0005 -> \"+NumUtil.formatNoDecimalPoint(0.0005));\n\tSystem.out.println(\"0.05 -> \"+NumUtil.formatNoDecimalPoint(0.05));\n\tSystem.out.println(\"0.5 -> \"+NumUtil.formatNoDecimalPoint(0.5));\n\tSystem.out.println(\"1 -> \"+NumUtil.formatNoDecimalPoint(1));\n\tSystem.out.println(\"1.1 -> \"+NumUtil.formatNoDecimalPoint(1.1));\n\tSystem.out.println(\"1.12 -> \"+NumUtil.formatNoDecimalPoint(1.12));\n\tSystem.out.println(\"1.123 -> \"+NumUtil.formatNoDecimalPoint(1.123));\n\tSystem.out.println(\"1.1234 -> \"+NumUtil.formatNoDecimalPoint(1.1234));\n\tSystem.out.println(\"1.12345 -> \"+NumUtil.formatNoDecimalPoint(1.12345));\n\tSystem.out.println(\"1.123456 -> \"+NumUtil.formatNoDecimalPoint(1.123456));\n\tSystem.out.println(\"12.12345699999999999999999999999999999999 -> \"+NumUtil.formatNoDecimalPoint(12.12345699999999999999999999999999999999));\n\tSystem.out.println(\"566762.42 -> \"+formatNoDecimalPoint(566762.42));\n\tSystem.out.println(\"56676242.00 -> \"+formatNoDecimalPoint(56676242.00));\n\tSystem.out.println(\"2342342342.00 -> \"+formatNoDecimalPoint(2342342342.00));\n\tSystem.out.println(\"12345678901234.12345678901234567890 -> \"+formatNoDecimalPoint(12345678901234.12345678901234567890));\n \n\t\n\tSystem.out.println(\"NumUtil.format2DecimalPoint\");\n \n\tSystem.out.println(\"0.0005 -> \"+NumUtil.format2DecimalPoint(0.0005));\n\tSystem.out.println(\"0.05 -> \"+NumUtil.format2DecimalPoint(0.05));\n\tSystem.out.println(\"0.5 -> \"+NumUtil.format2DecimalPoint(0.5));\n\tSystem.out.println(\"1 -> \"+NumUtil.format2DecimalPoint(1));\n\tSystem.out.println(\"1.1 -> \"+NumUtil.format2DecimalPoint(1.1));\n\tSystem.out.println(\"1.12 -> \"+NumUtil.format2DecimalPoint(1.12));\n\tSystem.out.println(\"1.123 -> \"+NumUtil.format2DecimalPoint(1.123));\n\tSystem.out.println(\"1.1234 -> \"+NumUtil.format2DecimalPoint(1.1234));\n\tSystem.out.println(\"1.12345 -> \"+NumUtil.format2DecimalPoint(1.12345));\n\tSystem.out.println(\"1.123456 -> \"+NumUtil.format2DecimalPoint(1.123456));\n\tSystem.out.println(\"12.12345699999999999999999999999999999999 -> \"+NumUtil.format2DecimalPoint(12.12345699999999999999999999999999999999));\n\tSystem.out.println(\"566762.42 -> \"+format2DecimalPoint(566762.42));\n\tSystem.out.println(\"56676242.00 -> \"+format2DecimalPoint(56676242.00));\n\tSystem.out.println(\"2342342342.00 -> \"+format2DecimalPoint(2342342342.00));\n\tSystem.out.println(\"12345678901234.12345678901234567890 -> \"+format2DecimalPoint(12345678901234.12345678901234567890));\n\t\n\t\n \n////////////\n\t\nSystem.out.println(\"formatNoDecimalPoint\");\n \n System.out.println(\"0.000 -> \"+NumUtil.formatNoDecimalPoint(0.00));\n System.out.println(\"-0.0005 -> \"+NumUtil.formatNoDecimalPoint(-0.0005));\n\tSystem.out.println(\"-0.05 -> \"+NumUtil.formatNoDecimalPoint(-0.05));\n\tSystem.out.println(\"-0.5 -> \"+NumUtil.formatNoDecimalPoint(-0.5));\n\tSystem.out.println(\"-1 -> \"+NumUtil.formatNoDecimalPoint(-1));\n\tSystem.out.println(\"-1.1 -> \"+NumUtil.formatNoDecimalPoint(-1.1));\n\tSystem.out.println(\"-1.12 -> \"+NumUtil.formatNoDecimalPoint(-1.12));\n\tSystem.out.println(\"-1.123 -> \"+NumUtil.formatNoDecimalPoint(-1.123));\n\tSystem.out.println(\"-1.1234 -> \"+NumUtil.formatNoDecimalPoint(-1.1234));\n\tSystem.out.println(\"-1.12345 -> \"+NumUtil.formatNoDecimalPoint(-1.12345));\n\tSystem.out.println(\"-1.123456 -> \"+NumUtil.formatNoDecimalPoint(-1.123456));\n\tSystem.out.println(\"-12.12345699999999999999999999999999999999 -> \"+NumUtil.formatNoDecimalPoint(-12.12345699999999999999999999999999999999));\n\tSystem.out.println(\"-566762.42 -> \"+formatNoDecimalPoint(-566762.42));\n\tSystem.out.println(\"-56676242.00 -> \"+formatNoDecimalPoint(-56676242.00));\n\tSystem.out.println(\"-2342342342.00 -> \"+formatNoDecimalPoint(-2342342342.00));\n\tSystem.out.println(\"-12345678901234.12345678901234567890 -> \"+formatNoDecimalPoint(-12345678901234.12345678901234567890));\n \n\t\n\tSystem.out.println(\"NumUtil.format2DecimalPoint\");\n \n\tSystem.out.println(\"0.000 -> \"+NumUtil.format2DecimalPoint(0.00));\n\tSystem.out.println(\"-0.0005 -> \"+NumUtil.format2DecimalPoint(-0.0005));\n\tSystem.out.println(\"-0.05 -> \"+NumUtil.format2DecimalPoint(-0.05));\n\tSystem.out.println(\"-0.5 -> \"+NumUtil.format2DecimalPoint(-0.5));\n\tSystem.out.println(\"-1 -> \"+NumUtil.format2DecimalPoint(-1));\n\tSystem.out.println(\"-1.1 -> \"+NumUtil.format2DecimalPoint(-1.1));\n\tSystem.out.println(\"-1.12 -> \"+NumUtil.format2DecimalPoint(-1.12));\n\tSystem.out.println(\"-1.123 -> \"+NumUtil.format2DecimalPoint(-1.123));\n\tSystem.out.println(\"-1.1234 -> \"+NumUtil.format2DecimalPoint(-1.1234));\n\tSystem.out.println(\"-1.12345 -> \"+NumUtil.format2DecimalPoint(-1.12345));\n\tSystem.out.println(\"-1.123456 -> \"+NumUtil.format2DecimalPoint(-1.123456));\n\tSystem.out.println(\"-12.12345699999999999999999999999999999999 -> \"+NumUtil.format2DecimalPoint(-12.12345699999999999999999999999999999999));\n\tSystem.out.println(\"-566762.42 -> \"+format2DecimalPoint(-566762.42));\n\tSystem.out.println(\"-56676242.00 -> \"+format2DecimalPoint(-56676242.00));\n\tSystem.out.println(\"-2342342342.00 -> \"+format2DecimalPoint(-2342342342.00));\n\tSystem.out.println(\"-12345678901234.12345678901234567890 -> \"+format2DecimalPoint(-12345678901234.12345678901234567890));\n\t\n\t\n\t\n\tSystem.out.println(\"8865450.54 -> \"+NumUtil.format2DecimalPoint(8865450.54));\n\t\n\t\n\t\n\tSystem.out.println( ratio( 7, 14 ) );\n\t\n System.out.println( ratio( 10293, 1234 ) );\n\t\n System.out.println( ratio( 50 * 23, 20 * 23 ) );\n }", "@Test\n public void testGetWordsAsDouble() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(2523.04);\n String expResult = \"Two thousand five hundred twenty-three and 04/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result); \n }", "static double convert(double in) {\n return (in * 0.254);\n }", "public double getUSValue(float toUSDollarRatio);", "private String convertNanoToLocalCurrency(String amount) {\n if (amount.equals(\"0.\")) {\n return amount;\n } else {\n return localCurrencyPrice != null ?\n formatLocalCurrency(new BigDecimal(sanitizeNoCommas(amount))\n .multiply(localCurrencyPrice, MathContext.DECIMAL64)) : \"0.0\";\n }\n }", "public USMoney(int startDollars, int startCents)\r\n {\r\n dollars = startDollars;\r\n cents = startCents;\r\n \r\n if (startCents < 0 || startCents > 99)\r\n {\r\n dollars += (startCents / 100); \r\n cents = (startCents % 100);\r\n }\r\n }", "public Decimal toDecimalForm() {\n return amount.movePoint(-2);\n }", "private String formato(String cadena){\n cadena = cadena.replaceAll(\" \",\"0\");\n return cadena;\n }", "private String doubleToDecimalString(double toFormat){\r\n\r\n String d = \"\";\r\n DecimalFormat df = new DecimalFormat(\"0.00\");\r\n d = df.format(toFormat);\r\n\r\n return d;\r\n }", "public static String formatMoney(BigDecimal value) {\n if (value != null) {\n return DEFAULT_DECIMAL_FORMAT.format(value);\n }\n return \"R$ -\";\n }", "public static String formatR(double number) {\r\n NumberFormat numberFormatter = NumberFormat.getNumberInstance();\r\n numberFormatter.setMinimumFractionDigits(2);\r\n return numberFormatter.format(Math2.round(number));\r\n //return Math2.round(number); \r\n }", "public String KaToDa(double ka) {\n // da = 10000*ka\n double da = 10000*ka;\n return check_after_decimal_point(da);\n }", "public String conversion() {\n try {\n transactionFailure = null;\n amountConverted = converterFacade.conversion(fromCurrencyCode,\n toCurrencyCode, amountToConvert);\n } catch (Exception e) {\n handleException(e);\n }\n return jsf22Bugfix();\n }", "public String HaToDa(double ha) {\n // da = 1000*ha\n double da = ha*1000;\n return check_after_decimal_point(da);\n }", "private static Number convert(Number value, UnitConverter cvtr,\r\n \t\t\tMathContext ctx) {\r\n \t\tif (cvtr instanceof RationalConverter) { // Try converting through Field\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t// methods.\r\n \t\t\tRationalConverter rCvtr = (RationalConverter) cvtr;\r\n \t\t\tBigInteger dividend = rCvtr.getDividend();\r\n \t\t\tBigInteger divisor = rCvtr.getDivisor();\r\n \t\t\tif (dividend.abs().compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0)\r\n \t\t\t\tthrow new ArithmeticException(\"Multiplier overflow\"); //$NON-NLS-1$\r\n \t\t\tif (divisor.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0)\r\n \t\t\t\tthrow new ArithmeticException(\"Divisor overflow\"); //$NON-NLS-1$\r\n\t\t\tif (value instanceof BigInteger || value instanceof Long || value instanceof Integer) {\r\n\t\t\t\treturn (value.longValue() * dividend.longValue())\r\n \t\t\t\t\t/ (divisor.longValue());\r\n\t\t\t} else {\r\n\t\t\t\treturn (value.doubleValue() * dividend.doubleValue())\r\n\t\t\t\t\t/ (divisor.doubleValue());\r\n\t\t\t\t// TODO use actual BigDecimal methods for BigDecimal\r\n\t\t\t}\r\n \t\t} else if (cvtr instanceof AbstractConverter.Compound\r\n \t\t\t\t&& cvtr.isLinear()) { // Do it in two parts.\r\n \t\t\tAbstractConverter.Compound compound = (AbstractConverter.Compound) cvtr;\r\n \t\t\tNumber firstConversion = convert(value, compound.getRight(), ctx);\r\n \t\t\tNumber secondConversion = convert(firstConversion,\r\n \t\t\t\t\tcompound.getLeft(), ctx);\r\n \t\t\treturn secondConversion;\r\n \t\t} else { // Try using BigDecimal as intermediate.\r\n \t\t\tBigDecimal decimalValue = BigDecimal.valueOf(value.doubleValue());\r\n \t\t\tBigDecimal newValue = cvtr.convert(decimalValue, ctx);\r\n \t\t\treturn newValue;\r\n \t\t\t// if (((FieldNumber)value) instanceof Decimal)\r\n \t\t\t// return (N)((FieldNumber)Decimal.valueOf(newValue));\r\n \t\t\t// if (((FieldNumber)value) instanceof Float64)\r\n \t\t\t// return (N)((FieldNumber)Float64.valueOf(newValue.doubleValue()));\r\n \t\t\t// throw new ArithmeticException(\r\n \t\t\t// \"Generic amount conversion not implemented for amount of type \" +\r\n \t\t\t// value.getClass());\r\n \t\t}\r\n \t}", "public static String formatCurrency(double amt) {\n\t\tNumberFormat formatter = NumberFormat.getCurrencyInstance();\n\t\treturn formatter.format(amt);\n\t}", "private String getFormattedAmount(final BigDecimal amount) {\n final java.text.DecimalFormat decFormat = new java.text.DecimalFormat(\"0.00\");\n return \"$\" + decFormat.format(amount);\n }", "public String DaaToDa(double daa) {\n // da = 100*daa\n double da = daa*100;\n return check_after_decimal_point(da);\n }", "private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }", "public static String getDisplayCurrencyFormatTwoDecimalFixedAccounting(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###.#\");\n\t\tformat.setMaximumFractionDigits(2);\n\t\tformat.setMinimumFractionDigits(2);\n\t\t\n\t\tif (val < 0){\n\t\t\treturn \"(\"+ format.format(val * -1) + \")\";\t\n\t\t}else{\n\t\t\treturn format.format(val);\t\n\t\t}\n\n\t}", "private static String formatPRECIO(String var1)\r\n\t{\r\n\t\tString temp = var1.replace(\".\", \"\");\r\n\t\t\r\n\t\treturn( String.format(\"%09d\", Integer.parseInt(temp)) );\r\n\t}", "public String CaToDa(double ca) {\n // da = ca/10\n double da = ca/10;\n return check_after_decimal_point(da);\n }", "public String formatRut(Object rut) {\r\n\t\tString value = rut.toString();\r\n\t\tvalue = value.trim();\r\n\t\tjava.util.Locale pais = java.util.Locale.GERMANY;\r\n\t\tif (!value.equalsIgnoreCase(\"&nbsp;\")) {\r\n\t\t\tchar DV = value.charAt(value.length() - 1);\r\n\t\t\tvalue = value.substring(0, value.length() - 1);\r\n\t\t\tjava.text.DecimalFormat dec = (java.text.DecimalFormat) java.text.NumberFormat.getInstance(pais);\r\n\t\t\tjava.lang.Double valor = null;\r\n\t\t\tdec.applyPattern(\"#,##0\");\r\n\t\t\tvalor = java.lang.Double.valueOf(value);\r\n\t\t\treturn dec.format(valor.doubleValue()) + \"-\" + DV;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn \"&nbsp;\";\r\n\t}", "@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }", "private static double rundeBetrag(double betrag){\n \tdouble round = Math.round(betrag*10000); \r\n \t\r\n \tround = round / 10000; \r\n \tround = Math.round(round*1000); \r\n \tround = round / 1000; \r\n \tround = Math.round(round*100); \r\n \r\n \treturn round / 100; \r\n }", "private double parseAmount(String amount){\n return Double.parseDouble(amount.replace(\",\", \".\"));\n }", "private String formatDec(double number) {\n String returnString = \"\";\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.HALF_UP);\n returnString = df.format(number);\n int dotPosition = returnString.lastIndexOf(\".\");\n if (dotPosition == -1) {\n returnString += \".00\";\n } else {\n if (returnString.substring(dotPosition, returnString.length() - 1).length() == 1) {\n returnString += \"0\";\n }\n }\n return returnString;\n }", "public String DaToDaa(double da) {\n // daa = da/100\n double daa = da/100;\n return check_after_decimal_point(daa);\n }", "private String currencyFormat(BigDecimal amount) {\n return NumberFormat.getCurrencyInstance(getLocalCurrency().getLocale()).format(amount);\n }", "public double USDtoBit(double d){\n double n;\n n = d * .001616893;\n return n;\n }", "public double addDec(String s3, String s4) {\n double doub3 = Double.parseDouble(s3);\r\n double doub4 = Double.parseDouble(s4);\r\n return doub3 + doub4;\r\n }", "public void convert_right()\n {\n //If the box is empty then empty the other box\n if (box_right.getText().toString().equals(\"\")) {\n app_input = true;\n box_left.setText(\"\");\n return;\n }\n\n long left_id = spinnerl.getSelectedItemId();\n long right_id = spinnerr.getSelectedItemId();\n\n double amount = Double.parseDouble(box_right.getText().toString());\n if (left_id == right_id)\n {\n app_input = true;\n box_left.setText(Double.toString(amount));\n return;\n }\n\n\n double left_value = left_id == 0 ? 1.0 : rates.rates.get(spinnerl.getSelectedItem().toString());\n double right_value = right_id == 0 ? 1.0 : rates.rates.get(spinnerr.getSelectedItem().toString());\n\n double result = amount / right_value * left_value;\n app_input = true;\n box_left.setText(Double.toString(result));\n }", "public String addDecimal();", "@Test\n public void desiredCurNumberConversionUSD(){\n //standard set up\n CurrencyRates one = new CurrencyRates();\n //checks if 2 corresponds to USD\n assertEquals(\"USD\", one.desiredCurNumberConversion(2));\n }", "public static void main(String[] args) {\n\t\tNumberFormat n=NumberFormat.getCurrencyInstance();//静态方法,返回系统预设的货币形式()\n\t\tString price =n.format(123456.123);\n\t\tSystem.out.println(price);//¥123,456.12,因为是中文操作系统,所有系统预设是中国货币形式\n\t\t//不同货币形式\n\t\tLocale l= Locale.US;//美元,还有其他国家货币就不写了\n\t\tNumberFormat n2=NumberFormat.getCurrencyInstance(l);\n\t\tSystem.out.println(n2.format(123456.12));//$123,456.12\n\t}", "private String externalConversion() {\n int reading = ((record[19] & 255) + ((record[21] & 0x03) << 8));\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = externalConversion.eval(variables);\n\n String x = result + \"\";\n\n if(this.counter){\n x = Integer.parseInt(x) * (60/rate) + \"\";\n }\n\n return x;\n }", "public static Currency convert(Currency cur, String typeTo) throws CurrencyException {\r\n\t\tCurrency.checkType(typeTo);\r\n\t\t\r\n\t\tCurrency result = new Currency(typeTo);\r\n\t\tif(cur.getType().equals(typeTo)) {\r\n\t\t\tthrow new CurrencyException(\"Can not convert currency \" + typeTo + \" to itself.\");\r\n\t\t}\r\n\t\t\r\n\t\treturn result.setValue(cur.getValue() * m_rt.getRate(cur.getType(), typeTo));\r\n\t}", "private String longitudeConversion() {\n int lon = record[5];\n if (lon >= 0) {\n lon = lon & 255;\n }\n lon = (lon << 8) + (record[4] & 255);\n float flon = Float.parseFloat(\"\" + lon + \".\" + (((record[7] & 255) << 8) + (record[6] & 255)));\n int degs = (int) flon / 100;\n float min = flon - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "public String converter(int n){\r\n str = \"\";\r\n condition = true;\r\n while(condition){\r\n if(n >= 1 && n < 100){\r\n str = str + oneToHundred(n);\r\n condition = false; \r\n }else if (n >= 100 && n < 1000){\r\n str = str + oneToHundred(n / 100);\r\n str = str + \"Hundred \";\r\n n = n % 100;\r\n condition = true; \r\n }\r\n \r\n }\r\n return str;\r\n \r\n }", "public static String formatCurrency(String value) {\n if (!initialized) {\n throw new RuntimeException(\"Currency converter not initialized\");\n }\n if (!TextUtils.isEmpty(value)) {\n try {\n NumberFormat format = NumberFormat.getInstance(apiLocale);\n Number number = format.parse(value);\n Double valueDouble = number.doubleValue();\n return formatCurrencyPattern(formatter.format(valueDouble));\n } catch (NumberFormatException e) {\n //In case of bad formatting, return the parsed value with no currency sign\n } catch (ParseException ignored) {\n }\n }\n return value;\n }" ]
[ "0.6806146", "0.6790411", "0.64881283", "0.6401302", "0.6300394", "0.6243181", "0.5981303", "0.5934146", "0.57811356", "0.5767324", "0.5746366", "0.5709722", "0.57024795", "0.5674131", "0.5657017", "0.5650541", "0.5638257", "0.56381226", "0.56292504", "0.55908895", "0.55020976", "0.5415312", "0.54101795", "0.5406667", "0.5400937", "0.53779775", "0.5323722", "0.53001827", "0.52984357", "0.524587", "0.5245557", "0.5209876", "0.51804835", "0.51795053", "0.517895", "0.51458126", "0.5145004", "0.5140389", "0.51318914", "0.5103125", "0.5089638", "0.5087007", "0.5082058", "0.5073501", "0.50724477", "0.5057106", "0.5044895", "0.5043559", "0.5038198", "0.50261605", "0.5023528", "0.5020792", "0.50149435", "0.50130624", "0.5012956", "0.500996", "0.50001043", "0.4990253", "0.4988779", "0.4984938", "0.4984464", "0.4978", "0.49773967", "0.4974103", "0.49711686", "0.49580255", "0.4946233", "0.49379137", "0.4937153", "0.4936295", "0.4930149", "0.4923865", "0.49164125", "0.49142954", "0.49065474", "0.48981783", "0.48948705", "0.48771942", "0.48748356", "0.4874006", "0.48683792", "0.48622096", "0.48587275", "0.48540455", "0.48523754", "0.48439065", "0.48391527", "0.48320782", "0.48219073", "0.48137465", "0.48132962", "0.48112014", "0.47957003", "0.47917026", "0.4790353", "0.47877255", "0.4785443", "0.47705755", "0.47695327", "0.47694212" ]
0.6781259
2
Convert dollar in rubles.
public int dollarToRuble(int value) { return value * DOLLAR; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int rubleToDollar(int value) {\n return value / DOLLAR;\n }", "public String centsToDollar() {\n return partieEntier + \".\" +\n String.format(\"%02d\", partieFractionnaire) + \"$\";\n }", "private void convert()\n {\n if (choiceBox.getValue().equals(\"US-Dollar\"))\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double dollar = currencyConverter.euroToDollar(euro);\n txtYen.setText(DEC2FORMAT.format(dollar));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n else\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double yen = currencyConverter.euroToYen(euro);\n txtYen.setText(DEC2FORMAT.format(yen));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n }", "public double convert(double amount, Unit u);", "private String moneyFormat(String money)\n {\n if(money.indexOf('.') == -1)\n {\n return \"$\" + money;\n }\n else\n {\n String dec = money.substring(money.indexOf('.')+1 , money.length());\n if(dec.length() == 1)\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec + \"0\";\n }\n else\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec.substring(0,2);\n }\n }\n }", "public void conversion(double amount, Currency convertTo) {\n\t\tDollar dollar = new Dollar();\n\t\tif(dollar.getClass().getName() == convertTo.getClass().getName()) {\n\t\t\tSystem.out.println(\"Rupee to Dollar\"+(amount*0.014));\n\t\t}\n\t\tEuro euro= new Euro();\n\t\tif(euro.getClass().getName() == convertTo.getClass().getName()) {\n\t\t\tSystem.out.println(\"Rupee to Euro\"+(amount*0.012));\n\t\t}\n\t}", "public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}", "public String toString() {\n return \"$\"+getDollars() +\".\"+ getCents();\n }", "private String formatUsNumber(Editable text) {\n\t\tStringBuilder cashAmountBuilder = null;\n\t\tString USCurrencyFormat = text.toString();\n//\t\tif (!text.toString().matches(\"^\\\\$(\\\\d{1,3}(\\\\,\\\\d{3})*|(\\\\d+))(\\\\.\\\\d{2})?$\")) { \n\t\t\tString userInput = \"\" + text.toString().replaceAll(\"[^\\\\d]\", \"\");\n\t\t\tcashAmountBuilder = new StringBuilder(userInput);\n\n\t\t\twhile (cashAmountBuilder.length() > 3 && cashAmountBuilder.charAt(0) == '0') {\n\t\t\t\tcashAmountBuilder.deleteCharAt(0);\n\t\t\t}\n\t\t\twhile (cashAmountBuilder.length() < 3) {\n\t\t\t\tcashAmountBuilder.insert(0, '0');\n\t\t\t}\n\t\t\tcashAmountBuilder.insert(cashAmountBuilder.length() - 2, '.');\n\t\t\tUSCurrencyFormat = cashAmountBuilder.toString();\n\t\t\tUSCurrencyFormat = Util.getdoubleUSPriceFormat(Double.parseDouble(USCurrencyFormat));\n\n//\t\t}\n\t\tif(\"0.00\".equals(USCurrencyFormat)){\n\t\t\treturn \"\";\n\t\t}\n\t\tif(!USCurrencyFormat.contains(\"$\"))\n\t\t\treturn \"$\"+USCurrencyFormat;\n\t\treturn USCurrencyFormat;\n\t}", "private String getFormattedPrice(double unformattedPrice) {\n String formattedData = String.format(\"%.02f\", unformattedPrice);\n return formattedData;\n }", "public int rubleToEuro(int value) {\n return value / EURO;\n }", "public String getDollarString()\n\t{\n\t\treturn String.format(\"%01.2f\", (float)CurrentValue/100.0f);\n\t}", "private static String convertToFormat(int number) {\n int cents = number%100;\n number /= 100;\n return \"$\" + String.valueOf(number) + \".\" + String.valueOf(cents);\n }", "public static String formatR(Currency c) {\r\n return c.twoDecFormat();\r\n }", "public int getDollars()\r\n {\r\n return dollars;\r\n }", "public static double converToDolar(double quantity, String currency){\n //MXN(mexicanos) COP(colombiano) ARG\n switch (currency){\n case \"MXN\":\n quantity = quantity*0.052;\n break;\n case \"COP\":\n quantity=quantity*0.00031;\n break;\n case \"ARG\":\n quantity = quantity*0.011;\n break;\n\n }\n return quantity;\n }", "private String getFormattedAmount(final BigDecimal amount) {\n final java.text.DecimalFormat decFormat = new java.text.DecimalFormat(\"0.00\");\n return \"$\" + decFormat.format(amount);\n }", "public int euroToRuble(int value) {\n return value * EURO;\n }", "@Override\n public String toString() {\n String printString;\n if (cents == 0) {\n printString = String.format(\"$%d.00\", dollars);\n } else {\n printString = String.format(\"$%d.%d\", dollars, cents);\n }\n return printString;\n }", "private String convertToCelsius(String string) {\n\t\tDecimalFormat df2 = new DecimalFormat(\".##\");\n\t\treturn df2.format((Double.parseDouble(string)-273.15));\n\t}", "public double redondear(double decimal, int escala) {\n\n BigDecimal bd = new BigDecimal(decimal).setScale(escala, RoundingMode.HALF_UP);\n\n return Double.parseDouble(bd.toString());\n }", "public int getDollars() {\n return dollars;\n }", "static double convert(double in) {\n return (in * 0.254);\n }", "private String convertNanoToLocalCurrency(String amount) {\n if (amount.equals(\"0.\")) {\n return amount;\n } else {\n return localCurrencyPrice != null ?\n formatLocalCurrency(new BigDecimal(sanitizeNoCommas(amount))\n .multiply(localCurrencyPrice, MathContext.DECIMAL64)) : \"0.0\";\n }\n }", "public String setDollarFormat(int pinIndex){\r\n String newPinValue = \"\";\r\n\r\n switch (pinIndex)\r\n {\r\n case 0: newPinValue = \"$\";\r\n break;\r\n case 1: newPinValue = \"$$\";\r\n break;\r\n case 2: newPinValue = \"$$$\";\r\n break;\r\n case 3: newPinValue = \"$$$$\";\r\n break;\r\n case 4: newPinValue = \"$$$$$\";\r\n break;\r\n }\r\n return newPinValue;\r\n }", "public static String formatCurrency( double amt ) {\n return formatCurrency( amt, 2 );\n }", "public static void main(String[] args) {\n int cents = new Scanner(System.in).nextInt();\n double convertedCents = cents*131;\n int wholeDollars = (int) (convertedCents/100);\n int wholeCents = (int) (convertedCents%100);\n\n System.out.printf(\"%03d.%03d\",wholeDollars, wholeCents);\n\n }", "public double getUSValue(float toUSDollarRatio);", "public static String convertToRawCasesAccounting(long units, int UnitsPerSKU) {\n\n\t\t boolean IsNegative=false;\n\t\t if(units<0) {\n\t\t\t units = units*-1;\n\t\t\t IsNegative = true;\n\t\t }\n\t\t \n\t\t String ret = \"\";\n\t\t if (UnitsPerSKU != 0) {\n\t\t\t double RawCasesDouble = (double) units / (double) UnitsPerSKU;\n\t\t\t String RawCasesString = RawCasesDouble + \"\";\n\t\t\t if (RawCasesString.indexOf(\".\") != -1) {\n\t\t\t\t RawCasesString = RawCasesString.substring(0,\n\t\t\t\t\t\t RawCasesString.indexOf(\".\"));\n\t\t\t }\n\t\t\t long RawCases = Utilities.parseLong(RawCasesString);\n\n\t\t\t long RawCasesUnits = RawCases * UnitsPerSKU;\n\n\t\t\t long bottles = units - RawCasesUnits;\n\n\t\t\t if (bottles == 0) {\n\t\t\t\t ret = getDisplayCurrencyFormat(RawCases) + \"\";\n\t\t\t } else {\n\t\t\t\t ret = getDisplayCurrencyFormat(RawCases) + \"~\" + bottles;\n\t\t\t }\n\t\t }\n\t\t \n\t\t if(IsNegative){\n\t\t\t ret = \"(\"+ret+\")\";\n\t\t }\n\t\t \treturn ret;\n\t\t }", "public String CaToDa(double ca) {\n // da = ca/10\n double da = ca/10;\n return check_after_decimal_point(da);\n }", "protected double toPounds(double weightOunces){\n\t\treturn 0.0625 * weightOunces;\n\t}", "private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}", "public static String getDisplayCurrencyFormatTwoDecimalFixedAccountingDr(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###.#\");\n\t\tformat.setMaximumFractionDigits(2);\n\t\tformat.setMinimumFractionDigits(2);\n\t\t\n\t\tif (val < 0){\n\t\t\treturn format.format(val * -1) + \" Cr\";\t\n\t\t}else{\n\t\t\treturn format.format(val) + \" Dr\";\t\n\t\t}\n\n\t}", "public static String cashInWords (Double cash) {\n String s = \"\";\n int cashInCents = (BigDecimal.valueOf(cash).movePointRight(2)).intValue();\n int hrivna = cash.intValue();\n int cop = cashInCents%100;\n if (hrivna/1000000>=1) s+=ch999(hrivna / 1000000, \"million \");\n if (hrivna%1000000/1000>=1) s+=ch999(hrivna % 1000000 / 1000, \"thousand \");\n if (hrivna%1000000%1000>=1) s+=ch999(hrivna % 1000000 % 1000, \"\");\n if (hrivna>0) s+=\"hryvnas \";\n if (hrivna>0&&cop>0) s+=\"and \";\n if (cop>0) s+=ch999(cop, \"cop.\");\n\n return s;\n }", "public String CurrencyFormatter(double val) {\n\n\n NumberFormat nf = NumberFormat.getCurrencyInstance();\n DecimalFormatSymbols decimalFormatSymbols = ((DecimalFormat) nf).getDecimalFormatSymbols();\n decimalFormatSymbols.setCurrencySymbol(\"\");\n ((DecimalFormat) nf).setDecimalFormatSymbols(decimalFormatSymbols);\n String ft=nf.format(val).trim();\n return ft;\n\n }", "private static String translateReplaceString(String replaceStr) {\n int pos = 0;\n while (0 <= (pos = replaceStr.indexOf(\"\\\\\", pos))) {\n if (replaceStr.charAt(pos + 1) == '$') {\n replaceStr = replaceStr.substring(0, pos) + \"$\" + replaceStr.substring(++pos);\n } else {\n replaceStr = replaceStr.substring(0, pos) + replaceStr.substring(++pos);\n }\n }\n return replaceStr;\n }", "public String convertAmount(long num) {\n String sign = \"\";\n if (num == 0){\n return \"zero\"; \n }\n else if (num < 0) {\n // if number negative, making it as positive number and saving the sign in the variable\n num = -num;\n sign = \"Negative\";\n }\n \n String inWords = \"\";\n int place = 0;\n \n // do this for every set of 3 digits from right till your left with northing\n do {\n // get the right most 3 numbers \n long n = num % 1000;\n // check if it not 0\n if (n != 0){\n // call the changeUptoThousand for the 3 digit number\n String s = changeUptoThousand((int) n);\n // add the appropriate word from thousand \n inWords = s + specialdigitNames[place] + inWords;\n }\n place++;\n //change the number leaving the right most 3 digits whic are processed above\n num /= 1000;\n } \n while (num > 0);\n // add the sign and the number\n return (sign + inWords).trim();\n }", "private static String curencyFormatterString(Float value) {\n\t\treturn NumberFormat.getCurrencyInstance().format(value).replace(\"$\", \"\");\n\t}", "private String convertFahrenheitToCelsius(double f) {\n double c = (f - 32.0) * (5.0 / 9.0);\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(c);\n }", "String format(double balance);", "public static String formatDoubleAmount(double amount){\n NumberFormat formatter = new DecimalFormat(\"$#,###,##0.00;($#,###,##0.00)\");\n return formatter.format(amount); \n }", "public String getModifiedNumber(BigDecimal bd) {\r\n String str = \"\";\r\n String temp = \"\";\r\n str = bd.toString();\r\n double num = Double.parseDouble(str);\r\n double doubleVal;\r\n\r\n NumberFormat nFormat = NumberFormat.getInstance(Locale.US);\r\n nFormat.setMaximumFractionDigits(1);\r\n nFormat.setMinimumFractionDigits(1);\r\n\r\n /*\r\n * if ((num / getPowerOfTen(12)) > 0.99) // check for Trillion {\r\n * doubleVal = (num / getPowerOfTen(12)); temp =\r\n * String.valueOf(truncate(doubleVal)) + \"Tn\"; } else if ((num /\r\n * getPowerOfTen(9)) > 0.99) // check for Billion { doubleVal = (num /\r\n * getPowerOfTen(9)); temp = String.valueOf(truncate(doubleVal)) + \"Bn\";\r\n * } else\r\n */\r\n if ((num / getPowerOfTen(6)) > 0.99) // check for Million\r\n {\r\n doubleVal = (num / getPowerOfTen(6));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"M\";\r\n temp= nFormat.format(doubleVal) + \"M\";\r\n } else if ((num / getPowerOfTen(3)) > 0.99) // check for K\r\n {\r\n doubleVal = (num / getPowerOfTen(3));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"K\";\r\n temp =nFormat.format(doubleVal) + \"K\";\r\n } else {\r\n //temp = String.valueOf(num);\r\n temp = nFormat.format(num);\r\n }\r\n return temp;\r\n }", "public FormatInteger dollarFill(){\n fillCharacter = DOLLAR_CHAR;\n return this;\n }", "public void convert(View v){\n EditText etUSD = findViewById(R.id.etUSD);\n EditText etLKR = findViewById(R.id.etLKR);\n\n //Get text From usd TextField\n String text= etUSD.getText().toString();\n //Convert Text To Double\n double usd = Double.parseDouble(text);\n\n // Convert to LKR\n double lkr = usd*195;\n //convert double to string\n String lkrText = String.valueOf(lkr);\n\n //Set lkrTest Value to Test Field\n etLKR.setText(lkrText);\n\n\n\n }", "private static int convertToCents(String amount) {\n\n /* First check if the format of the amount is correct */\n if(!validAmount(amount)) {\n return -1;\n }\n\n /* Look for the dot (if there is one), to separate cents from dollars */\n int dotIdx = amount.indexOf('.');\n\n /* Calculate the number of cents */\n int numCents = 0;\n if(dotIdx != -1){\n for(int i = dotIdx+1; i < Math.min(dotIdx+3, amount.length()); i++){\n numCents = numCents*10 + amount.charAt(i) - '0';\n }\n if(numCents < 10){\n numCents *= 10;\n }\n }\n\n /* Calculate the number of dollars */\n if(dotIdx == -1){\n dotIdx = amount.length();\n }\n int numDollars = 0;\n for(int i = 0; i < dotIdx; i++){\n if(Character.isDigit(amount.charAt(i))){\n numDollars = numDollars*10 + amount.charAt(i) - '0';\n }\n }\n\n if (numDollars >= 100000) { return -2; }\n\n return numDollars*100 + numCents;\n }", "private String externalConversion() {\n int reading = ((record[19] & 255) + ((record[21] & 0x03) << 8));\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = externalConversion.eval(variables);\n\n String x = result + \"\";\n\n if(this.counter){\n x = Integer.parseInt(x) * (60/rate) + \"\";\n }\n\n return x;\n }", "@Test\r\n\tpublic void test2() {\n\t\tDouble actual = conv.dollarToRupees(10);\r\n\t\tassertNotNull(actual);\r\n\t}", "private double usdToBitcoin(double usd) {\n return usd/(usd + 120);\n }", "private String convertLocalCurrencyToNano(String amount) {\n BigDecimal amountBigDecimal;\n try {\n amountBigDecimal = new BigDecimal(sanitizeNoCommas(amount));\n } catch(NumberFormatException e) {\n return amount;\n }\n\n if (amount.length() == 0 || amountBigDecimal.compareTo(new BigDecimal(0)) == 0) {\n return amount;\n } else {\n try {\n DecimalFormat df = (DecimalFormat) NumberFormat.getInstance(getLocalCurrency().getLocale());\n df.setParseBigDecimal(true);\n BigDecimal bd = (BigDecimal) df.parseObject(sanitize(amount));\n return localCurrencyPrice != null ? bd\n .divide(localCurrencyPrice, 10, BigDecimal.ROUND_HALF_UP).toString() : \"0.0\";\n } catch (ParseException e) {\n ExceptionHandler.handle(e);\n }\n return \"\";\n }\n }", "public String DaToCa(double da) {\n // ca = 10*da\n double ca = da*10;\n return check_after_decimal_point(ca);\n }", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "private static String getTotal(ArrayList<CatalogItem> items) {\n double dTotal = 0.0;\n for (CatalogItem item : items) {\n dTotal += item.getPrice();\n }\n\n dTotal += dTotal*0.0825;\n return \"$\" + df.format(dTotal);\n }", "public String formatRut(Object rut) {\r\n\t\tString value = rut.toString();\r\n\t\tvalue = value.trim();\r\n\t\tjava.util.Locale pais = java.util.Locale.GERMANY;\r\n\t\tif (!value.equalsIgnoreCase(\"&nbsp;\")) {\r\n\t\t\tchar DV = value.charAt(value.length() - 1);\r\n\t\t\tvalue = value.substring(0, value.length() - 1);\r\n\t\t\tjava.text.DecimalFormat dec = (java.text.DecimalFormat) java.text.NumberFormat.getInstance(pais);\r\n\t\t\tjava.lang.Double valor = null;\r\n\t\t\tdec.applyPattern(\"#,##0\");\r\n\t\t\tvalor = java.lang.Double.valueOf(value);\r\n\t\t\treturn dec.format(valor.doubleValue()) + \"-\" + DV;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn \"&nbsp;\";\r\n\t}", "private String formato(String cadena){\n cadena = cadena.replaceAll(\" \",\"0\");\n return cadena;\n }", "Uom getCurrencyUom();", "@Test\r\n\tpublic void test() {\n\t\tdouble actual = conv.dollarToRupees(25);\r\n\t\tassertEquals(2500.0,actual,0);\r\n\t\t//assertEquals(expected,actual,precision[delta])\r\n\t\t\r\n\t}", "public static String formatCurrency(double amt) {\n\t\tNumberFormat formatter = NumberFormat.getCurrencyInstance();\n\t\treturn formatter.format(amt);\n\t}", "private static String format2(double d) {\n return new DecimalFormat(\"#.00\").format(d);\n }", "public static String getDisplayCurrencyFormatTwoDecimalFixedAccounting(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###.#\");\n\t\tformat.setMaximumFractionDigits(2);\n\t\tformat.setMinimumFractionDigits(2);\n\t\t\n\t\tif (val < 0){\n\t\t\treturn \"(\"+ format.format(val * -1) + \")\";\t\n\t\t}else{\n\t\t\treturn format.format(val);\t\n\t\t}\n\n\t}", "public String HaToDa(double ha) {\n // da = 1000*ha\n double da = ha*1000;\n return check_after_decimal_point(da);\n }", "private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }", "public String getPriceString() {\n\t\treturn Utils.formatCurrencyNumber(price);//Double.toString(price.doubleValue()); //price.toString();\n\t}", "public String CaToDaa(double ca) {\n // daa = ca/1000\n double daa = ca/1000;\n return check_after_decimal_point(daa);\n }", "public static String getDisplayCurrencyFormatRoundedAccounting(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###\");\n\t\tformat.setMaximumFractionDigits(0);\n\t\tformat.setMinimumFractionDigits(0);\n\t\t\n\t\tif (val < 0){\n\t\t\treturn \"(\"+ format.format(val * -1) + \")\";\t\n\t\t}else{\n\t\t\treturn format.format(val);\t\n\t\t}\n\n\t}", "double getMoney();", "public final void mDOLLAR() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = DOLLAR;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:422:7: ( '$' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:422:16: '$'\n\t\t\t{\n\t\t\tmatch('$'); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public static String toDollarsAndCents(int cents){\n \n NumberFormat currencyFormatter = \n NumberFormat.getCurrencyInstance();\n return currencyFormatter.format(cents/100.0);\n }", "private String doubleToDecimalString(double toFormat){\r\n\r\n String d = \"\";\r\n DecimalFormat df = new DecimalFormat(\"0.00\");\r\n d = df.format(toFormat);\r\n\r\n return d;\r\n }", "public static double avrund2(double des) {\n\t\treturn (int)(des*100 + 0.5)/100.0;\n\t}", "public String AToCa(double a) {\n // ca = 100*a\n double ca = a*100;\n return check_after_decimal_point(ca);\n }", "@Test\n public void testGetWordsAsDouble() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(2523.04);\n String expResult = \"Two thousand five hundred twenty-three and 04/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result); \n }", "public String CaToA(double ca) {\n // a = ca/100\n double a = ca/100;\n return check_after_decimal_point(a);\n }", "@Test\n public void FinalConvertJPYStandard(){\n CurrencyRates one = new CurrencyRates();\n\n //Initialise list of sums\n ArrayList<Double> sumList1 = new ArrayList<Double>();\n sumList1.add(10.50);\n sumList1.add(11.50);\n sumList1.add(80.00);\n sumList1.add(10.12);\n sumList1.add(50.60);\n sumList1.add(70.60);\n\n double finalSum = one.finalSumAUD(sumList1);\n\n //converts AUD to JPY\n double retValue = one.AUDtoNewCurrency(5, one.exchangeRate, finalSum);\n assertEquals(17205.02, retValue, 0.0);\n\n }", "private static String formatPRECIO(String var1)\r\n\t{\r\n\t\tString temp = var1.replace(\".\", \"\");\r\n\t\t\r\n\t\treturn( String.format(\"%09d\", Integer.parseInt(temp)) );\r\n\t}", "public String HaToCa(double ha) {\n // ca = 10000*ha\n double ca = ha*10000;\n return check_after_decimal_point(ca);\n }", "private static double rundeBetrag(double betrag){\n \tdouble round = Math.round(betrag*10000); \r\n \t\r\n \tround = round / 10000; \r\n \tround = Math.round(round*1000); \r\n \tround = round / 1000; \r\n \tround = Math.round(round*100); \r\n \r\n \treturn round / 100; \r\n }", "public final void mDOLLAR() throws RecognitionException {\n try {\n int _type = DOLLAR;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:37:8: ( '$' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:37:10: '$'\n {\n match('$'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public int getAsCents(){\n return (dollars*100 + cents);\n }", "private String currencyFormat(BigDecimal amount) {\n return NumberFormat.getCurrencyInstance(getLocalCurrency().getLocale()).format(amount);\n }", "public static String getFormattedAmount(double amount) {\n DecimalFormat df = new DecimalFormat(\".00\");\n String formattedAmount = df.format(amount).replaceAll(\",\", \"\")\n .replaceAll(\"\\\\.\", \"\");\n return formattedAmount;\n }", "public String toStringAlt() {\n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"$\");\n\t\tFormatter f = new Formatter(sb);\n\t\tf.format(\"%.2f\", cost);\n\t\tf.close();\n\t\tsb.append(\" \")\n\t\t .append(make).append(\" \")\n\t\t .append(model).append(\" for day \")\n\t\t .append(startDay.getDay())\n\t\t .append(\" to day \")\n\t\t .append(endDay.getDay());\n\t\treturn sb.toString();\n\t\t\n\t}", "void setUnitValueAsDollar(double unitValueAsDollar)\n\t{\n\t\tthis.unitValueAsDollar = unitValueAsDollar;\n\t}", "public String RevenueDerniere(){\n List<Ticket> tickets=ticketRepository.findAll();\n double revenueJours=0,revenueSemaine=0,revenuemois=0;\n for (Ticket ticket:tickets){\n if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(30)))){\n revenuemois=revenuemois+ticket.getAddition();\n }\n if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(7)))){\n revenueSemaine=revenueSemaine+ticket.getAddition();\n }\n if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(1)))){\n revenueJours=revenueJours+ticket.getAddition();\n }\n }\n\n return \"Revenue moins derniere :\"+revenuemois+\"\\n Revenue semaine derniere :\"+revenueSemaine+\"\\n \"\n\t\t+ \"Revenue jour derniere :\"+revenueJours;\n }", "public String KaToDaa(double ka) {\n // dal = 100*ka\n double daa = 100*ka;\n return check_after_decimal_point(daa);\n }", "private Double conversionElectric(Double quant) {\n return quant;\n }", "@Override\n public String toString() {\n return \"\" + currency + amount;\n }", "public String getSalary() {\r\n\t\t//the base salary starts at $40,000\r\n\t\tint baseSalary = 40000;\r\n\t\t//The slary increases each year by $5,000 based on the number of years doctor practices\r\n\t\tint salary = baseSalary + (years * 5000);\r\n\t\t//This turns the int into a string with a $ sign in the front\r\n\t\tString salaryString = \"$\" + Integer.toString(salary);\r\n\t\t//The salary is returned\r\n\t\treturn salaryString;\r\n\t}", "public String HaToDaa(double ha) {\n // daa = 10*ha\n double daa = ha*10;\n return check_after_decimal_point(daa);\n }", "public String toString()\n {\n\tint c = coinCounter();\n\treturn \"$\" + c / 100 + \".\" + c % 100;\n }", "@Override\n public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {\n int number = ((Number) obj).intValue();\n return new StringBuffer(\"$\" + number);\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"--- Dollar in Euro Umrechner ---\");\n\t\tSystem.out.print(\"Dollar: \");\n\t\tdouble dollar = Double.parseDouble(scanner.nextLine());\n\t\tSystem.out.print(\"Kurs: \");\n\t\tdouble kurs = Double.parseDouble(scanner.nextLine());\n\t\t\n\t\tdouble euro = dollar * kurs;\n\t\tSystem.out.println(\"Euro: \" + String.format(\"%.2f\", euro));\n\t\t\n\t\tscanner.close();\n\t}", "Uom getOrigCurrencyUom();", "public double calcDollarAmount(double euroAmount, double exchangeRate) {\n return Math.ceil(euroAmount * exchangeRate * 100) / 100;\n\n }", "public static double convertToOunces(double Number, double ounceConversion) {\n\t\treturn Number * ounceConversion;\n\t}", "public static String getDisplayCurrencyFormatTwoDecimalFixed(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###.#\");\n\t\tformat.setMaximumFractionDigits(2);\n\t\tformat.setMinimumFractionDigits(2);\n\t\t\n\t\treturn format.format(val);\n\n\t}", "public static String getDisplayCurrencyFormatSimple(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\"#.##\");\n\t\tformat.setMaximumFractionDigits(2);\n\n\t\treturn format.format(val);\n\n\t}", "public String DaaToCa(double daa) {\n // ca = 1000*daa\n double ca = daa*1000;\n return check_after_decimal_point(ca);\n }", "public String HaToA(double ha) {\n // a = 100*ha\n double a = ha*100;\n return check_after_decimal_point(a);\n }", "public String getBSCA_PrintPrice2();", "private double parseAmount(String amount){\n return Double.parseDouble(amount.replace(\",\", \".\"));\n }" ]
[ "0.6900143", "0.6716664", "0.6142384", "0.60749686", "0.5902025", "0.5834567", "0.58149654", "0.57879585", "0.5667928", "0.56416583", "0.5633359", "0.5632318", "0.56142944", "0.5572902", "0.55571896", "0.554813", "0.551209", "0.55098957", "0.54767483", "0.545568", "0.5430162", "0.53917736", "0.5360098", "0.5337853", "0.5296758", "0.52757704", "0.52255267", "0.5213069", "0.51575613", "0.5154566", "0.5154297", "0.5133107", "0.5131301", "0.512575", "0.51206595", "0.51150364", "0.511413", "0.5091473", "0.5086102", "0.5083479", "0.5082057", "0.50559056", "0.5045101", "0.5035208", "0.5032549", "0.50230896", "0.5020251", "0.50144535", "0.5006133", "0.49947757", "0.49383956", "0.49154052", "0.49065065", "0.49034077", "0.48837027", "0.48801845", "0.48785716", "0.48778367", "0.48671472", "0.4866738", "0.48595023", "0.4856309", "0.4851893", "0.484901", "0.48460138", "0.48316756", "0.48204166", "0.48139963", "0.48093837", "0.48062816", "0.47937524", "0.47861215", "0.47854415", "0.4782173", "0.47779202", "0.47513446", "0.47400597", "0.47384945", "0.47367492", "0.47352725", "0.47296393", "0.47295395", "0.47277328", "0.47236225", "0.47233742", "0.47218284", "0.4720375", "0.47150642", "0.4700775", "0.46996433", "0.46983325", "0.4690822", "0.4689249", "0.46828666", "0.4681449", "0.46787134", "0.4668481", "0.46658537", "0.46628022", "0.46614194" ]
0.72901213
0
Convert dollar in rubles.
public int euroToRuble(int value) { return value * EURO; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int dollarToRuble(int value) {\n return value * DOLLAR;\n }", "public int rubleToDollar(int value) {\n return value / DOLLAR;\n }", "public String centsToDollar() {\n return partieEntier + \".\" +\n String.format(\"%02d\", partieFractionnaire) + \"$\";\n }", "private void convert()\n {\n if (choiceBox.getValue().equals(\"US-Dollar\"))\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double dollar = currencyConverter.euroToDollar(euro);\n txtYen.setText(DEC2FORMAT.format(dollar));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n else\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double yen = currencyConverter.euroToYen(euro);\n txtYen.setText(DEC2FORMAT.format(yen));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n }", "public double convert(double amount, Unit u);", "private String moneyFormat(String money)\n {\n if(money.indexOf('.') == -1)\n {\n return \"$\" + money;\n }\n else\n {\n String dec = money.substring(money.indexOf('.')+1 , money.length());\n if(dec.length() == 1)\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec + \"0\";\n }\n else\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec.substring(0,2);\n }\n }\n }", "public void conversion(double amount, Currency convertTo) {\n\t\tDollar dollar = new Dollar();\n\t\tif(dollar.getClass().getName() == convertTo.getClass().getName()) {\n\t\t\tSystem.out.println(\"Rupee to Dollar\"+(amount*0.014));\n\t\t}\n\t\tEuro euro= new Euro();\n\t\tif(euro.getClass().getName() == convertTo.getClass().getName()) {\n\t\t\tSystem.out.println(\"Rupee to Euro\"+(amount*0.012));\n\t\t}\n\t}", "public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}", "public String toString() {\n return \"$\"+getDollars() +\".\"+ getCents();\n }", "private String formatUsNumber(Editable text) {\n\t\tStringBuilder cashAmountBuilder = null;\n\t\tString USCurrencyFormat = text.toString();\n//\t\tif (!text.toString().matches(\"^\\\\$(\\\\d{1,3}(\\\\,\\\\d{3})*|(\\\\d+))(\\\\.\\\\d{2})?$\")) { \n\t\t\tString userInput = \"\" + text.toString().replaceAll(\"[^\\\\d]\", \"\");\n\t\t\tcashAmountBuilder = new StringBuilder(userInput);\n\n\t\t\twhile (cashAmountBuilder.length() > 3 && cashAmountBuilder.charAt(0) == '0') {\n\t\t\t\tcashAmountBuilder.deleteCharAt(0);\n\t\t\t}\n\t\t\twhile (cashAmountBuilder.length() < 3) {\n\t\t\t\tcashAmountBuilder.insert(0, '0');\n\t\t\t}\n\t\t\tcashAmountBuilder.insert(cashAmountBuilder.length() - 2, '.');\n\t\t\tUSCurrencyFormat = cashAmountBuilder.toString();\n\t\t\tUSCurrencyFormat = Util.getdoubleUSPriceFormat(Double.parseDouble(USCurrencyFormat));\n\n//\t\t}\n\t\tif(\"0.00\".equals(USCurrencyFormat)){\n\t\t\treturn \"\";\n\t\t}\n\t\tif(!USCurrencyFormat.contains(\"$\"))\n\t\t\treturn \"$\"+USCurrencyFormat;\n\t\treturn USCurrencyFormat;\n\t}", "private String getFormattedPrice(double unformattedPrice) {\n String formattedData = String.format(\"%.02f\", unformattedPrice);\n return formattedData;\n }", "public int rubleToEuro(int value) {\n return value / EURO;\n }", "public String getDollarString()\n\t{\n\t\treturn String.format(\"%01.2f\", (float)CurrentValue/100.0f);\n\t}", "private static String convertToFormat(int number) {\n int cents = number%100;\n number /= 100;\n return \"$\" + String.valueOf(number) + \".\" + String.valueOf(cents);\n }", "public static String formatR(Currency c) {\r\n return c.twoDecFormat();\r\n }", "public int getDollars()\r\n {\r\n return dollars;\r\n }", "public static double converToDolar(double quantity, String currency){\n //MXN(mexicanos) COP(colombiano) ARG\n switch (currency){\n case \"MXN\":\n quantity = quantity*0.052;\n break;\n case \"COP\":\n quantity=quantity*0.00031;\n break;\n case \"ARG\":\n quantity = quantity*0.011;\n break;\n\n }\n return quantity;\n }", "private String getFormattedAmount(final BigDecimal amount) {\n final java.text.DecimalFormat decFormat = new java.text.DecimalFormat(\"0.00\");\n return \"$\" + decFormat.format(amount);\n }", "@Override\n public String toString() {\n String printString;\n if (cents == 0) {\n printString = String.format(\"$%d.00\", dollars);\n } else {\n printString = String.format(\"$%d.%d\", dollars, cents);\n }\n return printString;\n }", "private String convertToCelsius(String string) {\n\t\tDecimalFormat df2 = new DecimalFormat(\".##\");\n\t\treturn df2.format((Double.parseDouble(string)-273.15));\n\t}", "public double redondear(double decimal, int escala) {\n\n BigDecimal bd = new BigDecimal(decimal).setScale(escala, RoundingMode.HALF_UP);\n\n return Double.parseDouble(bd.toString());\n }", "public int getDollars() {\n return dollars;\n }", "static double convert(double in) {\n return (in * 0.254);\n }", "private String convertNanoToLocalCurrency(String amount) {\n if (amount.equals(\"0.\")) {\n return amount;\n } else {\n return localCurrencyPrice != null ?\n formatLocalCurrency(new BigDecimal(sanitizeNoCommas(amount))\n .multiply(localCurrencyPrice, MathContext.DECIMAL64)) : \"0.0\";\n }\n }", "public String setDollarFormat(int pinIndex){\r\n String newPinValue = \"\";\r\n\r\n switch (pinIndex)\r\n {\r\n case 0: newPinValue = \"$\";\r\n break;\r\n case 1: newPinValue = \"$$\";\r\n break;\r\n case 2: newPinValue = \"$$$\";\r\n break;\r\n case 3: newPinValue = \"$$$$\";\r\n break;\r\n case 4: newPinValue = \"$$$$$\";\r\n break;\r\n }\r\n return newPinValue;\r\n }", "public static String formatCurrency( double amt ) {\n return formatCurrency( amt, 2 );\n }", "public static void main(String[] args) {\n int cents = new Scanner(System.in).nextInt();\n double convertedCents = cents*131;\n int wholeDollars = (int) (convertedCents/100);\n int wholeCents = (int) (convertedCents%100);\n\n System.out.printf(\"%03d.%03d\",wholeDollars, wholeCents);\n\n }", "public double getUSValue(float toUSDollarRatio);", "public static String convertToRawCasesAccounting(long units, int UnitsPerSKU) {\n\n\t\t boolean IsNegative=false;\n\t\t if(units<0) {\n\t\t\t units = units*-1;\n\t\t\t IsNegative = true;\n\t\t }\n\t\t \n\t\t String ret = \"\";\n\t\t if (UnitsPerSKU != 0) {\n\t\t\t double RawCasesDouble = (double) units / (double) UnitsPerSKU;\n\t\t\t String RawCasesString = RawCasesDouble + \"\";\n\t\t\t if (RawCasesString.indexOf(\".\") != -1) {\n\t\t\t\t RawCasesString = RawCasesString.substring(0,\n\t\t\t\t\t\t RawCasesString.indexOf(\".\"));\n\t\t\t }\n\t\t\t long RawCases = Utilities.parseLong(RawCasesString);\n\n\t\t\t long RawCasesUnits = RawCases * UnitsPerSKU;\n\n\t\t\t long bottles = units - RawCasesUnits;\n\n\t\t\t if (bottles == 0) {\n\t\t\t\t ret = getDisplayCurrencyFormat(RawCases) + \"\";\n\t\t\t } else {\n\t\t\t\t ret = getDisplayCurrencyFormat(RawCases) + \"~\" + bottles;\n\t\t\t }\n\t\t }\n\t\t \n\t\t if(IsNegative){\n\t\t\t ret = \"(\"+ret+\")\";\n\t\t }\n\t\t \treturn ret;\n\t\t }", "public String CaToDa(double ca) {\n // da = ca/10\n double da = ca/10;\n return check_after_decimal_point(da);\n }", "protected double toPounds(double weightOunces){\n\t\treturn 0.0625 * weightOunces;\n\t}", "private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}", "public static String getDisplayCurrencyFormatTwoDecimalFixedAccountingDr(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###.#\");\n\t\tformat.setMaximumFractionDigits(2);\n\t\tformat.setMinimumFractionDigits(2);\n\t\t\n\t\tif (val < 0){\n\t\t\treturn format.format(val * -1) + \" Cr\";\t\n\t\t}else{\n\t\t\treturn format.format(val) + \" Dr\";\t\n\t\t}\n\n\t}", "public static String cashInWords (Double cash) {\n String s = \"\";\n int cashInCents = (BigDecimal.valueOf(cash).movePointRight(2)).intValue();\n int hrivna = cash.intValue();\n int cop = cashInCents%100;\n if (hrivna/1000000>=1) s+=ch999(hrivna / 1000000, \"million \");\n if (hrivna%1000000/1000>=1) s+=ch999(hrivna % 1000000 / 1000, \"thousand \");\n if (hrivna%1000000%1000>=1) s+=ch999(hrivna % 1000000 % 1000, \"\");\n if (hrivna>0) s+=\"hryvnas \";\n if (hrivna>0&&cop>0) s+=\"and \";\n if (cop>0) s+=ch999(cop, \"cop.\");\n\n return s;\n }", "public String CurrencyFormatter(double val) {\n\n\n NumberFormat nf = NumberFormat.getCurrencyInstance();\n DecimalFormatSymbols decimalFormatSymbols = ((DecimalFormat) nf).getDecimalFormatSymbols();\n decimalFormatSymbols.setCurrencySymbol(\"\");\n ((DecimalFormat) nf).setDecimalFormatSymbols(decimalFormatSymbols);\n String ft=nf.format(val).trim();\n return ft;\n\n }", "private static String translateReplaceString(String replaceStr) {\n int pos = 0;\n while (0 <= (pos = replaceStr.indexOf(\"\\\\\", pos))) {\n if (replaceStr.charAt(pos + 1) == '$') {\n replaceStr = replaceStr.substring(0, pos) + \"$\" + replaceStr.substring(++pos);\n } else {\n replaceStr = replaceStr.substring(0, pos) + replaceStr.substring(++pos);\n }\n }\n return replaceStr;\n }", "public String convertAmount(long num) {\n String sign = \"\";\n if (num == 0){\n return \"zero\"; \n }\n else if (num < 0) {\n // if number negative, making it as positive number and saving the sign in the variable\n num = -num;\n sign = \"Negative\";\n }\n \n String inWords = \"\";\n int place = 0;\n \n // do this for every set of 3 digits from right till your left with northing\n do {\n // get the right most 3 numbers \n long n = num % 1000;\n // check if it not 0\n if (n != 0){\n // call the changeUptoThousand for the 3 digit number\n String s = changeUptoThousand((int) n);\n // add the appropriate word from thousand \n inWords = s + specialdigitNames[place] + inWords;\n }\n place++;\n //change the number leaving the right most 3 digits whic are processed above\n num /= 1000;\n } \n while (num > 0);\n // add the sign and the number\n return (sign + inWords).trim();\n }", "private static String curencyFormatterString(Float value) {\n\t\treturn NumberFormat.getCurrencyInstance().format(value).replace(\"$\", \"\");\n\t}", "private String convertFahrenheitToCelsius(double f) {\n double c = (f - 32.0) * (5.0 / 9.0);\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(c);\n }", "String format(double balance);", "public static String formatDoubleAmount(double amount){\n NumberFormat formatter = new DecimalFormat(\"$#,###,##0.00;($#,###,##0.00)\");\n return formatter.format(amount); \n }", "public String getModifiedNumber(BigDecimal bd) {\r\n String str = \"\";\r\n String temp = \"\";\r\n str = bd.toString();\r\n double num = Double.parseDouble(str);\r\n double doubleVal;\r\n\r\n NumberFormat nFormat = NumberFormat.getInstance(Locale.US);\r\n nFormat.setMaximumFractionDigits(1);\r\n nFormat.setMinimumFractionDigits(1);\r\n\r\n /*\r\n * if ((num / getPowerOfTen(12)) > 0.99) // check for Trillion {\r\n * doubleVal = (num / getPowerOfTen(12)); temp =\r\n * String.valueOf(truncate(doubleVal)) + \"Tn\"; } else if ((num /\r\n * getPowerOfTen(9)) > 0.99) // check for Billion { doubleVal = (num /\r\n * getPowerOfTen(9)); temp = String.valueOf(truncate(doubleVal)) + \"Bn\";\r\n * } else\r\n */\r\n if ((num / getPowerOfTen(6)) > 0.99) // check for Million\r\n {\r\n doubleVal = (num / getPowerOfTen(6));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"M\";\r\n temp= nFormat.format(doubleVal) + \"M\";\r\n } else if ((num / getPowerOfTen(3)) > 0.99) // check for K\r\n {\r\n doubleVal = (num / getPowerOfTen(3));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"K\";\r\n temp =nFormat.format(doubleVal) + \"K\";\r\n } else {\r\n //temp = String.valueOf(num);\r\n temp = nFormat.format(num);\r\n }\r\n return temp;\r\n }", "public FormatInteger dollarFill(){\n fillCharacter = DOLLAR_CHAR;\n return this;\n }", "public void convert(View v){\n EditText etUSD = findViewById(R.id.etUSD);\n EditText etLKR = findViewById(R.id.etLKR);\n\n //Get text From usd TextField\n String text= etUSD.getText().toString();\n //Convert Text To Double\n double usd = Double.parseDouble(text);\n\n // Convert to LKR\n double lkr = usd*195;\n //convert double to string\n String lkrText = String.valueOf(lkr);\n\n //Set lkrTest Value to Test Field\n etLKR.setText(lkrText);\n\n\n\n }", "private static int convertToCents(String amount) {\n\n /* First check if the format of the amount is correct */\n if(!validAmount(amount)) {\n return -1;\n }\n\n /* Look for the dot (if there is one), to separate cents from dollars */\n int dotIdx = amount.indexOf('.');\n\n /* Calculate the number of cents */\n int numCents = 0;\n if(dotIdx != -1){\n for(int i = dotIdx+1; i < Math.min(dotIdx+3, amount.length()); i++){\n numCents = numCents*10 + amount.charAt(i) - '0';\n }\n if(numCents < 10){\n numCents *= 10;\n }\n }\n\n /* Calculate the number of dollars */\n if(dotIdx == -1){\n dotIdx = amount.length();\n }\n int numDollars = 0;\n for(int i = 0; i < dotIdx; i++){\n if(Character.isDigit(amount.charAt(i))){\n numDollars = numDollars*10 + amount.charAt(i) - '0';\n }\n }\n\n if (numDollars >= 100000) { return -2; }\n\n return numDollars*100 + numCents;\n }", "private String externalConversion() {\n int reading = ((record[19] & 255) + ((record[21] & 0x03) << 8));\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = externalConversion.eval(variables);\n\n String x = result + \"\";\n\n if(this.counter){\n x = Integer.parseInt(x) * (60/rate) + \"\";\n }\n\n return x;\n }", "@Test\r\n\tpublic void test2() {\n\t\tDouble actual = conv.dollarToRupees(10);\r\n\t\tassertNotNull(actual);\r\n\t}", "private double usdToBitcoin(double usd) {\n return usd/(usd + 120);\n }", "private String convertLocalCurrencyToNano(String amount) {\n BigDecimal amountBigDecimal;\n try {\n amountBigDecimal = new BigDecimal(sanitizeNoCommas(amount));\n } catch(NumberFormatException e) {\n return amount;\n }\n\n if (amount.length() == 0 || amountBigDecimal.compareTo(new BigDecimal(0)) == 0) {\n return amount;\n } else {\n try {\n DecimalFormat df = (DecimalFormat) NumberFormat.getInstance(getLocalCurrency().getLocale());\n df.setParseBigDecimal(true);\n BigDecimal bd = (BigDecimal) df.parseObject(sanitize(amount));\n return localCurrencyPrice != null ? bd\n .divide(localCurrencyPrice, 10, BigDecimal.ROUND_HALF_UP).toString() : \"0.0\";\n } catch (ParseException e) {\n ExceptionHandler.handle(e);\n }\n return \"\";\n }\n }", "public String DaToCa(double da) {\n // ca = 10*da\n double ca = da*10;\n return check_after_decimal_point(ca);\n }", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "private static String getTotal(ArrayList<CatalogItem> items) {\n double dTotal = 0.0;\n for (CatalogItem item : items) {\n dTotal += item.getPrice();\n }\n\n dTotal += dTotal*0.0825;\n return \"$\" + df.format(dTotal);\n }", "public String formatRut(Object rut) {\r\n\t\tString value = rut.toString();\r\n\t\tvalue = value.trim();\r\n\t\tjava.util.Locale pais = java.util.Locale.GERMANY;\r\n\t\tif (!value.equalsIgnoreCase(\"&nbsp;\")) {\r\n\t\t\tchar DV = value.charAt(value.length() - 1);\r\n\t\t\tvalue = value.substring(0, value.length() - 1);\r\n\t\t\tjava.text.DecimalFormat dec = (java.text.DecimalFormat) java.text.NumberFormat.getInstance(pais);\r\n\t\t\tjava.lang.Double valor = null;\r\n\t\t\tdec.applyPattern(\"#,##0\");\r\n\t\t\tvalor = java.lang.Double.valueOf(value);\r\n\t\t\treturn dec.format(valor.doubleValue()) + \"-\" + DV;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn \"&nbsp;\";\r\n\t}", "private String formato(String cadena){\n cadena = cadena.replaceAll(\" \",\"0\");\n return cadena;\n }", "Uom getCurrencyUom();", "@Test\r\n\tpublic void test() {\n\t\tdouble actual = conv.dollarToRupees(25);\r\n\t\tassertEquals(2500.0,actual,0);\r\n\t\t//assertEquals(expected,actual,precision[delta])\r\n\t\t\r\n\t}", "public static String formatCurrency(double amt) {\n\t\tNumberFormat formatter = NumberFormat.getCurrencyInstance();\n\t\treturn formatter.format(amt);\n\t}", "private static String format2(double d) {\n return new DecimalFormat(\"#.00\").format(d);\n }", "public static String getDisplayCurrencyFormatTwoDecimalFixedAccounting(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###.#\");\n\t\tformat.setMaximumFractionDigits(2);\n\t\tformat.setMinimumFractionDigits(2);\n\t\t\n\t\tif (val < 0){\n\t\t\treturn \"(\"+ format.format(val * -1) + \")\";\t\n\t\t}else{\n\t\t\treturn format.format(val);\t\n\t\t}\n\n\t}", "public String HaToDa(double ha) {\n // da = 1000*ha\n double da = ha*1000;\n return check_after_decimal_point(da);\n }", "private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }", "public String getPriceString() {\n\t\treturn Utils.formatCurrencyNumber(price);//Double.toString(price.doubleValue()); //price.toString();\n\t}", "public String CaToDaa(double ca) {\n // daa = ca/1000\n double daa = ca/1000;\n return check_after_decimal_point(daa);\n }", "public static String getDisplayCurrencyFormatRoundedAccounting(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###\");\n\t\tformat.setMaximumFractionDigits(0);\n\t\tformat.setMinimumFractionDigits(0);\n\t\t\n\t\tif (val < 0){\n\t\t\treturn \"(\"+ format.format(val * -1) + \")\";\t\n\t\t}else{\n\t\t\treturn format.format(val);\t\n\t\t}\n\n\t}", "double getMoney();", "public final void mDOLLAR() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = DOLLAR;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:422:7: ( '$' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:422:16: '$'\n\t\t\t{\n\t\t\tmatch('$'); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public static String toDollarsAndCents(int cents){\n \n NumberFormat currencyFormatter = \n NumberFormat.getCurrencyInstance();\n return currencyFormatter.format(cents/100.0);\n }", "private String doubleToDecimalString(double toFormat){\r\n\r\n String d = \"\";\r\n DecimalFormat df = new DecimalFormat(\"0.00\");\r\n d = df.format(toFormat);\r\n\r\n return d;\r\n }", "public static double avrund2(double des) {\n\t\treturn (int)(des*100 + 0.5)/100.0;\n\t}", "public String AToCa(double a) {\n // ca = 100*a\n double ca = a*100;\n return check_after_decimal_point(ca);\n }", "@Test\n public void testGetWordsAsDouble() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(2523.04);\n String expResult = \"Two thousand five hundred twenty-three and 04/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result); \n }", "public String CaToA(double ca) {\n // a = ca/100\n double a = ca/100;\n return check_after_decimal_point(a);\n }", "@Test\n public void FinalConvertJPYStandard(){\n CurrencyRates one = new CurrencyRates();\n\n //Initialise list of sums\n ArrayList<Double> sumList1 = new ArrayList<Double>();\n sumList1.add(10.50);\n sumList1.add(11.50);\n sumList1.add(80.00);\n sumList1.add(10.12);\n sumList1.add(50.60);\n sumList1.add(70.60);\n\n double finalSum = one.finalSumAUD(sumList1);\n\n //converts AUD to JPY\n double retValue = one.AUDtoNewCurrency(5, one.exchangeRate, finalSum);\n assertEquals(17205.02, retValue, 0.0);\n\n }", "private static String formatPRECIO(String var1)\r\n\t{\r\n\t\tString temp = var1.replace(\".\", \"\");\r\n\t\t\r\n\t\treturn( String.format(\"%09d\", Integer.parseInt(temp)) );\r\n\t}", "public String HaToCa(double ha) {\n // ca = 10000*ha\n double ca = ha*10000;\n return check_after_decimal_point(ca);\n }", "private static double rundeBetrag(double betrag){\n \tdouble round = Math.round(betrag*10000); \r\n \t\r\n \tround = round / 10000; \r\n \tround = Math.round(round*1000); \r\n \tround = round / 1000; \r\n \tround = Math.round(round*100); \r\n \r\n \treturn round / 100; \r\n }", "public final void mDOLLAR() throws RecognitionException {\n try {\n int _type = DOLLAR;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:37:8: ( '$' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:37:10: '$'\n {\n match('$'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public int getAsCents(){\n return (dollars*100 + cents);\n }", "private String currencyFormat(BigDecimal amount) {\n return NumberFormat.getCurrencyInstance(getLocalCurrency().getLocale()).format(amount);\n }", "public static String getFormattedAmount(double amount) {\n DecimalFormat df = new DecimalFormat(\".00\");\n String formattedAmount = df.format(amount).replaceAll(\",\", \"\")\n .replaceAll(\"\\\\.\", \"\");\n return formattedAmount;\n }", "public String toStringAlt() {\n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"$\");\n\t\tFormatter f = new Formatter(sb);\n\t\tf.format(\"%.2f\", cost);\n\t\tf.close();\n\t\tsb.append(\" \")\n\t\t .append(make).append(\" \")\n\t\t .append(model).append(\" for day \")\n\t\t .append(startDay.getDay())\n\t\t .append(\" to day \")\n\t\t .append(endDay.getDay());\n\t\treturn sb.toString();\n\t\t\n\t}", "void setUnitValueAsDollar(double unitValueAsDollar)\n\t{\n\t\tthis.unitValueAsDollar = unitValueAsDollar;\n\t}", "public String RevenueDerniere(){\n List<Ticket> tickets=ticketRepository.findAll();\n double revenueJours=0,revenueSemaine=0,revenuemois=0;\n for (Ticket ticket:tickets){\n if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(30)))){\n revenuemois=revenuemois+ticket.getAddition();\n }\n if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(7)))){\n revenueSemaine=revenueSemaine+ticket.getAddition();\n }\n if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(1)))){\n revenueJours=revenueJours+ticket.getAddition();\n }\n }\n\n return \"Revenue moins derniere :\"+revenuemois+\"\\n Revenue semaine derniere :\"+revenueSemaine+\"\\n \"\n\t\t+ \"Revenue jour derniere :\"+revenueJours;\n }", "public String KaToDaa(double ka) {\n // dal = 100*ka\n double daa = 100*ka;\n return check_after_decimal_point(daa);\n }", "private Double conversionElectric(Double quant) {\n return quant;\n }", "@Override\n public String toString() {\n return \"\" + currency + amount;\n }", "public String getSalary() {\r\n\t\t//the base salary starts at $40,000\r\n\t\tint baseSalary = 40000;\r\n\t\t//The slary increases each year by $5,000 based on the number of years doctor practices\r\n\t\tint salary = baseSalary + (years * 5000);\r\n\t\t//This turns the int into a string with a $ sign in the front\r\n\t\tString salaryString = \"$\" + Integer.toString(salary);\r\n\t\t//The salary is returned\r\n\t\treturn salaryString;\r\n\t}", "public String HaToDaa(double ha) {\n // daa = 10*ha\n double daa = ha*10;\n return check_after_decimal_point(daa);\n }", "public String toString()\n {\n\tint c = coinCounter();\n\treturn \"$\" + c / 100 + \".\" + c % 100;\n }", "@Override\n public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {\n int number = ((Number) obj).intValue();\n return new StringBuffer(\"$\" + number);\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"--- Dollar in Euro Umrechner ---\");\n\t\tSystem.out.print(\"Dollar: \");\n\t\tdouble dollar = Double.parseDouble(scanner.nextLine());\n\t\tSystem.out.print(\"Kurs: \");\n\t\tdouble kurs = Double.parseDouble(scanner.nextLine());\n\t\t\n\t\tdouble euro = dollar * kurs;\n\t\tSystem.out.println(\"Euro: \" + String.format(\"%.2f\", euro));\n\t\t\n\t\tscanner.close();\n\t}", "Uom getOrigCurrencyUom();", "public double calcDollarAmount(double euroAmount, double exchangeRate) {\n return Math.ceil(euroAmount * exchangeRate * 100) / 100;\n\n }", "public static double convertToOunces(double Number, double ounceConversion) {\n\t\treturn Number * ounceConversion;\n\t}", "public static String getDisplayCurrencyFormatTwoDecimalFixed(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###.#\");\n\t\tformat.setMaximumFractionDigits(2);\n\t\tformat.setMinimumFractionDigits(2);\n\t\t\n\t\treturn format.format(val);\n\n\t}", "public static String getDisplayCurrencyFormatSimple(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\"#.##\");\n\t\tformat.setMaximumFractionDigits(2);\n\n\t\treturn format.format(val);\n\n\t}", "public String DaaToCa(double daa) {\n // ca = 1000*daa\n double ca = daa*1000;\n return check_after_decimal_point(ca);\n }", "public String HaToA(double ha) {\n // a = 100*ha\n double a = ha*100;\n return check_after_decimal_point(a);\n }", "public String getBSCA_PrintPrice2();", "private double parseAmount(String amount){\n return Double.parseDouble(amount.replace(\",\", \".\"));\n }" ]
[ "0.72901213", "0.6900143", "0.6716664", "0.6142384", "0.60749686", "0.5902025", "0.5834567", "0.58149654", "0.57879585", "0.5667928", "0.56416583", "0.5633359", "0.5632318", "0.56142944", "0.5572902", "0.55571896", "0.554813", "0.551209", "0.54767483", "0.545568", "0.5430162", "0.53917736", "0.5360098", "0.5337853", "0.5296758", "0.52757704", "0.52255267", "0.5213069", "0.51575613", "0.5154566", "0.5154297", "0.5133107", "0.5131301", "0.512575", "0.51206595", "0.51150364", "0.511413", "0.5091473", "0.5086102", "0.5083479", "0.5082057", "0.50559056", "0.5045101", "0.5035208", "0.5032549", "0.50230896", "0.5020251", "0.50144535", "0.5006133", "0.49947757", "0.49383956", "0.49154052", "0.49065065", "0.49034077", "0.48837027", "0.48801845", "0.48785716", "0.48778367", "0.48671472", "0.4866738", "0.48595023", "0.4856309", "0.4851893", "0.484901", "0.48460138", "0.48316756", "0.48204166", "0.48139963", "0.48093837", "0.48062816", "0.47937524", "0.47861215", "0.47854415", "0.4782173", "0.47779202", "0.47513446", "0.47400597", "0.47384945", "0.47367492", "0.47352725", "0.47296393", "0.47295395", "0.47277328", "0.47236225", "0.47233742", "0.47218284", "0.4720375", "0.47150642", "0.4700775", "0.46996433", "0.46983325", "0.4690822", "0.4689249", "0.46828666", "0.4681449", "0.46787134", "0.4668481", "0.46658537", "0.46628022", "0.46614194" ]
0.55098957
18
the results are displayed showing how many times each number from 16 appeared when the dice was tossed 20 times
public void paint(Graphics g) { int xpos = 20, ypos = 80; for(int accumulator=1; accumulator <= counterArr.length; accumulator++) { g.drawString(accumulator + " appeared on the dice " + counterArr[accumulator-1] + " times.", xpos, ypos); ypos+=30; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t\r\n\t\tint[] totals = new int[11];\r\n\t\tint dice;\r\n\t\tint diceTwo;\r\n\t\tint total;\r\n\r\n\t\t\r\n\r\n\t\tfor (int i = 0; i < 10000; i++) {\r\n\t\t\tdice = (int) (Math.random() * 6) + 1;\r\n\t\t\tdiceTwo = (int) (Math.random() * 6) + 1;\r\n\t\t\ttotal = dice + diceTwo; \r\n\t\t\tif (total == 2) {\r\n\r\n\t\t\t\ttotals[0]++;\r\n\t\t\t}\r\n\r\n\t\t\telse if (total == 3) {\r\n\r\n\t\t\t\ttotals[1]++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (total == 4) {\r\n\r\n\t\t\t\ttotals[2]++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (total == 5) {\r\n\r\n\t\t\t\ttotals[3]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 6) {\r\n\r\n\t\t\t\ttotals[4]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 7) {\r\n\r\n\t\t\t\ttotals[5]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 8) {\r\n\r\n\t\t\t\ttotals[6]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 9) {\r\n\r\n\t\t\t\ttotals[7]++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (total == 10) {\r\n\r\n\t\t\t\ttotals[8]++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (total == 11) {\r\n\r\n\t\t\t\ttotals[9]++;\r\n\t\t\t}\r\n\t\t\telse if (total == 12) {\r\n\r\n\t\t\t\ttotals[10]++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Total - Number of Rolls\");\r\n\t\tSystem.out.println(\"2 \" + totals[0] );\r\n\t\tSystem.out.println(\"3 \" + totals[1] );\r\n\t\tSystem.out.println(\"4 \" + totals[2] );\r\n\t\tSystem.out.println(\"5 \" + totals[3] );\r\n\t\tSystem.out.println(\"6 \" + totals[4] );\r\n\t\tSystem.out.println(\"7 \" + totals[5] );\r\n\t\tSystem.out.println(\"8 \" + totals[6] );\r\n\t\tSystem.out.println(\"9 \" + totals[7] );\r\n\t\tSystem.out.println(\"10 \" + totals[8] );\r\n\t\tSystem.out.println(\"11 \" + totals[9] );\r\n\t\tSystem.out.println(\"12 \" + totals[10] );\r\n\t}", "public String play() \r\n { \r\n \r\n theDiceTotal = dice.roll();\r\n \r\n while ( theDiceTotal != 12 )\r\n { \r\n theDiceTotal = dice.roll();\r\n System.out.println( dice.getDie1FaceValue() + \" \" + dice.getDie2FaceValue() );\r\n count++;\r\n }\r\n \r\n return ( count - 1 ) + \" dice rolled.\"; \r\n }", "public void Diceroll()\n\t{\n\t\tdice1 = rand.nextInt(6)+1;\n\t\tdice2 = rand.nextInt(6)+1;\n\t\ttotal = dice1+dice2;\n\t}", "public int tossDice(){\n\t\tRandom r = new Random();\n\t\tdiceValue = r.nextInt(6)+1;\n\t\tdiceTossed = true;\n\t\treturn diceValue;\n\t}", "private static void displayDice(Shaker shaker) {\n int faceValue1 = shaker.getDice()[0].getFaceValue();\n int faceValue2 = shaker.getDice()[1].getFaceValue();\n\n\n // Displays the dice on the board\n InterfaceController.setDice(faceValue1, faceValue2);\n }", "static public void showDice(List<Die> dice) {\n System.out.println(\"----Your Hand----\");\n for (var die : dice) {\n System.out.print(die.getNumberOnDie() + \" \");\n }\n System.out.println(\"\\n\");\n }", "public static int[] sumOfTwoDice(int n) {\n int[] dice = new int[11];\n for(int b = n; b > 0; b--) {\n\t\tint d = ThreadLocalRandom.current().nextInt(1, 7);\n int d1 = ThreadLocalRandom.current().nextInt(1, 7);\n int i = d+d1-2;\n dice[i]+=1; \n\t}\n return dice;\n }", "public int rollDice() {\n\t\td1 = r.nextInt(6) + 1;\n\t\td2 = r.nextInt(6) + 1;\n\t\trepaint();\n\t\treturn d1 + d2;\n\t}", "public static double probabilityTwoSixes() {\n int count = 0;\n int amount = 0;\n for (int i = 0; i < 10000; i++) {\n amount = 0;\n for (int j = 0; j < 12; j++) {\n if ((int) (Math.random() * 6) + 1 == 6)\n amount++;\n if (amount == 2) {\n count++;\n break; }\n }\n }\n return ((double) count / (double) 10000) * 100;\n }", "public static int diceRoll() {\n Random roller = new Random();//Create a random number generator\r\n return roller.nextInt(6) + 1;//Generate a number between 0-5 and add 1 to it\r\n }", "public int roll() {\n int result = ThreadLocalRandom.current().nextInt(SIDES+1) + 1;// standard 1-7\n if(result == 7){ //LoadedDie 6 occurs twice as often\n return 6;\n } else{\n return result;\n }\n }", "public String printAllDice()\n {\n String output = \"\";\n int c = 0;\n for(Dice dice : getDiceArray())\n {\n output = output + \"Dice \" + c + \": \" + dice.getDiceString() + \"\\n\";\n //System.out.println(\"Dice \" + c + \": \" + dice.getDiceString());\n c++;\n }\n output = output + \"\\n\";\n //System.out.println();\n return output;\n }", "public static void main(String[] args) {\n\t\tRandom coiso = new Random();\n\t\tList<Integer> stats = new ArrayList<Integer>();\n\t\tList<Integer> rolls = new ArrayList<Integer>();\n\t\tint soma = 0;\n\t\t\n\t\t\n\t\t/*for (int i=0;i<10;i++)\n\t\t\tSystem.out.println(1+coiso.nextInt(19));*/\n\t\tfor (int j=0;j<6;j++) {\n\t\t\tfor (int s=0;s<4;s++) {\n\t\t\t\trolls.add(1+coiso.nextInt(6));\n\t\t\t}\n\t\t\trolls.sort(new Comparator<Integer>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(Integer o1, Integer o2) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn o1.compareTo(o2);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\trolls.remove(0);\n\t\t\tfor (int v=0;v<3;v++)\n\t\t\t\tsoma += rolls.get(v);\n\t\t\tstats.add(soma);\n\t\t\trolls.clear();\n\t\t\tsoma=0;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(stats);\n\t\tfor (int i=0;i<6;i++)\n\t\t\tsoma+=stats.get(i);\n\t\tSystem.out.println(soma);\n\n\t}", "public static void main(String[] args) {\n\t\tRandom dice = new Random();\n\t\tint number = 0;\n\t\tfor (int i = 0; i <= 10; i++) {\n\t\t\tnumber = 1 + dice.nextInt(6);\n\t\t}\n\t\tSystem.out.println(number);\n\t}", "public int rollDice() {\n\t\td1 = (int)rand.nextInt(6)+1;\n\t\td2 = (int)rand.nextInt(6)+1;\n\t\treturn d1+d2;\n\t}", "public int rollDice(){\r\n\t\tString playerResponse;\r\n\t\tplayerResponse=JOptionPane.showInputDialog(name+\". \"+\"Type anything to roll\");\r\n\t\t//System.out.println(name+\"'s response: \"+playerResponse);\r\n\t\tdice1=(int)(Math.random() * ((6 - 1) + 1)) + 1;\r\n\t\tdice2=(int)(Math.random() * ((6 - 1) + 1)) + 1;\r\n\t\tdicetotal=dice1+dice2;\r\n\t\tnumTurns++;\r\n\t\treturn dicetotal;\r\n\t}", "public static int greedy(int[] dice){\n int[] count = new int[5];\n // so inversely the variable for each score => count[score-1]\n // I handled the count process with a foreach loop\n // it iterates the values of the given array, checks scores and assigns count using a switch case\n for (int score: dice) {\n switch (score){\n case 1 -> count[0]++;\n case 2 -> count[1]++;\n case 3 -> count[2]++;\n case 4 -> count[3]++;\n case 5 -> count[4]++;\n case 6 -> count[5]++;\n }\n } \n\n // > CHECKING IF THERE'S A COUNT OF 3 AND ASSIGNING POINTS\n // A variable to hold the points is needed\n int points = 0;\n //check if there is a count of 3 in the count array, using a fori loop to keep track of the score value being iterated\n for (int i = 0, score = i+1 ; i < count.length; i++) {\n //if found\n if(count[i] > 2){\n // assign points\n // * points system for 3 occurrences\n // Three 1's => 1000 points\n // Three 6's => 600 points\n // Three 5's => 500 points\n // Three 4's => 400 points\n // Three 3's => 300 points\n // - score 1's point is a special case\n // - for the rest, points awarded = score*100\n if(score == 1){\n points += 1000;\n count[i] -= 3;\n }else{\n points += (score *100);\n count[i] -= 3;\n }\n }\n }\n\n // > CHECKING IF THE SCORE 1 AND 5 HAVE OCCURRENCES > 0 AND ASSIGNING POINTS IF TRUE\n //if true\n if(count[0] > 0)\n points += (100* count[0]);\n if(count[4] > 0)\n points += (50 * count[4]);\n return points;\n }", "public int roll(int dices){\n int faces[] = new int[dices];\n int total = 0;\n Dice dice = new Dice();\n for(int i = 0; i < dices; i++){\n faces[i] = (dice.rand.nextInt(6) + 1);\n }\n for(int i = 0; i < faces.length-1; i++){\n if(faces[i] != faces[i+1]){\n this.isDouble = false;\n break;\n }\n else{\n this.isDouble = true;\n }\n }\n if(this.isDouble == true){\n this.twiceCounter++;\n }\n for(int i = 1; i < faces.length+1; i++){\n System.out.print(\"The \" + i + \". dice: \" + faces[i-1] + \" \");\n total += faces[i-1];\n }\n System.out.println(\" and the sum is \" + total);\n\n return total;\n }", "public String countAndSay(int n) {\n Map<Integer, String> ans = new HashMap<>();\n\n ans.put(1, \"1\");\n ans.put(2, \"11\");\n ans.put(3, \"21\");\n ans.put(4, \"1211\");\n ans.put(5, \"111221\");\n ans.put(6, \"312211\");\n ans.put(7, \"13112221\");\n ans.put(8, \"1113213211\");\n ans.put(9, \"31131211131221\");\n ans.put(10, \"13211311123113112211\");\n ans.put(11, \"11131221133112132113212221\");\n ans.put(12, \"3113112221232112111312211312113211\");\n ans.put(13, \"1321132132111213122112311311222113111221131221\");\n ans.put(14, \"11131221131211131231121113112221121321132132211331222113112211\");\n ans.put(15, \"311311222113111231131112132112311321322112111312211312111322212311322113212221\");\n ans.put(16, \"132113213221133112132113311211131221121321131211132221123113112221131112311332111213211322211312113211\");\n ans.put(17, \"11131221131211132221232112111312212321123113112221121113122113111231133221121321132132211331121321231231121113122113322113111221131221\");\n ans.put(18, \"31131122211311123113321112131221123113112211121312211213211321322112311311222113311213212322211211131221131211132221232112111312111213111213211231131122212322211331222113112211\");\n ans.put(19, \"1321132132211331121321231231121113112221121321132122311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112311332111213122112311311123112111331121113122112132113213211121332212311322113212221\");\n ans.put(20, \"11131221131211132221232112111312111213111213211231132132211211131221131211221321123113213221123113112221131112311332211211131221131211132211121312211231131112311211232221121321132132211331121321231231121113112221121321133112132112312321123113112221121113122113121113123112112322111213211322211312113211\");\n ans.put(21, \"311311222113111231133211121312211231131112311211133112111312211213211312111322211231131122211311122122111312211213211312111322211213211321322113311213212322211231131122211311123113223112111311222112132113311213211221121332211211131221131211132221232112111312111213111213211231132132211211131221232112111312211213111213122112132113213221123113112221131112311311121321122112132231121113122113322113111221131221\");\n ans.put(22, \"132113213221133112132123123112111311222112132113311213211231232112311311222112111312211311123113322112132113213221133122112231131122211211131221131112311332211211131221131211132221232112111312111213322112132113213221133112132113221321123113213221121113122123211211131221222112112322211231131122211311123113321112131221123113111231121113311211131221121321131211132221123113112211121312211231131122211211133112111311222112111312211312111322211213211321322113311213211331121113122122211211132213211231131122212322211331222113112211\");\n ans.put(23, \"111312211312111322212321121113121112131112132112311321322112111312212321121113122112131112131221121321132132211231131122211331121321232221121113122113121113222123112221221321132132211231131122211331121321232221123113112221131112311332111213122112311311123112112322211211131221131211132221232112111312211322111312211213211312111322211231131122111213122112311311221132211221121332211213211321322113311213212312311211131122211213211331121321123123211231131122211211131221131112311332211213211321223112111311222112132113213221123123211231132132211231131122211311123113322112111312211312111322212321121113122123211231131122113221123113221113122112132113213211121332212311322113212221\");\n ans.put(24, \"3113112221131112311332111213122112311311123112111331121113122112132113121113222112311311221112131221123113112221121113311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112311332111213213211221113122113121113222112132113213221232112111312111213322112132113213221133112132123123112111311222112132113311213211221121332211231131122211311123113321112131221123113112221132231131122211211131221131112311332211213211321223112111311222112132113212221132221222112112322211211131221131211132221232112111312111213111213211231132132211211131221232112111312211213111213122112132113213221123113112221133112132123222112111312211312112213211231132132211211131221131211132221121311121312211213211312111322211213211321322113311213212322211231131122211311123113321112131221123113112211121312211213211321222113222112132113223113112221121113122113121113123112112322111213211322211312113211\");\n ans.put(25, \"132113213221133112132123123112111311222112132113311213211231232112311311222112111312211311123113322112132113212231121113112221121321132132211231232112311321322112311311222113111231133221121113122113121113221112131221123113111231121123222112132113213221133112132123123112111312111312212231131122211311123113322112111312211312111322111213122112311311123112112322211211131221131211132221232112111312111213111213211231132132211211131221232112111312212221121123222112132113213221133112132123123112111311222112132113213221132213211321322112311311222113311213212322211211131221131211221321123113213221121113122113121132211332113221122112133221123113112221131112311332111213122112311311123112111331121113122112132113121113222112311311221112131221123113112221121113311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112212211131221121321131211132221123113112221131112311332211211133112111311222112111312211311123113322112111312211312111322212321121113121112133221121321132132211331121321231231121113112221121321132122311211131122211211131221131211322113322112111312211322132113213221123113112221131112311311121321122112132231121113122113322113111221131221\");\n ans.put(26, \"1113122113121113222123211211131211121311121321123113213221121113122123211211131221121311121312211213211321322112311311222113311213212322211211131221131211221321123113213221121113122113121113222112131112131221121321131211132221121321132132211331121321232221123113112221131112311322311211131122211213211331121321122112133221121113122113121113222123211211131211121311121321123113111231131122112213211321322113311213212322211231131122211311123113223112111311222112132113311213211221121332211231131122211311123113321112131221123113111231121113311211131221121321131211132221123113112211121312211231131122113221122112133221121113122113121113222123211211131211121311121321123113213221121113122113121113222113221113122113121113222112132113213221232112111312111213322112311311222113111221221113122112132113121113222112311311222113111221132221231221132221222112112322211213211321322113311213212312311211131122211213211331121321123123211231131122211211131221131112311332211213211321223112111311222112132113213221123123211231132132211231131122211311123113322112111312211312111322111213122112311311123112112322211213211321322113312211223113112221121113122113111231133221121321132132211331121321232221123123211231132132211231131122211331121321232221123113112221131112311332111213122112311311123112112322211211131221131211132221232112111312111213111213211231132132211211131221131211221321123113213221123113112221131112211322212322211231131122211322111312211312111322211213211321322113311213211331121113122122211211132213211231131122212322211331222113112211\");\n ans.put(27, \"31131122211311123113321112131221123113111231121113311211131221121321131211132221123113112211121312211231131122211211133112111311222112111312211312111322211213211321322123211211131211121332211231131122211311122122111312211213211312111322211231131122211311123113322112111331121113112221121113122113111231133221121113122113121113222123211211131211121332211213211321322113311213211322132112311321322112111312212321121113122122211211232221123113112221131112311332111213122112311311123112111331121113122112132113311213211321222122111312211312111322212321121113121112133221121321132132211331121321132213211231132132211211131221232112111312212221121123222112132113213221133112132123123112111311222112132113311213211231232112311311222112111312211311123113322112132113212231121113112221121321132122211322212221121123222112311311222113111231133211121312211231131112311211133112111312211213211312111322211231131122211311123113322113223113112221131112311332211211131221131211132211121312211231131112311211232221121321132132211331221122311311222112111312211311123113322112132113213221133122211332111213112221133211322112211213322112111312211312111322212321121113121112131112132112311321322112111312212321121113122112131112131221121321132132211231131122211331121321232221121113122113121122132112311321322112111312211312111322211213111213122112132113121113222112132113213221133112132123222112311311222113111231132231121113112221121321133112132112211213322112111312211312111322212311222122132113213221123113112221133112132123222112111312211312111322212321121113121112133221121311121312211213211312111322211213211321322123211211131211121332211213211321322113311213212312311211131122211213211331121321122112133221123113112221131112311332111213122112311311123112111331121113122112132113121113222112311311222113111221221113122112132113121113222112132113213221133122211332111213322112132113213221132231131122211311123113322112111312211312111322212321121113122123211231131122113221123113221113122112132113213211121332212311322113212221\");\n ans.put(28, \"13211321322113311213212312311211131122211213211331121321123123211231131122211211131221131112311332211213211321223112111311222112132113213221123123211231132132211231131122211311123113322112111312211312111322111213122112311311123112112322211213211321322113312211223113112221121113122113111231133221121321132132211331121321232221123123211231132132211231131122211331121321232221123113112221131112311332111213122112311311123112112322211211131221131211132221232112111312211322111312211213211312111322211231131122111213122112311311221132211221121332211213211321322113311213212312311211131122211213211331121321123123211231131122211211131221232112111312211312113211223113112221131112311332111213122112311311123112112322211211131221131211132221232112111312211322111312211213211312111322211231131122111213122112311311221132211221121332211211131221131211132221232112111312111213111213211231132132211211131221232112111312211213111213122112132113213221123113112221133112132123222112111312211312112213211231132132211211131221131211322113321132211221121332211213211321322113311213212312311211131122211213211331121321123123211231131122211211131221131112311332211213211321322113311213212322211322132113213221133112132123222112311311222113111231132231121113112221121321133112132112211213322112111312211312111322212311222122132113213221123113112221133112132123222112111312211312111322212311322123123112111321322123122113222122211211232221123113112221131112311332111213122112311311123112111331121113122112132113121113222112311311221112131221123113112221121113311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112212211131221121321131211132221123113112221131112311332211211133112111311222112111312211311123113322112111312211312111322212321121113121112133221121321132132211331121321132213211231132132211211131221232112111312212221121123222112311311222113111231133211121321321122111312211312111322211213211321322123211211131211121332211231131122211311123113321112131221123113111231121123222112111331121113112221121113122113111231133221121113122113121113221112131221123113111231121123222112111312211312111322212321121113121112131112132112311321322112111312212321121113122122211211232221121321132132211331121321231231121113112221121321133112132112312321123113112221121113122113111231133221121321132132211331221122311311222112111312211311123113322112111312211312111322212311322123123112112322211211131221131211132221132213211321322113311213212322211231131122211311123113321112131221123113112211121312211213211321222113222112132113223113112221121113122113121113123112112322111213211322211312113211\");\n ans.put(29, \"11131221131211132221232112111312111213111213211231132132211211131221232112111312211213111213122112132113213221123113112221133112132123222112111312211312112213211231132132211211131221131211132221121311121312211213211312111322211213211321322113311213212322211231131122211311123113223112111311222112132113311213211221121332211211131221131211132221231122212213211321322112311311222113311213212322211211131221131211132221232112111312111213322112131112131221121321131211132221121321132132212321121113121112133221121321132132211331121321231231121113112221121321133112132112211213322112311311222113111231133211121312211231131122211322311311222112111312211311123113322112132113212231121113112221121321132122211322212221121123222112111312211312111322212321121113121112131112132112311321322112111312212321121113122112131112131221121321132132211231131122111213122112311311222113111221131221221321132132211331121321231231121113112221121321133112132112211213322112311311222113111231133211121312211231131122211322311311222112111312211311123113322112132113212231121113112221121321132122211322212221121123222112311311222113111231133211121312211231131112311211133112111312211213211312111322211231131122111213122112311311222112111331121113112221121113122113121113222112132113213221232112111312111213322112311311222113111221221113122112132113121113222112311311222113111221132221231221132221222112112322211211131221131211132221232112111312111213111213211231132132211211131221232112111312211213111213122112132113213221123113112221133112132123222112111312211312111322212321121113121112133221132211131221131211132221232112111312111213322112132113213221133112132113221321123113213221121113122123211211131221222112112322211231131122211311123113321112132132112211131221131211132221121321132132212321121113121112133221123113112221131112311332111213211322111213111213211231131211132211121311222113321132211221121332211213211321322113311213212312311211131122211213211331121321123123211231131122211211131221131112311332211213211321223112111311222112132113213221123123211231132132211231131122211311123113322112111312211312111322111213122112311311123112112322211213211321322113312211223113112221121113122113111231133221121321132132211331121321232221123123211231132132211231131122211331121321232221123113112221131112311332111213122112311311123112112322211211131221131211132221232112111312211322111312211213211312111322211231131122111213122112311311221132211221121332211213211321322113311213212312311211131211131221223113112221131112311332211211131221131211132211121312211231131112311211232221121321132132211331121321231231121113112221121321133112132112211213322112312321123113213221123113112221133112132123222112311311222113111231132231121113112221121321133112132112211213322112311311222113111231133211121312211231131112311211133112111312211213211312111322211231131122111213122112311311221132211221121332211211131221131211132221232112111312111213111213211231132132211211131221232112111312211213111213122112132113213221123113112221133112132123222112111312211312111322212311222122132113213221123113112221133112132123222112311311222113111231133211121321132211121311121321122112133221123113112221131112311332211322111312211312111322212321121113121112133221121321132132211331121321231231121113112221121321132122311211131122211211131221131211322113322112111312211322132113213221123113112221131112311311121321122112132231121113122113322113111221131221\");\n ans.put(30, \"3113112221131112311332111213122112311311123112111331121113122112132113121113222112311311221112131221123113112221121113311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112212211131221121321131211132221123113112221131112311332211211133112111311222112111312211311123113322112111312211312111322212321121113121112133221121321132132211331121321132213211231132132211211131221232112111312212221121123222112311311222113111231133211121321321122111312211312111322211213211321322123211211131211121332211231131122211311123113321112131221123113111231121123222112111331121113112221121113122113111231133221121113122113121113221112131221123113111231121123222112111312211312111322212321121113121112131112132112311321322112111312212321121113122122211211232221121321132132211331121321231231121113112221121321132132211322132113213221123113112221133112132123222112111312211312112213211231132132211211131221131211322113321132211221121332211231131122211311123113321112131221123113111231121113311211131221121321131211132221123113112211121312211231131122211211133112111311222112111312211312111322211213211321223112111311222112132113213221133122211311221122111312211312111322212321121113121112131112132112311321322112111312212321121113122122211211232221121321132132211331121321231231121113112221121321132132211322132113213221123113112221133112132123222112111312211312112213211231132132211211131221131211322113321132211221121332211213211321322113311213212312311211131122211213211331121321123123211231131122211211131221131112311332211213211321223112111311222112132113213221123123211231132132211231131122211311123113322112111312211312111322111213122112311311123112112322211213211321322113312211223113112221121113122113111231133221121321132132211331222113321112131122211332113221122112133221123113112221131112311332111213122112311311123112111331121113122112132113121113222112311311221112131221123113112221121113311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112311332111213122112311311123112112322211322311311222113111231133211121312211231131112311211232221121113122113121113222123211211131221132211131221121321131211132221123113112211121312211231131122113221122112133221121321132132211331121321231231121113121113122122311311222113111231133221121113122113121113221112131221123113111231121123222112132113213221133112132123123112111312211322311211133112111312211213211311123113223112111321322123122113222122211211232221121113122113121113222123211211131211121311121321123113213221121113122123211211131221121311121312211213211321322112311311222113311213212322211211131221131211221321123113213221121113122113121113222112131112131221121321131211132221121321132132211331121321232221123113112221131112311322311211131122211213211331121321122112133221121113122113121113222123112221221321132132211231131122211331121321232221121113122113121113222123211211131211121332211213111213122112132113121113222112132113213221232112111312111213322112132113213221133112132123123112111311222112132113311213211221121332211231131122211311123113321112131221123113112221132231131122211211131221131112311332211213211321223112111311222112132113212221132221222112112322211211131221131211132221232112111312111213111213211231131112311311221122132113213221133112132123222112311311222113111231132231121113112221121321133112132112211213322112111312211312111322212321121113121112131112132112311321322112111312212321121113122122211211232221121311121312211213211312111322211213211321322123211211131211121332211213211321322113311213211322132112311321322112111312212321121113122122211211232221121321132132211331121321231231121113112221121321133112132112312321123113112221121113122113111231133221121321132122311211131122211213211321222113222122211211232221123113112221131112311332111213122112311311123112111331121113122112132113121113222112311311221112131221123113112221121113311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112311332111213213211221113122113121113222112132113213221232112111312111213322112132113213221133112132123123112111312211322311211133112111312212221121123222112132113213221133112132123222113223113112221131112311332111213122112311311123112112322211211131221131211132221232112111312111213111213211231132132211211131221131211221321123113213221123113112221131112211322212322211231131122211322111312211312111322211213211321322113311213211331121113122122211211132213211231131122212322211331222113112211\");\n \n return ans.get(n);\n }", "public static void roll()\n {\n Random no = new Random();\n Integer dice = no.nextInt(7);\n System.out.println(dice);\n }", "public int getDice(){\n\t\treturn diceValue;\n\t\t\n\t}", "private static void test1() {\n\n\tint n=10000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint val=rand7();\n\t\t\tcount[val]++;\n\t\t}\n\t\t\n\t\tfor(int i:count)\n\t\t\tSystem.out.println(i);\n\t}", "int RollDice ()\n {\n\tint roll = (int) (Math.random () * 6) + 1;\n\treturn roll;\n }", "public static void main(String[] args) {\n\t\tRandom ricoDude = new Random();\r\n\t\tint x = ricoDude.nextInt(20) + 1;\r\n\t\t// the dice will have arange of 0-5 to make it 1-6 , + 1 to the end of it\r\n\t\t\r\n\t\tSystem.out.println(\"You rolled a: \" + x);\r\n\t\tint a = 1, b= 2,k;\r\n\t\tk = a + b + a++ + b++;\r\n\t\tSystem.out.println(k);\r\n\t\t\r\n\t}", "public static int rollDice(){\n return (int)(Math.random()*6) + 1;\n // Math.random returns a double number >=0.0 and <1.0\n }", "private static void roll()\n {\n rand = (int)(((Math.random())*6)+1); // dice roll #1\n rand2 = (int)(((Math.random())*6)+1);// dice roll #2\n }", "public Dice(int numberOfDice) {\r\n for (int i = 0; i < numberOfDice; i++) {\r\n dice.add(rollDie());\r\n }\r\n sortDice();\r\n }", "public static int diceRoll(){\n Random rd = new Random();\n int dice1, dice2;\n\n dice1 = rd.nextInt(6) + 1; //assigns random integer between 1 and 6 inclusive to dice 1\n dice2 = rd.nextInt(6) + 1; //assigns random integer between 1 and 6 inclusive to dice 2\n\n System.out.println(\"You rolled \" + dice1 + \" + \" + dice2 + \" = \" + (dice1+dice2)); //print result\n\n return dice1 + dice2; //returns sum of dice rolls\n\n }", "public static double probabilityThreeSixes() {\n int count = 0;\n int amount = 0;\n for (int i = 0; i < 10000; i++) {\n amount = 0;\n for (int j = 0; j < 18; j++) {\n if ((int) (Math.random() * 6) + 1 == 6)\n amount++;\n if (amount == 3) {\n count++;\n break; }\n }\n }\n return ((double) count / (double) 10000) * 100;\n }", "public int roll_the_dice() {\n Random r = new Random();\n int number = r.nextInt(6) + 1;\n\n return number;\n }", "public static ArrayList<Integer> diceFrequency(int roll)\r\n {\r\n // variables\r\n Dice dice;\r\n int diceRoll;\r\n \r\n // program code\r\n dice = new Dice();\r\n \r\n ArrayList<Integer> frequency;\r\n frequency = new ArrayList<Integer> ();\r\n \r\n for (int i = 0; i < 11; i++)\r\n frequency.add(0);\r\n\r\n // roll the dice until the limit\r\n for (int i = 1; i <= roll; i++)\r\n {\r\n diceRoll = dice.rollDice();\r\n frequency.set(diceRoll - 2, frequency.get(diceRoll - 2) +1 ); \r\n }\r\n return frequency;\r\n }", "public String throwDice() {\n if (timesThrown < 3) {\n for (Die die : dice) {\n if (timesThrown == 0) {\n die.setChosen(false);\n }\n if (die.getChosen() == false) {\n int random = (int) (Math.random() * 6 + 1);\n die.setValue(random);\n }\n }\n return writeTimesThrown();\n }\n return null;\n }", "public static int rollDice()\n\t{\n\t\tint roll = (int)(Math.random()*6)+1;\n\t\t\n\t\treturn roll;\n\n\t}", "private void showDice() {\n Drawable diceDrawable;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n diceDrawable = getResources().getDrawable(die.getImageId(),\n getApplicationContext().getTheme());\n } else {\n diceDrawable = getResources().getDrawable(die.getImageId());\n }\n\n dieView.setImageDrawable(diceDrawable);\n dieView.setContentDescription(Integer.toString(die.getNumber()));\n }", "public Dice() {\n this.random = new Random();\n this.faces = 6;\n }", "public DiceFace drawDice() {\n\n if(dicesDrawn >= Settings.MAX_DICE_PER_COLOR * GameColor.values().length) throw new IllegalStateException(this.getClass().getCanonicalName() + \": Attempting to draw one more dice, but already drawn 90\");\n\n int color = random.nextInt(GameColor.values().length);\n int number = random.nextInt(6) + 1;\n GameColor[] values = GameColor.values();\n\n while(counter.get(values[color]) >= Settings.MAX_DICE_PER_COLOR){\n color = random.nextInt(GameColor.values().length);\n }\n\n counter.put(values[color], counter.get(values[color]) + 1);\n dicesDrawn += 1;\n return new DiceFace(GameColor.values()[color], number);\n\n }", "public int diceSum(Die[] dice) {\n int sum = 0;\n for (Die d : dice) {\n sum += d.getFace();\n }\n return sum;\n }", "public static int diceRoll() {\n\t\t\n\t\t//the outcome of the die is stored as an integer and returned\n\t\t\n\t\tint diceNumber = (int)((6 * (Math.random())) + 1);\n\t\treturn diceNumber;\n\t}", "private int diceRoll(int sides) {\n return (int) ((Math.random() * sides) + 1);\n }", "public int throwDice() {\n //create new random number between 1 and 6\n int nr = ThreadLocalRandom.current().nextInt(1, 6 + 1);\n //throw the number\n throwDice(nr);\n //return number\n return nr;\n }", "void random(){\r\n Random dice = new Random ();\r\n int number;\r\n \r\n for (int counter=1; counter<=10;counter++);\r\n number = 10000+dice.nextInt(100000);\r\n \r\n String hasil = TF3.getText();\r\n isi4.setText(number + \" \");\r\n }", "public static void method_3(){\n int totalhotdog = 400;\n int hotDogPerContainer = 8;\n int totalContainer =0;\n int temp = totalhotdog+hotDogPerContainer;\n\n while (temp>hotDogPerContainer){\n temp = temp - hotDogPerContainer;\n System.out.println(temp);\n totalContainer++;\n }\n System.out.println(\"\\n \\n\\n\\n\\n \"+totalContainer);\n }", "public int roll() {\n if(!debug)\n this.result = random.nextInt(6) + 1;\n else{\n scanner = new Scanner(showInputDialog(\"Enter dice value (1-6):\"));\n try{int res = scanner.nextInt()%7;\n this.result = res!=0? res:6;\n }\n catch(NoSuchElementException ne){this.result=6;} \n }\n return this.result;\n }", "public static double probabilityOneSix() {\n int count = 0;\n for (int j = 0; j < 10000; j++) {\n for (int i = 0; i < 6; i++) {\n if ((int) (Math.random() * 6) + 1 == 6) {\n count++;\n break; } }\n }\n return ((double) count / (double) 10000) * 100;\n }", "public int numOfOccurances(Die[] dice, int num) {\n int occ = 0;\n for (Die d : dice) {\n if (d.getFace() == num) ++occ;\n }\n return occ;\n }", "private void printRandomNumbers() {\n\t\tdouble convAmt = (double)numberAmt/5;\n\t\tint amtCeiling = (int)Math.ceil(convAmt);\n\t\tint index = 0;\n\t\t\n\t\tfor(int i = 0; i < amtCeiling; i++) {\n\t\t\tfor(int j = 0; j < 5; j++) {\n\t\t\t\tSystem.out.print(\"\\t\" + randomNumbers.get(index));\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public int sumDice(Die[] dice, int value){\n int subTotal = 0;\n\n // facevalue is getting the dice now\n for(Die die: dice){\n int facevalue = die.getFaceValue();\n\n // If facevalue equals to the value then subtotal will be returnable as long as there is a matched int\n if(facevalue == value){\n\n\n // subTotal will be greater or equals to faceValue then\n subTotal += facevalue;\n }}return subTotal;}", "@Test\n public void testDiceThrown() {\n testDie(game.diceThrown(), 1, 2);\n game.nextTurn();\n testDie(game.diceThrown(), 1, 2);\n game.nextTurn();\n testDie(game.diceThrown(), 3, 4);\n game.nextTurn();\n testDie(game.diceThrown(), 3, 4);\n game.nextTurn();\n testDie(game.diceThrown(), 5, 6);\n game.nextTurn();\n testDie(game.diceThrown(), 1, 2);\n game.nextTurn();\n\n }", "private int rollDie() {\r\n final SecureRandom random = new SecureRandom();\r\n return random.nextInt(6 - 1) + 1;\r\n }", "public int rollResult(){\r\n return rand.nextInt(6) + 1;\r\n }", "public static void chaotic (int numbers){\n for (int n = 0 ; n < numbers ; n++){\r\n // to return a value from 0 up to, but not including 1 use the equation below\r\n int randNum = (int)(Math.random()*(5 - 1 + 1)) + 1;\r\n //use an if loop to find if the answer from the equation equals to 5 \r\n if (randNum == 5){\r\n // the computer will print out five asterisks\r\n System.out.println(\"*****\");\r\n }\r\n // if the random number equals to 4\r\n if (randNum == 4){\r\n // the computer will print out four asterisks\r\n System.out.println(\"****\");\r\n }\r\n // if the random number is equal to 3\r\n if (randNum == 3){\r\n // the computer will print out three asterisks\r\n System.out.println(\"***\");\r\n }\r\n // if the random number is equal to 2\r\n if (randNum == 2){\r\n // the computer will print out two asterisks\r\n System.out.println(\"**\");\r\n }\r\n // if the random number is equal to 1\r\n if (randNum == 1)\r\n // the computer will print out one asterisks\r\n System.out.println(\"*\");\r\n }\r\n }", "public void dicebreakers(View view) {\n TextView Questions = this.findViewById(R.id.displayCongrats);\n\n switch (number) {\n case 1:\n Questions.setText(Q1);\n break;\n case 2:\n Questions.setText(Q2);\n break;\n case 3:\n Questions.setText(Q3);\n break;\n case 4:\n Questions.setText(Q4);\n break;\n case 5:\n Questions.setText(Q5);\n break;\n case 6:\n Questions.setText(Q6);\n break;\n\n }\n\n }", "public int getSize() {\r\n return dice.size();\r\n }", "public void animateDice() {\n pos += vel*tickCounter + ACC*tickCounter*tickCounter/2;\n if(pos<(TILE_SIZE*15-DICE_SIZE)/2){\n if(this.pIndex%3==0)\n diceImg = diceAnimation[tickCounter%diceAnimation.length];\n else\n diceImg = diceAnimation[diceAnimation.length-1-(tickCounter%diceAnimation.length)];\n tickCounter++;\n vel += ACC;}\n else{\n diceImg = dice[result-1];\n pos=(TILE_SIZE*15-DICE_SIZE)/2;}\n setCoordinates(pos);\n //System.out.println(\"dice pos \"+pos);\n }", "public void calculateThreeOfAKind(Die[] dice) {\n for (int i = 0; i < 6; i++) {\n if (this.numOfOccurances(dice, i) >= 3) {\n this.threeOfAKind = this.diceSum(dice);\n //System.out.println(\"you have gotten a three of a kind\");\n return;\n }\n }\n this.threeOfAKind = 0;\n return;\n }", "public int rollDice()\n{\n int die1, die2, sum; \n\n // pick random die values\n die1 = 1 + ( int ) ( Math.random() * 6 );\n die2 = 1 + ( int ) ( Math.random() * 6 );\n\n sum = die1 + die2; // sum die values\n\n // display results\n die1Field.setText( Integer.toString( die1 ) );\n die2Field.setText( Integer.toString( die2 ) );\n sumField.setText( Integer.toString( sum ) );\n\n return sum; // return sum of dice\n\n\n}", "public int rollDice();", "public void throwDice()\n {\n System.out.println( name + \"'s Turn \" + (turnNumber + 1) + \" Results for Round \" + round + \": \");\n turnScores[turnNumber] = 0;\n System.out.print(\"Dice Throws: \");\n for (int diceNumber = 0; diceNumber < diceThrows[turnNumber].length; diceNumber++)\n {\n int diceThrow = r.nextInt(6) + 1;\n diceThrows[turnNumber][diceNumber] = diceThrow;\n turnScores[turnNumber] += diceThrow;\n totalScore += diceThrow;\n System.out.print(diceThrows[turnNumber][diceNumber] + \" \");\n }\n System.out.print(\" Score This Turn: \" + turnScores[turnNumber] + \" \");\n System.out.println(\" \" + name + \"'s Running Total Score: \" + totalScore + \"\\n\");\n \n turnNumber++;\n }", "public void calculateFullHouse(Die[] dice) {\n int occurrances = 0;\n for (int i = 1; i <= 6; i++) {\n for (Die d : dice) {\n if (d.getFace() == i) {\n occurrances++;\n }\n }\n if (occurrances == 3) {\n int newOccurrances = 0;\n for (int j = 1; j <= 6; j++) {\n for (Die d : dice) {\n if (d.getFace() == j) {\n newOccurrances++;\n }\n }\n if (newOccurrances == 2) {\n this.fullHouse = 25;\n return;\n }\n else newOccurrances = 0;\n }\n }\n else occurrances = 0;\n }\n this.fullHouse = 0;\n return;\n }", "public static int diceRoll() {\n int max = 20;\n int min = 1;\n int range = max - min + 1;\n int rand = (int) (Math.random() * range) + min;\n return rand;\n }", "@Override\r\n\tpublic int rollDice() {\n\t\treturn 0;\r\n\t}", "public int rollDie() {\n\t\treturn (int) (Math.random()*6)+1;\n\t}", "public void throwDice() {\r\n\t\tfor( DiceGroup diceGroup:dice.values() ) {\r\n\t\t\tdiceGroup.throwDice(); //.setResult( (int) Math.random()*die.getSize() + 1);\r\n\t\t}\r\n\t}", "public boolean isFiveOfAKind(){\n ArrayList<Integer> numbers = new ArrayList<>();\n for (int i = 0; i < dice.length; i++){\n numbers.add(dice[i].getFaceValue());\n }\n\n for(int i = 0; i < numbers.size(); i++){\n int numSame = 0;\n for(int j = 0; j < numbers.size(); j++){\n if(numbers.get(i).equals(numbers.get(j))){\n numSame++;\n }\n }\n if (numSame == 5){\n return true;\n }\n }\n return false;\n }", "private void printSelectionCountResults(){\n\t\tSystem.out.print(\"\\n\");\n\t\tfor(Character answer: q.getPossibleAnswers()){\n\t\t\tSystem.out.print(answer+\": \"+selections.get(q.getPossibleAnswers().indexOf(answer))+\"\\n\");\n\t\t}\n\t}", "public Integer aiAction() {\r\n\t\t//if the first dice is less then six, throw the second dice \r\n\t\t//if the both throws > 10 the ai has lost, and will return 0\r\n\t\t//if the first dice == 7, return first dice\r\n\t\tInteger totalSum = 0;\r\n\t\tRandom aiRandom = new Random();\r\n\t\tInteger firstDice = aiRandom.nextInt(7) + 1;\r\n\t\tSystem.out.println(\"First dice: \" + (totalSum += firstDice));\r\n\t\tif (firstDice < 6) {\r\n\t\t\tInteger secondDice = aiRandom.nextInt(7) + 1;\r\n\t\t\tSystem.out.println(\"Second dice value is: \" + secondDice);\r\n\t\t\tSystem.out.println(\"Sum of both throws: \" + (totalSum += secondDice));\r\n\t\t\tif(totalSum > 10){\r\n\t\t\t\treturn 0;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn totalSum;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Ai scored :\" + (firstDice));\r\n\t\t\treturn firstDice;\r\n\t\t}\r\n\r\n\t}", "public Dice() {\n\t\td1 = 0;\n\t\td2 = 0;\n\t}", "public int getDiceTotal()\r\n {\r\n return diceTotal;\r\n }", "public int getThrow()\n{\n // Return the total number of times the dice was thrown.\n return throwCount;\n}", "public static int rollDie() {\n int n = ThreadLocalRandom.current().nextInt(1, 7);\n return n;\n }", "@Test\n public void randomInt() {\n HashMap<Integer, Integer> hist = new HashMap<Integer, Integer>();\n for(int i = 0; i < 300; i++){\n // we can think of random int as a coin toss\n Integer coin = test.randInt();\n Integer coinTotal = hist.get(coin);\n if (coinTotal == null){\n hist.put(coin, 1);\n } else {\n hist.put(coin, coinTotal+1);\n }\n }\n assertTrue(\"Should be more than 100 of each\",\n hist.get(0) > 100 && hist.get(1) > 100);\n System.out.println(hist);\n }", "public void throwDice() {\n\n Random r = new Random();\n\n if (color == DiceColor.NEUTRAL) {\n this.value = 0;\n } else {\n this.value = 1 + r.nextInt(6);\n }\n\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tint input = 0;\r\n\t\tint ai = 0;\r\n\t\tint win = 0;\r\n\t\tint defeat = 0;\r\n\t\tint draw = 0;\r\n\t\t\r\n\t\tString me = \"\";\r\n\t\tString com = \"\";\r\n\t\tSystem.out.println(\"★☆★☆★☆★☆가위바위보 게임입니다!★☆★☆★☆★☆\");\r\n\t\tfor(int i = 1 ; i < 4 ; i++) {\r\n\t\t\tSystem.out.println(\"\\t\\t\\t\\t\\t 최대횟수/남은횟수\");\r\n\t\t\tSystem.out.println(\"가위(1), 바위(2), 보(3) 중 하나를 입력하세요>>>\\t\\t3 / \" + i);\r\n\t\t\tinput = scan.nextInt();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tai = (int)(Math.random()*3) + 1;\r\n\t\t\t\r\n\t\t\tif (input == 1) me = \"가위\";\r\n\t\t\telse if (input == 2) me = \"바위\";\r\n\t\t\telse if (input == 3) me = \"보\";\r\n\t\t\telse System.out.println(\"잘못 입력하셨습니다\");\r\n\t\t\tif (ai == 1) com = \"가위\";\r\n\t\t\telse if (ai == 2) com = \"바위\";\r\n\t\t\telse if (ai == 3) com = \"보\";\r\n\t\t\t\r\n\t\t\tif(me != \"\") {\r\n\t\t\t\tSystem.out.println(\"컴퓨터도 선택 했습니다.\");\r\n\t\t\t\tSystem.out.println(\"당신은 \\\"\" + me + \"\\\" 상대는 \\\"\" + com + \"\\\" 을 선택했습니다\");\r\n\t\t\t\r\n\t\t\t\tswitch (input - ai) {\r\n\t\t\t\tcase -1 : case 2 : \r\n\t\t\t\t\tSystem.out.println(\"★☆저런~~ 졌네요★☆\\n\"); defeat += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase -2 : case 1 : \r\n\t\t\t\t\tSystem.out.println(\"★☆오~~ 이겼네요★☆\\n\"); win += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 0 : \r\n\t\t\t\t\tSystem.out.println(\"★☆이런! 비겼네요★☆\\n\"); draw += 1;\r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault : System.out.println(\"오류 입니다\"); \r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(win==defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 무승부 입니다\");\r\n\t\t} else if(win > defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 승리입니다\");\r\n\t\t} else if(win < defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 패배입니다\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"오류 입니다\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "private String happiness() {\r\n\t\tint[] temp=tile.getHappiness();\r\n\t\tString out=\"Tile Happiness: \\n\\n\";\r\n\t\tint square=(int)Math.sqrt(temp.length);\r\n\t\tif(square*square<temp.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<temp.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<temp.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%4s\", temp[i]));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "public void throwDices() throws DiceException {\n /**generator of random numbers(in this case integer numbers >1)*/\n Random generator = new Random();\n /**mode of logic*/\n String mode = this.getMode();\n\n if (!mode.equals(\"sum\") && !mode.equals(\"max\")) {\n throw new DiceException(\"Wrong throw mode!!! Third argument should be 'max' or 'sum'!\");\n } else if (this.getNumOfDices() < 1) {\n throw new DiceException(\"Wrong numeber of dices!!! Number of dices should equals 1 or more!\");\n } else if (this.getNumOfWalls() < 4) {\n throw new DiceException(\"Wrong numeber of walls!!! Number of walls should equals 4 or more!\");\n } else {\n if (mode.equals(\"sum\")) {\n for (int i = 0; i < this.getNumOfDices(); i++) {\n result += (generator.nextInt(this.getNumOfWalls()) + 1);\n }\n } else if (mode.equals(\"max\")) {\n for (int i = 0; i < this.getNumOfDices(); i++) {\n int buff = (generator.nextInt(this.getNumOfWalls()) + 1);\n if (this.result < buff) {\n this.result = buff;\n }\n }\n }\n }\n }", "public static void pointEN(int number) {\t\t\r\n\t\tdo {\r\n\t\t\tint dice1 = rand.nextInt(6) + 1;\t\t\t\t\t// ponovno bacanje kockica\r\n\t\t\tint dice2 = rand.nextInt(6) + 1;\r\n\t\t\tSystem.out.printf(\"Dice shows that you rolled %d and %d\\n\", dice1, dice2);\r\n\t\t\tif (dice1 + dice2 == 7) {\t\t\t\t\t\t\t// uslovi koji odredjuju pobjednika\r\n\t\t\t\tSystem.out.println(\"Unfortunately, you lose this one\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (dice1 + dice2 == number) {\r\n\t\t\t\tSystem.out.println(\"Tremendous!! You win!\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\trestartEN();\r\n\t\t} while (true);\r\n\t}", "public void Roll() // Roll() method\n {\n // Roll the dice by setting each of the dice to be\n // \ta random number between 1 and 6.\n die1Rand = (int)(Math.random()*6) + 1;\n die2Rand = (int)(Math.random()*6) + 1;\n }", "public String displayWinnings(){\n int totalWinnings = 0;\n for(int i = 0; i < numPulls; i++){\n totalWinnings += pullWinnings[i];\n }\n return \"Your total Winnings: $\" + totalWinnings;\n }", "public void rollDice() {\n try {\n if (numOfDices != Integer.parseInt(numOfDicesText.getText().toString())) {\n init();\n }\n }\n catch (Exception e) {\n System.out.println(e);\n numOfDicesText.setText(\"1\");\n init();\n }\n int rolledNumber;\n for (int i = 0; i < numOfDices; i++) {\n rolledNumber = dices.get(i).roll();\n textViews.get(i).setText(\"Dice \" + (i+1) + \" rolled a \" + rolledNumber);\n imageViews.get(i).setImageBitmap(DiceImages.getImage(rolledNumber));\n }\n }", "public static void main(String[] args) {\n\t\tint d = 6;\n\n\t\tint count = 0;\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tcount += count(1, i, i, d, i == d || i ==0);\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "private void setupDefaultDiceMap() {\n defaultDiceNumberMap.put(getHashCodeofPair(0,-2), 0);\n defaultDiceNumberMap.put(getHashCodeofPair(-7,1), 6);\n defaultDiceNumberMap.put(getHashCodeofPair(7,1), 8);\n defaultDiceNumberMap.put(getHashCodeofPair(-7,-1), 5);\n defaultDiceNumberMap.put(getHashCodeofPair(7,-1), 9);\n defaultDiceNumberMap.put(getHashCodeofPair(0,4), 4);\n defaultDiceNumberMap.put(getHashCodeofPair(2,4), 10);\n\n defaultDiceNumberMap.put(getHashCodeofPair(-3,-3), 6);\n defaultDiceNumberMap.put(getHashCodeofPair(-1,-3), 10);\n defaultDiceNumberMap.put(getHashCodeofPair(1,-3), 8);\n defaultDiceNumberMap.put(getHashCodeofPair(3,-3), 0);\n defaultDiceNumberMap.put(getHashCodeofPair(-4,-2), 5);\n defaultDiceNumberMap.put(getHashCodeofPair(-2,-2), 3);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(2,-2), 2);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(4,-2), 0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-5,-1), 0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-3,-1), 11);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-1,-1), 9);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(1,-1), 5);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(3,-1), 4);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(5,-1), 0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-6,0), 10);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-4,0), 0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-2,0), 8);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(0,0), 10);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(2,0), 6);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(4,0), 0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(6,0), 12);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-5,1), 8);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-3,1), 0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-1,1), 0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(1,1), 0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(3,1), 0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(5,1), 5);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-4,2), 0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-2,2), 4);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(0,2), 3);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(2,2), 4);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(4,2), 0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-3,3),0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(-1,3), 0);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(1,3), 9);\n\t\tdefaultDiceNumberMap.put(getHashCodeofPair(3,3), 0);\n\t}", "public int numbers(int[] dice, int category) {\n\t\tint countScore=0;\n\t\tfor (int i = 0;i < n_dice; i++) {\n\t\t\tif(dice[i]==category) {\n\t\t\t\tcountScore=countScore+dice[i];\n\t\t\t}\n\t\t}\n\t\treturn countScore;\n\t}", "private static byte roll6SidedDie() {\n\t\tint test = (int)Math.floor(Math.random() * 6) + 1;\n\t\tbyte roll = (byte)test;\n\t\treturn roll;\n\t}", "private void diceSum(int dice, int desiredSum) {\r\n\t\tdiceSumHelper(dice, desiredSum, 0, new ArrayList<Integer>());\r\n\t\tSystem.out.println(calls);\r\n\t}", "public int takeTurn(Dice theDice){\n \n this.turnCounter++;\n \n return(theDice.rollDice());\n \n }", "private boolean checkCaTegoryLegitness(int[] dice, int category) {\n\t\t// our boolean that is false at the beginning.\n\t\tboolean legitnessStatus = false;\n\t\t// we don't need to check anything for one to six or for check so\n\t\t// boolean\n\t\t// will be true. we don't need to check for one to six because if player\n\t\t// chose one to six we score++ every time we get that number\n\t\t// in the dice. and if there is no that number than the score\n\t\t// automatically will be 0.\n\t\tif (category >= 1 && category <= 6 || category == CHANCE) {\n\t\t\tlegitnessStatus = true;\n\t\t} else {\n\t\t\t// but if player chose something other than one to six or chance we\n\t\t\t// make 6 array lists.\n\t\t\tArrayList<Integer> ones = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> twos = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> threes = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> fours = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> fives = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> sixes = new ArrayList<Integer>();\n\t\t\t// after that we get ones, twos and etc. until six from the dice\n\t\t\t// numbers we randomly got and add that numbers in the array it\n\t\t\t// belongs. for example if the integer on first dice is 5 we add 1\n\t\t\t// in array list called fives. finally, arrays size will give us how\n\t\t\t// many that number we have in our dices.\n\t\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\t\tif (dice[i] == 1) {\n\t\t\t\t\tones.add(1);\n\t\t\t\t} else if (dice[i] == 2) {\n\t\t\t\t\ttwos.add(1);\n\t\t\t\t} else if (dice[i] == 3) {\n\t\t\t\t\tthrees.add(1);\n\t\t\t\t} else if (dice[i] == 4) {\n\t\t\t\t\tfours.add(1);\n\t\t\t\t} else if (dice[i] == 5) {\n\t\t\t\t\tfives.add(1);\n\t\t\t\t} else if (dice[i] == 6) {\n\t\t\t\t\tsixes.add(1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// after we know how many ones, twos etc. we have its easy to check.\n\t\t\t// for THREE_OF_A_KIND if there is any of the arrays that size is\n\t\t\t// equal or more than 3 legitnessStatus should get true.\n\t\t\tif (category == THREE_OF_A_KIND) {\n\t\t\t\tif (ones.size() >= 3 || twos.size() >= 3 || threes.size() >= 3\n\t\t\t\t\t\t|| fours.size() >= 3 || fives.size() >= 3\n\t\t\t\t\t\t|| sixes.size() >= 3) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// for FOUR_OF_A_KIND if there is any of the arrays that size is\n\t\t\t\t// equal or more than 4 legitnessStatus should get true.\n\t\t\t} else if (category == FOUR_OF_A_KIND) {\n\t\t\t\tif (ones.size() >= 4 || twos.size() >= 4 || threes.size() >= 4\n\t\t\t\t\t\t|| fours.size() >= 4 || fives.size() >= 4\n\t\t\t\t\t\t|| sixes.size() >= 4) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// for FULL_HOUSE we want any of our array list size to be equal\n\t\t\t\t// to three and after that we have that we want one more array\n\t\t\t\t// to be\n\t\t\t\t// equal to two. that means that we will have three similar dice\n\t\t\t\t// and two more similar dice.\n\t\t\t} else if (category == FULL_HOUSE) {\n\t\t\t\tif (ones.size() == 3 || twos.size() == 3 || threes.size() == 3\n\t\t\t\t\t\t|| fours.size() == 3 || fives.size() == 3\n\t\t\t\t\t\t|| sixes.size() == 3) {\n\t\t\t\t\tif (ones.size() == 2 || twos.size() == 2\n\t\t\t\t\t\t\t|| threes.size() == 2 || fours.size() == 2\n\t\t\t\t\t\t\t|| fives.size() == 2 || sixes.size() == 2) {\n\t\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// there is only 3 way we can get SMALL_STRAIGHT. these are if\n\t\t\t\t// dices show: 1,2,3,4 or 2,3,4,5, or 3,4,5,6. for first one it\n\t\t\t\t// means we need our first array size to be one AND our second\n\t\t\t\t// array size to be one AND our third array size to be one AND\n\t\t\t\t// out fourth array list size to be one. and so on for other two\n\t\t\t\t// ways.\n\t\t\t} else if (category == SMALL_STRAIGHT) {\n\t\t\t\tif (ones.size() == 1 && twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t} else if (twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1 && fives.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t} else if (threes.size() == 1 && fours.size() == 1\n\t\t\t\t\t\t&& fives.size() == 1 && sixes.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// for LARGE_STRAIGHT there is only 2 ways. these are:1,2,3,4,5\n\t\t\t\t// or 2,3,4,5,6. for first one it\n\t\t\t\t// means we need our first array size to be one AND our second\n\t\t\t\t// array size to be one AND our third array size to be one AND\n\t\t\t\t// out fourth array list size to be one AND our fifth array list\n\t\t\t\t// size to be one. similar for second way starting from second\n\t\t\t\t// array list and going through to last sixth array list.\n\t\t\t} else if (category == LARGE_STRAIGHT) {\n\t\t\t\tif (ones.size() == 1 && twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1 && fives.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t} else if (twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1 && fives.size() == 1\n\t\t\t\t\t\t&& sixes.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// and for YAHTZEE we want any of our array list size to be\n\t\t\t\t// five. it will mean that all dices show same thing. because if\n\t\t\t\t// for example array list ones size is five it means that we\n\t\t\t\t// added 1 in that array 5 times and it means that we see 5 same\n\t\t\t\t// number on all dices.\n\t\t\t} else if (category == YAHTZEE) {\n\t\t\t\tif (ones.size() == 5 || twos.size() == 5 || threes.size() == 5\n\t\t\t\t\t\t|| fours.size() == 5 || fives.size() == 5\n\t\t\t\t\t\t|| sixes.size() == 5) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finally it will return boolean of true or false.\n\t\treturn legitnessStatus;\n\t}", "private void otherRolls() {\n\t\t// program tells that player should select dices to re-roll.\n\t\tdisplay.printMessage(\"Select the dice you wish to re-roll and click \"\n\t\t\t\t+ '\\\"' + \"Roll Again\" + '\\\"');\n\t\t// program will wait until player clicks \"roll again\" button.\n\t\tdisplay.waitForPlayerToSelectDice();\n\t\t// we randomly get six integers, from one to six, and we do it N_DICE\n\t\t// times and every time we write our random integer in the array.\n\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\tif (display.isDieSelected(i) == true) {\n\t\t\t\tint dice = rgen.nextInt(1, 6);\n\t\t\t\tdiceResults[i] = dice;\n\t\t\t}\n\t\t}\n\t\t// program will display dice, that depends on our randomly taken\n\t\t// integers.\n\t\tdisplay.displayDice(diceResults);\n\t}", "public static void main(String[] args) {\n Random y = new Random(); //아무값 랜덤\r\n //0~ 99 까지의 1000개 중 50보다 큰값들을 프린트 \r\n int[] in = new int [1000]; \r\n for (int i = 0; i < in.length; i++) {\r\n \tin[i] = y.nextInt(100);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n int count=0;\r\n for (int i = 0; i < 100; i++) {\r\n \tif (in[i] >= 50) {\r\n\t\t\t\t\t\tSystem.out.println(i+\":\"+in[i]);\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n System.out.println(\"50보다 큰개수는 : \" + count\r\n \t\t);\r\n\t}", "void rollDice();", "public int roll3D6()\n {\n Random random1 = new Random();\n int r = random1.nextInt(6) +1;\n r += random1.nextInt(6) +1;\n r += random1.nextInt(6) +1;\n return r;\n }", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "private Set<Integer> generateWinningNumbers()\r\n\t{\r\n\t\tSet<Integer> winningNumbers = new HashSet<Integer>();\r\n\t\t\r\n\t\tint i=0;\r\n\t\twhile(i<6)\r\n\t\t{\r\n\t\t\tboolean added = winningNumbers.add(random.nextInt(lotteryMax + 1));\r\n\t\t\tif(added) i++;\r\n\t\t}\r\n\t\treturn winningNumbers;\r\n\t}", "public static Integer getScoreFor_RollOnTwoPairs(Dice dice) \r\n\t{\r\n\t\tlog.debug(\"Inside method getScoreFor_RollOnTwoPairs\");\r\n\t\t\r\n\t\tInteger score = 0;\r\n\t\tInteger tempScore = 0;\r\n\t\tInteger pairCount = 0;\r\n\t\t\r\n\t\tMap<Integer, Integer> map = dice.getDiceNumberCountMap();\r\n\t\t\r\n\t\tfor ( Integer diceNumber : map.keySet() )\r\n\t\t{\r\n\t\t\t// if we can find a number in pair\r\n\t\t\tif ( map.get(diceNumber) >= 2 ) \r\n\t\t\t{\r\n\t\t\t\tpairCount = pairCount + 1;\r\n\t\t\t\t\r\n\t\t\t\ttempScore = tempScore + diceNumber * 2;\r\n\t\t\t\t\r\n\t\t\t\t// if pair count is 2 then score\r\n\t\t\t\tscore = ( pairCount == 2 ) ? tempScore : score;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn score;\r\n\t}", "public int aleatorioSeis(){\n\t\t\n\t\treturn (int)(Math.random() * 6) + 1;\n\t}", "public static void main(String[] args) {\n\tint count = 99 ;\t\n\tint ten = 0 ;\n\tSystem.out.println(\"Counting from 100 to 200\") ; \n\tSystem.out.println(\"Divisible by 5 or 6, but not both\") ;\n\tSystem.out.println(\"_______________________________________\") ;\n\t\t\n\t\t//Display all the numbers between 100 and 200\n\t\tdo {\n\t\t\tif (count % 5 == 0 ^ count % 6 == 0) {\n\t\t\t\tSystem.out.print(count + \" \") ;\n\t\t\t\tten++;\n\t\t\t}//display only 10 per line\n\t\t\tif (ten == 10){\n\t\t\t\tSystem.out.println() ;\n\t\t\t\tten = 0 ;\n\t\t\t}\n\t\t\tcount++ ;\n\t\t} while (count <= 200);\t\n\t\t\t\n\t}", "public static void main(String[] args)\n\t{\n\t\tScanner in=new Scanner(System.in);\n\t\tSystem.out.println(\"How many numbers do you need to drow?\");\n\t\tint n=in.nextInt();\n\t\tSystem.out.println(\"what is the highest number you can draw?\");\n\t\tint h=in.nextInt();\n\t\tint[] number=new int[h];\n\t\tfor(int i=0;i<number.length;i++)\n\t\t{\n\t\t\tnumber[i]=i+1;\n\t\t}\n\t\tint[] result=new int[n];\n\t\tfor(int i=0;i<result.length;i++)\n\t\t{\n\t\t\tresult[i]=number[(int)(Math.random()*h)];\n\t\t\tnumber[(int)(Math.random()*h)]=number[h-1];\n\t\t\th--;\n\t\t}\n\t\tArrays.sort(result);\n\t\tSystem.out.println(\"Bet the following combination. It'll make you rich!\");\n\t\tfor(int i=0;i<result.length;i++)\n\t\t{\n\t\t\tSystem.out.println(result[i]);\n\t\t}\n\t}", "private int fifteenValue() {\n int fiveValue = 0;\n Integer[] faceValue = new Integer[cards.length];\n Integer[][] combos;\n \n for (int i = 0; i < cards.length; i++) {\n for (CribbageRank card : CribbageRank.values()) {\n if (cards[i].charAt(0) == card.abbrev()) {\n faceValue[i] = card.faceValue();\n break;\n }\n }\n }\n \n /** For each combinations of the cards, check whether the sum is\n * equal to 15.\n */\n combos = Combinations.combinations(faceValue);\n for (int i = 0; i < combos.length; i++) {\n int sum = 0;\n for (int j = 0; j < combos[i].length; j++) {\n sum += combos[i][j];\n }\n \n if (sum == 15) {\n fiveValue += 2;\n }\n } \n return fiveValue;\n }", "public static int CPUTurn(){\n\t\t// Create the int variable turn and set it equal to a casted int random number.\n\t\tint turn = (int) Math.floor(Math.random()*3)+1;\n\t\t// Make a while loop that runs while turn is not equal to 1 and the count and turn variables are added to be greater than 20.\n\t\twhile(turn!=1 && count+turn>20) {\n\t\t\t// Set the turn variable equal to a casted int random number.\n\t\t\tturn = (int) Math.floor(Math.random()*3)+1;\n\t\t}\n\t\t// Have the system show what the CPU counts.\n\t\tSystem.out.println(\"CPU counts \"+turn+\".\");\n\t\treturn turn;\n\t}", "public static void main(String[] args) {\n\t\tint lotto_com[] = new int[6]; int lotto_user[] = new int[6]; int i;\n\t\tint count=0;\n\t\tint match_count=0;\n\t\twhile(count<lotto_com.length){\n\t\t\tlotto_com[count] =((int)(Math.random()*2000)%45)+1;\n\t\t\tfor(i=0;i<count;i++){\n\t\t\t\tif(lotto_com[i]==lotto_com[count]){\n\t\t\t\t\tlotto_com[count]=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(lotto_com[count]>0){\n\t\t\t\tcount++;\n\t\t\t}\n\n\t}\n\t\tcount=0;\n\t\twhile(count<lotto_user.length){\n\t\t\twhile((lotto_user[count] =getInput().readInt(\"원하는 \"+(count+1)+\"번째 로또 숫자를 입력하세요 \"))<1||lotto_user[count]>45){\n\t\t\t\tprintline(\"=> 잘못 입력하셨습니다.\");\n\t\t\t}\n\t\t\tfor(i=0;i<count;i++){\n\t\t\t\tif(lotto_user[i]==lotto_user[count]){\n\t\t\t\t\tlotto_user[count]=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(lotto_user[count]>0){\n\t\t\t\tfor(i=0;i<=count;i++){\n\t\t\t\t\tif(lotto_user[count]==lotto_com[i]){\n\t\t\t\t\t\tmatch_count++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprintline(\"=> 잘못 입력하셨습니다.\");\n\t\t\t}\n\n\t}\n\t\tprintline(\"\");\n\t\tprint(\"이번 주의 로또 당첨 번호는 \");\n\t\tfor(i=0;i<lotto_com.length;i++){\n\t\t\tprint(lotto_com[i]+\" \");\n\t\t}\n\t\tprintline(\"입니다.\\n\");\nprintf(\"일치하는 로또 번호는 %d개 입니다.\",match_count);\n\t}", "public int roll() \r\n {\r\n \r\n die1FaceValue = die1.roll();\r\n die2FaceValue = die2.roll();\r\n \r\n diceTotal = die1FaceValue + die2FaceValue;\r\n \r\n return diceTotal;\r\n }" ]
[ "0.7014602", "0.66721267", "0.6649906", "0.6640789", "0.6518235", "0.648026", "0.64437884", "0.6401948", "0.6338543", "0.63068855", "0.6295934", "0.6288236", "0.62745255", "0.62173307", "0.62001806", "0.6172772", "0.6160591", "0.61534196", "0.6149041", "0.6128296", "0.61177284", "0.61009467", "0.60899526", "0.60882837", "0.6064271", "0.6055226", "0.60547805", "0.6039637", "0.6012649", "0.6008643", "0.5991718", "0.5977874", "0.5977358", "0.5976814", "0.59621257", "0.5957777", "0.5950586", "0.59298825", "0.59232026", "0.5911903", "0.5910167", "0.5908499", "0.5907927", "0.58929724", "0.5881922", "0.5880138", "0.5870901", "0.58128124", "0.5812653", "0.5811984", "0.579842", "0.57969475", "0.5781186", "0.5746098", "0.5739258", "0.5732294", "0.57182235", "0.5710554", "0.57096106", "0.57065195", "0.5696626", "0.5677592", "0.56749564", "0.56747365", "0.5660942", "0.56600934", "0.5659912", "0.5642402", "0.56418145", "0.5640032", "0.5632801", "0.56315076", "0.56272554", "0.5624227", "0.5622589", "0.56213915", "0.56199557", "0.5613975", "0.5599606", "0.5592017", "0.5580422", "0.5570245", "0.5559522", "0.5556299", "0.5552538", "0.5544899", "0.5543987", "0.5541751", "0.5530474", "0.55287915", "0.55221456", "0.5505698", "0.55045533", "0.54999137", "0.5493649", "0.54887974", "0.54866546", "0.5473692", "0.54722667", "0.5469358" ]
0.5483291
97
TODO Autogenerated method stub
public void run() { synchronized (s1) { s1.out(threadname); } // s1.out(threadname); System.out.println(threadname + " exiting.."); }
{ "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
Fetches top 5 low priced hotels in the ascending order
@Override public List<Hotel> getLowPricedHotels(String cityName, Session session) { // TODO Auto-generated method stub List<Hotel> hotelList = new ArrayList<Hotel>(); Criteria cr = session.createCriteria(Hotel.class).add(Restrictions.eq("city", cityName)).addOrder(Order.asc("tariff")).setMaxResults(5); hotelList = cr.list(); return hotelList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Product> getTop5ProductsByQuantitySold();", "public List<GameData> getTopTen(Collection<GameData> listOfData, String difficulty){\n\t\t\n\t\tlogger.info(\"Top List on \" + difficulty + \" created.\");\t\n\t\t\n\t\tList<GameData> tempList = listOfData.stream()\n\t\t\t\t\t\t\t\t\t.filter(d -> d.getDifficulty().equals(difficulty))\n\t\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t\tif(tempList.size()>=10) {\n\t\t\treturn tempList.stream()\n\t\t\t\t\t.sorted((d1,d2) -> d2.getFinalScore() - d1.getFinalScore())\n\t\t\t\t\t.collect(Collectors.toList()).subList(0, 10);\n\t\t} else {\n\t\t\treturn tempList.stream()\n\t\t\t\t\t.sorted((d1,d2) -> d2.getFinalScore() - d1.getFinalScore())\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t}\t\n\t}", "private Artist[] getTop10(List<User> users){\n\t\tArtist[] top=new Artist[10];\n\t\tHashMap<Artist, Integer> rank=new HashMap<Artist,Integer>();\n\t\tfor(User u:users) {\n\t\t\tfor(int i=0;i<u.artists.size();i++) {\n\t\t\t\tArtist a=u.artists.get(i);\n\t\t\t\tInteger weight=rank.getOrDefault(a, 0);\n\t\t\t\trank.put(a, weight+u.artistsWeights.get(i));\n\t\t\t}\n\t\t}\n\t\tArrayList<Artist>ranking=new ArrayList<Artist>();\n\t\tranking.addAll(rank.keySet());\n\t\tranking.sort((a1,a2)->rank.get(a2)-rank.get(a1));\n\t\tfor(int i=0;i<10;i++) {\n\t\t\ttop[i]=ranking.get(i);\n\t\t}\n\t\treturn top;\n\t\t\n\t}", "public List<Integer> findTopGenesByPaperCnt( Integer n ) throws DAOException;", "public String getTop5() {\n\t\tboolean boo = false;\n\t\tArrayList<String> keys = new ArrayList<String>();\n\t\tkeys.addAll(getConfig().getConfigurationSection(\"player.\").getKeys(false));\n\t\tArrayList<Integer> serious = new ArrayList<Integer>();\n\t\tHashMap<Integer, String> seriousp = new HashMap<Integer, String>();\n\t\tfor (int i = 0; i < keys.size(); i++) {\n\t\t\tserious.add(getConfig().getInt(\"player.\" + keys.get(i) + \".gp\"));\n\t\t\tseriousp.put(getConfig().getInt(\"player.\" + keys.get(i) + \".gp\"), keys.get(i));\n\t\t}\n\t\tComparator<Integer> comparator = Collections.<Integer> reverseOrder();\n\t\tCollections.sort(serious, comparator);\n\t\tString retstr = \"\";\n\t\tfor (int i = 0; i < serious.size(); i++) {\n\t\t\tretstr += serious.get(i).toString() + \" - \" + seriousp.get(serious.get(i)) + \"\\n\";\n\t\t\tif (i == 6) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn retstr;\n\t}", "public Artist[] getTop10() {\n\t\tArrayList<User> users=new ArrayList<User>();\n\t\tusers.addAll(this.users.values());\n\t\treturn getTop10(users);\n\t}", "private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }", "@Override\n public Set<Book> topBooksByPrice(Integer number) {\n List<Book> allBooks = this.repository.findAll();\n\n Set<Book> topBooks = new HashSet<>(allBooks);\n return topBooks.stream()\n .sorted(comparing(Book::getPrice, comparing(Math::abs))\n .reversed())\n .limit(number)\n .collect(Collectors.toSet());\n }", "@Override\r\n\tpublic List<Top5OrderItems> getTop5orderItems() {\n\t\tList<Object[]> list=null;\r\n\t\tList<Top5OrderItems> top5OrderItems=null;\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tlist=boardDao.getTop5orderItems();\r\n\t\t\ttop5OrderItems=new ArrayList<Top5OrderItems>();\r\n\t\t\tIterator<Object[]> iterator=list.iterator();\r\n\t\t\twhile(iterator.hasNext())\r\n\t\t\t{\r\n\t\t\t\tObject[] objects=(Object[])iterator.next();\r\n\t\t\t\tTop5OrderItems orderItems=new Top5OrderItems();\r\n\t\t\t\torderItems.setMaterial((String)objects[0]);\r\n\t\t\t\torderItems.setQuantity(Float.valueOf((String)objects[1]));\r\n\t\t\t\ttop5OrderItems.add(orderItems);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t\treturn top5OrderItems;\r\n\t}", "public List<Integer> findTopGenesByRanking( Integer n ) throws DAOException;", "public List<ItemEntity> getTopItems (Integer restaurantId){\n try {\n return entityManager.createNativeQuery(\"select i.* from item i inner join (select oi.item_id from order_item oi inner join (select o.* from orders o where o.restaurant_id = ?) order_filter on order_filter.id = oi.order_id group by oi.item_id order by count(oi.item_id) desc limit 5) top_items on i.id=top_items.item_id;\", ItemEntity.class)\n .setParameter(1, restaurantId)\n .getResultList();\n }\n catch (NoResultException exception){\n return null;\n }\n }", "public static void main(String[] args) {\n TopKStocksByVolume topKStocksByVolume = new TopKStocksByVolume();\n topKStocksByVolume.addStocksVolume(\"INTC\", 12);\n topKStocksByVolume.addStocksVolume(\"CSCO\", 20);\n topKStocksByVolume.addStocksVolume(\"AA\", 10);\n topKStocksByVolume.addStocksVolume(\"INTC\", 18);\n topKStocksByVolume.addStocksVolume(\"UAL\", 4);\n topKStocksByVolume.addStocksVolume(\"BOE\", 2);\n topKStocksByVolume.addStocksVolume(\"BOA\", 16);\n topKStocksByVolume.addStocksVolume(\"BOA\", 24);\n\n List<String> ans = topKStocksByVolume.topKstocks(5);\n\n System.out.println(\"Top 5 stocks are as follows: \");\n for (String stock : ans) {\n System.out.println(stock);\n }\n\n // BOA, INTC, CSCO, AA, UAL, BOE\n }", "public List<Song> findTopTen(){\n\t\treturn this.songRepo.findTop10ByOrderByRatingDesc();\n\t}", "public List<Highscore> getTopTen(Context context){\n highscore = db.getTopTen();\n return highscore;\n }", "public ArrayList<Double> getFiveHighestScore() {\n int size = scoreList.size();\n ArrayList<Double> fiveHighestList = new ArrayList<>();\n if (size <= 5) {\n for (Double score: scoreList) {\n fiveHighestList.add(score);\n }\n } else {\n for (int i = 0; i < 5; i++)\n fiveHighestList.add(scoreList.get(i));\n }\n return fiveHighestList;\n }", "List<Candlestick> findTop2ByOrderByTimestampDesc();", "public HashMap<UUID, Double> getTop(int limit) {\n PreparedStatement preparedStatement = null;\n try\n {\n HashMap<UUID, Double> topMap = new HashMap<>();\n preparedStatement = connection.prepareStatement(\n String.format(\"SELECT uuid, balance FROM %s.accounts ORDER BY balance DESC LIMIT ?;\",\n simpleEconomy.getConfig().getString(\"db.database\")));\n preparedStatement.setInt(1, limit);\n ResultSet resultSet = preparedStatement.executeQuery();\n while (resultSet.next()) {\n topMap.put(UUID.fromString(resultSet.getString(\"uuid\")), resultSet.getDouble(\"balance\"));\n }\n return topMap;\n }\n catch (SQLException e)\n {\n e.printStackTrace();\n }\n return new HashMap<>();\n }", "public List<String>top10Utilizadores() {\n Map<String,List<String>> utilizadorEncomendas = new HashMap<String,List<String>>();\n \n for(Encomenda e : this.encomendas.values()) {\n if(!utilizadorEncomendas.containsKey(e.getCodigoUtilizador())) {\n utilizadorEncomendas.put(e.getCodigoUtilizador(), new ArrayList<>());\n }\n utilizadorEncomendas.get(e.getCodigoUtilizador()).add(e.getCodigoEncomenda());\n }\n \n // a partir do primeiro map criar um segundo com codigo de utilizador e numero de encomendas\n // a razao de ser um double é porque o mesmo comparator é também utilizado no metodo List<String>top10Transportadores()\n Map<String,Double> utilizadoresNumeroEncs = new HashMap<>();\n \n Iterator<Map.Entry<String, List<String>>> itr = utilizadorEncomendas.entrySet().iterator(); \n \n while(itr.hasNext()) { \n Map.Entry<String, List<String>> entry = itr.next(); \n utilizadoresNumeroEncs.put(entry.getKey(), Double.valueOf(entry.getValue().size()));\n }\n \n MapStringDoubleComparator comparator = new MapStringDoubleComparator(utilizadoresNumeroEncs);\n \n // criar map ordenado (descending)\n TreeMap<String, Double> utilizadorNumeroEncsOrdenado = new TreeMap<String, Double>(comparator);\n \n utilizadorNumeroEncsOrdenado.putAll(utilizadoresNumeroEncs);\n \n // retornar a lista de codigos de utilizadores pretendida\n return utilizadorNumeroEncsOrdenado.keySet()\n .stream()\n .limit(10)\n .collect(Collectors.toList()); \n }", "private static void top5itemsLastMonth(List<Inventory> inventoryList) {\n\n System.out.println(\"\\nTop 5 items last month\");\n\n inventoryList.stream()\n .filter(p2)\n .collect(Collectors.groupingBy(Inventory::getName, LinkedHashMap::new,Collectors.summingInt(Inventory::getQuantity)))\n .entrySet()\n .stream()\n .sorted(Map.Entry.comparingByValue(Collections.reverseOrder()))\n .limit(5)\n .forEach(System.out::println);\n }", "public List<Song> topTen() {\n\t\treturn lookifyRepository.findTop10ByOrderByRatingDesc();\n\t}", "private static ArrayList<String> topSortedRecipes(TreeMap<Double, ArrayList<String>> ratedMap,\n int numRecipesToReturn) {\n ArrayList<String> topSortedRecipes = new ArrayList<>();\n int numToAdd = numRecipesToReturn;\n for (double key : ratedMap.keySet()) {\n ArrayList<String> rep = ratedMap.get(key);\n\n topSortedRecipes.addAll(rep.subList(0, min(numToAdd, rep.size())));\n numToAdd = numToAdd - rep.size();\n if (numToAdd < 0) {\n return topSortedRecipes;\n }\n }\n return topSortedRecipes;\n }", "List<PersonHelpfulness> topKHelpfullUsers(final int k) {\n // map to pairs of uID and helpfulness, then cut the helpfulness to 2 parts\n // filter out 0s, then sum both parts using reduce by key\n // then, map to PersonHelpfulness CLASS that has it's own comparator\n // then, return topK (validity checked) list (collect)\n JavaRDD<PersonHelpfulness> helpfulUsers = movieReviews\n .mapToPair(a -> new Tuple2<>(a.getUserId(), a.getHelpfulness()))\n .mapToPair(s -> new Tuple2<>(s._1, new Tuple2<>(Double.parseDouble(s._2.substring(0,s._2.lastIndexOf('/'))),\n Double.parseDouble(s._2.substring(s._2.lastIndexOf('/') + 1, s._2.length())))))\n .filter(s -> s._2._2 != 0)\n .reduceByKey((a,b) -> new Tuple2<>(a._1 + b._1, a._2 + b._2))\n .map(s -> new PersonHelpfulness(s._1, roundFiveDecimal(s._2._1/s._2._2)));\n return helpfulUsers.top(getRealTopK(k,helpfulUsers.count() ));\n }", "@GetMapping(\"/bestof\")\n public ResponseEntity<List<ArticleLister>> getTopTen(){\n return new ResponseEntity<>(articleService.getTopTen(), HttpStatus.OK);\n }", "public Book mostExpensive() {\n //create variable that stores the book thats most expensive\n Book mostExpensive = bookList.get(0);//most expensive book is set as the first in the array\n for (Book book : bookList) {\n if(book.getPrice() > mostExpensive.getPrice()){\n mostExpensive = book;\n }\n } return mostExpensive;//returns only one (theFIRST) most expensive in the array if tehre are several with the same price\n }", "@RequestMapping(\"/top-posts\")\n public List<PostEntity> topPostsByUser(Principal principal) {\n List<PostEntity> fullList = postService.topPostsByUser(principal.getName());\n List<PostEntity> top15List = new ArrayList<>();\n int counterMax;\n\n if (fullList.size() < 15) {\n counterMax = fullList.size();\n } else {\n counterMax = 14;\n }\n\n for (int i = 0; i < counterMax; i++) {\n top15List.add(fullList.get(i));\n }\n\n return top15List;\n }", "public static void topXSimpleLTVCustomer(int x,Data data){\n ArrayList<OutPut> outputlist = new ArrayList<OutPut>();\n HashMap<String, HashMap<Long, ArrayList<Order>>> hashmap = data.getOrderdata();;\n\n //getting all customers output and storing them in the arraylist\n for(String customers: hashmap.keySet()){\n //System.out.println(\"customers : \"+customers);\n HashMap<Long, ArrayList<Order>> hashmapweeknumber = hashmap.get(customers);\n double sum =0;\n double a = 0;\n int weekNumbersSize = hashmapweeknumber.size();\n double sumCustomerExpenditurePerVisit = 0;\n for(long weeknumbers: hashmapweeknumber.keySet()){\n //System.out.println(\"weeknumbers : \"+weeknumbers);\n ArrayList<Order> orders = hashmapweeknumber.get(weeknumbers);\n int size = orders.size();\n int i=0;\n double customerExpendituresPerVisit = 0;\n int totalNumberOfVisits= size;\n while(i<size) {\n sum = sum + orders.get(i).getTotal_amount();\n i++;\n }\n customerExpendituresPerVisit = sum/size;\n sumCustomerExpenditurePerVisit = sumCustomerExpenditurePerVisit + customerExpendituresPerVisit;\n //System.out.println(sum/size);\n }\n //a contains the average customer value per week\n a = sumCustomerExpenditurePerVisit/weekNumbersSize;\n //simpleLTF contains the life time customer value\n double simpleLTF = (52*a)*10;\n OutPut output = new OutPut();\n output.setCustomer_id(customers);\n output.setCustomer_ltf(simpleLTF);\n outputlist.add(output);\n }\n\n //Sorts all the custoemrs in the arraylist.\n Collections.sort(outputlist, new OutputSorter());\n //getting the top x customers from all the customers\n if(outputlist.size()<x){\n System.out.println(\"number of of customers in the data are less than x value, please provide smaller x value\");\n }else{\n System.out.println(\"\");\n System.out.println(\"Top \"+x+\" customers with highest Simple LTV are : \");\n\n for(int i=0; i<x;i++){\n System.out.println(outputlist.get(i).getCustomer_id()+\" : \"+outputlist.get(i).getCustomer_ltf());\n }\n }\n\n }", "public void getFiveMostLikedComment() {\n Map<Integer, Comment> comments = DataStore.getInstance().getComments();\n List<Comment> commentList = new ArrayList<>(comments.values());\n \n Collections.sort(commentList, new Comparator<Comment>() {\n @Override \n public int compare(Comment o1, Comment o2) {\n return o2.getLikes() - o1.getLikes();\n }\n });\n \n System.out.println(\"5 most likes comments: \");\n for (int i = 0; i < commentList.size() && i < 5; i++) {\n System.out.println(commentList.get(i));\n }\n }", "public void getFiveMostLikedComment() {\n Map<Integer, Comment> comments = DataStore.getInstance().getComments();\n List<Comment> commentList = new ArrayList<>(comments.values());\n \n Collections.sort(commentList, new Comparator<Comment>() {\n @Override \n public int compare(Comment o1, Comment o2) {\n return o2.getLikes() - o1.getLikes();\n }\n });\n \n System.out.println(\"5 most likes comments: \");\n for (int i = 0; i < commentList.size() && i < 5; i++) {\n System.out.println(commentList.get(i));\n }\n }", "public void getFiveMostLikedComment() {\n Map<Integer, Comment> comments = DataStore.getInstance().getComments();\n List<Comment> commentList = new ArrayList<>(comments.values());\n \n Collections.sort(commentList, new Comparator<Comment>() {\n @Override \n public int compare(Comment o1, Comment o2) {\n return o2.getLikes() - o1.getLikes();\n }\n });\n \n System.out.println(\"5 most likes comments: \");\n for (int i = 0; i < commentList.size() && i < 5; i++) {\n System.out.println(commentList.get(i));\n }\n }", "List<T> findMostPopularTags(Integer firstResult, Integer maxResult);", "public int getVeggieToppings() {\n return veggieToppings;\n }", "int getPopularity();", "@Override\n\tpublic List<DgCallService> selectTopYxeZf5(DgPos pso) {\n\t\tList<Integer> integers = StringUtil.arrayToList(pso\n\t\t\t\t.getConsumerAreas());\n\t\tMap org = new HashMap();\n\t\torg.put(\"areaIds\",integers);\n\t\torg.put(\"type\",2);\n\t\treturn dgCallServiceMapper.selectTop5(org);\n\t}", "private static int[] topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map = new HashMap<>();\n for (int n: nums){\n map.put(n, map.getOrDefault(n, 0) + 1);\n }\n\n // Step2: Build max heap.\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n for (int value: map.values()){\n pq.add(value);\n if (pq.size() > k){\n pq.poll();\n }\n }\n\n // Step3: Build result list.\n ArrayList<Integer> retList = new ArrayList<>();\n for (int n: pq){\n for (Map.Entry<Integer, Integer> entry: map.entrySet()){\n if (n == entry.getValue()){\n retList.add(entry.getKey());\n }\n }\n }\n\n return retList.stream().distinct().mapToInt(x -> x).toArray();\n }", "public List<Integer> topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map=new HashMap<Integer, Integer>();\n for(int num:nums)\n {\n if(map.containsKey(num))\n map.put(num, map.get(num)+1);\n else\n map.put(num,1);\n }\n\t\t//make min heap\n PriorityQueue<Node> pq=new PriorityQueue<Node>(new Comparator<Node>(){\n public int compare(Node a, Node b)\n {\n return a.count-b.count;\n }\n });\n for(int key:map.keySet())\n {\n Node n=new Node(key, map.get(key));\n pq.offer(n);\n if(pq.size()>k)\n pq.poll();\n }\n List<Integer> list=new ArrayList<Integer>();\n while(!pq.isEmpty())\n {\n list.add(pq.poll().n);\n }\n \n return list;\n }", "@GET(\"search.ashx?num_of_results=5\")\n Observable<AutoCompleteApiResponse> getTop5Suggestions(@Query(\"q\") String query);", "public Computer findMostExpensiveComputerV1( ) { \n\t\tComputer highest= computers.get(0);\n\t\tfor (int index=1; index<computers.size();index++){\n\t\t\tif (highest.getPrice()<computers.get(index).getPrice()) {\n\t\t\t\thighest= computers.get(index);\n\n\t\t\t}\n\t\t}\n\t\treturn highest;\n\t}", "private static List<String> getTopNCompetitors(int numCompetitors,\n int topNCompetitors, \n List<String> competitors,\n int numReviews,\n List<String> reviews) {\n\t\t\n\t\t HashMap<String, Integer> map = new HashMap<>();\n\t\t for(String comp : competitors){\n\t map.put(comp.toLowerCase(),0);\n\t }\n\t\t\n\t for(String sentence : reviews){\n\t String[] words = sentence.split(\" \"); // get all the words in one sentence and put them in a String array \n\t for(String word : words){\n\t if(map.containsKey(word.toLowerCase())) { // check if map has any of the words (competitor name). if yes increase its value\n\t map.put(word.toLowerCase(), map.get(word.toLowerCase()) + 1);\n\t }\n\t }\n\t }\n\t \n\t PriorityQueue<String> pq =new PriorityQueue<>((String i1,String i2)->{ \n\t return map.get(i1)-map.get(i2); \n\t });\n\t for(String key:map.keySet()){\n\t pq.add(key);\n\t if(pq.size()>topNCompetitors) pq.poll();\n\t }\n\t List<String> result=new ArrayList<>();\n\t while(!pq.isEmpty())\n\t result.add(pq.poll());\n\t \n\t Collections.reverse(result);\n\t \n\t return result; \n\t \n}", "public Computer findMostExpensiveComputerV2( ) { \n\t\tComputer highest= computers.get(0);\n\t\tint index=1; \n\t\twhile (index<computers.size()){\n\t\t\tif (highest.getPrice()<computers.get(index).getPrice()) {\n\t\t\t\thighest= computers.get(index);\n\n\t\t\t}\n\t\t\tindex ++;\n\t\t}\n\t\treturn highest;\n\n\t}", "public static ArrayList<AvailableHotelRoom> SortByPrice(int op) {\n\t\tArrayList<AvailableHotelRoom> _AHR = (ArrayList<AvailableHotelRoom>) AHR.clone();\n\t\tCollections.sort(_AHR, new Comparator<AvailableHotelRoom>() {\n\t\t\tpublic int compare(AvailableHotelRoom a, AvailableHotelRoom b) {\n\t\t\t\treturn (op == 1 ? (countSumPrice(a) - countSumPrice(b)) : (countSumPrice(b) - countSumPrice(a)));\n\t\t\t}\n\t\t});\n\t\treturn _AHR;\n\t}", "public Hotel bestHotel() {\r\n \tArrayList<Hotel> hotels = hotelDAO.getHotelList();\r\n \tHotel bestHotel=hotels.get(0);\r\n \tfor (int i=0; i<hotels.size();i++) {\r\n \t\tif(averageBewertungHotel(bestHotel)<averageBewertungHotel(hotels.get(i))) {\r\n \t\t\tbestHotel=hotels.get(i);\r\n \t\t}\r\n \t}\r\n \treturn bestHotel;\r\n }", "public List<Order> getOrdersByPrice(Integer low, Integer height) throws Exception;", "@ParameterizedTest\n @ValueSource(ints = {1, 2, 3})\n public void shouldReturnMostExpensiveLaunches(int k) {\n when(dao.loadAll(Launch.class)).thenReturn(launches);\n List<Launch> sortedLaunches = new ArrayList<>(launches);\n sortedLaunches.sort((a, b) -> -a.getPrice().compareTo(b.getPrice()));\n List<Launch> loadedLaunches = miner.mostExpensiveLaunches(k);\n assertEquals(k, loadedLaunches.size());\n assertEquals(sortedLaunches.subList(0, k), loadedLaunches);\n }", "public static int[] getTopKElements(int[] arr, int numOfTopElements) {\n TreeSet<Node> tree = new TreeSet<>();\n\n for (int num : arr) {// O(n^1)\n tree.add(new Node(num));\n\n if (tree.size() > numOfTopElements) {\n int x = Objects.requireNonNull(tree.pollFirst(), \"tree element failed\").data;//O(n log n)\n }\n }\n\n int[] topNums = tree.stream().mapToInt((node) -> node.data).toArray();\n return topNums;\n }", "public Computer findMostExpensiveComputerV4( ) { \n\n\t\tComputer highest= computers.get(0);\n\t\tIterator<Computer> it= computers.iterator();\n\t\tComputer current=null; // a temporary copy of has.next() to perform multiple actions on it inside the loop\n\t\twhile(it.hasNext()) {\n\t\t\tcurrent=it.next();\n\t\t\tif (highest.getPrice()<current.getPrice()) \n\t\t\t\thighest=current;\n\n\n\t\t}\n\n\t\treturn highest;\n\n\t}", "public static List<String> getTopVideos(){\n\t\tList<String> retList = new ArrayList<String>();\r\n\t\tIterator<Video> itr = pq.iterator();\r\n\t\tPriorityQueue<Video> localPq = new PriorityQueue<Video>(new VideoComparator());\r\n\t\twhile(itr.hasNext())\r\n\t\t{\r\n\t\t\tlocalPq.add(itr.next());\r\n\t\t}\r\n\r\n\t\tint rank = 0;\r\n\t\twhile(!localPq.isEmpty() && rank<10)\r\n\t\t{\r\n\t\t\tretList.add(localPq.poll().getVideoId());\r\n\t\t\trank++;\r\n\t\t}\r\n\t\treturn retList;\r\n\t}", "public List<cc> top(int k) {\n\t\tList<cc> topK = new ArrayList<>();\n\t\t\n for(int i = 0; i < k; i++){\n topK.add(ccList.get(i));\n }\n \n return topK;\n\t}", "public int getCheeseToppings() {\n return cheeseToppings;\n }", "public List<Integer> getTopSpacings() {\n return topSpacings;\n }", "@Override\n\tpublic List<Employee> orderEmployeeByExperience() {\n\t\tSession sess = sessionFactory.openSession();\n\t\tQuery query = sess.createQuery(\"from Employee e order by e.expPoints DESC\").setMaxResults(5);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Employee> employees = (List<Employee>) query.getResultList();\n\t\treturn employees;\n\t}", "public static ArrayList<String> getTopTen() throws Exception{\n\t\n\tint start, end;\n\tFile xmlFile = getFile();\n\tif(!xmlFile.exists()){\n\t\tJOptionPane.showMessageDialog(null, \"Record Does nor exist\");\n\t}\n\tScore root = new Score();\n\tMap<String, Integer> standings = new TreeMap<String, Integer>();\n root = readObjectAsXmlFrom(new FileReader(xmlFile.getAbsolutePath()), root.getClass());\n standings = root.standings;\n Map<String, Integer> sortedStandings = sortByValue(standings);\n Set<Entry<String, Integer>> keys = sortedStandings.entrySet();\n Object[] sortedArr = keys.toArray();\n end = sortedArr.length;\n if(end<=10) start = 0;\n else start = end -10;\n ArrayList<String> result = new ArrayList<String>();\n for(int x = start; x<end;x++){\n \tresult.add(sortedArr[x].toString());\n }\n\treturn result;\n }", "private static List<Integer> getTopKFrequentElementsAverageCase(int[] nums, int k) {\n if(k > nums.length) {\n return new ArrayList<>();\n }\n\n Map<Integer, Integer> numToCount = new HashMap<>();\n\n for(int num : nums) {\n numToCount.put(num, numToCount.getOrDefault(num, 0) + 1);\n }\n\n PriorityQueue<Integer> queue = new PriorityQueue<>(new Comparator<Integer>() {\n @Override\n public int compare(Integer i1, Integer i2) {\n return numToCount.get(i1) - numToCount.get(i2);\n }\n });\n\n for(int num : numToCount.keySet()) {\n queue.add(num);\n\n if(queue.size() > k) {\n queue.poll();\n }\n }\n\n List<Integer> result = new ArrayList<>();\n\n while(!queue.isEmpty()) {\n result.add(queue.poll());\n }\n\n // queue will add the nums in reverse order\n Collections.reverse(result);\n return result;\n }", "public List<Map<String, Integer>> getTopCards() {\n return topCards;\n }", "public Computer findMostExpensiveComputerV3( ) {\n\n\t\tComputer highest= computers.get(0);\n\n\t\tfor (Computer c : computers)\n\t\t\tif (highest.getPrice()<c.getPrice()) {\n\t\t\t\thighest=c;\n\n\t\t\t}\n\n\n\t\treturn highest;\n\t}", "public ArrayList top(int newSize)\n {\n ArrayList <Personality> pListTop;\n pListTop = new ArrayList<Personality>();\n boolean checking = true;\n\n //sorter for pList\n Collections.sort(pList, new Comparator<Personality>()\n {\n public int compare(Personality p1, Personality p2)\n {\n return Integer.compare(p2.getVotes(), p1.getVotes());\n }\n }\n );\n\n //changes newSize to the size of pList if newSize is greater than it to prevent the following going above the size of the array\n if (newSize>pList.size())\n {\n newSize = pList.size(); \n }\n\n //adds entries to pListTop upto the newSize limit\n for (int index = 0; index < newSize; index++)\n {\n pListTop.add(pList.get(index));\n }\n\n //checks if the last new entry has the same number of votes as the next entry in pList\n //if yes it is added to pListTop and then process repeats until votes no longer match\n if(newSize>0 && newSize<pList.size())\n {\n for(int checkUnit = newSize; checkUnit<pList.size(); checkUnit++)\n {\n if (pListTop.get(checkUnit-1).getVotes() == pList.get(checkUnit).getVotes())\n {\n pListTop.add(pList.get(checkUnit));\n }\n else\n {\n return pListTop;\n }\n }\n }\n \n return pListTop;\n }", "public List<Integer> findTopGenesByVariantCnt( Integer n ) throws DAOException;", "public List<Integer> topk() {\n Iterator it = minheap.iterator();\r\n List<Integer> result = new ArrayList<Integer>();\r\n while (it.hasNext()) {\r\n result.add((Integer) it.next());\r\n }\r\n Collections.sort(result, Collections.reverseOrder());\r\n return result;\r\n }", "TasteProfile.TopThreeUsers getTopThreeUsersBySong (String song_id);", "@Override\n public List<News> getTop(int top) throws Exception {\n Connection conn = null;\n PreparedStatement statement = null;\n ResultSet result = null;\n List<News> list = new ArrayList<>();\n String query = \"select top (?) * from news\\n\"\n + \"order by timePost desc\";\n try {\n conn = getConnection();\n statement = conn.prepareStatement(query);\n statement.setInt(1, top);\n result = statement.executeQuery();\n while (result.next()) {\n News news = new News(result.getInt(\"ID\"),\n result.getString(\"title\"),\n result.getString(\"description\"),\n result.getString(\"image\"),\n result.getString(\"author\"),\n result.getDate(\"timePost\"),\n result.getString(\"shortDes\"));\n list.add(news);\n }\n } catch (ClassNotFoundException | SQLException e) {\n throw e;\n } finally {\n closeResultSet(result);\n closePreparedStatement(statement);\n closeConnection(conn);\n }\n return list;\n }", "TasteProfile.TopThreeSongs getTopThreeSongsByUser (String user_id);", "private static List<Integer> getTopKFrequentElementsBestCase(int[] nums, int k) {\n if(k > nums.length) {\n return new ArrayList<>();\n }\n\n Map<Integer, Integer> numToCount = new HashMap<>();\n int max = 0;\n for(int i = 0; i < nums.length; i++) {\n numToCount.put(nums[i], numToCount.getOrDefault(nums[i], 0) + 1);\n max = Math.max(max, numToCount.get(nums[i]));\n }\n\n List<Integer>[] numsPerFrequency = new ArrayList[max + 1];\n for(int i = 1; i <= max; i++) {\n numsPerFrequency[i] = new ArrayList<>();\n }\n\n for(Map.Entry<Integer, Integer> entry : numToCount.entrySet()) {\n numsPerFrequency[entry.getValue()].add(entry.getKey());\n }\n\n List<Integer> result = new ArrayList<>();\n\n for(int i = max; i >= 0; i--) {\n List<Integer> numsWithThisFreq = numsPerFrequency[i];\n\n for(int num : numsWithThisFreq) {\n result.add(num);\n if(result.size() == k) {\n return result;\n }\n }\n }\n\n return new ArrayList<>();\n }", "public JSONArray getCandidatesForTopChoice(JSONArray applicants)\n\t{\n\t\ttry {\n\t\t\t// Nach Gesamtreputation sortieren\n\t\t\tQuickSorter.sort(applicants);\n\t\t\t// Es wird nur das obere Quartil an Daten betrachtet\n\t\t\tJSONArray arrayWithRankings = this.calculateRankings(this.getUpperQuartile(applicants));\n\t\t\treturn getTopCandidatesBasedOnRankings(arrayWithRankings);\n\t\t} catch (JSONException je) {\n\t\t\tje.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public List<ExplanationFeature> getTopNFeatures() {\n\t\tList<ExplanationFeature> ret = Lists.newArrayList(this.entries);\n\t\tCollections.sort(ret);\n\t\treturn ret;\n\t}", "List<RiceCooker> getPerPage(long startRow, long maxRows);", "private void getCityHotels(String tag) {\n\n HotelListingRequest hotelListingRequest = HotelListingRequest.getHotelListRequest();\n hotelListingRequest.setCurrencyCode(userDTO.getCurrency());\n hotelListingRequest.setLanguageCode(userDTO.getLanguage());\n hotelListingRequest.setCheckInDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkInDate));\n hotelListingRequest.setCheckOutDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkOutDate));\n hotelListingRequest.setPageNumber(1);\n hotelListingRequest.setPageSize(10);\n\n\n if (tag.equals(\"noRooms\")) {\n\n hotelListingRequest.setCityId(cityId); // for sold out hotels.. set popularity and descending order.\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n } else {\n\n hotelListingRequest.setCityId(Long.parseLong(destination.getKey())); // regular flow.. getting cityId and areaId from destination.\n\n UserDTO.getUserDTO().setCityName(destination.getDestinationName());\n // here check whether category is city search otherwise areaWise search\n if (destination.getCategory().equals(\"City\")) {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n\n } else {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"area\");\n hotelListingRequest.setSortByArea(0);\n }\n\n\n }\n\n\n ArrayList<OccupancyDto> occupancyDtoArrayList = new ArrayList<>();\n for (int i = 0; i < hotelAccommodationsArrayList.size(); i++) {\n kidsAgeArrayList = new ArrayList<>();\n if (hotelAccommodationsArrayList.get(i).getKids() > 0) {\n if (hotelAccommodationsArrayList.get(i).getKids() == 1) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n } else if (hotelAccommodationsArrayList.get(i).getKids() == 2) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid2Age());\n }\n }\n\n occupancyDtoArrayList.add(new OccupancyDto(hotelAccommodationsArrayList.get(i).getAdultsCount(), kidsAgeArrayList));\n hotelListingRequest.setOccupancy(occupancyDtoArrayList);\n }\n FiltersRequestDto filtersRequestDto = new FiltersRequestDto();\n filtersRequestDto.setAmenityIds(null);\n filtersRequestDto.setAreaIds(null);\n filtersRequestDto.setHotelId(null);\n filtersRequestDto.setCategoryIds(null);\n filtersRequestDto.setChainIds(null);\n filtersRequestDto.setMaxPrice(0.00);\n filtersRequestDto.setMinPrice(0.00);\n filtersRequestDto.setTripAdvisorRatings(null);\n filtersRequestDto.setStarRatings(null);\n hotelListingRequest.setFilters(filtersRequestDto);\n\n request = new Gson().toJson(hotelListingRequest);\n\n if (NetworkUtilities.isInternet(getActivity())) {\n\n showDialog();\n\n hotelSearchPresenter.getHotelListInfo(Constant.API_URL + Constant.HOTELLISTING, request, context);\n\n\n } else {\n\n Utilities.commonErrorMessage(context, context.getString(R.string.Network_not_avilable), context.getString(R.string.please_check_your_internet_connection), false, getFragmentManager());\n }\n\n }", "public void printTopRatingMovies() {\n\t\tCollections.sort(this.dataList, new SortByRating());\n\t\tint top = Math.min(5, getDataLength());\n\t\tfor (int i=0; i<top; ++i) {\n\t\t\tSystem.out.println(this.dataList.get(i).toString());\n\t\t}\n\t\tCollections.sort(this.dataList);\n\t}", "public List<Integer> findTopGenesByEventCnt( Integer n ) throws DAOException;", "public void sort10(){\r\n\t\tArrayList<wifi> temp = new ArrayList<>();\r\n\t\tfor(int i=0; i<wifis.size() && i<10; i++)\r\n\t\t\ttemp.add(wifis.get(i));\r\n\t\twifis = temp;\r\n\t}", "public List<List<?>> getItemsWithHigherPrice(double price) {\n\t\tSqlFieldsQuery query = new SqlFieldsQuery(\"SELECT * FROM Item WHERE attr(22) > 0\");\n\n\t\t// Executing the query.\n\t\treturn ignite.getOrCreateCache(\"ItemCache\").query(query).getAll();\n\t}", "@Override\r\n\tpublic ArrayList<MatchPO> getLatest5Matches(PlayerPO player) {\n\t\tArrayList<MatchPO> allMatches = player.getMatches(Config.LASTEST_SEASON) ;\r\n\t\tif(allMatches.size()<5){\r\n\t return allMatches ;\r\n\t\t}\r\n\t\tArrayList<MatchPO> latest5Matches = new ArrayList<>(allMatches.subList(allMatches.size()-5, \r\n\t\t\t\tallMatches.size())) ;\r\n\t\treturn latest5Matches ;\r\n\t}", "public int[] coldN(ArrayList<LottoDay> list)\n\t{ \n\t\tint low=200;//set low to 200\n\t\tint[] numF = new int [48]; //create array of occurrences\n\t\tint[] check = new int [5]; //create an array for the first five numbers and the five lowest numbers\n\t\tint counter =0; //counts number of occurrences\n\t\t//cold numbers for 1-47\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i);//get object\n\t\t\tcheck = one.getWNum();//store the 5 lotto numbers\n\t\t\tfor(int j=0; j<numF.length;j++)\n\t\t\t{\n\t\t\t\tfor(int k =0; k<check.length;k++)\n\t\t\t\t{\n\t\t\t\t\t//if lotto number equals the index\n\t\t\t\t\tif(check[k]==j)\n\t\t\t\t\t{\n\t\t\t\t\t\tcounter++; //add one to counter\n\t\t\t\t\t\tnumF[j]=counter+numF[j];//add one to occurrence\n\t\t\t\t\t\tcounter=0;//reset counter\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//check for lowest number\n\t\tfor(int j=0; j<check.length; j++)\n\t\t{\n\t\t\tfor(int i=0; i<numF.length;i++)\n\t\t\t{\n\t\t\t\t//occurrence isn't zero and is lower than low\n\t\t\t\tif(numF[i]<low &&numF[i]!=0)\n\t\t\t\t{\n\t\t\t\t\tlow = numF[i]; //set low to new low of occurrence\n\t\t\t\t\tcheck[j]=i; //store new low occurrence\n\t\t\t\t\tindex=i; //store index of occurrence\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tlow=200;//reset low\n\t\t\tnumF[index]=0;//sets the lowest occurrence to zero\n\n\t\t}\n\n\n\n\t\treturn check;//return 5 lowest numbers\n\n\n\t}", "List<Article> findTop3ByOrderByPostTimeDesc();", "public List<Course> getTopNCourses(int N) throws CannotGetCoursesException{\n if(N < 1) return null;\n PriorityQueue<Course> topNCourses = new PriorityQueue<>(N,\n Comparator.comparingInt(Course::getLearnersCount));\n StepikResponse stepikResponse;\n int currentPage = 1;\n try {\n do {\n if(showProgress) System.out.println(\"Просмотр страницы #\" + currentPage);\n Call<StepikResponse> getCoursesCaller = stepikService.getCourses(currentPage);\n stepikResponse = getCoursesCaller.execute().body();\n if(stepikResponse == null){\n throw new CannotGetCoursesException(\"Response is null\");\n }\n if(stepikResponse.getCourses() == null){\n throw new CannotGetCoursesException(\"Response has not courses\");\n }\n for(Course course : stepikResponse.getCourses()){\n topNCourses.offer(course);\n if(topNCourses.size() > N){\n topNCourses.poll(); //removing course with less learners count\n }\n }\n currentPage++;\n } while(stepikResponse.getMeta() != null && stepikResponse.getMeta().isHasNext());\n }catch (IOException ioe){\n throw new CannotGetCoursesException(ioe.getMessage());\n }\n\n List<Course> courseList = new ArrayList<>(topNCourses);\n courseList.sort(Comparator.comparingInt(Course::getLearnersCount).reversed());\n\n return courseList;\n }", "public List<Predictions> getTopKItems(long userId, int k) throws TasteException{\n\t\tList<Predictions> recommendedItems = new ArrayList<Predictions>();\n\t\t\n\t\tLongPrimitiveIterator iter = model.getItemIDs();\n\t\tFastIDSet ratedItemSet = model.getItemIDsFromUser(userId);\n\t\t\n\t\tint i = 0;\n\t\twhile(iter.hasNext()){\n\t\t\tlong item = iter.nextLong();\n\t\t\tboolean ignore = false;\n\t\t\tfor(long ratedItem:ratedItemSet){\n\t\t\t\tif(ratedItem == item){\n\t\t\t\t\tignore = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(ignore == true)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tdouble rating = predictRatings(userId, item);\n\t\t\tPredictions p1 = new Predictions();\n\t\t\tp1.item = item;\n\t\t\tp1.rating = rating;\n\t\t\tpredictedItems.add(p1);\n\t\t}\n\t\tCollections.sort(predictedItems);\n\t\t\n\t\tint count = 0;\n\t\tfor(Predictions p:predictedItems){\n\t\t\t\n\t\t\tif(count >= k)\n\t\t\t\tbreak;\n\t\trecommendedItems.add(p);\n\t\tcount++;\n\t\t}\n\t\treturn recommendedItems;\n\t}", "public List<List<Integer>> highestRankedKItems(int[][] grid, int[] pricing, int[] start, int k) {\n\n // BFS - calculate distances\n List<int[]> nodes = bfs(grid, start, pricing);\n\n return nodes.stream()\n .sorted((o1, o2) -> o1[2] == o2[2] ? o1[3] == o2[3] ? o1[0] == o2[0] ? o1[1] - o2[1] : o1[0] - o2[0] : o1[3] - o2[3] : o1[2] - o2[2])\n .map(node -> List.of(node[0], node[1]))\n .limit(k)\n .collect(Collectors.toList());\n }", "private List<Double> getDistanceFromTopOfTopLayersToTopEdge(int nominalCoverTop) {\n List<Double> distanceFromCentreOfEachLayer = getDistanceFromCentreOfEachLayerToEdge(topDiameters, additionalTopDiameters, topVerticalSpacings, nominalCoverTop);\n List<Integer> maxDiameters = getMaxDiametersForEachLayer(topDiameters, additionalTopDiameters);\n\n return IntStream\n .range(0, distanceFromCentreOfEachLayer.size())\n .mapToObj(i -> distanceFromCentreOfEachLayer.get(i) - 0.5 * maxDiameters.get(i))\n .collect(Collectors.toList());\n }", "public void cutoffForTopNVals(String attrName, int numItemsWanted, boolean bottomN) {\n NST attrDataNST = getAttrDataNST(attrName);\n String columnToSort = \"value\";\n // See what the value is at exactly the cutoff we want\n NST scoreNST = attrDataNST.sort(columnToSort, \"*\");\n int totalRows = scoreNST.getRowCount();\n int rowWanted;\n if (bottomN) { // bottom scores\n rowWanted = Math.min(numItemsWanted - 1, totalRows - 1);\n } else { // top scores\n rowWanted = Math.max(0, totalRows - numItemsWanted);\n }\n String range = rowWanted + \"-\" + rowWanted;\n ResultSet rs = scoreNST.selectRows(\"*\", columnToSort, range);\n\n String cutoffLoose;\n boolean hasRows = rs.next();\n\n if (hasRows) {\n cutoffLoose = rs.getString(1);\n } else {\n log.warn(\"Got 0 rows in Attributes.cutoffForTopNVals()\");\n scoreNST.release();\n return;\n }\n\n // How many items will this cutoff and the next smaller give us?\n NST tooManyNST, tooFewNST;\n if (bottomN) {\n tooManyNST = scoreNST.filter(columnToSort + \" LE '\" + cutoffLoose + \"'\");\n tooFewNST = scoreNST.filter(columnToSort + \" LT '\" + cutoffLoose + \"'\");\n } else {\n tooManyNST = scoreNST.filter(columnToSort + \" GE '\" + cutoffLoose + \"'\");\n tooFewNST = scoreNST.filter(columnToSort + \" GT '\" + cutoffLoose + \"'\");\n }\n log.debug(\"Cutoff of \" + cutoffLoose + \" gives \" + tooManyNST.getRowCount() + \" items\");\n\n if (numItemsWanted > totalRows) {\n log.debug(\"This is all the items we have\");\n scoreNST.release();\n tooManyNST.release();\n tooFewNST.release();\n return;\n }\n\n // What is the next smaller?\n if (bottomN) {\n int lastRow = Math.max(tooFewNST.getRowCount() - 1, 0);\n rs = scoreNST.selectRows(columnToSort + \" LT '\" + cutoffLoose + \"'\",\n \"sortedScore, \" + columnToSort, lastRow + \"-\" + lastRow);\n } else {\n rs = scoreNST.selectRows(columnToSort + \" GT '\" + cutoffLoose + \"'\",\n \"sortedScore, \" + columnToSort, \"0-0\");\n }\n hasRows = rs.next();\n String cutoffTight;\n if (hasRows) {\n cutoffTight = rs.getString(2);\n log.debug(\"Next cutoff of \" + cutoffTight + \" gives only \" + tooFewNST.getRowCount() + \" items\");\n } else {\n log.debug(\"There is no tighter cutoff than this\");\n }\n scoreNST.release();\n tooManyNST.release();\n tooFewNST.release();\n }", "List<Source> process(int topK, Set<Source> sources);", "public int [] hotN(ArrayList<LottoDay> list)\n\t{ \n\t\tint high=0;//checks for the highest number\n\t\tint[] numF = new int [48];// stores the frequency of each number\n\t\tint[] highest= new int [5]; //stores the 5 highest numbers\n\t\tint counter =0;\n\t\t//hot numbers for 1-47\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i); //get object\n\t\t\thighest = one.getWNum(); //get the first 5 numbers only of that object store in the array\n\t\t\t//gets the frequency for the numbers 1-47\n\t\t\tfor(int j=0; j<numF.length;j++)\n\t\t\t{\n\t\t\t\tfor(int k =0; k<highest.length;k++)\n\t\t\t\t{\n\t\t\t\t\t//check the array of for the index\n\t\t\t\t\tif(highest[k]==j)\n\t\t\t\t\t{ \n\t\t\t\t\t\tcounter++; //add one to count\n\t\t\t\t\t\tnumF[j]=counter+numF[j]; //add to the count\n\t\t\t\t\t\tcounter=0; //set counter back to zero \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//check for the highest number and store in highest array \n\t\tfor(int j=0; j<highest.length; j++)\n\t\t{\n\t\t\tfor(int i=0; i<numF.length;i++)\n\t\t\t{\n\t\t\t\t//if the occurrences beats high \n\t\t\t\tif(numF[i]>high)\n\t\t\t\t{\n\t\t\t\t\thigh = numF[i]; //new highest occurrence is stored\n\t\t\t\t\thighest[j]=i; //store the index in the array\n\t\t\t\t\tindex=i; //index equals i\n\t\t\t\t}\n\n\t\t\t}\n\t\t\thigh=0; //high goes back zero once through the entire list\n\t\t\tnumF[index]=0; //highest numbers occurrences is now set to zero\n\n\t\t}\n\n\t\treturn highest;//return the highest numbers in the list\n\t}", "Movie mostPopularMovieReviewedByKUsers(final int numOfUsers) {\n // similar to getTopKMoviesAverage only filter by numOfUsers to be as specified\n List<Movie> popularMovieFiltered = movieReviews\n .mapToPair(s-> new Tuple2<>(s.getMovie().getProductId(), new Tuple2<>(s.getMovie().getScore(), 1)))\n .reduceByKey((a, b)-> new Tuple2<>(a._1 + b._1, a._2 + b._2))\n .filter(s -> s._2._2 >= numOfUsers)\n .map(s -> new Movie(s._1, roundFiveDecimal(s._2._1 / s._2._2)))\n .top(1);\n // return null if empty\n return popularMovieFiltered.isEmpty()? null : popularMovieFiltered.get(0);\n }", "public BarChartForFinesOfTop10Violations(HashMap<String, Integer> curTicketByVioFine, ArrayList<String> curSortedKeysByVioDesc) {\n\t\tthis.ticketByVioFine = curTicketByVioFine;\n\t\tthis.sortedKeysByVioDesc = curSortedKeysByVioDesc;\n\t}", "@Override\n public List<Digital> getTop(int top) throws Exception {\n Connection con = null;\n ResultSet rs = null;\n PreparedStatement ps = null;\n List<Digital> list = new ArrayList<>();\n // check connection of db if cannot connect, it will throw an object of Exception\n try {\n\n String query = \"select top \" + top + \" * from digital order by timePost desc\";\n con = getConnection();\n ps = con.prepareCall(query);\n rs = ps.executeQuery();\n while (rs.next()) {\n Digital d = new Digital(rs.getInt(\"id\"),\n rs.getString(\"title\"),\n rs.getString(\"description\"),\n rs.getString(\"images\"),\n rs.getString(\"author\"),\n rs.getTimestamp(\"timePost\"),\n rs.getString(\"shortDes\"));\n list.add(d);\n }\n\n } catch (Exception e) {\n throw e;\n } finally {\n // close ResultSet, PrepareStatement, Connection\n closeResultSet(rs);\n closePrepareStateMent(ps);\n closeConnection(con);\n }\n return list;\n }", "public FoodItem mostExpensive() {\n FoodItem mostExpensive = null;\n for (int i = 0; i < this._noOfItems; i++) {\n FoodItem currentItem = this._stock[i];\n // if not first, compare the most expensive yet to current,\n // and change the most expensive if current's price is grater\n if (i != 0) {\n // if price is bigger than all tested yet\n if (currentItem.getPrice() > mostExpensive.getPrice()) {\n // set it as biggest yet\n mostExpensive = new FoodItem(currentItem); // avoid aliasing\n }\n }\n else \n mostExpensive = new FoodItem(currentItem); //avoid aliasing\n }\n // return biggest\n return mostExpensive;\n }", "public ArrayList orderToppings() {\r\n\t\t//left blank on purpose\r\n\t\treturn toppings;\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint max_size,n; \n \n ArrayList<item> items=new ArrayList();\n\t\t// item 1, value 6, size 1\n items.add(new item(1, 6, 1));\n\t\t// item 2, value 10, size 2\n\t\titems.add(new item(2, 10, 2));\n\t\t// item 3, value 12, size 3\n\t\titems.add(new item(3, 12, 3));\n\t\t// the size of your knapsack\n max_size=5; \n\t\t// sort items by density\n\t\tsortitems(items);\n \n System.out.println(\"The maximum value we can place into the knapsack is \"+ greedyfractionalknapsack(items, max_size));\n\n\n\n}", "public List<Integer> topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map = new HashMap<>();\n for (int num : nums) {\n map.put(num, map.getOrDefault(num, 0) + 1);\n }\n\n List<Integer>[] bucket = new List[nums.length + 1];\n for (int num : map.keySet()) {\n int freq = map.get(num);\n if (bucket[freq] == null) {\n bucket[freq] = new ArrayList<>();\n }\n bucket[freq].add(num);\n }\n List<Integer> res = new ArrayList<>();\n for (int i = bucket.length - 1; i >= 0 && res.size() < k; i--) {\n if (bucket[i] != null) {\n res.addAll(bucket[i]);\n }\n }\n return res;\n }", "public int getPepperoniToppings() {\n return pepperoniToppings;\n }", "public void sortByFuelConsumption(){\n for (int d = carPark.getCars().size() / 2; d >= 1; d /= 2)\n for (int i = d; i < carPark.getCars().size(); i++)\n for (int j = i; j >= d && carPark.getCars().get(j-d).getFuelConsumption() > carPark.getCars().get(j).getFuelConsumption(); j -= d) {\n Car temp = carPark.getCars().get(j);\n carPark.getCars().remove(j);\n carPark.getCars().add(j - 1, temp);\n }\n }", "public Collection<Suit> getGood5LengthSuits() {\r\n\t\tCollection<Suit> result = new ArrayList<Suit>();\r\n\t\tList<Suit> suitsOfLength5 = getSuitsWithCardCount(5);\r\n\t\tfor (Suit suit : suitsOfLength5) {\r\n\t\t\tList<Card> cardsInSuit = getSuitHi2Low(suit);\r\n\t\t\tif (isAtLeastAQJXX(cardsInSuit) || isAtLeastKQTXX(cardsInSuit)) {\r\n\t\t\t\tresult.add(suit);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "long getMaxItemFindings();", "@Query(\"select r.rendezvous, count(r.user) as cnt from Reservation r group by r.rendezvous order by cnt desc\")\n\tCollection<Object> findTop10dashboardRendezvousesTop10();", "public static List<Integer> topKFrequent(int[] nums, int k) {\n \tMap<Integer, Integer> map=new HashMap<Integer, Integer>();\n \tfor(int i=0; i<nums.length; i++){\n \t\tif(!map.containsKey(nums[i])){\n \t\t\tmap.put(nums[i], 1);\n \t\t}else{\n \t\t\tmap.put(nums[i], 1+map.get(nums[i]));\n \t\t}\n \t}\n \tList<Map.Entry<Integer, Integer>> list=new ArrayList<Map.Entry<Integer, Integer>>(map.entrySet());\n \tCollections.sort(list, new Comparator<Map.Entry<Integer, Integer>>(){\n \t\tpublic int compare( Map.Entry<Integer, Integer> o1, Map.Entry<Integer, Integer> o2){\n \t\t\treturn o2.getValue().compareTo(o1.getValue());\n \t\t}\n \t});\n \tList<Integer> re=new ArrayList<Integer>();\n \tfor(int i=0; i<k; i++){\n \t\tre.add(list.get(i).getKey());\n \t}\n \treturn re;\n }", "public void setVeggieToppings(int veggie) {\n veggieToppings = veggie;\n }", "public static void printTopNItems(ArrayList<Item> items, int n) {\n for (Item item : getTopNItems(items, n)) {\n System.out.println(item);\n }\n }", "public Integer getTopbs() {\n return topbs;\n }", "public static int getRealTopK(int k, long items){\n return (int)(k > items ? items : k);\n }", "@RequestMapping(value=\"/JSON/Cards/{sidecode}/{DPName}\", method = RequestMethod.GET)\n public @ResponseBody\n List<CardUsage> getMostUsedCards(\n @PathVariable(value=\"sidecode\") String sidecode,\n @PathVariable(value=\"DPName\") String DPName) {\n return statistics.getMostUsedCardsFromCardPack(DPName).getSortedCards(sidecode);\n }", "private static void p347() {\n int[] nums1 = {5, 5, 5, 3, 1, 1};\n int k1 = 2;\n int[] ret1 = topKFrequent(nums1, k1);\n System.out.println(Arrays.toString(ret1));\n// int[] nums2 = {1, 2};\n// int k2 = 2;\n// int[] ret2 = topKFrequent(nums2, k2);\n// System.out.println(Arrays.toString(ret2));\n int[] nums3 = {5, 5, 5, 5, 2, 2, 2, 4, 4, 1};\n int k3 = 2;\n int[] ret3 = topKFrequentOptimize(nums3, k3);\n System.out.println(Arrays.toString(ret3));\n\n int[] nums4 = {5, 5, 5, 5, 2, 2, 2, 4, 4, 4, 1};\n int k4 = 2;\n int[] ret4 = topKFrequentUsingBucket(nums4, k4);\n System.out.println(Arrays.toString(ret4));\n\n// int[] nums5 = {1};\n// int k5 = 1;\n// int[] ret5 = topKFrequentUsingBucket(nums5, k5);\n// System.out.println(Arrays.toString(ret5));\n }", "public List<Integer> getSortedPriceOfAllUnit(String unitSize){\r\n\t\tList<Integer> allUnitPrice=new ArrayList<Integer>();\r\n\t\tList<CateredWebElement> allUnitElements=new ArrayList<CateredWebElement>();\r\n\t\tString[] singleSizePrices;\r\n\t\t\r\n\t\tswitch(unitSize){\r\n\t\tcase \"Small\":\r\n\t\tallUnitElements=webAppDriver.findAllElementsByXpath(lbAllSmallPricesXpath);\r\n\t\tsingleSizePrices=new String[allUnitElements.size()];\r\n\t\tfor (int i=0;i<allUnitElements.size();i++){\r\n\t\t\tsingleSizePrices[i]=allUnitElements.get(i).getText().replace(\"$\", \"\");\r\n\t\t\tsingleSizePrices[i]=singleSizePrices[i].replace(\"/mo.\", \"\").trim();\r\n\t\t\tallUnitPrice.add(Integer.parseInt(singleSizePrices[i]));\t\t\t\r\n\t\t}\r\n\t\tCollections.sort(allUnitPrice);\r\n\t\treturn allUnitPrice;\r\n\t\tcase \"Medium\":\r\n\t\t\tallUnitElements=webAppDriver.findAllElementsByXpath(lbAllMediumPricesXpath);\r\n\t\t\tsingleSizePrices=new String[allUnitElements.size()];\r\n\t\t\tfor (int i=0;i<allUnitElements.size();i++){\r\n\t\t\t\tsingleSizePrices[i]=allUnitElements.get(i).getText().replace(\"$\", \"\");\r\n\t\t\t\tsingleSizePrices[i]=singleSizePrices[i].replace(\"/mo.\", \"\").trim();\r\n\t\t\t\tallUnitPrice.add(Integer.parseInt(singleSizePrices[i]));\t\r\n\t\t\t}\r\n\t\t\tCollections.sort(allUnitPrice);\r\n\t\t\treturn allUnitPrice;\r\n\t\tcase \"Large\":\r\n\t\t\tallUnitElements=webAppDriver.findAllElementsByXpath(lbAllLargePricesXpath);\r\n\t\t\tsingleSizePrices=new String[allUnitElements.size()];\r\n\t\t\tfor (int i=0;i<allUnitElements.size();i++){\r\n\t\t\t\tsingleSizePrices[i]=allUnitElements.get(i).getText().replace(\"$\", \"\");\r\n\t\t\t\tsingleSizePrices[i]=singleSizePrices[i].replace(\"/mo.\", \"\").trim();\r\n\t\t\t\tallUnitPrice.add(Integer.parseInt(singleSizePrices[i]));\t\r\n\t\t\t}\r\n\t\t\tCollections.sort(allUnitPrice);\r\n\t\t\treturn allUnitPrice;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(allUnitPrice);\r\n\t\treturn allUnitPrice;\r\n\t}", "@Override\n public Map<String, List<Pair<String, Double>>> getTopFeatures(int n) {\n Map<String, List<Pair<String, Double>>> map = new HashMap<>();\n for (int i = 0; i < models.size(); i++) {\n Model<Label> m = models.get(i);\n String label = labels.get(i).getLabel();\n Map<String, List<Pair<String, Double>>> modelMap = m.getTopFeatures(n);\n if (modelMap != null) {\n if (modelMap.size() == 1) {\n map.put(label, modelMap.get(Model.ALL_OUTPUTS));\n } else {\n map.merge(label, modelMap.get(label), (List<Pair<String, Double>> l, List<Pair<String, Double>> r) -> {\n l.addAll(r);\n return l;\n });\n }\n }\n }\n return map;\n }" ]
[ "0.7103035", "0.59999835", "0.59300685", "0.58974725", "0.58529204", "0.5763108", "0.57178587", "0.56829035", "0.56373113", "0.56152725", "0.5561482", "0.552536", "0.5520144", "0.54852897", "0.5479235", "0.5467159", "0.54607385", "0.54294056", "0.54268855", "0.5417767", "0.53886354", "0.53868717", "0.53768796", "0.53623205", "0.53621763", "0.5349913", "0.5347994", "0.5347994", "0.5347994", "0.53229576", "0.53193784", "0.5315546", "0.5312166", "0.53081363", "0.5306401", "0.52902305", "0.5261853", "0.52599293", "0.52584636", "0.52318156", "0.52053815", "0.51929194", "0.5184019", "0.51625705", "0.51595676", "0.51524496", "0.5151073", "0.5144611", "0.5142771", "0.51360446", "0.5135586", "0.5133193", "0.51295084", "0.51160824", "0.51097125", "0.5101007", "0.50962245", "0.5088155", "0.5080897", "0.50793755", "0.5069255", "0.50630814", "0.5053881", "0.5047389", "0.50457746", "0.504545", "0.5044532", "0.5041795", "0.50384307", "0.50315976", "0.5026494", "0.50158465", "0.4998185", "0.49754938", "0.49548697", "0.49433815", "0.492396", "0.4919375", "0.49126092", "0.491009", "0.4902933", "0.4901828", "0.48939905", "0.4892775", "0.48802936", "0.4874387", "0.48686168", "0.4864306", "0.48611087", "0.48521316", "0.48506817", "0.4849633", "0.48439783", "0.48434833", "0.48398188", "0.48306146", "0.4830024", "0.48259827", "0.48210686", "0.4819808" ]
0.5865736
4
Fetches hotels in the selected City
@Override public List<Hotel> getHotelsInCity(String cityName, Session session) { // TODO Auto-generated method stub List<Hotel> hotelList = new ArrayList<Hotel>(); Criteria cr = session.createCriteria(Hotel.class).add(Restrictions.eq("city", cityName)); hotelList = cr.list(); return hotelList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getCityHotels(String tag) {\n\n HotelListingRequest hotelListingRequest = HotelListingRequest.getHotelListRequest();\n hotelListingRequest.setCurrencyCode(userDTO.getCurrency());\n hotelListingRequest.setLanguageCode(userDTO.getLanguage());\n hotelListingRequest.setCheckInDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkInDate));\n hotelListingRequest.setCheckOutDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkOutDate));\n hotelListingRequest.setPageNumber(1);\n hotelListingRequest.setPageSize(10);\n\n\n if (tag.equals(\"noRooms\")) {\n\n hotelListingRequest.setCityId(cityId); // for sold out hotels.. set popularity and descending order.\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n } else {\n\n hotelListingRequest.setCityId(Long.parseLong(destination.getKey())); // regular flow.. getting cityId and areaId from destination.\n\n UserDTO.getUserDTO().setCityName(destination.getDestinationName());\n // here check whether category is city search otherwise areaWise search\n if (destination.getCategory().equals(\"City\")) {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n\n } else {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"area\");\n hotelListingRequest.setSortByArea(0);\n }\n\n\n }\n\n\n ArrayList<OccupancyDto> occupancyDtoArrayList = new ArrayList<>();\n for (int i = 0; i < hotelAccommodationsArrayList.size(); i++) {\n kidsAgeArrayList = new ArrayList<>();\n if (hotelAccommodationsArrayList.get(i).getKids() > 0) {\n if (hotelAccommodationsArrayList.get(i).getKids() == 1) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n } else if (hotelAccommodationsArrayList.get(i).getKids() == 2) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid2Age());\n }\n }\n\n occupancyDtoArrayList.add(new OccupancyDto(hotelAccommodationsArrayList.get(i).getAdultsCount(), kidsAgeArrayList));\n hotelListingRequest.setOccupancy(occupancyDtoArrayList);\n }\n FiltersRequestDto filtersRequestDto = new FiltersRequestDto();\n filtersRequestDto.setAmenityIds(null);\n filtersRequestDto.setAreaIds(null);\n filtersRequestDto.setHotelId(null);\n filtersRequestDto.setCategoryIds(null);\n filtersRequestDto.setChainIds(null);\n filtersRequestDto.setMaxPrice(0.00);\n filtersRequestDto.setMinPrice(0.00);\n filtersRequestDto.setTripAdvisorRatings(null);\n filtersRequestDto.setStarRatings(null);\n hotelListingRequest.setFilters(filtersRequestDto);\n\n request = new Gson().toJson(hotelListingRequest);\n\n if (NetworkUtilities.isInternet(getActivity())) {\n\n showDialog();\n\n hotelSearchPresenter.getHotelListInfo(Constant.API_URL + Constant.HOTELLISTING, request, context);\n\n\n } else {\n\n Utilities.commonErrorMessage(context, context.getString(R.string.Network_not_avilable), context.getString(R.string.please_check_your_internet_connection), false, getFragmentManager());\n }\n\n }", "public void searchAreaCity(Connection connection, String city) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE city = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setCity(city);\n pStmt.setString(1, getCity());\n\n try {\n\n System.out.printf(\" Hotels in %s:\\n\", getCity());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { e.printStackTrace(); }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }", "public List<City> getAll() throws Exception;", "public void searchAreaFull(Connection connection, String city, String state, int zip) throws SQLException{\n\n ResultSet rs = null;\n String sql = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE city = ? AND state = ? AND zip = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setCity(city);\n pStmt.setString(1, getCity());\n setState(state);\n pStmt.setString(2, getState());\n setZip(zip);\n pStmt.setInt(3, getZip());\n\n try {\n\n System.out.println(\" Hotels in area:\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }", "List<City> getCityList(Integer countryId)throws EOTException;", "List<City> findCities();", "private void searchCity() {\n toggleProgress();\n try {\n WeatherClient client = builder.attach(this)\n .provider(new OpenweathermapProviderType())\n .httpClient(WeatherClientDefault.class)\n .config(config)\n .build();\n\n // Try to find a good location\n // using medium settings\n Criteria criteria = new Criteria();\n criteria.setPowerRequirement(Criteria.POWER_MEDIUM);\n criteria.setAccuracy(Criteria.ACCURACY_MEDIUM);\n // Can we use data?\n criteria.setCostAllowed(true);\n\n // Search city by gps/network using\n // above critera\n client.searchCityByLocation(\n criteria,\n new WeatherClient.CityEventListener() {\n\n // When we get the city list\n @Override\n public void onCityListRetrieved(List<City> cityList) {\n for (int i = 0; i < cityList.size(); i++) {\n adapter.set(cityList.get(i), i);\n }\n displayMessage(\"Not the correct results?\" +\n \" Press the button above to try again.\");\n }\n\n\n @Override\n public void onWeatherError(WeatherLibException wle) {\n displayMessage(\"There seems to be no \" +\n \"weather data, please try again later.\");\n\n }\n\n\n @Override\n public void onConnectionError(Throwable t) {\n displayMessage(\"Whoops! We can't seem to \" +\n \"connect to the weather servers.\");\n }\n\n });\n\n } catch (WeatherProviderInstantiationException e) {\n displayMessage(\"Error: Unable to access \" +\n \"the weather provider.\");\n } catch (LocationProviderNotFoundException e) {\n displayMessage(\"Whoops! Unable to access \" +\n \"location provider.\");\n } catch (NullPointerException e) {\n displayMessage(\"Whoops! We can't seem to\" +\n \"connect to the weather servers.\");\n }\n\n }", "private void hotelDetailCall(long cityId) {\n\n if (NetworkUtilities.isInternet(getActivity())) {\n String request = new Gson().toJson(new HotelDetailRequest(cityId, Long.parseLong(destination.getKey()), UserDTO.getUserDTO().getLanguage()));\n hotelSearchPresenter.getHotelDetails(Constant.API_URL + Constant.HOTELDETAIL, request, getActivity());\n\n } else {\n Utilities.commonErrorMessage(context, context.getString(R.string.Network_not_avilable), context.getString(R.string.please_check_your_internet_connection), false, getFragmentManager());\n }\n }", "public List<Hotel> getAvailableHotels(){\n return databaseManager.findAvailableHotels();\n }", "@GetMapping(\"/getTheaters/{city}\")\r\n\tResponseEntity<List<Theater>> findTheaters(@PathVariable(\"city\") String city){\r\n\t\tList<Theater> selectedTheaters = new ArrayList<Theater>();\r\n\t\tList<Theater> theaterList = getTheaters();\r\n\t\tfor (Theater theater : theaterList) {\r\n\t\t\tif(theater.getTheaterCity().equals(city)) {\r\n\t\t\t\tselectedTheaters.add(theater);\r\n\t\t\t}\r\n\t\t}\r\n\t\tResponseEntity<List<Theater>> response = new ResponseEntity<List<Theater>>(selectedTheaters,HttpStatus.OK);\r\n\t\treturn response;\r\n\t}", "public List<WeatherCitySummary> findAllCity(){\n return weatherCityRepository.findAllCity();\n }", "public void loadHotels();", "@Cacheable(\"weather\")\r\n\tpublic Weather getWeatherByCityAndCountry(String country, String city) {\n\t\tlogger.info(\"Requesting current weather for {}/{}\", country, city);\r\n\t\t\r\n\t\tURI url = new UriTemplate(WEATHER_URL).expand(city, country, this.apiKey);\r\n\t\treturn invoke(url, Weather.class);\r\n\t}", "public void showHotels() {\n System.out.println(\"-----Hotels: ------\");\n hotelsService.getHotels().forEach(System.out::println);\n }", "@GetMapping(\"/all\")\n public List<CityInfo> getAll(){\n return service.getAll();\n }", "List<AirportDTO> getAirportsByCity(String city);", "@Override\r\n\tpublic List<Hotel> getAllHotels() {\n\t\treturn showHotelList();\r\n\t}", "public Cursor fetchAllHotels() {\r\n\r\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TYPE,\r\n KEY_NAME, KEY_DESC, KEY_ADDR, KEY_MINS, KEY_RATE, KEY_PHONE, KEY_WEB }, null, null, null, null, null, null);\r\n }", "public ArrayList<Hotel> getCustomerHotels(Integer customerId);", "TrackerCity loadTrackerCity(final Integer id);", "private void loadSupermarketLocations(String city) {\n // Request the supermarkets that are available as nodes\n StringBuilder requestUrl = new StringBuilder(\"https://overpass-api.de/api/interpreter?data=\");\n requestUrl.append(\"node%5B%22addr%3Acity%22%3D%22\");\n requestUrl.append(city);\n requestUrl.append(\"%22%5D%5B%22shop%22%3D%22supermarket%22%5D%3Bout%3B\");\n\n StringRequest stringRequest = new StringRequest(Request.Method.GET, requestUrl.toString(),\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n parseSupermarketNodes(response);\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"api req\", error.toString());\n }\n });\n\n queue.add(stringRequest);\n }", "public ArrayList<City> getPopCityReg() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Region, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Region, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityReg = new ArrayList<>();\n System.out.println(\"9. All the cities in a REGION organised by largest population to smallest.\");\n System.out.println(\"Region | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.Population = rset.getInt(\"Population\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n\n Country cnt = new Country();\n cnt.Region = rset.getString(\"Region\");\n System.out.println(cnt.Region + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityReg.add(cty);\n }\n return PopCityReg;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "@Override\n\tpublic ArrayList<CityPO> getAll() throws RemoteException {\n\t\t\n\t\t\n\t\treturn cities;\n\t}", "@GET(\"search.ashx?num_of_results=3\")\n Observable<AutoCompleteApiResponse> getCity(@Query(\"q\") String query);", "@Override\n\tpublic List<Hotel> getLowPricedHotels(String cityName, Session session) {\n\t\t// TODO Auto-generated method stub\n\t\tList<Hotel> hotelList = new ArrayList<Hotel>();\n\t\tCriteria cr = session.createCriteria(Hotel.class).add(Restrictions.eq(\"city\", cityName)).addOrder(Order.asc(\"tariff\")).setMaxResults(5);\n\t\thotelList = cr.list();\n\t\treturn hotelList;\n\t}", "public static JSONObject fetchServinglocation() throws JSONException {\n\t\tJSONArray jArrayCity = new JSONArray();\n\t\tJSONObject cityList = new JSONObject();\n\t\tConnection connection = null;\n\t\ttry {\n\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tSQLCITY:{\n\t\t\t\ttry {\t\n\t\t\t\t\tconnection = DBConnection.createConnection();\n\t\t\t\t\tString sqlCityQuery =\"select city_id,city_name from sa_city where is_active='Y'\";\t\t \t\t\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sqlCityQuery);\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\twhile(resultSet.next()){\n\t\t\t\t\t\tJSONObject jsonObjectcity = new JSONObject();\n\t\t\t\t\t\tjsonObjectcity.put(\"cityid\",resultSet.getString(\"city_id\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"cityname\",resultSet.getString(\"city_name\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"arealist\", getLocationList( jsonObjectcity.getInt(\"cityid\") , true));\n\t\t\t\t\t\tjArrayCity.put(jsonObjectcity);\n\t\t\t\t\t}\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t\t\t}finally{\n\t\t\t\t\tif(connection!=null){\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t}\n\n\t\tSystem.out.println(\"Fetch location output length--\"+jArrayCity.length());\n\t\tcityList.put(\"citylist\", jArrayCity);\n\t\treturn cityList;\n\t}", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public void searchArea(Connection connection, String city, String state, int zip) throws SQLException {\n\n ResultSet rs = null;\n PreparedStatement pStmt = null;\n String sql1 = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE city = ?\";\n String sql2 = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE state = ?\";\n String sql3 = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE zip = ?\";\n\n // City and State combination:\n if (city != null && state != null){\n\n pStmt = connection.prepareStatement(sql1 + \" INTERSECT \" + sql2);\n pStmt.clearParameters();\n\n setCity(city);\n pStmt.setString(1, getCity());\n setState(state);\n pStmt.setString(2, getState());\n }\n\n // City and ZIP combination:\n else if (city != null){\n\n pStmt = connection.prepareStatement(sql1 + \" INTERSECT \" + sql3);\n pStmt.clearParameters();\n\n setCity(city);\n pStmt.setString(1, getCity());\n setZip(zip);\n pStmt.setInt(2, getZip());\n }\n\n // State and ZIP combination:\n else {\n\n pStmt = connection.prepareStatement(sql2 + \" INTERSECT \" + sql3);\n pStmt.clearParameters();\n\n setState(state);\n pStmt.setString(1, getState());\n setZip(zip);\n pStmt.setInt(2, getZip());\n }\n\n try {\n\n System.out.println(\" Hotels in area:\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n String result;\n\n while (rs.next()) {\n\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }", "public static JSONObject fetchlocation() throws JSONException {\n\t\tJSONArray jArrayCity = new JSONArray();\n\t\tJSONObject cityList = new JSONObject();\n\t\tConnection connection = null;\n\t\ttry {\n\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tSQLCITY:{\n\t\t\t\ttry {\t\n\t\t\t\t\tconnection = DBConnection.createConnection();\n\t\t\t\t\tString sqlCityQuery =\"select city_id,city_name from sa_city where is_active='Y'\";\t\t \t\t\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sqlCityQuery);\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\twhile(resultSet.next()){\n\t\t\t\t\t\tJSONObject jsonObjectcity = new JSONObject();\n\t\t\t\t\t\tjsonObjectcity.put(\"cityid\",resultSet.getString(\"city_id\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"cityname\",resultSet.getString(\"city_name\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"arealist\", getLocationList(jsonObjectcity.getInt(\"cityid\"), false ));\n\t\t\t\t\t\tjArrayCity.put(jsonObjectcity);\n\t\t\t\t\t}\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t\t\t}finally{\n\t\t\t\t\tif(connection!=null){\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t}\n\n\t\tSystem.out.println(\"Fetch location output length--\"+jArrayCity.length());\n\t\tcityList.put(\"citylist\", jArrayCity);\n\t\treturn cityList;\n\t}", "public ArrayList<City> getPopCity() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT city.Name, city.Population, city.CountryCode, city.District\"\n +\" FROM city\"\n +\" ORDER BY city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> CtyPop = new ArrayList<>();\n System.out.println(\"7. All the cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new city (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n System.out.println(cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CtyPop.add(cty);\n }\n return CtyPop;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"7. Failed to get city details\");\n return null;\n }\n }", "@Override\n\tpublic List<VenueCity> listVenueCity() {\n\t\treturn eventDao.listVenueCity();\n\t}", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "public List<City> getCityList(State state);", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "public ArrayList<Flight> getCity(String city) {\n return connects.get(city);\n }", "public List<String> getLocationAndCity(){\n\t\treturn jtemp.queryForList(\"SELECT location_id||city FROM locations\", String.class);\n\t}", "public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "TrackerCity getTrackerCity(final Integer id);", "List<MasterZipcode> getByCity(int cityId);", "public ArrayList<String> showCity();", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public List<Driver> findDriverByCity(String city);", "public void cacheResult(java.util.List<com.Hotel.model.Hotel> hotels);", "@RequestMapping(value = \"/cityDetails\", method = RequestMethod.GET)\n public ResponseEntity<City> getCityDetails()\n {\n logger.info(\"Calling getCityDetails() method\");\n if(city.getCity() != null)\n {\n for (String item: city.getCity()\n ) {\n logger.debug(\"This are the cities \" + item);\n }\n }\n\n return new ResponseEntity<City>(city, HttpStatus.OK);\n }", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "@ApiMethod(name = \"getCities\", path = \"city\", httpMethod = ApiMethod.HttpMethod.GET)\n public List<City> getCities(@Nullable @Named(\"search\") String search) {\n\n if (search == null || search.isEmpty()) {\n return mCityService.list();\n } else {\n return mCityService.list(search);\n }\n }", "public List<Address> listAddressByCity(String city)\n {\n @SuppressWarnings(\"unchecked\")\n List<Address> result = this.sessionFactory.getCurrentSession().createQuery(\"from AddressImpl as address where address.city = :city order by address.id asc\").setParameter(\"city\", city).list();\n\n return result;\n }", "public void searchHotels(String location, String noOfRoomAndTravellers){\r\n\t\thotelLink.click();\r\n\t\tWaitHelper wait = new WaitHelper(driver);\r\n\t\twait.waitElementTobeClickable(driver, localityTextBox, 20).click();\r\n\t\tlocalityTextBox.clear();\r\n\t\tlocalityTextBox.sendKeys(location);\r\n\t\t\r\n\t\tWebElement allOptions = wait.setExplicitWait(driver, By.xpath(\"//ul[@id='ui-id-1']\"),20);\r\n\t\tList<WebElement> allOptionsResult = allOptions.findElements(By.xpath(\"./li\"));\r\n\t\tallOptionsResult.get(1).click();\r\n\t\tcheckInDate.click();\r\n\t\tcurrentDate.click();\r\n\t\twait.waitElementTobeClickable(driver, nextDate, 20).click();\r\n\t\tnew Select(travellerSelection).selectByVisibleText(noOfRoomAndTravellers);\r\n searchButton.click();\r\n\t}", "public List<Customer> getAllByCity(String city) {\n\t\treturn custRepo.findByHomeAddressCity(city);\n\t}", "@Override\r\n\tpublic List<City> getCityById(int pid) {\n\t\treturn cd.getCityById(pid);\r\n\t}", "@Override\n public Stream<City> getAll() {\n return idToCity.values().stream();\n }", "@GET(\"/cities\")\n Call<List<City>> getCities();", "public ArrayList<City> getACityPopulation(String city)\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT DISTINCT(city.Name), city.Population \"\n + \"FROM city \"\n + \"WHERE city.Name = \" + \"'\" + city +\"'\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> nCity = new ArrayList<City>();\n System.out.println(\"31. Population of a city.\");\n System.out.println(\"City | Population \");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n\n System.out.println(cCty.Name + \" | \" + cCty.Population);\n nCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return nCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"30. Failed to get district population\");\n return null;\n }\n }", "@Override\n\tpublic void getUsersInSelectedCity(Long cityID) {\n\t\tint counterProxy = 0;\n\t\tint firstElement = 0;\n\t\tint lastElement = 0;\n\n\t\tList<ProxyServer> proxyServerList = proxyServerService.getProxyServerByDestiny(\"user\");\n\n\t\t/**\n\t\t * 366 days in year max. Dividing birthdays into two sexes - 732\n\t\t */\n\t\tint requestOnProxy = 732 / proxyServerList.size();\n\t\tint remainingRequests = 732 % proxyServerList.size();\n\n\t\tList<String> queries = getListOfQueries(requestOnProxy, remainingRequests, cityID);\n\n\t\tList<UserFromVK> userFromVKList = userFromVkService.getAllUsersOfVk();\n\n\t\tExecutorService executorService = Executors.newFixedThreadPool(proxyServerList.size());\n\n\t\tfor (ProxyServer proxyServer : proxyServerList) {\n\t\t\tRestTemplate proxyTemplate = getRestTemplate(proxyServerList.get(counterProxy).getIp(), proxyServerList.get(counterProxy).getPort());\n\t\t\tlastElement += requestOnProxy;\n\t\t\tif (remainingRequests > 0) {\n\t\t\t\tremainingRequests--;\n\t\t\t\tlastElement += 1;\n\t\t\t}\n\n\t\t\tfinal int start = firstElement;\n\t\t\tfinal int finish = lastElement;\n\n\n\t\t\tFuture future = executorService.submit(new Thread(() -> {\n\t\t\t\t/**\n\t\t\t\t * Sending requests with the necessary delays to vk.api\n\t\t\t\t */\n\t\t\t\tfor (int i = start; i < finish; i++) {\n\t\t\t\t\tif (i > 0 && i % 3 == 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (i > 0 && i % 100 == 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(300_000);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tUsersRootObject usersRootObject = proxyTemplate.getForObject(queries.get(i), UsersRootObject.class);\n\t\t\t\t\tList<UserFromVK> foundedUsersFromVk = usersRootObject.getResponse().getItems();\n\n\t\t\t\t\tif (!userFromVKList.containsAll(foundedUsersFromVk)) {\n\t\t\t\t\t\tuserFromVkService.addListOfUsersOfVK(foundedUsersFromVk);\n\t\t\t\t\t} else if (userFromVKList.containsAll(foundedUsersFromVk) && foundedUsersFromVk.size() != 0) {\n\t\t\t\t\t\tList<UserFromVK> usersWhichNotInDB = new ArrayList<>();\n\n\t\t\t\t\t\tfor (UserFromVK user : foundedUsersFromVk) {\n\t\t\t\t\t\t\tif (!userFromVKList.contains(user)) {\n\t\t\t\t\t\t\t\tusersWhichNotInDB.add(user);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tuserFromVkService.addListOfUsersOfVK(usersWhichNotInDB);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}));\n\t\t\tfirstElement += lastElement;\n\t\t\tcounterProxy++;\n\t\t}\n\n\t\texecutorService.shutdown();\n\t}", "@GetMapping(value = \"/repo_city\")\r\n public List<User> repoCity(@RequestParam(name=\"city\") List<String> listCity) {\r\n return userRepository.findByCityIn(listCity);\r\n }", "public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "@GET(\"/cities/{cityId}/tours\")\n Call<List<Tour>> getTours(\n @Path(\"cityId\") int cityId\n );", "@GET(\"/v3/weather/now.json\")\n Call<City> getCity(@Query(\"key\")String key,@Query(\"location\")String location);", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "public ArrayList<Hotel> getUserHotels(Integer userId, Integer customerId);", "public void getCityList(String quName) {\n this.mCityShowMode = true;\n if (this.mCityCursor != null) {\n this.mCityCursor.close();\n this.mCityCursor = null;\n }\n if (this.mCityRedMan != null) {\n this.mCityCursor = this.mCityRedMan.queryCityRec(quName);\n if (this.mCityCursor != null) {\n Log.i(TAG, \"mCityCursor count = \" + this.mCityCursor.getCount());\n }\n }\n }", "@Override\n\tpublic void showCities() {\n\t\tArrayList<City> cities = Singleton.CityRegistDao().findAll();\n\t\tcityOptions = \"\";\n\t\tfor (City city : cities) {\n\t\t\tcityOptions += String.format(\"<li role=\\\"presentation\\\"> <a role=\\\"menuitem\\\" tabindex=\\\"-1\\\" href=javascript:void(0)>%s</a> </li>\\n\", city.getName(), city.getName());\n\t\t}\n\t\tSystem.out.println(cityOptions);\n\t}", "public List<InputData> getCityData(String city) {\n String SQL = \"SELECT * FROM world_bank WHERE city = ?\";\n List<InputData> records = jdbcTemplate.query(SQL,\n new Object[] { city }, new DataMapper());\n return records;\n }", "public List<City> getCities(){\n waitFor(visibilityOfAllElements(cities));\n return cities.stream().map(City::new).collect(toList());\n }", "public void getProvinceList() {\n Log.i(TAG, \"getProvinceList\");\n this.mCityShowMode = false;\n if (this.mCityCursor != null) {\n this.mCityCursor.close();\n this.mCityCursor = null;\n }\n if (this.mCityRedMan != null) {\n this.mCityCursor = this.mCityRedMan.queryProvinceRec();\n if (this.mCityCursor != null) {\n Log.i(TAG, \"mCityCursor count = \" + this.mCityCursor.getCount());\n } else {\n Log.i(TAG, \"mCityCursor count = null\");\n }\n }\n }", "public void printAllCities()\n { // to be implemented in part (d) }\n }", "private void getCities(HttpServletRequest req, HttpServletResponse resp) throws IOException {\n\t\t\n\t\tCitiesServiceImpl cities = new CitiesServiceImpl();\n\t\t\n\t\t\n\t\tString parameter = req.getParameter(\"\");\n\t\tList<Cities> select = cities.selectAllId(\"2\");\n\t\t\n\t\t\n\t\t\n\t\tGson gson =new GsonBuilder()\n\t\t.create();\n\t\tString json = gson.toJson(select); \n\t\tSystem.out.println(\"json:\"+json);\n\t\tPrintWriter writer = resp.getWriter();\n\t\twriter.print(json); // 返回数据给前台\n\t\twriter.close();\n\t\n\t}", "protected ArrayList<AdminInfo> getAdmin(String country, String state, String city) {\n\t\tArrayList<AdminInfo> result = new ArrayList<AdminInfo>();\n\t\ttry {\n\t\t\t// Get statement\n\t\t\tStatement stmt = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n\t\t\ttry {\n\t\t\t\t// Get result set\n\t\t\t\tString strSQL = sqlSelect(country, state, city);\n\t\t\t\tSystem.out.printf(\"[DEBUG] SQL='%s'\\n\", strSQL);\n\t\t\t\tResultSet rs = stmt.executeQuery(strSQL);\n\t\t\t\ttry {\n\t\t\t\t\t// Iterate all records\n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tresult.add(new AdminInfo(rs.getString(FIELD_INDEX_COUNTRY),\n\t\t\t\t\t\t\t\t\t\t\t\t rs.getString(FIELD_INDEX_STATE),\n\t\t\t\t\t\t\t\t\t\t\t\t rs.getString(FIELD_INDEX_CITY)));\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void fetchCountryInformation();", "GeneralWeatherReport queryWeatherReport(String cityId);", "public void searchAreaState(Connection connection, String state) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE state = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setState(state);\n pStmt.setString(1, getState());\n\n try {\n\n System.out.printf(\" Hotels in %s:\\n\", getState());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n rs.close();\n }\n }", "@Override\n\tpublic List<Hotel> listar() {\n\t\treturn null;\n\t}", "public void generalSearch(Connection connection, LocalDate check_in, LocalDate check_out, int party_size, String city) throws SQLException {\n\n String sql = \"SELECT I.hotel_name, I.branch_ID, I.type, I.price FROM INFORMATION I, ROOM R, HOTEL_ADDRESS HA WHERE R.capacity >= ? AND HA.city = ? AND I.date_from >= to_date(?, 'YYYY-MM-DD') AND I.date_from <= to_date(?,'YYYY-MM-DD') GROUP BY I.date_from, I.date_to HAVING I.num_avail > 0\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setPartySize(party_size);\n pStmt.setInt(1, getPartySize());\n setCity(city);\n pStmt.setString(2, getCity());\n pStmt.setString(3, check_in.toString());\n pStmt.setString(4, check_out.toString());\n\n ResultSet rs = null;\n\n try {\n\n System.out.printf(\" Hotels available: \");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2) + \" \" + rs.getString(3) + \" \" + rs.getInt(4));\n }\n }\n catch (SQLException e) { e.printStackTrace(); }\n finally {\n pStmt.close();\n if (rs != null){\n rs.close();\n }\n }\n }", "@Override\n public List<String> getCities() {\n\n List<Rout> routs = routDAO.getAll();\n HashSet<String> citiesSet = new HashSet<>();\n for (Rout r : routs) {\n citiesSet.add(r.getCity1());\n }\n List<String> cities = new ArrayList<>(citiesSet);\n\n return cities;\n }", "public void getCity(){\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Customer> getCustomerByCity(String city) {\n\t\treturn sessionFactory.getCurrentSession().createCriteria(Customer.class).add(Restrictions.eq(\"city\",city)).list();\r\n\t}", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public void showCities()\n {\n \tSystem.out.println(\"CITY LIST\");\n \t\n \tfor (int i = 0; i < cityNumber; i++)\n \t{\n \t\tSystem.out.println(city[i]);\n \t}\n }", "public CustomerAddressQuery city() {\n startField(\"city\");\n\n return this;\n }", "@FXML\n private void selectCity(ActionEvent event) throws SQLException {\n Statement stmt = conn.createStatement();\n String city = cityField.getValue().toString();\n ResultSet rs = stmt.executeQuery(\"select * from city where city = \\\"\"+city+\"\\\"\");\n rs.next();\n String countryId = rs.getString(3);\n rs = stmt.executeQuery(\"select * from country where countryId = \" + countryId);\n rs.next();\n String country = rs.getString(2);\n countryField.setText(country);\n }", "public List<ATM> listATMsByCity(String city) throws JsonParseException,\n JsonMappingException, IOException {\n RestTemplate restTemplate = new RestTemplate();\n\n String response = restTemplate.getForObject(URL, String.class);\n String toBeParsed = response.substring(6, response.length());\n\n ObjectMapper objectMapper = new ObjectMapper();\n ATM[] atms = objectMapper.readValue(toBeParsed, ATM[].class);\n\n List<ATM> atmsList = Arrays.asList(atms);\n List<ATM> atmsByCityList = new LinkedList<ATM>();\n\n for (ATM atm : atmsList) {\n String theType = atm.getType(), theCity = atm.getAddress()\n .getCity();\n if (theType.equals(\"ING\") && theCity.equalsIgnoreCase(city)) {\n atmsByCityList.add(atm);\n }\n }\n\n return atmsByCityList;\n }", "@Override\r\n\tpublic List<String> getCities() {\n \tList<Note> notes = this.noteRepository.findAll();\r\n \tfor (Note note : notes) {\r\n\t\t\tSystem.out.println(note.getTitle());\r\n\t\t}\r\n\t\treturn hotelBookingDao.getCities();\r\n\t}", "private void loadCityDetails() {\n\n apiCall = ApiUtils.getCityDetails();\n\n Call<CityData> call = apiCall.getCityDetails();\n\n call.enqueue(new Callback<CityData>() {\n @Override\n public void onResponse(Call<CityData> call, Response<CityData> response) {\n\n //finally we are setting the list to our MutableLiveData\n cityList.setValue(response.body());\n\n }\n\n @Override\n public void onFailure(Call<CityData> call, Throwable t) {\n System.out.println(\"is failed\");\n }\n });\n }", "@Override\n\tpublic List<City> getCities(Long id, String query) {\n\t\tCityRootObject cityRootObject = restTemplate.getForObject(urlForDatabaseCities(id, query), CityRootObject.class);\n\n\t\treturn cityRootObject.getResponse().getItems();\n\t}", "public Hotel getHotel() {\n return hotel;\n }", "public Hotel getHotel() {\n return hotel;\n }", "public void getCityResult() {\n String cityNameStr = TextUtils.isEmpty(cityName) ? \"Halifax\" : cityName;\n final String url = \"http://api.openweathermap.org/data/2.5/weather?q=\" + cityNameStr + \"&appid=\" + API_KEY + \"&units=\" + CELSIUS_UNITS;\n //build the request\n JsonObjectRequest request = new JsonObjectRequest(\n Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray weather = response.getJSONArray(\"weather\");\n JSONObject main = response.getJSONObject(\"main\");\n JSONObject cloudsJSON = response.getJSONObject(\"clouds\");\n\n //Set values on layout\n setCityNameOnLayout(response);\n setWeather(weather);\n setTemperature(main);\n setMinMaxTemperature(main);\n setHumidity(main);\n setClouds(cloudsJSON);\n setWeatherIcon((weather.getJSONObject(0)).get(\"icon\").toString());\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n\n Toast.makeText(getApplicationContext(), \"Please, introduce an existing city\", Toast.LENGTH_SHORT).show();\n }\n }\n );\n RequestQueueSingleton.getInstance(getApplicationContext()).addToRequestQueue(request);\n }", "@GetMapping\n public ResponseEntity<Resources<HotelResource>> getAllHotels(){\n return new ResponseEntity<>(\n hotelService.findAllHotels(), HttpStatus.OK\n );\n }", "String getCity();", "public LiveData<CityData> getCityDetails() {\n\n //if the list is null\n if (cityList == null) {\n cityList = new MutableLiveData<CityData>();\n loadCityDetails(); //we will load it asynchronously from server in this method\n }\n return cityList; //finally we will return the list\n }", "public void viewByCity() {\n System.out.println(\"Enter City Name : \");\n String city = sc.nextLine();\n list.stream().filter(n -> n.getCity().equals(city)).forEach(i -> System.out.println(i));\n }", "public City getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public City getMostVisitedPhotosOfCity(String city){\n this.city = flickrDao.getCity(city);\n\n //Get the photos of city from Flickr\n photosList = flickrDao.getCityPhotos(this.city.getPlace_id());\n\n //get the top five photos of photoslist and set them to the city\n this.city.setTopFivePhotos(ClusterService.getTopFivePhotos(photosList));\n\n return this.city;\n }", "@Override\n public void onClick(View v) {\n displayCitylist();\n }", "@Transactional(readOnly = true)\n Collection<DataRistorante> getBy(String pattern, String city, Country country);", "@Override\n public List<Map<String, Object>> getCityList(Map<String, Object> params)\n {\n return advertisementMapper.getCityList(params);\n }" ]
[ "0.69721824", "0.68482065", "0.6517272", "0.64786756", "0.63155776", "0.62349766", "0.6228926", "0.62158126", "0.6180977", "0.61662495", "0.6119968", "0.6096483", "0.601849", "0.5988744", "0.59816784", "0.5969101", "0.59515065", "0.5932059", "0.59080106", "0.5899844", "0.58644384", "0.5863521", "0.5856767", "0.58461195", "0.58458567", "0.5832668", "0.5825296", "0.58207226", "0.5817146", "0.5811208", "0.58110565", "0.58025527", "0.58011657", "0.57918566", "0.57912576", "0.57834005", "0.5770471", "0.57569593", "0.574726", "0.5744527", "0.5741886", "0.57037723", "0.5696846", "0.56961423", "0.5682572", "0.56736517", "0.56631374", "0.5636579", "0.5634496", "0.5632629", "0.56236696", "0.56224376", "0.5607952", "0.5597289", "0.5592568", "0.55914056", "0.55799556", "0.55693835", "0.55639267", "0.55614316", "0.55542374", "0.5545537", "0.5541957", "0.55402374", "0.5535435", "0.55310625", "0.55284697", "0.55263984", "0.55226064", "0.551921", "0.55126476", "0.5510772", "0.55039275", "0.5497986", "0.5493992", "0.547593", "0.5474297", "0.54724103", "0.54724103", "0.54724103", "0.54651207", "0.5463644", "0.5453557", "0.5447505", "0.5439815", "0.54296297", "0.542658", "0.54253006", "0.54253006", "0.5423872", "0.5418289", "0.5416755", "0.54150057", "0.5413318", "0.5407731", "0.54075223", "0.5407284", "0.5401996", "0.53951204", "0.5390992" ]
0.67412794
2
Books a room in hotel
@Override public HotelBooking bookRoom(HotelForm hotelForm, Session session) throws HibernateException, Exception{ // TODO Auto-generated method stub HotelBooking hotelBooking = setDAOValues(hotelForm); session.save(hotelBooking); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void bookRoom(int hotelId, String roomNumber, int people){\n\n\n\n }", "public boolean book(Traveler traveler, int numRooms) {\n if (hotels == null) return false;\n\n boolean booked = false;\n for (Hotel hotel : hotels) {\n if (hotel.isAvailable(numRooms))\n booked = hotel.bookRooms(traveler, numRooms);\n if (booked) break;\n }\n\n return booked;\n }", "public void test2() {\n\t\t\n\t\tArrayList<Hotel> h = Test();\n\t\t\n\t\tDirector dir = new Director();\n\t\tDate dateIn = new Date(29,1,10);\n\t\tDate dateOut = new Date(30,1,10);\n\t\t\n\t\tArrayList<TypeOfRoom> t = h.get(0).getRoomTypes();\n\t\t\n\t\tdir.bookRoom(h.get(0), t.get(0), dateIn, dateOut);\n\t}", "public void giveHotelRooms(Connection connection) throws SQLException {\n\n Scanner scan = new Scanner(System.in);\n Scanner choice = new Scanner(System.in);\n\n DatabaseMetaData dmd = connection.getMetaData();\n ResultSet rs = dmd.getTables(null, null, \"HOTEL\", null);\n\n // Must successfully locate HOTEL and HOTEL_ADDRESS before proceeding:\n if (rs.next()){\n\n System.out.print(\"Please provide an existing hotel name: \");\n setHotelName(scan.nextLine());\n\n System.out.print(\"Please provide the existing hotel branch ID: \");\n setBranchID(Integer.parseInt(scan.nextLine()));\n\n // Loop to create room types and link to Hotel:\n do {\n createRoom(connection, new Scanner(System.in));\n System.out.println(\"Would you like to add another room type to this hotel (Y, N): \");\n } while (choice.next().toUpperCase().equals(\"Y\"));\n }\n else {\n System.out.println(\"ERROR: Error loading HOTEL Table.\");\n }\n }", "@Test\n\tpublic void testBook() throws Exception {\n\t\tString createdReservationID = bookingManagement.book(USER_ID, Arrays.asList(room1.getId()),\n\t\t\t\tvalidStartDate, validEndDate);\n\t\t// a reservation must be returned\n\t\tassertNotNull(\"Reservation id is null\", createdReservationID);\n\t\tassertFalse(\"Reservation id is emtpy\", createdReservationID.isEmpty());\n\t\t// check if returned reservation is correct\n\t\tReservation createdReservation = bookingManagement.getReservation(createdReservationID);\n\t\tassertNotNull(\"Reservation of returned id was not found\", createdReservation);\n\n\t\tassertEquals(USER_ID, createdReservation.getBookingUserId());\n\n\t\tassertEquals(1, createdReservation.getBookedFacilityIds().size());\n\t\tassertTrue(createdReservation.getBookedFacilityIds().contains(room1.getId()));\n\t\tassertEquals(validStartDate, createdReservation.getStartTime());\n\t\tassertEquals(validEndDate, createdReservation.getEndTime());\n\t}", "public void addBookings(String name, ArrayList<Integer> roomToUse, int month, int date, int stay) {\n\t\t\t\r\n\t\t\tBooking newCust = new Booking();\r\n\t\t\tint i = 0;\r\n\t\t\tint k = 0;\r\n\t\t\tint roomCap = 0; //Roomtype / capacity\r\n\t\t\tint roomNum; //Room Number\r\n\t\t\tRooms buffer; //used to store the rooms to add to the bookings\r\n\t\t\t\r\n\t\t\twhile(i < roomToUse.size()) { //add all rooms from the available list\r\n\t\t\t\troomNum = roomToUse.get(i); //get Room number of the avalable, non-clashing room to be booked\r\n\t\t\t\twhile(k < RoomDetails.size()) { //Looping through all rooms in a hotel\r\n\t\t\t\t\tbuffer = RoomDetails.get(k); \r\n\t\t\t\t\tif (buffer.getRoomNum() == roomNum) { //To get the capacity of the matching room\r\n\t\t\t\t\t\troomCap = buffer.getCapacity();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tnewCust.addRoom(roomNum, roomCap); //Add those rooms to the bookings with room number and type filled in\r\n\t\t\t\ti++;\r\n\t\t\t\tk=0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tnewCust.addName(name); //add customer name to booking\r\n\t\t\tnewCust.addDates(month, date, stay); //add dates to the booking\r\n\t\t\t\r\n\t\t\tBookings.add(newCust); //adds the new booking into the hotel bookings list\r\n\t\t}", "public static void main(String[] args) {\n try {\n Model m = new Model();\n //Customer c = new Customer(\"Pam Satan III\", \"bad@inter.net\", \"Norwich\", \"V\", \"02/12\", \"2136871466\");\n //c = m.CUSTOMERS.getCustomer(c.getName(), c.getEmail());\n /*Customer pam = m.CUSTOMERS.createCustomer(c);\n System.out.println(pam);\n List<Room> list = new ArrayList<>();\n list.add(request);\n //have pam make bookings for this date until she has used up all the available rooms, should exception\n //out\n for(int i = 0; i < 100; i++) {\n m.BOOKINGS.makeBooking(c, list, LocalDate.parse(\"2017-12-24\"), LocalDate.parse(\"2017-12-28\"));\n }\n //Booking booktest = m.BOOKINGS.getBooking(15976);\n int foo = 1;*/\n //c.setName(\"Jordan Jorgens\");\n //m.CUSTOMERS.updateCustomer(c);\n //Customer check = m.CUSTOMERS.getCustomer(12955);\n //System.out.println(check);\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n Room r = (Room)null;\n }", "RoomInfo room(String name);", "public Hotel(ArrayList<Room> rooms) {\n this.rooms = rooms;\n }", "public static void main(String[] args){\r\n //Student Name:Chuanxi ZHENG\r\n //Student Number:260760794\r\n //Your code goes here. \r\n System.out.println(\"Please enter the name of your hotel:\");\r\n Scanner in = new Scanner(System.in);\r\n String name = in.nextLine();\r\n Room[] roomArray = new Room[getRandomNumberOfRooms()];\r\n for(int i = 0; i<roomArray.length;i++){\r\n roomArray[i] = new Room(getRandomType());\r\n }\r\n Hotel h = new Hotel(name,roomArray);\r\n System.out.println(\"Welcome! Please choose one of the following options\");\r\n System.out.println(\"1. Make a reservation\");\r\n System.out.println(\"2. Cancel a reservation\");\r\n System.out.println(\"3. See an invoice\");\r\n System.out.println(\"4. See the hotel info\");\r\n System.out.println(\"5. Exit the booking system\");\r\n \r\n Scanner input = new Scanner(System.in);\r\n while(!input.hasNextInt()){\r\n input = new Scanner(System.in);\r\n }\r\n int choice = input.nextInt();\r\n \r\n while(choice!=5){\r\n //make a reservation\r\n if(choice == 1){\r\n System.out.println(\"Please enter your name:\");\r\n input = new Scanner(System.in);\r\n String username = input.nextLine();\r\n System.out.println(\"What type of room would you like to reserve?\");\r\n input = new Scanner(System.in);\r\n String usertype = input.nextLine();\r\n h.createReservation(username,usertype);\r\n }\r\n //cancel a reservation\r\n if(choice == 2){\r\n System.out.println(\"Please enter your name:\");\r\n input = new Scanner(System.in);\r\n String username = input.nextLine();\r\n System.out.println(\"What type of room would you want to cancel?\");\r\n input = new Scanner(System.in);\r\n String usertype = input.nextLine();\r\n h.cancelReservation(username,usertype);\r\n }\r\n //see an invoice\r\n if(choice == 3){\r\n System.out.println(\"Please enter your name:\");\r\n input = new Scanner(System.in);\r\n String username = input.nextLine();\r\n h.printInvoice(username);\r\n }\r\n //see hotel information\r\n if(choice == 4){\r\n System.out.println(h.toString());\r\n }\r\n \r\n System.out.println(\"1. Make a reservation\");\r\n System.out.println(\"2. Cancel a reservation\");\r\n System.out.println(\"3. See an invoice\");\r\n System.out.println(\"4. See the hotel info\");\r\n System.out.println(\"5. Exit the booking system\");\r\n \r\n input = new Scanner(System.in);\r\n while(!input.hasNextInt()){\r\n input = new Scanner(System.in);\r\n }\r\n choice = input.nextInt();\r\n }\r\n \r\n //Exit the booking system\r\n if(choice == 5){\r\n System.out.println(\"It was a pleasure doing business with you!\");\r\n }\r\n }", "public int checkRooms(LocalDate bookdate, int stay, int type, int req, ArrayList<Integer> array) {\n\t\t\t\r\n\t\t\tint i = 0;\r\n\t\t\tint k = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tint count = 0;\r\n\t\t\tBooking bookChecker = null; //Saves the bookings of a hotel to be checked\r\n\t\t\tRooms roomChecker = null; //Saves the rooms of the hotel\r\n\t\t\tLocalDate endBook = bookdate.plusDays(stay); //booking start date + number of nights\r\n\t\t\tboolean booked = false;\r\n\r\n\t\t\tif(req == 0) return 0; //if theres no need for single/double/triple room\r\n\t\t\t\r\n\t\t\twhile(i < RoomDetails.size()) { //checking room-wise order\r\n\t\t\t\troomChecker = RoomDetails.get(i);\r\n\t\t\t\tif(type == roomChecker.getCapacity()) { //only check if its the same room type as needed\r\n\t\t\t\t\tk = 0;\r\n\t\t\t\t\twhile(k < Bookings.size()) { //check for bookings of a room\r\n\t\t\t\t\t\tbookChecker = Bookings.get(k);\r\n\t\t\t\t\t\tj=0;\r\n\t\t\t\t\t\tbooked = false;\r\n\t\t\t\t\t\twhile(j < bookChecker.getNumOfRoom()) { //To check if a booked room have clashing schedule with new booking\r\n\t\t\t\t\t\t\tif(roomChecker.getRoomNum() == bookChecker.getRoomNumber(j)) { //if there is a booking for the room\r\n\t\t\t\t\t\t\t\tif(bookdate.isEqual(bookChecker.endDate()) || endBook.isEqual(bookChecker.getStartDate())) {\r\n\t\t\t\t\t\t\t\t\t//New booking starts at the same day where another booking ends\r\n\t\t\t\t\t\t\t\t\tbooked = false; //No clash\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(bookdate.isAfter(bookChecker.endDate()) || endBook.isBefore(bookChecker.getStartDate())) {\r\n\t\t\t\t\t\t\t\t\t//New booking starts days after other booking ends, or new booking ends before other booking starts\r\n\t\t\t\t\t\t\t\t\tbooked = false; //no clash\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse { //Any other way means that it clashes and hence room cant be booked\r\n\t\t\t\t\t\t\t\t\tbooked = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(booked == true) break; //if booked and clash , break\r\n\t\t\t\t\t\t\tj++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(booked == true) break; //if booked and clash , break\r\n\t\t\t\t\t\tk++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tif(booked == false) {\r\n\t\t\t\t\t\tarray.add(roomChecker.getRoomNum()); //if no clashing dates, book the room for new cust\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (count == req) break; //if there is enough room already, finish\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn count; //returns the number of available rooms acquired\r\n\t\t}", "public Booking makeBooking(Customer customer, Airline flight, int baggage, String type, Date date);", "public void createRooms()\n {\n Room outside,bedroom, bathroom, hallway1, hallway2, spareroom, kitchen, fridge;\n\n // create the rooms\n bedroom = new Room(\"Bedroom\", \"your bedroom. A simple room with a little bit too much lego\");\n bathroom = new Room(\"Bathroom\", \"the bathroom where you take your business calls. Also plenty of toilet paper\");\n hallway1 = new Room(\"Hallway1\", \"the hallway outside your room, there is a dog here blocking your path. Youll need to USE something to distract him\");\n hallway2 = new Room(\"Hallway2\", \"the same hallway? This part leads to the spare room and kitchen\");\n spareroom = new Room(\"Spare room\", \"the spare room. This is for guests\");\n kitchen = new Room(\"Kitchen\", \"your kitchen. There is a bowl with cereal in it waiting for you,But its still missing some things\");\n fridge = new Room (\"Walk in Fridge\", \"a walkin fridge. Have you ever seen Ratatouille? Its like that\");\n outside = new Room(\"Outside\", \"the outside world, breathe it in\");\n \n \n Item toiletPaper, milk, spoon, poison;// creates the items and sets their room\n \n toiletPaper = new Item(\"Toilet-Paper\", hallway1);\n toiletPaper.setDescription(\"Just your standard bog roll. Dont let your dog get a hold of it\");\n bathroom.setItems(\"Toilet-Paper\",toiletPaper);\n \n milk = new Item(\"Milk\", kitchen);\n milk.setDescription(\"white and creamy, just like mama used to make\");\n fridge.setItems(\"Milk\", milk);\n \n spoon = new Item(\"Spoon\", kitchen);\n spoon.setDescription(\"Like a fork but for liquids\");\n spareroom.setItems(\"Spoon\", spoon);\n \n poison = new Item(\"Poison\", outside);\n poison.setDescription(\"This will probably drain all of your energy, dont USE it\");\n outside.setItems(\"Poison\", poison);\n \n // initialise room exits\n bedroom.setExit(\"east\", bathroom);\n bedroom.setExit(\"north\", hallway1);\n \n bathroom.setExit(\"west\", bedroom);\n \n hallway1.setExit(\"south\", bedroom);\n hallway1.setExit(\"north\", hallway2);\n \n hallway2.setExit(\"south\", hallway1);\n hallway2.setExit(\"west\", spareroom);\n hallway2.setExit(\"north\", kitchen);\n \n spareroom.setExit(\"east\", hallway2);\n \n kitchen.setExit(\"east\", outside);\n kitchen.setExit(\"west\", fridge);\n \n fridge.setExit(\"east\", kitchen);\n \n \n outside.setExit(\"west\", kitchen);\n \n\n this.currentRoom = bedroom; // start game in bedroom\n \n }", "private void createRooms()\n {\n Room outside, theatre, pub, lab, office , hallway, backyard,chickenshop;\n \n // create the rooms\n outside = new Room(\"outside the main entrance of the university\");\n theatre = new Room(\"in a lecture theatre\");\n pub = new Room(\"in the campus pub\");\n lab = new Room(\"in a computing lab\");\n office = new Room(\"in the computing admin office\");\n hallway=new Room (\"in the hallway of the university\");\n backyard= new Room( \"in the backyard of the university\");\n chickenshop= new Room(\"in the chicken shop\");\n \n \n \n // initialise room exits\n outside.setExit(\"east\", theatre);\n outside.setExit(\"south\", lab);\n outside.setExit(\"west\", pub);\n\n theatre.setExit(\"west\", outside);\n theatre.setExit(\"north\", backyard);\n\n pub.setExit(\"east\", outside);\n\n lab.setExit(\"north\", outside);\n lab.setExit(\"east\", office);\n \n office.setExit(\"south\", hallway);\n office.setExit(\"west\", lab);\n \n chickenshop.setExit(\"west\", lab);\n\n currentRoom = outside; // start game outside\n \n }", "RoomInfo room(int id);", "public void startBook() {\n\t\tthis.startInfo();\n\t\tSystem.out.println();\n\t\tint maxNoSeat = this.showtimes.getNoSeatAvailable();\n\t\tSystem.out.println(\"How many tickets do you want to purchase? (Max:\"+maxNoSeat+\"):\");\n\t\tint choice = this.getInputChoice(1, maxNoSeat);\n\t\t\n\n\t\t\n\t\t// Array to store age of Movie-goers\n\t\tint[] ageArray = new int[choice];\n\t\tfor (int i=0; i< choice; ++i) {\n\t\t\tSystem.out.println();\n\t\t\tthis.showtimes.viewSeat();\n\t\t\tSystem.out.println(\"Please choose your seat(s) (e.g. A1):\");\n\t\t\tint[] seat = this.getInputSeat();\n\t\t\t\n\t\t\tthis.showtimes.takeSeat(seat[0], seat[1]);\n\t\t\tSystem.out.println(\"Enter movie-goer's age:\");\n\t\t\tint age = this.getInputInteger();\n\t\t\tageArray[i] = age;\n\t\t}\n\t\tthis.runBook(choice, ageArray);\n\t}", "private void bookRoom(final long recNo, final String owner) {\n\t\tif (this.applicationMode == ApplicationMode.STANDALONE_CLIENT) {\n\t\t\ttry {\n\t\t\t\tfinal long lock = this.database.lockRecord(recNo);\n\t\t\t\tfinal String[] record = this.database.readRecord(recNo);\n\t\t\t\trecord[6] = owner;\n\t\t\t\tthis.database.updateRecord(recNo, record, lock);\n\t\t\t\tthis.database.unlock(recNo, lock);\n\t\t\t} catch (final RecordNotFoundException rnfe) {\n\t\t\t\tthis.log.log(Level.WARNING, rnfe.getMessage(), rnfe);\n\n\t\t\t\tthis.clientUI.showError(\n\t\t\t\t\t\t\"Cannot book record: \" + rnfe.getMessage(), \"Warning\",\n\t\t\t\t\t\tLevel.WARNING);\n\n\t\t\t\tSystem.err.println(\"Cannot book record: \" + rnfe.getMessage());\n\t\t\t\trnfe.printStackTrace();\n\t\t\t}\n\t\t} else if (this.applicationMode == ApplicationMode.NETWORKED_CLIENT) {\n\t\t\ttry {\n\t\t\t\tfinal long lock = this.remoteDatabase.lockRecord(recNo);\n\t\t\t\tfinal String[] record = this.remoteDatabase.readRecord(recNo);\n\t\t\t\trecord[6] = owner;\n\t\t\t\tthis.remoteDatabase.updateRecord(recNo, record, lock);\n\t\t\t\tthis.remoteDatabase.unlock(recNo, lock);\n\t\t\t} catch (final RemoteException re) {\n\t\t\t\tthis.log.log(Level.SEVERE, re.getMessage(), re);\n\n\t\t\t\tthis.clientUI.showError(\n\t\t\t\t\t\t\"Remote Exception encountered when booking a room: \"\n\t\t\t\t\t\t\t\t+ re.getMessage() + re.getMessage(), \"Error\",\n\t\t\t\t\t\tLevel.SEVERE);\n\n\t\t\t\tSystem.err\n\t\t\t\t\t\t.println(\"Remote Exception encountered when booking a room \"\n\t\t\t\t\t\t\t\t+ re.getMessage());\n\t\t\t\tre.printStackTrace();\n\t\t\t} catch (final RecordNotFoundException rnfe) {\n\t\t\t\tthis.log.log(Level.WARNING, rnfe.getMessage(), rnfe);\n\n\t\t\t\tthis.clientUI.showError(\n\t\t\t\t\t\t\"Cannot book record: \" + rnfe.getMessage(), \"Warning\",\n\t\t\t\t\t\tLevel.WARNING);\n\n\t\t\t\tSystem.err.println(\"Cannot book record: \" + rnfe.getMessage());\n\t\t\t\trnfe.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tthis.log.severe(\"Client controller started with incorrect Application Mode. Exiting application\");\n\t\t\tthis.clientUI\n\t\t\t\t\t.showError(\n\t\t\t\t\t\t\t\"Client controller started with incorrect Application Mode. Exiting application\",\n\t\t\t\t\t\t\t\"Error\", Level.SEVERE);\n\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void setMyRoomReservationOK() throws SQLException{\n int guestID = guest[guestIndex].getAccountID();\n int selRoomCount = getSelectedRoomsCounter();\n int[] tempRooms = getGuestSelRooms(); //Selected room by room number\n \n roomStartDate = convertMonthToDigit(startMonth) + \"/\" +startDay+ \"/\" + startYear;\n roomEndDate = convertMonthToDigit(endMonth) + \"/\" +endDay+ \"/\" + endYear; \n \n System.out.println(\"\\nSaving reservation\");\n System.out.println(\"roomStartDate\" + roomStartDate);\n System.out.println(\"roomEndDate:\" + roomEndDate);\n \n //Searching the reserved room number in the hotel rooms\n for(int i=0;i<selRoomCount;i++){\n for(int i2=0;i2<roomCounter;i2++){\n if(myHotel[i2].getRoomNum() == tempRooms[i]){ \n //if room number from array is equal to selected room number by guest\n System.out.println(\"Room Found:\"+tempRooms[i]); \n \n myHotel[i2].setOccupantID(guestID);\n myHotel[i2].setAvailability(false);\n myHotel[i2].setOccupant(guest[guestIndex].getName());\n myHotel[i2].setStartDate(roomStartDate);\n myHotel[i2].setEndDate(roomEndDate);\n }\n }\n }\n \n updateRoomChanges_DB(); //apply changes to the database\n \n //Updates room preference of the current guest \n String sqlstmt = \"UPDATE APP.GUEST \"\n + \" SET ROOMPREF = '\" + guest[guestIndex].getPref()\n + \"' WHERE ID = \"+ guest[guestIndex].getAccountID();\n \n CallableStatement cs = con.prepareCall(sqlstmt); \n cs.execute(); //execute the sql command \n cs.close(); \n }", "public void unbookRoom(int room) {\n availableRooms.add(availableRooms.size(), room);\n unavailableRooms.remove(unavailableRooms.indexOf(room));\n unavailableRooms = unavailableRooms.stream().sorted().collect(Collectors.toList());\n availableRooms = availableRooms.stream().sorted().collect(Collectors.toList());\n System.out.println(\"Thank you for staying! See you next time.\");\n }", "private static boolean bookHotel(org.netbeans.j2ee.wsdl.niceview.java.niceview.BookHotelInputType bookHotelReqest) throws BookHotelFault {\n org.netbeans.j2ee.wsdl.niceview.java.niceview.NiceViewService service = new org.netbeans.j2ee.wsdl.niceview.java.niceview.NiceViewService();\n org.netbeans.j2ee.wsdl.niceview.java.niceview.NiceViewPortType port = service.getNiceViewBindingPort();\n return port.bookHotel(bookHotelReqest);\n }", "public void bookHotelScenarioTest() throws BookHotelFault, DatatypeConfigurationException, CancelHotelFault{\n // Booking of an hotel in Paris\n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_4\", \"Tick Joachim\", \"50408824\", 2, 11);\n boolean result = bookHotel(input);\n assertEquals(true, result);\n System.out.println(\"first test result: \" + result); \n \n if(result == true){\n // Trying to get the list of hotel from Paris and we should have only one hotel because the NY hotel is already booked\n GetHotelInputType getInput = CreateGetHotelInputType(\"Paris\");\n GetHotelsOutputType getOutput = getHotels(getInput);\n int expectedNbHotels = 1;\n int resultNbHotels = 0;\n if (getOutput.getHotelInformations().isEmpty() == false){\n resultNbHotels = getOutput.getHotelInformations().size();\n } \n cancelHotel(\"booking_Hotel_4\");\n assertEquals(expectedNbHotels, resultNbHotels); \n } \n else {\n assertEquals(true, false);\n }\n }", "Room getRoom();", "Room getRoom();", "private void handleBooking() {\n\t\tString customerID;\n\t\tint recNo = table.getSelectedRow();\n\t\tif(recNo == -1){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tcustomerID = JOptionPane.showInputDialog(mainPanel,\n\t\t\t\t\t\"Enter Customer ID (8 Digits)\");\n\t\t\tif (customerID != null) {\t\n\t\t\t\tcontroller.reserveRoom(recNo, customerID);\n\t\n\t\t\t\tupdateTable(nameSearchBar.getText(),\n\t\t\t\t\t\tlocationSearchBar.getText());\n\t\t\t}\n\t\t} catch (final InvalidCustomerIDException icide) {\n\t\t\tJOptionPane.showMessageDialog(mainPanel, \"Invalid format!\");\n\t\t} catch (final BookingServiceException bse) {\n\t\t\tJOptionPane.showMessageDialog(mainPanel, bse.getMessage());\n\t\t} catch (final ServiceUnavailableException sue) {\n\t\t\tJOptionPane.showMessageDialog(null, sue.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public static int room_booking(int start, int end){\r\n\r\n\t\tint selected_room = -1;\r\n\t\t// booking_days list is to store all the days between start and end day\r\n\t\tList<Integer> booking_days = new ArrayList<>();\r\n\t\tfor(int i=start;i<=end; i++) {\r\n\t\t\tbooking_days.add(i);\r\n\t\t}\r\n\r\n\t\tfor(int roomNo : hotel_size) {\r\n\r\n\t\t\tif(room_bookings.keySet().contains(roomNo)) {\r\n\t\t\t\tfor (Map.Entry<Integer, Map<Integer,List<Integer>>> entry : room_bookings.entrySet()) {\r\n\r\n\t\t\t\t\tList<Integer> booked_days_for_a_room = new ArrayList<Integer>();\r\n\t\t\t\t\tif(roomNo == entry.getKey()) {\r\n\t\t\t\t\t\tentry.getValue().forEach((bookingId, dates)->{\r\n\t\t\t\t\t\t\tbooked_days_for_a_room.addAll(dates);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tList<Integer> check_elements = new ArrayList<Integer>();\r\n\t\t\t\t\t\tfor(int element : booking_days) {\r\n\t\t\t\t\t\t\tif(booked_days_for_a_room.contains(element)) {\r\n\t\t\t\t\t\t\t\tstatus = false;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tcheck_elements.add(element);\r\n\t\t\t\t\t\t\t\tselected_room = roomNo;\r\n\t\t\t\t\t\t\t\tstatus = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(status) {\r\n\t\t\t\t\t\t\tselected_room = roomNo;\r\n\t\t\t\t\t\t\treturn selected_room;\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\telse {\r\n\t\t\t\tselected_room = roomNo;\r\n\t\t\t\tstatus = true;\r\n\t\t\t\treturn selected_room;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn selected_room;\r\n\t}", "public void BookRoom() throws InterruptedException\r\n\t{\r\n\t\tExplicitWait(Booknow);\r\n\r\n\t\tThread.sleep(2000);\r\n\t\tif (Booknow.isEnabled()) \r\n\t\t{\r\n\t\t\tBooknow.isDisplayed();\r\n\t\t\tJavascriptexecutor(Booknow);\r\n\r\n\t\t\t//System.out.println(\"Clicked on Booknow\");\r\n\t\t\tSeleniumRepo.waitForPageLoaded(); \r\n\t\t\tExplicitWait(verify_Headingrooms);\r\n\t\t\tlogger.info(\"Clicked on Booknow\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on Booknow\");\r\n\r\n\t\t} else \r\n\t\t{\r\n\t\t\t//System.out.println(\"BookNow button not found\");\r\n\t\t\tlogger.error(\"BookNow button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"BookNow button not found\");\r\n\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void toStringTest() throws Exception {\r\n\t\tRoom room01 = new Room(1, RoomType.Single, 8.9, \"first room\");\r\n\t\tRoom room02 = new Room(2, RoomType.Family, 13.3, \"second room\");\r\n\t\tArrayList<Room> rooms = new ArrayList<Room>();\r\n\t\trooms.add(room01);\r\n\t\trooms.add(room02);\r\n\t\troomBooking.setRoomsBooked(rooms);\r\n\t\tSystem.out.println(roomBooking.toString());\r\n\t\tSystem.out.println(roomBooking.getRoomsBooked());\r\n\t}", "public void allBookings() {\n\t\t\tint i = 0;\r\n\t\t\tint k = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tint roomNum; //Room number\r\n\t\t\tint buffNum; //buff room number\r\n\t\t\tint index = 0; //saves the index of the date stored in the arraylist dateArray\r\n\t\t\tBooking buff; //Booking buffer to use\r\n\t\t\tRooms roomCheck;\r\n\t\t\tArrayList<LocalDate> dateArray = new ArrayList<LocalDate>(); //Saves the booking dates of a room\r\n\t\t\tArrayList<Integer> nights = new ArrayList<Integer>(); //Saves the number of nights a room is booked for\r\n\t\t\t\r\n\t\t\twhile(i < RoomDetails.size()) { //Looping Room Number-wise\r\n\t\t\t\troomCheck = RoomDetails.get(i);\r\n\t\t\t\troomNum = roomCheck.getRoomNum();\r\n\t\t\t\tSystem.out.print(this.Name + \" \" + roomNum);\r\n\t\t\t\twhile(k < Bookings.size()) { //across all bookings\r\n\t\t\t\t\tbuff = Bookings.get(k);\r\n\t\t\t\t\twhile(j < buff.getNumOfRoom()) { //check each booked room\r\n\t\t\t\t\t\tbuffNum = buff.getRoomNumber(j);\r\n\t\t\t\t\t\tif(buffNum == roomNum) { //If a booking is found for a specific room (roomNum)\r\n\t\t\t\t\t\t\tdateArray.add(buff.getStartDate()); //add the date to the dateArray\r\n\t\t\t\t\t\t\tCollections.sort(dateArray); //sort the dateArray\r\n\t\t\t\t\t\t\tindex = dateArray.indexOf(buff.getStartDate()); //get the index of the newly add date\r\n\t\t\t\t\t\t\tnights.add(index, buff.getDays()); //add the number of nights to the same index as the date\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tj++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tk++;\r\n\t\t\t\t\tj=0;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t\tprintOccupancy(dateArray, nights); //print the occupancy of the room\r\n\t\t\t\tk=0;\r\n\t\t\t\tdateArray.clear(); //cleared to be used again\r\n\t\t\t\tnights.clear(); //cleared to be used again\r\n\t\t\t}\r\n\t\t}", "public void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tObject HotelID = cbHotelsOptions.getSelectedItem();\n\t\t\t\t\tHotel hotel;\n\t\t\t\t\thotel = (Hotel) HotelID;\n\t\t\t\t\tlong id = hotel.getUniqueId();\n\t\t\t\t\t//\tSystem.out.println(id);\n\t\t\t\t\tString inmonth = txtInMonth.getText();\n\t\t\t\t\tint inMonth = Integer.valueOf(inmonth);\n\t\t\t\t\tString inday = txtInDay.getText();\n\t\t\t\t\tint inDay = Integer.parseInt(inday);\n\t\t\t\t\tString outmonth = txtOutMonth.getText();\n\t\t\t\t\tint outMonth = Integer.valueOf(outmonth);\n\t\t\t\t\tString outday = txtOutDay.getText();\n\t\t\t\t\tint OutDay = Integer.parseInt(outday);\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\"Reservation.txt\", true);\n\t\t\t\t\tPrintWriter pw = new PrintWriter(fos);\n\n\t\t\t\t\t/**\n\t\t\t\t\t * i then check the canBook method and according to the canBook method \n\t\t\t\t\t * i check if they can book, and if yes i add the reservation\n\t\t\t\t\t * otherwise it prints so the user may enter different values\n\t\t\t\t\t */\n\t\t\t\t\t{\n\t\t\t\t\t\tif(h.canBook(new Reservation(id,inMonth, inDay, OutDay)) == true) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservation.add(new Reservation (id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\tr = new Reservation (id,inMonth, inDay, OutDay);\n\t\t\t\t\t\t\th.addResIfCanBook(new Reservation(id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\treservationsModel.addElement(r);\n\t\t\t\t\t\t\tpw.println( id + \" - \" + inMonth + \"-\"+ inDay+ \" - \" + outMonth + \"-\" + OutDay);\n\t\t\t\t\t\t\tpw.close();\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"These dates are already reserved\"\n\t\t\t\t\t\t\t\t\t+ \"\\nPlease try again!\");\t\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\t/**\n\t\t\t\t * Then the catch Block checks for file not found exception\n\t\t\t\t */\n\t\t\t\tcatch (FileNotFoundException fnfe) \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found.\");\n\t\t\t\t}\n\t\t\t}", "public SingleRoom(Hotel hotel, String nomor_kamar)\n {\n // initialise instance variables\n super(hotel,nomor_kamar);\n\n }", "public void makeBooking (Object booking);", "private void createRoom(Connection connection, Scanner scan) throws SQLException {\n\n DatabaseMetaData dmd = connection.getMetaData();\n ResultSet rs1 = dmd.getTables(null, null, \"ROOM\", null);\n ResultSet rs2 = dmd.getTables(null, null, \"HOTEL_ROOMS\", null);\n\n if (rs1.next() && rs2.next()){\n\n String sql = \"INSERT INTO Room VALUES (?, ?, ?, ?)\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n pStmt.setString(1, getHotelName());\n pStmt.setInt(2, getBranchID());\n\n System.out.print(\"Please provide the room type a name: \");\n setType(scan.nextLine());\n pStmt.setString(3, getType());\n\n System.out.print(\"Please provide a guest capacity for this type: \"); // branch id, room type, capacity\n setCapacity(Integer.parseInt(scan.nextLine()));\n pStmt.setInt(4, getCapacity());\n\n try { pStmt.executeUpdate(); }\n catch (SQLException e) { e.printStackTrace(); }\n finally {\n pStmt.close();\n rs1.close();\n rs2.close();\n }\n\n linkHotelRoom(connection, scan);\n }\n else {\n System.out.println(\"ERROR: Error loading ROOM or HOTEL_ROOMS Table.\");\n }\n }", "@Override\n public void like(int hotelId) {\n }", "public void returnBook()\n\t{\n\t\tavailableBooks++;\n\t}", "public int get_booking_room_id() {\n return room_id;\n }", "public void createRooms()//Method was given\n { \n \n // create the rooms, format is name = new Room(\"description of the situation\"); ex. desc = 'in a small house' would print 'you are in a small house.'\n outside = new Room(\"outside\", \"outside of a small building with a door straight ahead. There is a welcome mat, a mailbox, and a man standing in front of the door.\", false);\n kitchen = new Room(\"kitchen\", \"in what appears to be a kitchen. There is a sink and some counters with an easter egg on top of the counter. There is a locked door straight ahead, and a man standing next to a potted plant. There is also a delicious looking chocolate bar sitting on the counter... how tempting\", true);\n poolRoom = new Room(\"pool room\", \"in a new room that appears much larger than the first room.You see a table with a flashlight, towel, and scissors on it. There is also a large swimming pool with what looks like a snorkel deep in the bottom of the pool. Straight ahead of you stands the same man as before.\", true);\n library = new Room(\"library\", \"facing east in a new, much smaller room than before. There are endless rows of bookshelves filling the room. All of the books have a black cover excpet for two: one red book and one blue book. The man stands in front of you, next to the first row of bookshelves\", true);\n exitRoom = new Room(\"exit\", \"outside of the building again. You have successfully escaped, congratulations! Celebrate with a non-poisonous chocolate bar\",true);\n \n // initialise room exits, goes (north, east, south, west)\n outside.setExits(kitchen, null, null, null);\n kitchen.setExits(poolRoom, null, outside, null);\n poolRoom.setExits(null, library, kitchen, null);\n library.setExits(null, null, exitRoom, poolRoom);\n exitRoom.setExits(null, null, null, null); \n \n currentRoom = outside; // start game outside\n }", "@Override\n\tpublic boolean bookRoom(String month, int day, String type, int lengthOfStay) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic ErrorCode reserveRoom(\r\n\t\t\tString guestID, String hotelName, RoomType roomType, SimpleDate checkInDate, SimpleDate checkOutDate,\r\n\t\t\tlong resID) {\n\t\tErrorAndLogMsg m = clientProxy.reserveHotel(\r\n\t\t\t\tguestID, hotelName, roomType, checkInDate, checkOutDate, \r\n\t\t\t\t(int)resID);\r\n\t\t\r\n\t\tSystem.out.print(\"RESERVE INFO:\");\r\n\t\tm.print(System.out);\r\n\t\tSystem.out.println(\"\");\r\n\t\t\r\n\t\treturn m.errorCode();\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tint input;\r\n\t\tSystem.out.println(\"Welcome to hotel Booking\");\r\n\t\tSystem.out.println(\"please enter size of hotel\");\r\n\t\tScanner sObj = new Scanner(System.in);\r\n\t\tint size = sObj.nextInt();\r\n\t\tif(size> 1000 ||size<0) {\r\n\t\t\tSystem.out.println(\"please enter correct size of hotel\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsetHotelSize(size);\r\n\t\t\tdo{\r\n\t\t\t\tSystem.out.println(\"please enter start and end day\");\r\n\t\t\t\tint start = sObj.nextInt();\r\n\t\t\t\tint end = sObj.nextInt();\r\n\r\n\t\t\t\tif(start<0 || start>365) {\r\n\t\t\t\t\tSystem.out.println(\"Invalid Start Date\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif(end<start || end>365) {\r\n\t\t\t\t\tSystem.out.println(\"Invalid end Date\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tint room_number = room_booking(start,end);\r\n\r\n\t\t\t\tif(room_number >0 && room_number <= size) {\r\n\t\t\t\t\tList<Integer> booking_days = new ArrayList<>();\r\n\t\t\t\t\tMap<Integer,List<Integer>> booking_details = new HashMap<Integer,List<Integer>>();\r\n\t\t\t\t\tfor(int i=start;i<=end; i++) {\r\n\t\t\t\t\t\tbooking_days.add(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbooking_details.put(bookingId++,booking_days);\r\n\t\t\t\t\troom_bookings.put(room_number,booking_details);\r\n\t\t\t\t\tSystem.out.println(\"Accept\");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"Decline\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Press 1 to continue to check room availablity or 0 to exit\");\r\n\t\t\t\tinput = sObj.nextInt();\r\n\t\t\t}while(input==1); \r\n\t\t}\r\n\t}", "@Override\n\tpublic String fnBookRoom(String StudentId, String campus,\n\t\t\tString dRoomNumber, String dtDate, String dtToTimeSlott) {\n\t\t\n\t\tif (studentVsBookingList.containsKey(strStudentId)\n\t\t\t\t&& studentVsBookingList.get(StudentId).size() >= 3) {\n\t\t\treturn \"failed\";\n\t\t}\n\n\t\tHashMap<String, HashMap<String, HashMap<String, String>>> dateWiseRoomDetails = getdateWiseRoomDetails(campus);\n\t\tHashMap<String, HashMap<String, HashMap<String, String>>> roomDetails = null;\n\t\tString camp = StudentId.substring(0, 3).toUpperCase();\n\t\tSystem.out.println(\"Student ID campus \"+camp);\n\t\tswitch (camp.toLowerCase()) {\n\t\tcase \"dvl\":\n\t\t\troomDetails = hmDorvalRoomDetails;\n\t\t\tbreak;\n\n\t\tcase \"kkl\":\n\t\t\troomDetails = hmKirklandRoomDetails;\n\t\t\tbreak;\n\n\t\tcase \"wst\":\n\t\t\troomDetails = hmWestmountRoomDetails;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\treturn \"failed\";\n\t\t}\n\t\tSystem.out.println(\"no date\");\n\t\tif (dateWiseRoomDetails.get(dtDate) == null)\n\t\t\treturn \"failed\";\n\t\tSystem.out.println(\"slot missed\");\n\t\tHashMap<String, String> timeSlotsOfaRoom = dateWiseRoomDetails.get(\n\t\t\t\tdtDate).get(dRoomNumber);\n\t\tif (timeSlotsOfaRoom == null)\n\t\t\treturn \"failed\";\n\t\tif (!timeSlotsOfaRoom.containsKey(dtToTimeSlott)\n\t\t\t\t|| timeSlotsOfaRoom.get(dtToTimeSlott) != null)\n\t\t\treturn \"failed\";\n\n\t\tString bookingId = camp.substring(0,3) +\"-\"+ \"BID\" + iBookingId++;\n\t\taddBookingIdTOStudent(StudentId, bookingId);\n\t\ttimeSlotsOfaRoom.put(dtToTimeSlott, bookingId);\n\t\tSystem.out.println(\"Booking done Sucessfully\");\n\t\treturn bookingId;\n\t}", "public DirectorOffice(String description, String name,Room room) {\n\t\tsuper(description, name,room);\n\t this.addItem(new Pass(\"pass-G\"));\n\t}", "public void seeReservation(RoomList roomList){\n\t\tSystem.out.println(\"What is the name of the guest you wish to check a reservation for ?\");\n\t\tkeyboard.nextLine();\n\t\tString name = keyboard.nextLine();\n\t\tRoom room = null;\n\t\t\n\t\tfor(Room r: roomList.getList()){\n\t\t\tif(!r.isEmpty(r)) {\n\t\t\troom = r.findRoomByName(r, name);\n\t\t\troom.getGuestNames(room);\n\t\t\t}\n\t\t}\n\t}", "private void createRooms()\n {\n Room a1, a2, a3, b1, b2, b3, c1, c2, c3, bridge, outskirts;\n \n // create the rooms\n a1= new Room(\"see a strong river flowing south to the west. The trees seem to be letting up a little to the north.\");\n a2 = new Room(\" are still in a very dense forest. Maybe the trees are clearing up the the north?\");\n a3 = new Room(\"see a 30 foot cliff looming over the forest to the east. No way you could climb that. Every other direction is full of trees.\");\n b1 = new Room(\"see a strong river flowing to the west. Heavily wooded areas are in all other directions.\");\n b2 = new Room(\"see only trees around you.\");\n b3 = new Room(\"see a 30 foot cliff to the east. There might be one spot that is climbable. Trees surround you every other way.\");\n c1 = new Room(\" see the river cuts east here, but there seems to be a small wooden bridge to the south over it. The trees are less the direction that the river flows.\");\n c2 = new Room(\"are on a peaceful riverbank. If you weren't lost, this might be a nice spot for a picnic.\");\n c3 = new Room(\"see a 30 foot cliff to your east and a strong flowing river to the south. Your options are definitely limited.\");\n outskirts = new Room(\"make your way out of the trees and find yourself in an open field.\");\n cliff = new Room(\"managed to climb up the rocks to the top of the cliff. Going down, doesn't look as easy. You have to almost be out though now!\");\n bridge = new Room(\"cross the bridge and find a small trail heading south!\");\n win = new Room(\" manage to spot a road not too far off! Congratulations on finding your way out of the woods! Have a safe ride home! :)\" );\n fail = new Room(\" are entirely lost. It is pitch black out and there is no way that you are getting out of here tonight. I'm sorry, you LOSE.\");\n \n // initialise room exits\n a1.setExit(\"north\", outskirts);\n a1.setExit(\"east\", a2);\n a1.setExit(\"south\", b1);\n \n a2.setExit(\"east\", a3);\n a2.setExit(\"west\", a1);\n a2.setExit(\"south\", b2);\n a2.setExit(\"north\", outskirts);\n \n a3.setExit(\"north\", outskirts);\n a3.setExit(\"west\", a2);\n a3.setExit(\"south\", b3);\n \n b1.setExit(\"north\", a1);\n b1.setExit(\"east\", b2);\n b1.setExit(\"south\", c1);\n \n b2.setExit(\"east\", b3);\n b2.setExit(\"west\", b1);\n b2.setExit(\"south\", c2);\n b2.setExit(\"north\", a2);\n \n b3.setExit(\"north\", a3);\n b3.setExit(\"west\", b2);\n b3.setExit(\"south\", c3);\n b3.setExit(\"up\", cliff);\n \n c1.setExit(\"north\", b1);\n c1.setExit(\"east\", c2);\n c1.setExit(\"south\" , bridge);\n \n c2.setExit(\"east\", c3);\n c2.setExit(\"west\", c1);\n c2.setExit(\"north\", b2);\n \n c3.setExit(\"west\", c2);\n c3.setExit(\"north\", b3);\n \n outskirts.setExit(\"north\", win);\n outskirts.setExit(\"east\", a3);\n outskirts.setExit(\"west\", a1);\n outskirts.setExit(\"south\", a2);\n \n cliff.setExit(\"north\", outskirts);\n cliff.setExit(\"east\", win);\n \n bridge.setExit(\"north\", c1);\n bridge.setExit(\"south\", win);\n \n c3.addItem(new Item (\"shiny stone\", 0.1));\n a1.addItem(new Item (\"sturdy branch\", 2));\n a3.addItem(new Item(\"water bottle\" , 0.5));\n a3.addItem(new Item(\"ripped backpack\" , 1));\n currentRoom = b2; // start game outside\n }", "public PremiumRoom(Hotel hotel, String nomor_kamar)\r\n {\r\n super(hotel, nomor_kamar);\r\n }", "public void talkToCharacter(Room room)//Made by Lexi\n {\n if (currentRoom.getTitle().equals(\"outside\")) {\n System.out.println(\"All you need to do is unlock the door...\");\n System.out.println(\"Hint: use INSPECT to examine an item in detail.\");\n if (player.inventoryContains(key))\n {\n kitchen.setLocked(false);\n System.out.println(\"The door makes a loud click.\");\n }\n }\n \n \n else if (currentRoom.getTitle().equals(\"kitchen\")) {\n System.out.println(\"In order to move on to the next room, you must first find an item which can be found by solving this riddle: \");\n System.out.println(\"A box without hinges, key, or lid, yet golden treasure inside is hid.\");\n System.out.println(\"The answer is an item in this room that will help you escape and move on to the next room.\");\n if (player.inventoryContains(egg))\n {\n poolRoom.setLocked(false);\n System.out.println(\"The door makes a loud click.\");\n }\n }\n else if (currentRoom.getTitle().equals(\"pool room\")) {\n System.out.println(\"In order to escape this room you must solve this next riddle: \");\n System.out.println(\"Wash me and I am not clean. Don't wash me and then I'm clean. What I Am?\"); //water\n System.out.println(\"The answer to the riddle is where you'll find the object needed to escape this room... \");\n if (player.inventoryContains(snorkel))\n {\n library.setLocked(false);\n System.out.println(\"The door makes a loud click.\");\n }\n }\n else if (currentRoom.getTitle().equals(\"library\")) {\n System.out.println(\"In order to escape this room you must solve this next riddle: \");\n System.out.println(\"The objects, or people, have been removed from their previous localities through the power of a naturally moving phenomenon.\");\n System.out.println(\"Once you have figured out what item belongs to the answer of this riddle you will have escaped the building!\");\n if (player.inventoryContains(blueBook))\n {\n \n exitRoom.setLocked(false);\n System.out.println(\"The door makes a loud click.\");\n }\n }\n else {\n System.out.println(\"There is nobody here, so you talk to yourself...\");\n }\n }", "public void updateRoom(Room room);", "private static void createRooms() {\n// Room airport, beach, jungle, mountain, cave, camp, raft, seaBottom;\n\n airport = new Room(\"airport\");\n beach = new Room(\"beach\");\n jungle = new Room(\"jungle\");\n mountain = new Room(\"mountain\");\n cave = new Room(\"cave\");\n camp = new Room(\"camp\");\n seaBottom = new Room(\"seabottom\");\n\n //Setting the the exits in different rooms\n beach.setExit(\"north\", jungle);\n beach.setExit(\"south\", seaBottom);\n beach.setExit(\"west\", camp);\n\n jungle.setExit(\"north\", mountain);\n jungle.setExit(\"east\", cave);\n jungle.setExit(\"south\", beach);\n\n mountain.setExit(\"south\", jungle);\n\n cave.setExit(\"west\", jungle);\n\n camp.setExit(\"east\", beach);\n\n seaBottom.setExit(\"north\", beach);\n\n // Starting room\n currentRoom = airport;\n }", "public void nextRoom() {\n room++;\n createRoom();\n }", "private static void printRoom(Room currentRoom) {\n\t\t\n\t}", "private void createRooms()\n {\n Room outside, garden, kitchen, frontyard, garage, livingroom,\n upperhallway, downhallway, bedroom1, bedroom2, toilet,teleporter;\n\n // create the rooms\n outside = new Room(\"outside the house\",\"Outside\");\n garden = new Room(\"in the Garden\", \"Garden\");\n kitchen = new Room(\"in the Kitchen\",\"Kitchen\");\n frontyard = new Room(\"in the Frontyard of the house\", \"Frontyard\");\n garage = new Room(\"in the Garage\", \"Garage\");\n livingroom = new Room(\"in the Living room\", \"Living Room\");\n upperhallway = new Room(\"in the Upstairs Hallway\",\"Upstairs Hallway\");\n downhallway = new Room(\"in the Downstairs Hallway\", \"Downstairs Hallway\");\n bedroom1 = new Room(\"in one of the Bedrooms\", \"Bedroom\");\n bedroom2 = new Room(\"in the other Bedroom\", \"Bedroom\");\n toilet = new Room(\"in the Toilet upstairs\",\"Toilet\");\n teleporter = new Room(\"in the Warp Pipe\", \"Warp Pipe\");\n\n // initialise room exits\n outside.setExit(\"north\", garden);\n outside.setExit(\"east\", frontyard);\n\n garden.setExit(\"south\", outside);\n garden.setExit(\"east\", kitchen);\n\n kitchen.setExit(\"west\", garden);\n kitchen.setExit(\"north\", livingroom);\n kitchen.setExit(\"south\", downhallway);\n\n frontyard.setExit(\"west\", outside);\n frontyard.setExit(\"north\", downhallway);\n frontyard.setExit(\"east\", garage);\n\n garage.setExit(\"west\", frontyard);\n garage.setExit(\"north\", downhallway);\n\n livingroom.setExit(\"west\", kitchen);\n\n downhallway.setExit(\"north\",kitchen);\n downhallway.setExit(\"west\",frontyard);\n downhallway.setExit(\"south\",garage);\n downhallway.setExit(\"east\",upperhallway);\n\n upperhallway.setExit(\"north\", bedroom2);\n upperhallway.setExit(\"east\", bedroom1);\n upperhallway.setExit(\"south\", toilet);\n upperhallway.setExit(\"west\", downhallway);\n\n toilet.setExit(\"north\", upperhallway);\n\n bedroom1.setExit(\"west\",upperhallway);\n\n bedroom2.setExit(\"south\", upperhallway);\n\n rooms.add(outside);\n rooms.add(garden);\n rooms.add(kitchen);\n rooms.add(frontyard);\n rooms.add(garage);\n rooms.add(livingroom);\n rooms.add(upperhallway);\n rooms.add(downhallway);\n rooms.add(bedroom1);\n rooms.add(bedroom2);\n rooms.add(toilet);\n }", "private void linkHotelRoom(Connection connection, Scanner scan) throws SQLException {\n\n String sql = \"INSERT INTO Hotel_Rooms VALUES (?, ?, ?, ?)\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n System.out.print(\"Please enter the number of \" + getType() + \"s the hotel has: \");\n setQuantity(scan.nextInt());\n\n pStmt.setString(1, getHotelName());\n pStmt.setInt(2, getBranchID());\n pStmt.setString(3, getType());\n pStmt.setInt(4, getQuantity());\n\n try { pStmt.executeUpdate(); }\n catch (SQLException e) { throw e; }\n finally { pStmt.close(); }\n }", "public Room(int id, int roomNumber, int persons, int days){\n this.id = id;\n this.roomNumber = roomNumber;\n this.persons = persons;\n this.days = days;\n available = false; //default value, assignment not necessary\n }", "public interface RoomFactory\n{\n public Room createRoom(int floorNumber, Booking booking, RoomType roomType);\n}", "public static void book(Table<Flight> fTable, Table<Seat> sTable, Table<Passenger> pTable, Table<Reservation> rTable){\n \tTable<Seat> freeSeats = new Table<Seat>();\n\t\t\t\n \t\tint randomPassenger = (int) (Math.random()*pTable.size());\t\t\t\t\t\t\t\t\t\t// choosing random passenger [index] from passengers table\n \t\tint randomFlight = (int) (Math.random()*fTable.size());\t\t\t\t\t\t\t\t\t\t\t// choosing random flight [index] from flights table\n \t\t\n \t for(int f = 0; f < sTable.size(); f++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// check for all seats in sTable\n \t \tif((sTable.get(f).flightId() == randomFlight+1) && (!sTable.get(f).isBooked())){\t\t\t// if seat belongs to chosen flight and is not booked then\n \t \t\tfreeSeats.add(sTable.get(f));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add seats to the freeSeats list\n \t \t}\n \t }\n \t \n \t if (freeSeats.size() > 0){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is free seats then\n \t \tint randomFreeSeat = (int) (Math.random()*freeSeats.size());\t\t\t\t\t\t\t\t// choose random seat from free seats list\n \t \tif(freeSeats.size() == 1){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is only one free seat\n \t \t\trandomFreeSeat = 0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then take that seat\n \t \t}\n \t \t\n \t\t\tReservation res = new Reservation(pTable.get(randomPassenger), freeSeats.get(randomFreeSeat));\t// create reservation\n\n \t \tif (rTable.isEmpty()){ \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if reservations table is empty\n \t \t\t\tfreeSeats.get(randomFreeSeat).bookSeat();\n \t \t\t\trTable.add(res);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add reservation to reservation table\n \t \t} else { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if reservations table is NOT empty and\n\t \t\t\t\tif( exists(res, rTable) ){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if seat is booked or seat exists in rTable\n\t \t\t\t\t\t//continue;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exit this loop\n\t \t\t\t\t} else {\n\t \t \t\t\tfreeSeats.get(randomFreeSeat).bookSeat();\t\t\t\t\t\t\t\t\t\t// else book that seat\n\t \t \t\t\trTable.add(res);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add to reservation table\n\t \t\t\t\t}\n\t \t\t }\n \t }\n\t\t\n\t}", "private void createRooms()\n {\n // create the rooms\n prison = new Room(\"Prison\", \"Prison. You awake in a cold, dark cell. Luckily, the wall next to you has been blown open. \\nUnaware of your current circumstances, you press on... \\n\");\n promenade = new Room(\"Promenade\",\"Promenade. After stumbling upon a ladder, you decided to climb up. \\n\" + \n \"You appear outside a sprawling promenade. There appears to be something shiny stuck in the ground... \\n\");\n sewers = new Room(\"Sewers\",\"Sewers. It smells... interesting. As you dive deeper, you hear something creak\");\n ramparts = new Room(\"Ramparts\", \"Ramparts. You feel queasy as you peer down below. \\nAs you make your way along, you're greated by a wounded soldier.\" +\n \"\\nIn clear agony, he slowly closes his eyes as he says, 'the king... ki.. kil... kill the king..' \\n\");\n depths = new Room(\"Depths\", \"Depths. You can hardly see as to where you're going...\" + \"\\n\");\n ossuary = new Room(\"Ossuary\", \"Ossuary. A chill runs down your spine as you examine the skulls... \\n\" +\n \"but wait... is.. is one of them... moving? \\n\" +\"\\n\" + \"\\n\" + \"There seems to be a chest in this room!\" + \"\\n\");\n bridge = new Room(\"Bridge\", \"Bridge. A LOUD SHREIK RINGS OUT BEHIND YOU!!! \\n\");\n crypt = new Room(\"Crypt\", \"Crypt. An eerire feeling begins to set in. Something about this place doesn't seem quite right...\" + \"\\n\");\n graveyard = new Room(\"Graveyard\", \"Graveyard. The soil looks rather soft. \\n\" +\n \"As you being to dive deeper, you begin to hear moans coming from behind you...\");\n forest = new Room(\"Forest\", \"Forest. It used to be gorgeous, and gleaming with life; that is, until the king came...\" + \"\\n\" +\n \"there's quite a tall tower in front of you... if only you had something to climb it.\" + \"\\n\");\n tower = new Room(\"Tower\", \"Tower. As you look over the land, you're astounded by the ruin and destruction the malice and king have left behind. \\n\");\n castle = new Room(\"Castle\", \"Castle. Used to be the most elegant and awe-inspiring building in the land. \\n\" +\n \"That is, before the king showed up... \\n\" +\n \"wait... is that... is that a chest? \\n\");\n throneRoomEntrance = new Room(\"Throne Entrance\", \"You have made it to the throne room entrance. Press on, if you dare.\");\n throne = new Room(\"Throne Room\", \"You have entered the throne room. As you enter, the door slams shut behind you! \\n\" +\n \"Before you stands, the king of all malice and destruction, Mr. Rusch\" + \"\\n\");\n deathRoom1 = new Room(\"Death Room\", \"THE DOOR SLAMS SHUT BEHIND YOU\");\n deathRoom2 = new Room(\"Death Room\", \"THE DOOR SLAMS SHUT BEHIND YOU\");\n deathRoom3 = new Room(\"Death Room\", \"THE DOOR SLAMS SHUT BEHIND YOU\");\n deathRoom4 = new Room(\"Death Room\", \"depths of the earth... well part of you at least.\" + \"\\n\" + \"You fell off the peaks of the castle to your untimely death\");\n \n // initialise room exits\n\n currentRoom = prison; // start game outside player.setRoom(currentRoom);\n player.setRoom(currentRoom);\n \n }", "private Room createRooms(){\n Room inicio, pasilloCeldas, celdaVacia1,celdaVacia2, pasilloExterior,vestuarioGuardias, \n comedorReclusos,enfermeria,ventanaAbierta,salidaEnfermeria,patioReclusos,tunelPatio,salidaPatio;\n\n Item mochila,medicamentos,comida,itemInutil,itemPesado;\n mochila = new Item(\"Mochila\",1,50,true,true);\n medicamentos = new Item(\"Medicamentos\",5,10,true,false);\n comida = new Item(\"Comida\",2,5,true,false);\n itemInutil = new Item(\"Inutil\",10,0,false,false);\n itemPesado = new Item(\"Pesas\",50,0,false,false);\n\n // create the rooms\n inicio = new Room(\"Tu celda de la prision\");\n pasilloCeldas = new Room(\"Pasillo donde se encuentan las celdas\");\n celdaVacia1 = new Room(\"Celda vacia enfrente de la tuya\");\n celdaVacia2 = new Room(\"Celda de tu compaņero, esta vacia\");\n pasilloExterior = new Room(\"Pasillo exterior separado de las celdas\");\n vestuarioGuardias = new Room(\"Vestuario de los guardias de la prision\");\n comedorReclusos = new Room(\"Comedor de reclusos\");\n enfermeria = new Room(\"Enfermeria de la prision\");\n ventanaAbierta = new Room(\"Saliente de ventana de la enfermeria\");\n salidaEnfermeria = new Room(\"Salida de la prision por la enfermeria\");\n patioReclusos = new Room(\"Patio exterior de los reclusos\");\n tunelPatio = new Room(\"Tunel escondido para escapar de la prision\");\n salidaPatio = new Room(\"Salida de la prision a traves del tunel del patio\");\n\n // initialise room items\n\n comedorReclusos.addItem(\"Comida\",comida);\n enfermeria.addItem(\"Medicamentos\",medicamentos);\n pasilloCeldas.addItem(\"Inutil\",itemInutil);\n patioReclusos.addItem(\"Pesas\",itemPesado);\n vestuarioGuardias.addItem(\"Mochila\",mochila);\n\n // initialise room exits\n\n inicio.setExits(\"east\", pasilloCeldas);\n pasilloCeldas.setExits(\"north\",pasilloExterior);\n pasilloCeldas.setExits(\"east\",celdaVacia1);\n pasilloCeldas.setExits(\"south\",patioReclusos);\n pasilloCeldas.setExits(\"west\",inicio);\n pasilloCeldas.setExits(\"suroeste\",celdaVacia2);\n celdaVacia1.setExits(\"west\", pasilloCeldas);\n pasilloExterior.setExits(\"north\",comedorReclusos);\n pasilloExterior.setExits(\"west\",enfermeria);\n pasilloExterior.setExits(\"east\",vestuarioGuardias);\n comedorReclusos.setExits(\"south\", pasilloExterior);\n enfermeria.setExits(\"east\",pasilloExterior);\n enfermeria.setExits(\"south\", ventanaAbierta);\n ventanaAbierta.setExits(\"north\",enfermeria);\n ventanaAbierta.setExits(\"south\", salidaEnfermeria);\n patioReclusos.setExits(\"north\", pasilloCeldas);\n patioReclusos.setExits(\"east\", tunelPatio);\n tunelPatio.setExits(\"east\",salidaPatio);\n tunelPatio.setExits(\"west\", patioReclusos);\n // casilla de salida\n\n return inicio;\n }", "private static void viewRooms() \n {\n String option, roomCode;\n\n displayMyRooms(\" \");\n\n Scanner input = new Scanner(System.in);\n\n System.out.print(\"Type (v)iew [room code] or \"\n + \"(r)eservations [room code], or (q)uit to exit: \");\n \n option = input.next().toLowerCase();\n \n while (!option.equals(\"q\"))\n {\n if (option.equals(\"v\") || option.equals(\"r\"))\n {\n System.out.print(\"Enter a room code: \");\n roomCode = \" '\" + input.next().toUpperCase() + \"'\";\n\n if(option.equals(\"v\"))\n displayDetailedRooms(roomCode);\n else\n displayDetailedReservations(\"WHERE ro.RoomId = \" + roomCode);\n }\n\n System.out.print(\"Type (v)iew [room code] or \"\n + \"(r)eservations [room code], or (q)uit to exit: \");\n \n option = input.next().toLowerCase();\n }\n \n }", "public void bookFlight(){\n //Steps\n //1 Show the available flights. (at least one seat with 0)\n //2 User select a flight, and the system automatically set the seat with his id. he is not able to select the seat\n //3 User confirm the reservation \n //4 Flight reserved\n \n //1\n //FlightRepository.availableFlights();\n //Scanner input = new Scanner(System.in);\n //String flightNumber = input.nextLine();\n \n //2,3 and 4\n Flight flightObject = FlightRepository.getFlight(this.number);\n if (flightObject == null){\n System.out.println(\"Please select a valid flight number\");\n }\n flightObject.setPassengerSeat(this.PassengerID);\n }", "public synchronized int borrowBook(String title, String borrower){\n //Check is available quantity is greater than 0\n int bookIndex = searchBook(title);\n if (bookIndex == -1)\n return -1;\n\n if (quantityList.get(bookIndex) == 0)\n return 0;\n\n quantityList.set(bookIndex, quantityList.get(bookIndex) - 1);\n borrowerList.get(bookIndex).add(borrower);\n return 1;\n }", "@Query(\"from Room where occupied = :occ and hotel_id = :hotelId\")\n\tList<Room> findOccupied(@Param(\"occ\") boolean occupied, @Param(\"hotelId\") long id);", "private static void demo2() throws RemoteException {\n\t\tCheckOutRoomService service = new CheckOutRoomServiceImpl();\r\n\t\tString clientID = \"0000001\";\r\n\t\tString hotelID = \"00001\";\r\n\t\t//System.out.println(service.checkOutRoom(clientID, hotelID));\r\n\t\tList<String> numbers = new ArrayList<String>();\r\n\t\t\r\n\t\tList<RoomVO> volist = service.getAllRooms(clientID, hotelID);\r\n\t\tfor(RoomVO vo:volist){\r\n\t\t\tshow(vo);\r\n\t\t\tnumbers.add(vo.getRoomNumber());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(service.checkOutRoom(clientID, hotelID, \"102\"));\r\n\t}", "public interface HotelReservations {\n\n void lookupHotels();\n Hotel getSelectedHotel();\n \n void destroy();\n}", "public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }", "public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }", "public void populateRooms(){\n }", "public void createRooms()\n { \n // create the rooms\n //RDC//\n hall = new Room(\"Hall\", \"..\\\\pictures\\\\Rooms\\\\hall.png\");\n banquetinghall = new Room (\"Banqueting hall\", \"..\\\\pictures\\\\Rooms\\\\banquet.png\");\n poolroom = new Room (\"PoolRoom\", \"..\\\\pictures\\\\Rooms\\\\billard.png\");\n dancingroom = new Room (\"Dancing Room\", \"..\\\\pictures\\\\Rooms\\\\bal.png\");\n kitchen = new Room(\"Kitchen\", null);\n garden = new Room(\"Garden\", null);\n well = new Room(\"Well\", null);\n gardenerhut = new Room(\"Gardener hut\", null);\n //Fin RDN //\n \n //-1//\n anteroom = new Room(\"Anteroom\", null);\n ritualroom = new Room(\"Ritual Room\", null);\n cellar = new Room(\"Cellar\", null);\n // FIN -1//\n // +1 //\n livingroom = new Room(\"Living Room\", null); \n library = new Room (\"Library\", null);\n laboratory = new Room(\"Laboratory\", null);\n corridor= new Room(\"Corridor\", null);\n bathroom = new Room(\"Bathroom\", null);\n bedroom = new Room(\"Bedroom\", null);\n guestbedroom = new Room(\"Guest Bedroom\", null); \n //FIN +1 //\n //+2//\n attic = new Room(\"Attic\", null);\n //Fin +2//\n //Fin create room // \n \n // initialise room exits\n //RDC\n hall.setExits(\"north\",garden, false, \"> You must explore the mansion before\");\n hall.setExits(\"south\",banquetinghall, true, null); \n banquetinghall.setExits(\"north\",hall, true, null);\n banquetinghall.setExits(\"south\",dancingroom, false, \"> The door is blocked by Bob's toys\");\n banquetinghall.setExits(\"east\",kitchen, true, null);\n banquetinghall.setExits(\"west\",poolroom, true, null);\n //poolroom.setExits(\"east\",banquetinghall, false, \"> You have not finished examining the crime scene\");\n poolroom.setExits(\"east\",banquetinghall, true, \"> You have not finished examining the crime scene\");\n dancingroom.setExits(\"north\",banquetinghall, true, null);\n dancingroom.setExits(\"up\",livingroom, true, null);\n kitchen.setExits(\"west\",banquetinghall, true, null);\n kitchen.setExits(\"down\",cellar, true, null);\n garden.setExits(\"south\",hall, true, null);\n garden.setExits(\"north\",well, true, null);\n garden.setExits(\"east\",gardenerhut, true, null);\n well.setExits(\"south\",garden, true, null);\n gardenerhut.setExits(\"west\",garden, true, null);\n //gardenerhut.setExits(\"down\",anteroom, false, null);\n //-1// \n anteroom.setExits(\"south\",ritualroom, true, null);\n anteroom.setExits(\"up\",gardenerhut, false, \"> The door is locked. You cannot go backward\");\n anteroom.setExits(\"west\",cellar, true, null);\n ritualroom.setExits(\"north\",anteroom, true, null);\n cellar.setExits(\"up\",kitchen, true, null);\n //cellar.setExits(\"east\", anteroom, false); To unlock\n //+1//\n livingroom.setExits(\"down\",dancingroom, true, null);\n livingroom.setExits(\"north\",library, true, null);\n livingroom.setExits(\"west\",corridor, true, null);\n library.setExits(\"south\",livingroom, true, null);\n //library.setExits(\"north\",laboratory, false); To unlock\n laboratory.setExits(\"south\",library, true, null);\n corridor.setExits(\"north\",bathroom, true, null);\n corridor.setExits(\"south\",bedroom, false, \"> The door is locked. A key may be mandatory\");\n corridor.setExits(\"east\",livingroom, true, null);\n corridor.setExits(\"west\",guestbedroom, true, null);\n corridor.setExits(\"up\",attic, false, \"> You see a weird lock in the ceiling\");\n bathroom.setExits(\"south\",corridor, true, null);\n bedroom.setExits(\"north\",corridor, true, null);\n guestbedroom.setExits(\"east\",corridor, true, null);\n attic.setExits(\"down\",corridor, true, null);\n \n //currentRoom = poolroom; // start game outside\n currentRoom = poolroom;\n }", "public void addBooking(Bookings b) {\n IController<Bookings> ic = new Controller<>();\n\n // Check whether the booking conflicts with another booking.\n for (Bookings booking : ic.readAll(Bookings.class)) {\n if (b.conflictsWith(booking)) {\n throw new IllegalArgumentException(\"That booking conflicts with another booking.\");\n }\n }\n\n Modules relatedModule = b.getModule();\n\n // Check whether the room is available at the given time.\n if (!b.getRooms().isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"That room is unavailable at this time.\");\n }\n // Check whether the students are available at that time.\n for (Students student : relatedModule.getStudents()) {\n if (!student.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A student is unavailable at this time.\");\n }\n }\n // Check whether the staff members are available at that time.\n for (Staff staff : relatedModule.getStaff()) {\n if (!staff.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A staff member is unavailable at this time.\");\n }\n }\n\n // Put the booking into the database.\n ic.create(b);\n System.out.println(b.confirmation() + \"\\n\");\n }", "@RequestMapping(value = \"/room/{id_hotel}/{room_no}\", method = RequestMethod.GET)\n public Room getRoom(@PathVariable int id_hotel,\n @PathVariable String room_no){\n Room kamar = DatabaseRoom.getRoom(DatabaseHotel.getHotel(id_hotel), room_no);\n return kamar;\n }", "public static void main(String[] args) {\n\t\tHotel h = new Hotel();\r\n\t\tRoom r = new Room();\r\n\t\tBed b = new Bed();\r\n\t\tint totalbeds = 0;\r\n\t\tList<Room> rooms = new ArrayList<Room>();\r\n\t\tList<Bed> beds = new ArrayList<Bed>();\r\n\t\tList<Integer> bedsperroom = new ArrayList<Integer>();\r\n\t\tHotelReport report = new HotelReport();\r\n\t\t//these are the values that can change, here they are hard coded in\r\n\t\tString hotelname=\"test\";\r\n\t\tint noofrooms=5;\r\n\t\t\r\n\t\th.setName(hotelname);\r\n\t\t//iterates through the number of rooms\r\n\t\tfor (int i = 1; i <= noofrooms; i++) {\r\n\t\t\t// here if the room is vacent or not has to be set for all rooms simultaneously,\r\n\t\t\t//in reality the user would be able to input different values for each room\r\n\t\t\tint roomfree=0;\r\n\t\t\th.gotVacencies(roomfree);\r\n\t\t\t// a new room object is created and added to the array list of rooms\r\n\t\t\tRoom e = new Room();\r\n\t\t\trooms.add(e);\r\n\t\t\t//again the number of beds in each room has to be the same for each room, \r\n\t\t\t//but in the proper system the user can input different numbers\r\n\t\t\tint bedsinroom=5;\r\n\t\t\t//checks to make sure the beds in room is a vaid number\r\n\t\t\tr.checkBeds(bedsinroom);\r\n\t\t\t//adds the beds in one room to an array list\r\n\t\t\tbedsperroom.add(bedsinroom);\r\n\t\t\t//iterates through the number of beds\r\n\t\t\tfor (int i2 = 1; i2 <= bedsinroom; i2++) {\r\n\t\t\t\t//a new bed object is created and added to the list of beds\r\n\t\t\t\tBed c = new Bed();\r\n\t\t\t\tbeds.add(c);\r\n\t\t\t\t//a bed type is set. as before, in the real system a different type \r\n\t\t\t\t//can be set for each bed\r\n\t\t\t\tint x = 1;\r\n\t\t\t\tc.setBedtype(x);\r\n\t\t\t\t//a running total of the max occupency is taken\r\n\t\t\t\ttotalbeds = totalbeds + x;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//the two arrays are set\r\n\t\th.setRooms(rooms);\r\n\t\tr.setBeds(beds);\r\n\t\t//all values are fed into the report class, which outputs a formatted report\r\n\t\treport.Report(h, bedsperroom, r, totalbeds);\t\r\n\t\t\t\t\r\n\t\t\r\n\r\n}", "public Room createRoom(Room room);", "public ViewRoom(Customer cust,Room r, int wrkNum) {\n initComponents();\n this.room = r;\n this.workoutNum = wrkNum;\n customer = cust;\n updateRoom();\n \n }", "public void incrementNumberOfRooms() {\n\t\t\n\t\tnumberOfRooms++;\n\t}", "public static void buyHotel(int i,int nOH, int a){\n\t\tif(whoOwnsIt[a] == i){\t\r\n\t\t\tif(nOH == 1 && avenueLevel[a] == 4){\t\r\n\t\t\t\tfor(int x = 0; x < avenue.length; x++){\r\n\t\t\t\t\tif(a == avenue[x]){\r\n\t\t\t\t\t\tplayerMoney[i] -= nOH*costOfBuilding[a];\r\n\t\t\t\t\t\tWindow.payment.setText(\"You bought \" + nOH + \" hotel for $\" + nOH*costOfBuilding[a]); \r\n\t\t\t\t\t\tavenueLevel[a] = 5;// nOH = number of houses\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}else{\r\n\t\t\t\tif(avenueLevel[a] != 4 && avenueLevel[a] != 5){\r\n\t\t\t\t\tWindow.answer.setText(\"You dont own 4 houses for that propery\");\r\n\t\t\t\t} else if(nOH != 1){\r\n\t\t\t\t\tWindow.answer.setText(\"You only buy one hotel\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void opponentInRoom();", "public void searchHotelRoomTypes(Connection connection, String hotel_name, int branch_ID) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT type, quantity FROM Hotel_Rooms WHERE hotel_name = ? AND branch_ID = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setHotelName(hotel_name);\n pStmt.setString(1, getHotelName());\n setBranchID(branch_ID);\n pStmt.setInt(2, getBranchID());\n\n try {\n\n System.out.printf(\" Room types available at %S, branch ID (%d)\", getHotelName(), getBranchID());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }", "public void setRoom(Room room) {\n this.selectedRoom = room;\n }", "public int addToBasket (Hotel h, String n, int i, boolean b) {\n\t\tif(b==true) {\n\t\tBnBReservation r2b = new BnBReservation(name,h,n,i);\n\t\tcustomerResos.add(r2b);\n\t\t}else {\n\t\tHotelReservation r2 = new HotelReservation(name,h, n, i);\n\t\tcustomerResos.add(r2);\n\t\t}\n\t\treturn customerResos.getNumOfReservations();\n\t}", "public void confirmBooking(){\n double ticketPrice = 56.0;\n double mealPrice = 30.0;\n if (student || child )\n ticketPrice = ticketPrice/2;\n else\n ticketPrice = ticketPrice*0.8;\n \n if (child )\n mealPrice = mealPrice/2;\n else\n mealPrice = mealPrice*0.9;\n double totalPrice = ticketPrice + mealPrice;\n System.out.println(getName()+\"\\nTicket price:$\"+ticketPrice+\"\\nMeal Price:$\"+mealPrice+\"\\nTotal price:$\"+totalPrice+\"\\nConfirm booking for \"+getName()+\" (Y/N)\");\n setBooked();\n System.out.println(getBooked()+\"\\n\\n\");\n }", "Booking getBookingById(BookingKey bookingKey);", "@Override\n\tpublic HotelroomPo getHotelroom(int hotelID, int roomID) {\n\t\t\n\t\tString hotelroomId = String.valueOf(hotelID)\n\t\t\t\t+String.valueOf(roomID);\n\t\treturn map.get(hotelroomId);\n\t}", "public void getBookAvailability() {\n getBookReservationEligibility();\n }", "private void printRoomInfo(Room room, List<String> retirevedInRoom, StringBuilder sb) {\n sb.append(room.getId());\n insertSpacing(sb, room.getId().toString());\n sb.append(room.getName());\n insertSpacing(sb, room.getName());\n if (CollectionUtils.isNotEmpty(retirevedInRoom)) {\n for (String obj : retirevedInRoom) {\n sb.append(obj);\n sb.append(\" \");\n }\n } else {\n sb.append(\"None\");\n }\n sb.append(NEWLINE);\n }", "public void setRoom(String room) {\n\t\tthis.room = room;\n\t}", "private void reserveBook ( String bookName, String authorName ) throws IOException {\r\n\t\t\r\n\t\tboolean result = false ;\t\t// Initially false\r\n\t\tBook demandedBook = new Book ( bookName, authorName ) ;\r\n\t\t// returns null if the book is not available\r\n\t\tBook availableBook = lib.getBookDatabase().get(demandedBook) ;\r\n\t\t\r\n\t\t// order the book if it is available\r\n\t\tif ( availableBook != null ) {\r\n\t\t\t// the book is shared among all students of library. Hence, Synchronization is mandatory\r\n\t\t\tsynchronized ( availableBook ) {\r\n\t\t\t\tif ( availableBook.order() ) {\r\n\t\t\t\t\t// return true if order successful\r\n\t\t\t\t\tresult = true ;\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t} \r\n\r\n\t\tString resultString = Integer.toString( result ? 1 : 0 ) ; // result string\r\n\t\tbyte[] replyData = resultString.getBytes() ; // result byte either 1 or 0\r\n\t\t\r\n\t\t// get client address and port from the UDP message client sended initially\r\n\t\tDatagramPacket sendPack = new DatagramPacket ( replyData, replyData.length, control.getAddress(),\r\n\t\t\tcontrol.getPort() ) ;\r\n\t\tsendData.send(sendPack);\r\n\t\t\r\n\t\tString message ;\r\n\t\t// Generate appropriate message and write it to log\r\n\t\tif ( result ) {\r\n\t\t\tmessage = \"A book named \" + bookName + \" by \" + authorName + \r\n\t\t\t\t\t\" was reserved at \" + Calendar.getInstance().getTime() + \" (Copies Left: \" + availableBook.getCopies() + \")\" ;\t\r\n\t\t} else {\r\n\t\t\tmessage = \"An unsucessful attempt to reserve \" + bookName + \" by \" +\r\n\t\t\t\t\tauthorName + \" was made at \" + Calendar.getInstance().getTime() ;\r\n\t\t}\r\n\t\t\r\n\t\tlib.writeLog ( message ) ;\r\n\t\treturn ;\r\n\t\t\r\n\t}", "@Override\n public Optional<Booking> book(Interval interval, User customer) {\n return inner.book(interval, customer);\n }", "public void changeOutofService(Room room);", "public void bookItin(View view){\n try{\n // Get index of itinerary from tis user\n EditText numberEdit = (EditText) findViewById(R.id.numberEdit);\n int index = Integer.parseInt(numberEdit.getText().toString());\n Client thisClient = system.getClient(userInfo[0]);\n Itinerary itin = selectionItinerary.get(index);\n // Store this users booked itinerary\n thisClient.bookItin(itin);\n system.addClient(thisClient);\n bookedItins.add(itin);\n TextView displayText = (TextView) findViewById(R.id.displayText);\n displayText.setText(\"This Itinerary booked successfully: \" + itin.toString());\n }catch (Exception e){\n // Let user know if itinerary cannot be stored\n TextView displayText = (TextView) findViewById(R.id.displayText);\n displayText.setText(\"No such itinerary found. Please choose\\n\" +\n \"number from search list displayed\");\n Button button = (Button) findViewById(R.id.bookButton);\n button.setEnabled(false);\n EditText numberEdit = (EditText) findViewById(R.id.numberEdit);\n numberEdit.setText(\"\");\n }\n }", "@Test\r\n\tpublic void makeBooking2() {\r\n\t\tnewFlightSearch.setDepartureTime(new Date(2016-1900,7+1,15));\r\n\t\tnewFlightSearch.setDepartureLoc(\"Akureyri\");\r\n\t\tnewFlightSearch.setArrivalLoc(\"Reykjavík\");\r\n\t\tnewFlightSearch.setPriceRange(new int[]{10000,20000});\r\n\t\tnewFlightSearch.setReturnTrip(false);\r\n\t\tnewFlightSearch.setNumSeats(1);\r\n\t\tnewFlightSearch.setSeatClass(\"Economy\");\r\n\t\tList<FlightAbstract> flightResults = SearchEngine.flightSearch(newFlightSearch);\r\n\r\n\t\tFlightBooking testBooking = new FlightBooking(flightResults.get(0),1,\"Gunnar\");\r\n\t\tmockFlightBook bookedFlight = testBooking.bookFlight();\r\n\t\t\r\n\t\tassertEquals(bookedFlight.flight.getCustomer(), \"Gunnar\");\r\n\t}", "public static void main(String[] args) {\r\n\tScanner scan = new Scanner(System.in);\r\n\r\n\tSystem.out.print(\"Are there any room available for booking? If Yes enter true if No enter false: \");\r\n\tboolean available = scan.nextBoolean();\r\n\r\n\tSystem.out.println(\"Enter the month, day and year followed by space: \");\r\n\tint month = scan.nextInt();\r\n\tint day = scan.nextInt();\r\n\tint year = scan.nextInt();\r\n\r\n\tsimpleRoomBook(available, month, day, year);\r\n\r\n}", "public boolean reserveRoom(int id, int customerID, String location)\n throws RemoteException, DeadlockException;", "public Bedroom(int number, int capacity , TypesOfBedrooms type, int nightlyrate) {\n super(capacity);\n this.number = number;\n this.type = type;\n this.nightlyrate = nightlyrate;\n this.guests = new ArrayList<Guest>();\n }", "private ArrayList<Room> createRooms() {\n //Adding starting position, always rooms(index0)\n\n rooms.add(new Room(\n \"Du sidder på dit kontor. Du kigger på uret og opdager, at du er sent på den. WTF! FISKEDAG! Bare der er fiskefilet tilbage, når du når kantinen. Du må hellere finde en vej ud herfra og hen til kantinen.\",\n false,\n null,\n null\n ));\n\n //Adding offices to <>officerooms, randomly placed later \n officeRooms.add(new Room(\n \"Du bliver kort blændet af en kontorlampe, som peger lige mod døråbningen. Du ser en gammel dame.\",\n false,\n monsterList.getMonster(4),\n itemList.getItem(13)\n ));\n\n officeRooms.add(new Room(\n \"Der er ingen i rummet, men rodet afslører, at det nok er Phillipas kontor.\",\n false,\n null,\n itemList.getItem(15)\n ));\n\n officeRooms.add(new Room(\n \"Du vader ind i et lokale, som er dunkelt oplyst af små, blinkende lamper og har en stank, der siger så meget spar fem, at det kun kan være IT-lokalet. Du når lige at høre ordene \\\"Rick & Morty\\\".\",\n false,\n monsterList.getMonster(6),\n itemList.getItem(7)\n ));\n\n officeRooms.add(new Room(\n \"Det var ikke kantinen det her, men hvorfor er der så krummer på gulvet?\",\n false,\n null,\n itemList.getItem(1)\n ));\n\n officeRooms.add(new Room(\n \"Tine sidder ved sit skrivebord. Du kan se, at hun er ved at skrive en lang indkøbsseddel. Hun skal nok have gæster i aften.\",\n false,\n monsterList.getMonster(0),\n itemList.getItem(18)\n ));\n\n officeRooms.add(new Room(\n \"Du træder ind i det tekøkken, hvor Thomas plejer at opholde sig. Du ved, hvad det betyder!\",\n false,\n null,\n itemList.getItem(0)\n ));\n\n officeRooms.add(new Room(\n \"Du går ind i det nok mest intetsigende rum, som du nogensinde har set. Det er så intetsigende, at der faktisk ikke er mere at sige om det.\",\n false,\n monsterList.getMonster(1),\n itemList.getItem(9)\n ));\n\n //Adding copyrooms to <>copyrooms, randomly placed later \n copyRooms.add(new Room(\n \"Døren knirker, som du åbner den. Et kopirum! Det burde du have set komme. Især fordi det var en glasdør.\",\n false,\n null,\n itemList.getItem(19)\n ));\n\n copyRooms.add(new Room(\n \"Kopimaskinen summer stadig. Den er åbenbart lige blevet færdig. Du går nysgerrigt over og kigger på alle de udskrevne papirer.\",\n false,\n null,\n itemList.getItem(12)\n ));\n\n //Adding restrooms to <>restrooms, randomly placed later \n restRooms.add(new Room(\n \"Ups! Dametoilettet. Der hænger en klam stank i luften. Det må være Ruth, som har været i gang.\",\n false,\n null,\n itemList.getItem(5)\n ));\n\n restRooms.add(new Room(\n \"Pedersen er på vej ud fra toilettet. Han vasker ikke fingre! Slut med at give ham hånden.\",\n false,\n monsterList.getMonster(7),\n itemList.getItem(11)\n ));\n\n restRooms.add(new Room(\n \"Du kommer ind på herretoilettet. Du skal simpelthen tisse så meget, at fiskefileterne må vente lidt. Du åbner toiletdøren.\",\n false,\n monsterList.getMonster(2),\n null\n ));\n\n restRooms.add(new Room(\n \"Lisette står og pudrer næse på dametoilettet. Hvorfor gik du herud?\",\n false,\n monsterList.getMonster(8),\n itemList.getItem(14)\n ));\n\n //Adding meetingrooms to<>meetingrooms, randomly placed later\n meetingRooms.add(new Room(\n \"Du træder ind i et lokale, hvor et vigtigt møde med en potentiel kunde er i gang. Du bliver nødt til at lade som om, at du er en sekretær.\",\n false,\n monsterList.getMonster(9),\n itemList.getItem(6)\n ));\n\n meetingRooms.add(new Room(\n \"Mødelokalet er tomt, men der står kopper og service fra sidste møde. Sikke et rod!\",\n false,\n null,\n itemList.getItem(3)\n ));\n\n meetingRooms.add(new Room(\n \"Projektgruppen sidder i mødelokalet. Vil du forsøge at forsinke dem i at nå fiskefileterne i kantinen?\",\n false,\n monsterList.getMonster(10),\n itemList.getItem(2)\n ));\n\n //Adding specialrooms to<>specialrooms, randomly placed later\n specialRooms.add(new Room(\n \"Du vader ind på chefens kontor. På hans skrivebord sidder sekretæren Phillipa.\",\n false,\n monsterList.getMonster(5),\n itemList.getItem(8)\n ));\n\n specialRooms.add(new Room(\n \"Det her ligner øjensynligt det kosteskab, Harry Potter boede i.\",\n false,\n monsterList.getMonster(3),\n itemList.getItem(4)\n ));\n\n specialRooms.add(new Room(\n \"OMG! Hvad er det syn?! KANTINEN!! Du klarede det! Du skynder dig op i køen lige foran ham den arrogante fra din afdeling. Da du når frem til fadet er der kun 4 fiskefileter tilbage. Du snupper alle 4!\",\n true,\n null,\n null\n ));\n\n //Adding rooms(Inde1-5)\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n addMeetingRoom(rooms, meetingRooms);\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n\n //Adding rooms(Inde6-10)\n addMeetingRoom(rooms, meetingRooms);\n addCopyRoom(rooms, copyRooms);\n addRestRoom(rooms, restRooms);\n addOfficeRoom();\n addCopyRoom(rooms, copyRooms);\n\n //Adding rooms(Inde11-15)\n addOfficeRoom();\n addSpecialRoom(rooms, specialRooms);\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n addOfficeRoom();\n\n //Adding rooms(Inde16-19)\n addOfficeRoom();\n addSpecialRoom(rooms, specialRooms);\n addSpecialRoom(rooms, specialRooms);\n addMeetingRoom(rooms, meetingRooms);\n\n return rooms;\n }", "public GenericResponse<Booking> reserveRoom(Booking booking) {\n GenericResponse genericResponse = HotelBookingValidation.validateBookingInfo(logger, hotel, booking);\n if (genericResponse != null) {\n return genericResponse;\n }\n\n logger.info(booking.toString());\n\n if (hotel.getBookings().putIfAbsent(booking.getBookingRoom(), booking.getUser()) == null) {\n return GenericResponseUtils.generateFromSuccessfulData(booking);\n }\n\n logger.info(\"Oops. Please try again.\");\n return GenericResponseUtils.generateFromErrorMessage(\"Oops. Please try again.\");\n }", "public static void main(String[] arguments){\n Book AtlasShrugged = new Book(\"Atlas Shrugged\");\n// Book HungerGames = new Book(\"Hunger Games\");\n// CatinHat.WhatBook();\n AtlasShrugged.WhatBook();\n AtlasShrugged.CheckAvailable();\n// CatinHat.CheckAvailable();\n// HungerGames.CheckAvailable();\n //cant return total number of book instances, i would have to call out an instance to return a value.\n //System.out.println(book.length);\n\n //CatinHat.CheckIn();\n\n //AtlasShrugged.CheckIn();\n //CatinHat.CheckOut();\n AtlasShrugged.CheckOut();\n AtlasShrugged.CheckAvailable();\n AtlasShrugged.CheckIn();\n AtlasShrugged.CheckAvailable();\n //AtlasShrugged.CheckOut();\n \n// Book TheDaVinciCode = new Book(\"The Da Vinci Code\");\n// Book LePetitPrince = new Book(\"Le Petit Prince\");\n// Book ATaleofTwoCities = new Book(\"A Tale of Two Cities\");\n// Book TheLordofTheRings = new Book(\"The Lord of The Rings\");\n// TheDaVinciCode.WhatBook();\n// LePetitPrince.WhatBook();\n \n}", "public static void main(String[] args) {\n\tArrayList<Item> hallInventory = new ArrayList<>();\n\tArrayList<Exit> hallExits = new ArrayList<>();\n\tRoom Hall = new Room(\"Entrance Hall\", \"It is an entrance hall of a very grand house\", hallInventory, hallExits);\n\n\t//kitchen\n\tArrayList<Item> kitchenInventory = new ArrayList<>();\n\tArrayList<Exit> kitchenExits = new ArrayList<>();\n\tRoom Kitchen = new Room(\"Kitchen\", \"This is a very large kitchen.\", kitchenInventory, kitchenExits);\n\n\t//dining room\n\tArrayList<Item> diningInventory = new ArrayList<>();\n\tArrayList<Exit> diningExits = new ArrayList<>();\n\tRoom Dining = new Room(\"Dining Room\", \"This dining room is set for 12 people\", diningInventory, diningExits);\n\n\t//lounge\n\tArrayList<Item> loungeInventory = new ArrayList<>();\n\tArrayList<Exit> loungeExits = new ArrayList<>();\n\tRoom Lounge = new Room(\"Lounge\", \"The Lounge is a mess, and there are blood spatters on the wall\", loungeInventory, loungeExits);\n\n\t//</editor-fold>\n\n\t//<editor-fold defaultstate=\"collapsed\" desc=\"Fill rooms with objects\">\n\thallInventory.add(new Item(\"a fruit bowl\", \"The fruit bowl contains some fruit\"));\n\thallInventory.add(new Item(\"a clock\", \"Tick Tock\"));\n\tkitchenInventory.add(new Item(\"a stove\", \"The stove is very hot\"));\n\tkitchenInventory.add(new Item(\"a knife\", \"The knife is blunt\"));\n\t//</editor-fold>\n\n\t//<editor-fold defaultstate=\"collapsed\" desc=\"add exits to rooms\">\n\thallExits.add(new Exit(1, Lounge));\n\thallExits.add(new Exit(4, Dining));\n\tloungeExits.add(new Exit(2, Hall));\n\tdiningExits.add(new Exit(3, Hall));\n\tdiningExits.add(new Exit(4, Kitchen));\n\tkitchenExits.add(new Exit(3, Dining));\n\t//</editor-fold>\n\n\t//create character : Avatar\n\t//<editor-fold defaultstate=\"collapsed\" desc=\"character creation\">\n\tArrayList<Item> invent = new ArrayList<>();\n\tCharacter Avatar = new Character(\"Tethys\", \"A tall elf dressed in armour\", 100, invent);\n\tinvent.add(new Item(\"armour\", \"leather armour\"));\n\t//</editor-fold>\n\t//begin\n\tRoom currentLoc = Hall;\n\tSystem.out.print(\"You are standing in the \" + currentLoc.getName() + \"\\n\" + currentLoc.getDesc() + \"\\n\");\n\tcurrentLoc.printInventory();\n\tcurrentLoc.printExits();\n\n\tBufferedReader command = new BufferedReader(new InputStreamReader(System.in));\n\tString orders = null;\n\twhile (true) {\n\t System.out.print(\"What do you want to do? \");\n\t try {\n\t\torders = command.readLine();\n\t } catch (IOException ioe) {\n\t\tSystem.out.println(\"I'm sorry, I didn't understand that!\");\n\t\tSystem.exit(1);\n\t }\n\n\t String[] orderWords = orders.split(\" \");\n\n//\t for (String s : orderWords){\n//\t\tSystem.out.print(s);\n\t switch (orderWords[0].toLowerCase()) {\n\t\tcase \"go\":\n\t\t int count = 0;\n\t\t for (Exit e : currentLoc.getExits()) {\n\t\t\tString direct = orderWords[1].toUpperCase();\n\t\t\tif (direct.equals(e.getDirectionName())) {\n\t\t\t currentLoc = e.getLeadsTo();\n\t\t\t count++;\n\t\t\t System.out.print(\"You are standing in the \" + currentLoc.getName() + \"\\n\" + currentLoc.getDesc() + \"\\n\");\n\t\t\t currentLoc.printInventory();\n\t\t\t currentLoc.printExits();\n\t\t\t break;\n\t\t\t}\n\t\t }\n\t\t if (count == 0) {\n\t\t\tSystem.out.print(\"I'm sorry, I can't go that way.\\n\");\n\t\t }\n\t\t break;\n\n\t\tcase \"pick\":\n\n\n\t\tcase \"put\":\n\n\n\t\tcase \"exit\":\n\t\t System.exit(0);\n\t\t break;\n\t }\n\n\t}\n\n\n }", "public Room(String roomName) {\n guests = new ArrayList<>();\n roomTier = null;\n this.roomName = roomName;\n this.roomId = RoomId.generate(roomName);\n }", "private void createRooms()//refactored\n {\n currentRoom = RoomCreator.buildCurrentRooms();//new\n }", "public void openList(String chapter, String title, String body) {\n Intent i = new Intent(c, Book.class);\n i.putExtra(\"CHAPTER_KEY\", chapter);\n i.putExtra(\"TITLE_KEY\", title);\n i.putExtra(\"BODY\",body);\n\n c.startActivity(i);\n }", "private Rooms getRooms(boolean sociallyDistanced, LocalDateTime time, LocalDateTime endTime, Modules module) {\n // Get viable rooms\n Session s = HibernateUtil.getSessionFactory().openSession();\n CriteriaBuilder cb = s.getCriteriaBuilder();\n CriteriaQuery<Rooms> cq = cb.createQuery(Rooms.class);\n Root<Rooms> root = cq.from(Rooms.class);\n ParameterExpression<Integer> spacesNeeded = cb.parameter(Integer.class);\n if (sociallyDistanced) {\n cq.select(root).where(cb.greaterThanOrEqualTo(root.get(\"socialDistancingCapacity\"), spacesNeeded));\n } else {\n cq.select(root).where(cb.greaterThanOrEqualTo(root.get(\"maxCapacity\"), spacesNeeded));\n }\n\n root.join(\"bookings\", JoinType.LEFT);\n root.fetch(\"bookings\", JoinType.LEFT);\n\n Query<Rooms> query = s.createQuery(cq);\n query.setParameter(spacesNeeded, module.getStudents().size());\n\n List<Rooms> results = query.getResultList();\n\n s.close();\n\n\n Map<String, Rooms> possibleRooms = new HashMap<>();\n\n for (Rooms room : results) {\n if (room.isAvailable(time, endTime) && !possibleRooms.containsKey(room.getRoomID())) {\n System.out.println(\" \" + room.getRoomID() + \" of type \" + room.getType() + \" is available and meets your capacity needs.\");\n possibleRooms.put(room.getRoomID(), room);\n }\n }\n\n System.out.println(\"Please enter the room ID you would like to book.\");\n String roomKey = sc.next();\n while (!possibleRooms.containsKey(roomKey)) {\n System.out.println(\"That is not a correct ID for a room. Look at the list above.)\");\n roomKey = sc.next();\n }\n sc.nextLine();\n\n return possibleRooms.get(roomKey);\n }", "public Room(String roomName, String description, Objects secretObject)\n {\n this.roomName = roomName;\n this.description = description;\n if(secretObject != null) {\n this.secretObject = new Objects(secretObject.getItemName(), secretObject.getItemWeight());\n }\n exits = new HashMap<>();\n items = new HashMap<>();\n characters = new HashMap<>();\n }" ]
[ "0.7815301", "0.6881773", "0.6463442", "0.62520796", "0.6166285", "0.5996478", "0.5907726", "0.5890529", "0.5860234", "0.5858662", "0.58356094", "0.58316034", "0.581696", "0.5763363", "0.57148165", "0.5707333", "0.56879616", "0.5682494", "0.56514657", "0.56260484", "0.5618557", "0.56118", "0.56118", "0.5611535", "0.56083226", "0.557448", "0.5571258", "0.5566762", "0.55655825", "0.5565164", "0.5555253", "0.5546157", "0.5542715", "0.5535404", "0.5522579", "0.5513194", "0.5507041", "0.5463122", "0.5441387", "0.5434254", "0.54294765", "0.542264", "0.5415135", "0.5414147", "0.540639", "0.5394741", "0.53886086", "0.53853124", "0.5384534", "0.53775287", "0.5364332", "0.5361726", "0.5352692", "0.5339713", "0.5337734", "0.5330591", "0.53238547", "0.531908", "0.5313094", "0.5299637", "0.5288615", "0.5281166", "0.5277416", "0.5277416", "0.5273169", "0.5266742", "0.5262221", "0.5245092", "0.5214085", "0.52115434", "0.5206197", "0.5204854", "0.52029175", "0.5198525", "0.5194245", "0.51879436", "0.5186324", "0.51792973", "0.51785636", "0.5168123", "0.51649046", "0.5164667", "0.5164643", "0.5163891", "0.5159999", "0.5157494", "0.51529825", "0.51489604", "0.51275355", "0.51270163", "0.51122665", "0.5105937", "0.5105125", "0.5097323", "0.5096705", "0.5095014", "0.509473", "0.5088264", "0.5085348", "0.5081546" ]
0.602174
5
for map1: 190,160 for hagenberg: 700,700 for vienna: 2580,1868
public static Entity buildMap(Texture mapTexture, int w, int h) { Entity bg = new Entity(); bg.add(new PivotComponent(new Vector2(0, 0))); bg.add(new SpriteComponent(mapTexture, w, h)); return bg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double[] setMapBounds(double ulLon, double ulLat, double lrLon, double lrLat)\n/* 154: */ {\n/* 117:182 */ int x_min = 2147483647;\n/* 118:183 */ int y_min = 2147483647;\n/* 119:184 */ int x_max = -2147483648;\n/* 120:185 */ int y_max = -2147483648;\n/* 121:186 */ int mapZoomMax = 20;\n/* 122: */\n/* 123:188 */ x_max = Math.max(x_max, MercatorProj.LonToX(lrLon, mapZoomMax));\n/* 124:189 */ x_max = Math.max(x_max, MercatorProj.LonToX(ulLon, mapZoomMax));\n/* 125:190 */ y_max = Math.max(y_max, MercatorProj.LatToY(ulLat, mapZoomMax));\n/* 126:191 */ y_max = Math.max(y_max, MercatorProj.LatToY(lrLat, mapZoomMax));\n/* 127:192 */ x_min = Math.min(x_min, MercatorProj.LonToX(ulLon, mapZoomMax));\n/* 128:193 */ x_min = Math.min(x_min, MercatorProj.LonToX(lrLon, mapZoomMax));\n/* 129:194 */ y_min = Math.min(y_min, MercatorProj.LatToY(ulLat, mapZoomMax));\n/* 130:195 */ y_min = Math.min(y_min, MercatorProj.LatToY(lrLat, mapZoomMax));\n /* x_max= (int)(Math.max(ulLon,lrLon)*1000000);\n x_min= (int)(Math.min(ulLon,lrLon)*1000000);\n y_max= (int)(Math.max(ulLat,lrLat)*1000000);\n y_min= (int)(Math.min(ulLat,lrLat)*1000000);*/\n/* 134:199 */ int height = Math.max(0, this.mapPanel.getHeight());\n/* 135:200 */ int width = Math.max(0, this.mapPanel.getWidth());\n/* 136:201 */ int newZoom = mapZoomMax;\n/* 137:202 */ int x = x_max - x_min;\n/* 138:203 */ int y = y_max - y_min;\n/* 139:204 */ while ((x > width) || (y > height))\n/* 140: */ {\n/* 141:205 */ newZoom--;\n/* 142:206 */ x >>= 1;\n/* 143:207 */ y >>= 1;\n/* 144: */ }\n/* 145:209 */ x = x_min + (x_max - x_min)/2;\n/* 146:210 */ y = y_min + (y_max - y_min)/2;\n/* 147:211 */ int z = 1 << mapZoomMax - newZoom;\n/* 148:212 */ x /= z;\n/* 149:213 */ y /= z;\n /* int Cx=256;\n int Cy=256;\n //Cx>>=(newZoom);\n //Cy>>=(newZoom);\n double x1=((x*(width/2))/Cx);\n double y1=((y*(height/2))/Cy);\n x=(int) x1;\n y=(int) y1;\n x >>=(newZoom-this.mapPanel.zoom);\n y >>=(newZoom-this.mapPanel.zoom);\n //x = x+156;\n //y = y-137;*/\n x=x/10000;\n y=y/10000;\n /* 150:214 */ this.mapPanel.setZoom(new Point((int)x, (int)y), newZoom);\n double[] res = { this.mapPanel.zoom, this.mapPanel.centerX, this.mapPanel.centerY,x,y, newZoom, z };\n traceln(Arrays.toString(res));\n traceln( x_max+\",\"+x_min+\",\"+y_max+\",\"+y_min+\",x:\"+x+\",y:\"+y+\",z:\"+z+\",nZomm:\"+newZoom);\n // this.mapPanel.getBounds().getX()setBounds( (int)ulLon,(int)ulLat, (int)width,(int)height);\n return res;\n\n/* 167: */ }", "public final void mo12410a(Map<String, String> map, Map<String, String> map2) {\n AppMethodBeat.m2504i(98681);\n HashMap hashMap = new HashMap();\n hashMap.putAll(map);\n hashMap.put(\"B59\", this.f1552p);\n if (this.f1561y) {\n hashMap.put(\"B85\", \"1\");\n }\n if (this.f15282c) {\n hashMap.put(\"B95\", \"1\");\n } else {\n hashMap.put(\"B96\", this.f1547C);\n }\n if (!this.f1562z) {\n hashMap.put(\"B23\", \"1\");\n }\n HashMap hashMap2 = new HashMap();\n hashMap2.putAll(map2);\n if (this.f15292m != 0) {\n hashMap2.put(\"B84\", this.f15292m);\n }\n hashMap2.put(\"B87\", this.f1545A);\n hashMap2.put(\"B88\", this.f1546B);\n hashMap2.put(\"B90\", this.f1549E.f1569g);\n hashMap2.put(\"B91\", this.f1549E.f1570h);\n hashMap2.put(\"B92\", this.f1549E.f1571i);\n hashMap2.put(\"B93\", this.f1549E.f1572j);\n hashMap2.put(\"B94\", this.f1549E.f1573k);\n if (!TextUtils.isEmpty(this.f15287h)) {\n hashMap2.put(\"B47\", this.f15287h);\n }\n if (!TextUtils.isEmpty(this.f1548D)) {\n hashMap2.put(\"B41\", this.f1548D);\n }\n int i = this.f1559w.f1540a != 0 ? this.f1559w.f1540a : this.f1559w.f1542c == 200 ? 0 : this.f1559w.f1542c;\n if (!this.f1555s || i == -4) {\n C24371es.m37719b(\"HLHttpDirect\", C46772bt.m88739c(), i, this.f1559w.f1541b, hashMap, hashMap2, this.f15288i);\n AppMethodBeat.m2505o(98681);\n return;\n }\n C24371es.m37717a(\"HLHttpDirect\", C46772bt.m88739c(), i, this.f1559w.f1541b, hashMap, hashMap2, this.f15288i);\n AppMethodBeat.m2505o(98681);\n }", "private void setupVariant1TerrainMap() {\n\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,-4), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,-3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,-3), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,-3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,-3), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,-3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,-3), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,-2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,-2), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,-2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,-2), TerrainKind.BIG_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,-2), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,-2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,-2), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,-1), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,-1), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,-1), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,-1), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,-1), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-8,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,0), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,0), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,0), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,0), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(8,0), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,1), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-8,2), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,2), TerrainKind.GOLDFIELD);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,2), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,2), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(8,2), TerrainKind.SMALL_FISHERY);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,3), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,3), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,3), TerrainKind.GOLDFIELD);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,3), TerrainKind.SMALL_FISHERY);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,4), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,4), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,4), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,4), TerrainKind.FOREST);\n\t}", "public static int getMapWidth() {\r\n\t\treturn 7;\r\n\t}", "private void mapValues() {\n\t\tmap.put(1, \"I\");\r\n\t\tmap.put(5, \"V\");\r\n\t\tmap.put(10, \"X\");\r\n\t\tmap.put(50, \"L\");\r\n\t\tmap.put(100, \"C\");\r\n\t\tmap.put(500, \"D\");\r\n\t\tmap.put(1000, \"M\");\r\n\t}", "private void m12809b(Map<String, String> map) {\n C1372c b = this.f10119f.m12638b();\n C1371a b2 = b.m4790b();\n map.put(\"vwa\", String.valueOf(b2.m4783c()));\n map.put(\"vwm\", String.valueOf(b2.m4782b()));\n map.put(\"vwmax\", String.valueOf(b2.m4784d()));\n map.put(\"vtime_ms\", String.valueOf(b2.m4786f() * 1000.0d));\n map.put(\"mcvt_ms\", String.valueOf(b2.m4787g() * 1000.0d));\n C1371a c = b.m4792c();\n map.put(\"vla\", String.valueOf(c.m4783c()));\n map.put(\"vlm\", String.valueOf(c.m4782b()));\n map.put(\"vlmax\", String.valueOf(c.m4784d()));\n map.put(\"atime_ms\", String.valueOf(c.m4786f() * 1000.0d));\n map.put(\"mcat_ms\", String.valueOf(c.m4787g() * 1000.0d));\n }", "public static void adicionaMap2() {\n\t\t\t\tcDebitos_DFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"dam\", new Integer[] { 6, 18 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"fiti\", new Integer[] { 19, 26 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"cartorio\", new Integer[] { 39, 76 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"valor\", new Integer[] { 77, 90 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\t\t\t\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"processo\", new Integer[] { 21, 34 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"data_Venc\", new Integer[] { 35, 46 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"tributos\", new Integer[] { 47, 60 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"historico\", new Integer[] { 61, 78 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"valor\", new Integer[] { 79, 90 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\r\n\r\n\t\t// No DAM ANO DATA VENC No. PROCESSO\r\n\t\t// No. PARCELAMENTO VALOR JUROS TOTAL\r\n\t\tcDebitos_JFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_JFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_JFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_JFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_JFlorianopolis.put(\"processo\", new Integer[] { 39, 55 });\r\n\t\tcDebitos_JFlorianopolis.put(\"nParcelamento\", new Integer[] { 55, 76 });\r\n\t\tcDebitos_JFlorianopolis.put(\"valor\", new Integer[] { 77, 104 });\r\n\t\tcDebitos_JFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_JFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t// DAM LIV/FOLHA/CERT. DATA INSC HISTORICO\r\n\t\t// INSCRICAO VALOR\r\n\r\n\t\tcDebitos_J1Florianopolis.put(\"dam\", new Integer[] { 1, 13 });\r\n\t\tcDebitos_J1Florianopolis.put(\"liv_Folha_Cert\", new Integer[] { 14, 34 });\r\n\t\tcDebitos_J1Florianopolis.put(\"data_Insc\", new Integer[] { 35, 46 });\r\n\t\tcDebitos_J1Florianopolis.put(\"historico\", new Integer[] { 47, 92 });\r\n\t\tcDebitos_J1Florianopolis.put(\"inscricao\", new Integer[] { 93, 119 });\r\n\t\tcDebitos_J1Florianopolis.put(\"valor\", new Integer[] { 120, 132 });\r\n\t\t\r\n\t\t\r\n\t\t// No DAM ANO DATA VENC HISTORICO PROCESSO VALOR JUROS TOTAL\r\n\t\tcDebitos_LFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_LFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_LFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_LFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_LFlorianopolis.put(\"historico\", new Integer[] { 39, 76 });\r\n\t\tcDebitos_LFlorianopolis.put(\"processo\", new Integer[] { 77, 91 });\r\n\t\tcDebitos_LFlorianopolis.put(\"valor\", new Integer[] { 92, 104 });\r\n\t\tcDebitos_LFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_LFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\r\n\t}", "private static void m568a() {\n if (f878a == null) {\n HashMap hashMap = new HashMap();\n f878a = hashMap;\n hashMap.put(\"CN\", p.China);\n f878a.put(\"FI\", p.Europe);\n f878a.put(\"SE\", p.Europe);\n f878a.put(\"NO\", p.Europe);\n f878a.put(\"FO\", p.Europe);\n f878a.put(\"EE\", p.Europe);\n f878a.put(\"LV\", p.Europe);\n f878a.put(\"LT\", p.Europe);\n f878a.put(\"BY\", p.Europe);\n f878a.put(\"MD\", p.Europe);\n f878a.put(\"UA\", p.Europe);\n f878a.put(\"PL\", p.Europe);\n f878a.put(\"CZ\", p.Europe);\n f878a.put(\"SK\", p.Europe);\n f878a.put(\"HU\", p.Europe);\n f878a.put(\"DE\", p.Europe);\n f878a.put(\"AT\", p.Europe);\n f878a.put(\"CH\", p.Europe);\n f878a.put(\"LI\", p.Europe);\n f878a.put(\"GB\", p.Europe);\n f878a.put(\"IE\", p.Europe);\n f878a.put(\"NL\", p.Europe);\n f878a.put(\"BE\", p.Europe);\n f878a.put(\"LU\", p.Europe);\n f878a.put(\"FR\", p.Europe);\n f878a.put(\"RO\", p.Europe);\n f878a.put(\"BG\", p.Europe);\n f878a.put(\"RS\", p.Europe);\n f878a.put(\"MK\", p.Europe);\n f878a.put(\"AL\", p.Europe);\n f878a.put(\"GR\", p.Europe);\n f878a.put(\"SI\", p.Europe);\n f878a.put(\"HR\", p.Europe);\n f878a.put(\"IT\", p.Europe);\n f878a.put(\"SM\", p.Europe);\n f878a.put(\"MT\", p.Europe);\n f878a.put(\"ES\", p.Europe);\n f878a.put(\"PT\", p.Europe);\n f878a.put(\"AD\", p.Europe);\n f878a.put(\"CY\", p.Europe);\n f878a.put(\"DK\", p.Europe);\n f878a.put(\"RU\", p.Russia);\n f878a.put(\"IN\", p.India);\n }\n }", "public void showMap() {\n//\t\tSystem.out.print(\" \");\n//\t\tfor (int i = 0; i < maxY; i++) {\n//\t\t\tSystem.out.print(i);\n//\t\t\tSystem.out.print(' ');\n//\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 0; i < maxX; i++) {\n//\t\t\tSystem.out.print(i + \" \");\n\t\t\tfor (int j = 0; j < maxY; j++) {\n\t\t\t\tSystem.out.print(coveredMap[i][j]);\n\t\t\t\tSystem.out.print(' ');\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static int getMapHeight() {\r\n\t\treturn 7;\r\n\t}", "private void calculateMapSize() {\n calculateMapSize(true);\n }", "private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}", "int getLngE6();", "int getLngE6();", "private void m12811c(Map<String, String> map) {\n Rect rect = new Rect();\n this.f10118e.getGlobalVisibleRect(rect);\n map.put(\"pt\", String.valueOf(rect.top));\n map.put(\"pl\", String.valueOf(rect.left));\n map.put(\"ph\", String.valueOf(this.f10118e.getMeasuredHeight()));\n map.put(\"pw\", String.valueOf(this.f10118e.getMeasuredWidth()));\n WindowManager windowManager = (WindowManager) this.f10116c.getSystemService(\"window\");\n DisplayMetrics displayMetrics = new DisplayMetrics();\n windowManager.getDefaultDisplay().getMetrics(displayMetrics);\n map.put(\"vph\", String.valueOf(displayMetrics.heightPixels));\n map.put(\"vpw\", String.valueOf(displayMetrics.widthPixels));\n }", "public void normalization(Map <String,ArrayList<Point>> map){\r\n \t/*First Translation*/\r\n \tint minX,minY,x,y,i = 0;\r\n \tminX = minXValue(map);\r\n \tminY = minYValue(map);\r\n \tint indexTrans = 0;\r\n \tfor (String key : map.keySet()) {\r\n \t\tx = (int) (map.get(key).get(indexTrans).getX() - minX);\r\n \t\ty = (int) (map.get(key).get(indexTrans).getY()- minY);\r\n \t\t/*set new x and y*/\r\n \t\tmap.get(key).set(i, new Point(x,y));\r\n \t\tindexTrans++;\r\n \t\t}\r\n \t/*Scaling */\r\n \t/*x = x*s ; y = y*s */\r\n \t/*initialize s*/\r\n \tint xMaxWindow= 600,yMaxWindow = 600,s;\r\n \tif ((xMaxWindow/maxXValue(map)) < (yMaxWindow/maxYValue(map)))\r\n \t{\r\n \t\t\ts = (int) (0.8*(xMaxWindow/maxXValue(map)));\r\n \t}\r\n \t\telse\r\n \t\t{\r\n \t\ts = (int) (0.8*(yMaxWindow/maxYValue(map)));\r\n \t\t}\r\n \tint indexScaling = 0;\r\n \tfor (String key : map.keySet()) {\r\n \t\tx = (int) (map.get(key).get(indexScaling).getX()*s);\r\n \t\ty = (int) (map.get(key).get(indexScaling).getY()*s);\r\n \t\t/*set new x and y*/\r\n \t\tmap.get(key).set(i, new Point(x,y));\r\n \t\tindexScaling++;\r\n \t\t}\r\n \t/*Translation Back*/\r\n \t/* x = x + 0.1*xMaxWindow ; y = y + 0.1*yMaxWindow */\r\n \tint iSecTrans = 0;\r\n \tfor (String key : map.keySet()) {\r\n \t\tx = (int) (map.get(key).get(i).getX() + 0.1*xMaxWindow);\r\n \t\ty = (int) (map.get(key).get(i).getY() + 0.1*yMaxWindow);\r\n \t\t/*set new x and y*/\r\n \t\tmap.get(key).set(i, new Point(x,y));\r\n \t\tiSecTrans++;\r\n \t\t}\r\n \r\n \t\r\n \t\r\n }", "public static void main(String[] args) {\n\t\tGnomenWald map = new GnomenWald();\n\t\tVillage v1 = new Village(\"Rochester\");\n\t\tGnome v1g1 = new Gnome(\"Thomas\", \"Red\", 1);\n\t\tGnome v1g2 = new Gnome(\"Jerry\", \"Blue\", 0);\n\t\tGnome v1g3 = new Gnome(\"Jordan\", \"Yellow\", 2);\n\t\tGnome v1g4 = new Gnome(\"Philips\", \"Purple\", 1);\n\t\tv1.addGnomes(v1g1); v1.addGnomes(v1g2); v1.addGnomes(v1g3); v1.addGnomes(v1g4);\n\t\tVillage v2 = new Village(\"Syracuse\");\n\t\tGnome v2g1 = new Gnome(\"Sarah\", \"Pink\", 3);\n\t\tGnome v2g2 = new Gnome(\"John\", \"Black\", 2);\n\t\tGnome v2g3 = new Gnome(\"Yelson\", \"White\", 1);\n\t\tGnome v2g4 = new Gnome(\"Jeremy\", \"Lightblue\", 4);\n\t\tv2.addGnomes(v2g1); v2.addGnomes(v2g2); v2.addGnomes(v2g3); v2.addGnomes(v2g4);\n\t\tVillage v3 = new Village(\"Ithaca\");\n\t\tGnome v3g1 = new Gnome(\"Frank\", \"Jet black\", 0);\n\t\tGnome v3g2 = new Gnome(\"Mark\", \"Brown\", 3);\n\t\tGnome v3g3 = new Gnome(\"Alan\", \"Cyan\", 0);\n\t\tGnome v3g4 = new Gnome(\"Ray\", \"Red\", 0);\n\t\tv3.addGnomes(v3g1); v3.addGnomes(v3g2); v3.addGnomes(v3g3); v3.addGnomes(v3g4);\n\t\tVillage v4 = new Village(\"New York\");\n\t\tGnome v4g1 = new Gnome(\"Jimmy\", \"White\", 2);\n\t\tGnome v4g2 = new Gnome(\"Joseph\", \"Red\", 2);\n\t\tGnome v4g3 = new Gnome(\"Amy\", \"Yellow\", 3);\n\t\tGnome v4g4 = new Gnome(\"Greenwich\", \"Green\", 1);\n\t\tv4.addGnomes(v4g1); v4.addGnomes(v4g2); v4.addGnomes(v4g3); v4.addGnomes(v4g4);\n\t\tVillage v5 = new Village(\"San Francisco\");\n\t\tGnome v5g1 = new Gnome(\"Bob\", \"Green\", 4);\n\t\tGnome v5g2 = new Gnome(\"Paul\", \"Pink\", 4);\n\t\tGnome v5g3 = new Gnome(\"Staple\", \"Jet Black\", 3);\n\t\tGnome v5g4 = new Gnome(\"Mary\", \"Purple\", 1);\n\t\tv5.addGnomes(v5g1); v5.addGnomes(v5g2); v5.addGnomes(v5g3); v5.addGnomes(v5g4);\n\t\t\n\t\tmap.addVillage(v1);\n\t\tmap.addVillage(v2);\n\t\tmap.addVillage(v3);\n\t\tmap.addVillage(v4);\n\t\tmap.addVillage(v5);\n\t\t\n\t\tmap.printVillages();\n\t\tv1.printGnomes();\n\t}", "private void generateMap () {\n for (int i = 0 ; i < n ; i++) {\n mapCoordinate[i] = new CoordinateInfo(100 * random.nextFloat(), 100 * random.nextFloat());\n\n for (int j = 0 ; j <= i ; j++) {\n mapDistance[i][j] = mapDistance[j][i] = getDistance(mapCoordinate[i], mapCoordinate[j]);\n }\n }\n }", "public static void createInfluenceMap(Map<Pickup, Boolean> pickupStates) {\n mapWidth = Constants.screenWidth / CELL_SIZE;\n mapHeight = Constants.screenHeight / CELL_SIZE;\n influenceMap = new double[mapWidth][mapHeight];\n\n lowestValue = Double.MAX_VALUE;\n highestValue = -Double.MAX_VALUE;\n\n Vector2d cellCenter = new Vector2d();\n for (int y = 0; y < mapHeight; y++) {\n for (int x = 0; x < mapWidth; x++) {\n // get sum of all proximities to pickups here\n for (Pickup p : pickupStates.keySet()) {\n if (!pickupStates.get(p)) {\n // existing pickup\n cellCenter.set(CELL_SIZE * (x + 0.5), CELL_SIZE * (y + 0.5));\n double dist = cellCenter.dist(p.pos);\n //// use exponential dropoff instead of linear dropoff\n double value = 5 + Math.log1p(dist) * -1;\n //double value = (MAX_DIST - dist)/MAX_DIST;\n if (p.type == PickupType.MINE) value *= 0;\n\n influenceMap[x][y] += value * 50;\n }\n }\n }\n }\n\n // go through map and establish ranges\n for (int y = 0; y < mapHeight; y++) {\n for (int x = 0; x < mapWidth; x++) {\n double value = influenceMap[x][y];\n if (value > highestValue) highestValue = value;\n if (value < lowestValue) lowestValue = value;\n }\n }\n\n }", "public static Map<String, String> m3185a(Map<String, String> map) {\n Map<String, String> hashMap = new HashMap();\n map = map.entrySet().iterator();\n while (map.hasNext()) {\n Entry entry = (Entry) map.next();\n Object obj = (String) entry.getKey();\n Object obj2 = (String) entry.getValue();\n if (obj.length() > 40) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"cd key length over:\");\n stringBuilder.append(obj);\n C0784a.m3253a(stringBuilder.toString());\n obj = obj.substring(0, 40);\n }\n if (obj2 != null && obj2.length() > 1024) {\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"cd value length over:\");\n stringBuilder.append(obj2);\n C0784a.m3253a(stringBuilder.toString());\n obj2 = obj2.substring(0, 1024);\n }\n hashMap.put(obj, obj2);\n }\n return hashMap;\n }", "String getMapCode();", "private void createMapOfFourthType() {\n\n this.typeOfMap=4;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.RED, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, true,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.PURPLE, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.PURPLE, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = createSquare( ColorOfFigure_Square.GREY, true,2,0);\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n }", "public Map<String, Object> getMapRaster(Map<String, Double> params) {\r\n System.out.println(params);\r\n Map<String, Object> results = new HashMap<>();\r\n MapServer server = new MapServer();\r\n double lrlon = params.get(\"lrlon\");\r\n double ullon = params.get(\"ullon\");\r\n double lrlat = params.get(\"lrlat\");\r\n double ullat = params.get(\"ullat\");\r\n double width = params.get(\"w\");\r\n double height = params.get(\"h\");\r\n double lonDPP = (lrlon - ullon) / width;\r\n boolean success = false;\r\n int depth = 7;\r\n double xInterval = (server.ROOT_LRLON - server.ROOT_ULLON) / Math.pow(2, 7);\r\n for (int d = 0; d <= 7; d++) {\r\n double step = (server.ROOT_LRLON - server.ROOT_ULLON) / Math.pow(2, d);\r\n double tempDPP = step / server.TILE_SIZE;\r\n if (tempDPP <= lonDPP) {\r\n depth = d;\r\n xInterval = step;\r\n break;\r\n }\r\n }\r\n int k = (int) Math.pow(2, depth);\r\n int minX = 0;\r\n int maxX = 0;\r\n double yInterval = (server.ROOT_ULLAT - server.ROOT_LRLAT) / k;\r\n int minY = 0;\r\n int maxY = 0;\r\n boolean xDone = false;\r\n boolean yDone = false;\r\n for (int i = 0; i < k; i++) {\r\n if (server.ROOT_ULLON + (i * xInterval) <= ullon) {\r\n minX = i;\r\n }\r\n if (server.ROOT_ULLON + ((i + 1) * xInterval) >= lrlon && !xDone) {\r\n maxX = i;\r\n xDone = true;\r\n }\r\n if (server.ROOT_ULLAT - (i * yInterval) >= ullat) {\r\n minY = i;\r\n }\r\n if (server.ROOT_ULLAT - ((i + 1) * yInterval) <= lrlat && !yDone) {\r\n maxY = i;\r\n yDone = true;\r\n }\r\n if (xDone && yDone) {\r\n break;\r\n }\r\n }\r\n String[][] grid = new String[maxY - minY + 1][maxX - minX + 1];\r\n for (int i = 0; i < grid.length; i++) {\r\n for (int j = 0; j < grid[0].length; j++) {\r\n grid[i][j] = \"d\" + Integer.toString(depth)\r\n + \"_x\" + Integer.toString(minX + j)\r\n + \"_y\" + Integer.toString(minY + i)\r\n + \".png\";\r\n }\r\n }\r\n success = true;\r\n results.put(\"render_grid\", grid);\r\n results.put(\"raster_ul_lon\", server.ROOT_ULLON + (minX * xInterval));\r\n results.put(\"raster_lr_lon\", server.ROOT_ULLON + ((maxX + 1) * xInterval));\r\n results.put(\"raster_ul_lat\", server.ROOT_ULLAT - (minY * yInterval));\r\n results.put(\"raster_lr_lat\", server.ROOT_ULLAT - ((maxY + 1) * yInterval));\r\n results.put(\"depth\", depth);\r\n results.put(\"query_success\", success);\r\n\r\n System.out.println(\"Since you haven't implemented getMapRaster, nothing is displayed in \"\r\n + \"your browser.\");\r\n return results;\r\n }", "private void calculateMaps() {\n\tsrcrows = new int[destHeight + 1];\n\tfor (int y = 0; y <= destHeight; y++) {\n\t srcrows[y] = (2 * y * srcHeight + srcHeight) / (2 * destHeight);\n\t}\n\tsrccols = new int[destWidth + 1];\n\tfor (int x = 0; x <= destWidth; x++) {\n\t srccols[x] = (2 * x * srcWidth + srcWidth) / (2 * destWidth);\n\t}\n\n float xscale = ( ( float ) srcWidth - 1 ) / ( ( float ) destWidth );\n float yscale = ( ( float ) srcHeight - 1 ) / ( ( float ) destHeight ) ;\n\n srcxlarr = new int[destWidth+1];\n srcxuarr = new int[destWidth+1];\n srcxarr = new int[destWidth+1];\n\n for (int x = 0 ; x <= destWidth;x++) {\n float tmp = x * xscale ;\n srcxlarr[x] = (int) Math.floor( tmp ) ;\n srcxuarr[x] = (int) Math.ceil( tmp ) ;\n srcxarr[x] = (int) ( ( tmp - srcxlarr[x] ) * 255f );\n }\n\n srcylarr = new int[destHeight+1];\n srcyuarr = new int[destHeight+1];\n srcyarr = new int[destHeight+1];\n\n for (int y = 0 ; y <= destHeight;y++) {\n float tmp = y * yscale ;\n srcylarr[y] = (int) Math.floor( tmp ) ;\n srcyuarr[y] = (int) Math.ceil( tmp ) ;\n srcyarr[y] = (int) ( ( tmp - srcylarr[y] ) * 255f );\n }\n\n /*\n System.out.println( \"srcrows\" );\n for (int i=0;i<srcrows.length;i++) {\n System.out.print( srcrows[i] + \" \" );\n }\n\n System.out.println( \"\\nsrccols\" );\n for (int i=0;i<srccols.length;i++) {\n System.out.print( srccols[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcxlarr\" );\n for (int i=0;i<srcxlarr.length;i++) {\n System.out.print( srcxlarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcxuarr\" );\n for (int i=0;i<srcxuarr.length;i++) {\n System.out.print( srcxuarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcylarr\" );\n for (int i=0;i<srcxlarr.length;i++) {\n System.out.print( srcylarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcyuarr\" );\n for (int i=0;i<srcxuarr.length;i++) {\n System.out.print( srcyuarr[i] + \" \" );\n }\n */\n }", "private void viewMap() {\r\n \r\n // Get the current game \r\n theGame = cityofaaron.CityOfAaron.getTheGame();\r\n \r\n // Get the map \r\n Map map = theGame.getMap();\r\n Location locations = null;\r\n \r\n // Print the map's title\r\n System.out.println(\"\\n*** Map: CITY OF AARON and Surrounding Area ***\\n\");\r\n // Print the column numbers \r\n System.out.println(\" 1 2 3 4 5\");\r\n // for every row:\r\n for (int i = 0; i < max; i++){\r\n // Print a row divider\r\n System.out.println(\" -------------------------------\");\r\n // Print the row number\r\n System.out.print((i + 1) + \" \");\r\n // for every column:\r\n for(int j = 0; j<max; j++){\r\n // Print a column divider\r\n System.out.print(\"|\");\r\n // Get the symbols and locations(row, column) for the map\r\n locations = map.getLocation(i, j);\r\n System.out.print(\" \" + locations.getSymbol() + \" \");\r\n }\r\n // Print the ending column divider\r\n System.out.println(\"|\");\r\n }\r\n // Print the ending row divider\r\n System.out.println(\" -------------------------------\\n\");\r\n \r\n // Print a key for the map\r\n System.out.println(\"Key:\\n\" + \"|=| - Temple\\n\" + \"~~~ - River\\n\" \r\n + \"!!! - Farmland\\n\" + \"^^^ - Mountains\\n\" + \"[*] - Playground\\n\" \r\n + \"$$$ - Capital \" + \"City of Aaron\\n\" + \"### - Chief Judge/Courthouse\\n\" \r\n + \"YYY - Forest\\n\" + \"TTT - Toolshed\\n\" +\"xxx - Pasture with \"\r\n + \"Animals\\n\" + \"+++ - Storehouse\\n\" +\">>> - Undeveloped Land\\n\");\r\n }", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n GridlandMetro ts = new GridlandMetro();\n long rows = s.nextLong();\n long cols = s.nextLong();\n long numTracks = s.nextLong();\n HashMap<Long, List<Pair>> map_t = new HashMap();\n long numLampposts = 0L;\n\n\n for(long j=0; j<numTracks; j+=1L){\n\n long current_row = s.nextLong();\n long c1 = s.nextLong();\n long c2 = s.nextLong();\n if(!map_t.containsKey(current_row))\n map_t.put(current_row, new ArrayList<Pair>());\n map_t.get(current_row).add(ts.new Pair(c1,c2));\n\n }\n\n for(long i=(map_t.keySet().size()+1); i<=rows; i++)\n numLampposts += cols;\n\n for(Long current_key:map_t.keySet()){\n Collections.sort(map_t.get(current_key));\n long current_max = 1L;\n for(int i=0; i<map_t.get(current_key).size(); i++){\n if(current_max < map_t.get(current_key).get(i).start)\n numLampposts += map_t.get(current_key).get(i).start - current_max;\n if(current_max <= map_t.get(current_key).get(i).end)\n current_max = map_t.get(current_key).get(i).end + 1L;\n }\n numLampposts += cols-current_max+1;\n }\n\n\n\n\n System.out.println(numLampposts);\n }", "public Map<String, Object> getMapRaster(Map<String, Double> params) {\n// System.out.println(params);\n //query box info\n double tar_lrlon, tar_ullon, tar_ullat, tar_lrlat, tar_w, tar_h, tar_LonDPP;\n tar_lrlon = params.get(\"lrlon\");\n tar_ullon = params.get(\"ullon\");\n tar_ullat = params.get(\"ullat\");\n tar_lrlat = params.get(\"lrlat\");\n tar_w = params.get(\"w\");\n tar_h = params.get(\"h\");\n tar_LonDPP = (tar_lrlon - tar_ullon) / tar_w;\n Map<String, Object> results = new HashMap<>();\n //check if query box make sense\n QuadTree rootTree = new QuadTree(\"root\", ROOT_ULLON, ROOT_ULLAT, ROOT_LRLON, ROOT_LRLAT, 0);\n QuadTree targetTree = new QuadTree(\"target\", tar_ullon, tar_ullat, tar_lrlon, tar_lrlat, 0);\n if (tar_ullon >= tar_lrlon || tar_ullat <= tar_lrlat || !rootTree.checkOverlap(targetTree)) {\n results.put(\"raster_ul_lon\", 0);\n results.put(\"raster_ul_lat\", 0);\n results.put(\"raster_lr_lon\", 0);\n results.put(\"raster_lr_lat\", 0);\n results.put(\"query_success:\", false);\n } else {\n work(rootTree, targetTree, results, tar_LonDPP);\n }\n return results;\n }", "void mapChosen(int map);", "private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }", "private static void createMap()\r\n {\r\n position = new String[8][8];\r\n for(int i=0;i<8;i++)\r\n {\r\n int z=0;\r\n for(int j=72;j>=65;j--)\r\n {\r\n position[i][z]=(char)j+\"\"+(i+1); //uses ascii char placement for letters\r\n z++;\r\n }\r\n }\r\n \r\n }", "int getLatE6();", "int getLatE6();", "public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}", "void mo5802a(LatLng latLng);", "public void doScan() {\n\t\tSystemMapObject[] results = scan();\r\n\t\t// add to its current map.\r\n\t\t// System.out.println(toStringInternalMap());\r\n\t\tupdateMowerCords();\r\n\t\t// NorthWest\r\n\t\tif (y + 1 >= this.map.size()) {\r\n\t\t\tthis.map.add(new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(y + 1).add(0, results[7]);\r\n\t\t} else if (x - 1 <= 0) {\r\n\t\t\tthis.map.get(y + 1).add(x, results[7]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x - 1, results[7]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// West\r\n\t\tif (this.map.get(y).size() < 2) {\r\n\t\t\tthis.map.get(y).add(0, results[6]);\r\n\t\t} else if (x - 1 < 0) {\r\n\t\t\tthis.map.get(y).add(0, results[6]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y).set(x - 1, results[6]);\r\n\t\t}\r\n\t\t// SouthWest\r\n\t\tupdateMowerCords();\r\n\t\tif (y - 1 < 0) {\r\n\t\t\tthis.map.add(0, new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(0).add(0, results[5]);\r\n\t\t} else if (this.map.get(y - 1).size() < 2) {\r\n\t\t\tthis.map.get(y - 1).add(0, results[5]);\r\n\t\t} else if (this.map.get(y - 1).size() <= x - 1) {\r\n\t\t\tthis.map.get(y - 1).add(results[5]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x - 1, results[5]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// North\r\n\t\tif (y + 1 < this.map.size() && x >= this.map.get(y + 1).size()) {\r\n\t\t\tif (x >= this.map.get(y + 1).size()) {\r\n\t\t\t\tthis.map.get(y+1).add(results[0]);\r\n\t\t\t} else {\r\n\t\t\t\tthis.map.get(y + 1).add(x, results[0]);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x, results[0]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// NorthEast\r\n\t\tif (this.map.get(y + 1).size() <= x + 1) {\r\n\t\t\tthis.map.get(y + 1).add(results[1]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x + 1, results[1]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// East\r\n\t\tif (this.map.get(y).size() <= x + 1) {\r\n\t\t\tthis.map.get(y).add(results[2]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y).set(x + 1, results[2]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\r\n\t\t// South\r\n\t\tif (y - 1 < 0) {\r\n\t\t\tthis.map.add(0, new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(0).add(results[4]);\r\n\t\t} else if (x >= this.map.get(y - 1).size()) {\r\n\t\t\tthis.map.get(y - 1).add(results[4]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x, results[4]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// South East\r\n\t\tif (this.map.get(y - 1).size() <= x + 1) {\r\n\t\t\tthis.map.get(y - 1).add(results[3]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x + 1, results[3]);\r\n\t\t}\r\n\r\n\t\tupdateMowerCords();\r\n\t\t// System.out.println(\"This is your X:\" + this.x);\r\n\t\t// System.out.println(\"This is your Y:\" + this.y);\r\n\t\t//\r\n\t\t// System.out.println(toStringInternalMap());\r\n\t\t// System.out.println(\"-------------------------------------------------------------------------------------\");\r\n\r\n\t}", "public void update_map(Player player) \n\t{\n\t\tfor (int i = 0; i < this.map.length; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.map[i].length;j++) \n\t\t\t{\n\t\t\t\tswitch (map[i][j]) \n\t\t\t\t{\n\t\t\t\tcase GRASS:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase PATH:\n\t\t\t\t\tthis.gc.drawImage(PATH_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase CROSS_ROADS:\n\t\t\t\t\tthis.gc.drawImage(PATH_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TA:\n\t\t\t\t\tthis.gc.drawImage(TA_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase RESEARCHER:\n\t\t\t\t\tthis.gc.drawImage(RESEARCHER_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase FIRST_YEAR:\n\t\t\t\t\tthis.gc.drawImage(FIRST_YEAR_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SECOND_YEAR:\n\t\t\t\t\tthis.gc.drawImage(SECOND_YEAR_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SCORE_AREA:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tFont titleFont = Font.font(\"arial\", FontWeight.EXTRA_BOLD, 25);\n\t\t\t this.gc.setFont(titleFont);\n\t\t\t\t\tString text = \"GPA: \" + player.getGPA();\n\t\t\t\t\tthis.gc.fillText(text, j*64, i*64);\n\t\t\t\t\tthis.gc.strokeText(text, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\tcase TUITION_AREA:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tFont title = Font.font(\"arial\", FontWeight.EXTRA_BOLD, 25);\n\t\t\t this.gc.setFont(title);\n\t\t\t\t\tString Tuition = \"Tuition: \" + (player.getTuition());\n\t\t\t\t\tthis.gc.fillText(Tuition, j*64, i*64);\n\t\t\t\t\tthis.gc.strokeText(Tuition, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void adjustMap(MapData mapd){\n int[][] map = mapd.getMap();\n int mx=mapd.getX();\n int my=mapd.getY();\n for(int y=0;y<my;y++){\n for(int x=0;x<mx;x++){\n boolean l = false;\n boolean r = false;\n boolean t = false;\n boolean b = false;\n boolean tl = false;\n boolean tr = false;\n boolean bl = false;\n boolean br = false;\n \n\n if(map[x][y]>0 && map[x][y]<26) {\n int mustSet = 0;\n //LEFT\n if (x > 0 && map[x - 1][y] > 0 && map[x-1][y]<26) {\n l = true;\n }\n //RIGHT\n if (x < mx - 1 && map[x + 1][y] > 0 && map[x+1][y]<26) {\n r = true;\n }\n //TOP\n if (y > 0 && map[x][y - 1] > 0 && map[x][y-1]<26) {\n t = true;\n }\n //Bottom\n if (y < my - 1 && map[x][y + 1] > 0 && map[x][y+1]<26) {\n b = true;\n }\n //TOP LEFT\n if (x > 0 && y > 0 && map[x - 1][y - 1] > 0 && map[x-1][y-1]<26) {\n tl = true;\n }\n //TOP RIGHT\n if (x < mx - 1 && y > 0 && map[x + 1][y - 1] > 0 && map[x+1][y-1]<26) {\n tr = true;\n }\n //Bottom LEFT\n if (x > 0 && y < my - 1 && map[x - 1][y + 1] > 0 && map[x-1][y+1]<26) {\n bl = true;\n }\n //Bottom RIGHT\n if (x < mx - 1 && y < my - 1 && map[x + 1][y + 1] > 0 && map[x+1][y+1]<26) {\n br = true;\n }\n\n //Decide Image to View\n if (!r && !l && !t && !b) {\n mustSet = 23;\n }\n if (r && !l && !t && !b) {\n mustSet = 22;\n }\n if (!r && l && !t && !b) {\n mustSet = 25;\n }\n if (!r && !l && t && !b) {\n mustSet = 21;\n }\n if (!r && !l && !t && b) {\n mustSet = 19;\n }\n if (r && l && !t && !b) {\n mustSet = 24;\n }\n if (!r && !l && t && b) {\n mustSet = 20;\n }\n if (r && !l && t && !b && !tr) {\n mustSet = 11;\n }\n if (r && !l && t && !b && tr) {\n mustSet = 2;\n }\n if (!r && l && t && !b && !tl) {\n mustSet = 12;\n }\n if (!r && l && t && !b && tl) {\n mustSet = 3;\n }\n if (r && !l && !t && b && br) {\n mustSet = 1;\n }\n if (r && !l && !t && b && !br) {\n mustSet = 10;\n }\n if (!r && l && !t && b && bl) {\n mustSet = 4;\n }\n if (r && !l && t && b && !tr) {\n mustSet = 15;\n }\n if (r && !l && t && b && tr) {\n mustSet = 6;\n }\n if (!r && l && t && b && !tl) {\n mustSet = 17;\n }\n if (!r && l && t && b && tl) {\n mustSet = 8;\n }\n if (r && l && !t && b && !br) {\n mustSet = 14;\n }\n if (r && l && !t && b && br) {\n mustSet = 5;\n }\n if (r && l && t && !b && !tr) {\n mustSet = 16;\n }\n if (r && l && t && !b && tr) {\n mustSet = 7;\n }\n if (!r && l && !t && b && !bl) {\n mustSet = 13;\n }\n if (r && l && t && b && br && tl) {\n mustSet = 9;\n }\n if (r && l && t && b && !br && !tl) {\n mustSet = 18;\n }\n\n //System.out.println(\"MAP SEGMENT : \" + mustSet);\n map[x][y] = mustSet;\n }\n mapd.setMap(map);\n }\n }\n System.out.println(\"Map Adjust OK !\");\n }", "private void generateMap(){\n int[] blockStepX = {X_STEP, 0, -X_STEP, -X_STEP, 0, X_STEP};\n int[] blockStepY = {Y_STEP_ONE, Y_STEP_TWO, Y_STEP_ONE, -Y_STEP_ONE, -Y_STEP_TWO, -Y_STEP_ONE};\n int blockSpecialValue = 0;\n int cellSpecial = 0;\n\n mapCells[origin.x/10][origin.y/10] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n cellGrid[0][0][0] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n for (int distanceFromOrigin = 0; distanceFromOrigin < config.getSizeOfMap();\n distanceFromOrigin++){\n\n int[] blockXVals = {origin.x,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x,\n origin.x - X_STEP * distanceFromOrigin,\n origin.x - X_STEP * distanceFromOrigin};\n\n int[] blockYVals = {origin.y - Y_STEP_TWO * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_TWO * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin};\n\n blockSpecialValue = getRandomNumber(distanceFromOrigin, 0, 0);\n\n for (int block = 0; block < NUMBER_OF_BLOCKS; block ++){\n\n int blockXOrdinal = blockXVals[block];\n int blockYOrdinal = blockYVals[block];\n\n for (int blockSize = 0; blockSize < distanceFromOrigin; blockSize++){\n if(blockSpecialValue == blockSize){\n cellSpecial = getRandomNumber(2, 1, 1);\n }else {\n cellSpecial = 0;\n }\n cellGrid [distanceFromOrigin][block+1][blockSize+1] = makeNewCell(\n new CellPosition(distanceFromOrigin,block+1, blockSize+1),\n new Point(blockXOrdinal + blockStepX[block] * (blockSize + 1),\n blockYOrdinal + blockStepY[block] * (blockSize + 1)), cellSpecial);\n }\n }\n }\n }", "public static void createMap()\n\t\t\t{\n\t\t\tmap = new Vector<Location>(4);\n\t\n\t\t\tLocation location1 = new Location(\"the southwest room.\",\"You see doors to the north and east.\");\n\t\t\tLocation location2 = new Location(\"the southeast room.\",\"You see doors to the north and west.\");\n\t\t\tLocation location3 = new Location(\"the northwest room.\",\"You see doors to the south and east.\");\n\t\t\tLocation location4 = new Location(\"the northeast room.\",\"You see doors to the south and west.\");\n\n\t\t\tmap.addElement(location1);\n\t\t\tmap.addElement(location2);\n\t\t\tmap.addElement(location3);\n\t\t\tmap.addElement(location4);\n\t\t\t\n\t\t\t// This section defines the exits found in each location and the \n\t\t\t// locations to which they lead.\n\t\t\tlocation1.addExit(new Exit(Exit.north, location3));\n\t\t\tlocation1.addExit(new Exit(Exit.east, location2));\n\t\t\tlocation2.addExit(new Exit(Exit.north, location4));\n\t\t\tlocation2.addExit(new Exit(Exit.west, location1));\n\t\t\tlocation3.addExit(new Exit(Exit.south, location1));\n\t\t\tlocation3.addExit(new Exit(Exit.east, location4));\n\t\t\tlocation4.addExit(new Exit(Exit.west, location3));\n\t\t\tlocation4.addExit(new Exit(Exit.south, location2));\n\t\t\t\n\t\t\tcurrentLocation = location1;\t\t\t\t\n\t\t\t}", "private static Map<String, String> m36195a(Rect rect) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"x\", String.valueOf(rect.left));\n hashMap.put(\"y\", String.valueOf(rect.top));\n hashMap.put(\"w\", String.valueOf(rect.right - rect.left));\n hashMap.put(\"h\", String.valueOf(rect.bottom - rect.top));\n return hashMap;\n }", "public Map<String, Object> getMapRaster(Map<String, Double> params) {\n //System.out.println(params);\n Map<String, Object> results = new HashMap<>();\n //System.out.println(\"Since you haven't implemented getMapRaster, nothing is displayed in \"\n // + \"your browser.\");\n double lrLon = params.get(\"lrlon\");\n double ulLon = params.get(\"ullon\");\n double w = params.get(\"w\");\n double h = params.get(\"h\");\n double lrLat = params.get(\"lrlat\");\n double ulLat = params.get(\"ullat\");\n if (lrLon <= ROOT_ULLON || ulLon >= ROOT_LRLON || lrLat >= ROOT_ULLAT\n || ulLat <= ROOT_LRLAT || lrLon <= ulLon || lrLat >= ulLat) {\n querySuccess = false;\n return null;\n }\n\n double lonDpp = (lrLon - ulLon) / w;\n int dep = (int) Math.ceil(Math.log(ROOT_LON_DPP / lonDpp) / Math.log(2.0));\n depth = Math.min(dep, MAX_DEPTH);\n int num = (int) Math.pow(2, depth);\n\n //System.out.println(\"lonDpp=\" + lonDpp + \" dep=\" + dep + \" depth=\" + depth);\n int xnUl = getXnYp(ROOT_ULLON, ulLon, ROOT_WIDTH, num, 1);\n int ypUl = getXnYp(ulLat, ROOT_ULLAT, ROOT_HEIGHT, num, 1);\n int xnLr = getXnYp(lrLon, ROOT_LRLON, ROOT_WIDTH, num, 0);\n int ypLr = getXnYp(ROOT_LRLAT, lrLat, ROOT_HEIGHT, num, 0);\n //System.out.println(\"xnUl:\" + xnUl + \" ypUl:\" + ypUl\n // + \" xnLr:\" + xnLr + \" ypLr:\" + ypLr);\n\n rasterUlLon = ROOT_ULLON + xnUl * ROOT_WIDTH / num;\n rasterUlLat = ROOT_ULLAT - ypUl * ROOT_HEIGHT / num;\n rasterLrLon = ROOT_LRLON - (num - xnLr - 1) * ROOT_WIDTH / num;\n rasterLrLat = ROOT_LRLAT + (num - ypLr - 1) * ROOT_HEIGHT / num;\n int nCols = xnLr - xnUl + 1;\n int nRows = ypLr - ypUl + 1;\n //System.out.println(\"numColumns:\" + nCols + \" numRows:\" + nRows);\n\n renderGrid = new String[nRows][nCols];\n\n for (int row = ypUl; row <= ypLr; row += 1) {\n int j = row - ypUl;\n for (int col = xnUl; col <= xnLr; col += 1) {\n int i = col - xnUl;\n renderGrid[j][i] = \"d\" + depth + \"_x\" + col + \"_y\" + row + \".png\";\n }\n }\n querySuccess = true;\n\n results.put(\"raster_ul_lon\", rasterUlLon);\n results.put(\"raster_ul_lat\", rasterUlLat);\n results.put(\"raster_lr_lon\", rasterLrLon);\n results.put(\"raster_lr_lat\", rasterLrLat);\n results.put(\"depth\", depth);\n results.put(\"render_grid\", renderGrid);\n results.put(\"query_success\", querySuccess);\n\n return results;\n }", "public static int[] buildBoxOutMap(int r15, int r16, int r17, int r18) {\n /*\n int r0 = r15 * r16\n int[] r1 = new int[r0]\n r2 = 0\n r3 = 0\n L_0x0006:\n r4 = 1\n if (r3 >= r0) goto L_0x000e\n r1[r3] = r4\n int r3 = r3 + 1\n goto L_0x0006\n L_0x000e:\n int r0 = r15 - r17\n int r0 = r0 / 2\n int r3 = r16 - r17\n int r3 = r3 / 2\n int r5 = r17 + -1\n r10 = r17\n r6 = r0\n r8 = r6\n r9 = r8\n r11 = r3\n r12 = r11\n r7 = r5\n r0 = r18\n r5 = r12\n r3 = 0\n L_0x0024:\n if (r3 >= r0) goto L_0x007e\n int r13 = r5 * r15\n int r13 = r13 + r6\n r14 = r1[r13]\n if (r14 != r4) goto L_0x002f\n r14 = 1\n goto L_0x0030\n L_0x002f:\n r14 = 0\n L_0x0030:\n if (r14 == 0) goto L_0x0034\n r1[r13] = r2\n L_0x0034:\n r13 = -1\n if (r7 != r13) goto L_0x0046\n if (r6 != r8) goto L_0x0046\n int r8 = r8 + -1\n int r6 = Max(r8, r2)\n int r7 = r17 * 2\n int r7 = r7 - r4\n r8 = r6\n L_0x0043:\n r10 = r7\n r7 = 0\n goto L_0x007c\n L_0x0046:\n if (r7 != r4) goto L_0x0058\n if (r6 != r9) goto L_0x0058\n int r9 = r9 + 1\n int r6 = r15 + -1\n int r6 = Min(r9, r6)\n int r7 = r17 * 2\n int r7 = 1 - r7\n r9 = r6\n goto L_0x0043\n L_0x0058:\n if (r10 != r13) goto L_0x0069\n if (r5 != r11) goto L_0x0069\n int r11 = r11 + -1\n int r5 = Max(r11, r2)\n int r7 = r17 * 2\n int r7 = 1 - r7\n r11 = r5\n L_0x0067:\n r10 = 0\n goto L_0x007c\n L_0x0069:\n if (r10 != r4) goto L_0x007a\n if (r5 != r12) goto L_0x007a\n int r12 = r12 + 1\n int r5 = r16 + -1\n int r5 = Min(r12, r5)\n int r7 = r17 * 2\n int r7 = r7 - r4\n r12 = r5\n goto L_0x0067\n L_0x007a:\n int r6 = r6 + r7\n int r5 = r5 + r10\n L_0x007c:\n int r3 = r3 + r14\n goto L_0x0024\n L_0x007e:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jcodec.codecs.h264.decode.aso.SliceGroupMapBuilder.buildBoxOutMap(int, int, boolean, int):int[]\");\n }", "public void populateMap(int playerNumber){\n\t\tint factor = 1;\n\t\t\n\t\t\n\t}", "public void loadMap(Player player) {\r\n\tregionChucks = RegionBuilder.findEmptyChunkBound(8, 8); \r\n\tRegionBuilder.copyAllPlanesMap(235, 667, regionChucks[0], regionChucks[1], 8);\r\n\t\r\n\t}", "public void set_map(int[][] map, Random_map_generator generator) \n\t{\n\t\tthis.start_edge_coord_x = generator.get_start_x();\n\t\tthis.start_edge_coord_y = generator.get_start_y();\n\t\tthis.end_edge_coord_x = generator.get_end_x();\n\t\tthis.end_edge_coord_y = generator.get_end_y();\n\t\tthis.random_map = true;\n\t\tthis.map = map;\n\t\tif ((map[1][2] == 0) && (map[2][2] == 0)) \n\t\t{\n\t\t\tmap[1][2] = SCORE_AREA;\n\t\t\tmap[2][2] = TUITION_AREA;\n\t\t}\n\t\telse if ((map[1][14] == 0) && (map[2][14] == 0)) \n\t\t{\n\t\t\tmap[1][14] = SCORE_AREA;\n\t\t\tmap[2][14] = TUITION_AREA;\n\t\t}\n\t\telse if ((map[10][2] == 0) && (map[11][2] == 0)) \n\t\t{\n\t\t\tmap[10][2] = SCORE_AREA;\n\t\t\tmap[11][2] = TUITION_AREA;\n\t\t}\n\t\telse if ((map[10][14] == 0) && (map[11][14] == 0)) \n\t\t{\n\t\t\tmap[10][14] = SCORE_AREA;\n\t\t\tmap[11][14] = TUITION_AREA;\n\t\t}\n\t}", "private void calculateMapSize(boolean calculate) {\n if (!calculate) {\n mapWidth = 100;\n mapHeight = 100;\n return;\n }\n\n// if (playerTracking.isEmpty()) {\n// return;\n// }\n//\n// // Get the lowest and highest values of each player\n// Point low = new Point(0, 0), high = new Point(0, 0);\n// for (Player p : playerTracking) {\n// if (p.getLowestX() < low.X) {\n// low.X = p.getLowestX();\n// }\n// if (p.getLowestY() < low.Y) {\n// low.Y = p.getLowestY();\n// }\n// if (p.getHighestX() > high.X) {\n// high.X = p.getHighestX();\n// }\n// if (p.getHighestY() > high.Y) {\n// high.Y = p.getHighestY();\n// }\n// }\n//\n// // Calucate the actual size of the map\n// mapWidth = (int) (high.X - low.X);\n// mapHeight = (int) (high.Y - low.Y);\n//\n// // Get the highest and override the other\n// if (mapWidth > mapHeight) {\n// mapHeight = mapWidth;\n// } else {\n// mapWidth = mapHeight;\n// }\n//\n// // Add a border of 10px to each side\n// mapWidth += 20;\n// mapHeight += 20;\n }", "public static void main(String[] args) {\n\t\tString2Int.put(\"Location1\", new Integer(0));\n\t\tString2Int.put(\"Location2\", new Integer(1));\n\t\tString2Int.put(\"Location3\", new Integer(2));\n\t\tString2Int.put(\"Location4\", new Integer(3));\n\t\t\n\t\t\n\t\t// populate it\n\t\tInt2String.put(new Integer(0), \"Location1\");\n\t\tInt2String.put(new Integer(1), \"Location2\");\n\t\tInt2String.put(new Integer(2), \"Location3\");\n\t\tInt2String.put(new Integer(3), \"Location4\");\n\t\t\n\t\t\n\t\t//HashMap<String,List<Integer>> NHMap = new HashMap<String,List<Integer>>();\n\t\tArrayList<Integer[]> NHMap = new ArrayList<Integer[]>();\n\t\tInteger[] NHMapedge1 ={String2Int.get(\"Location1\"),100,30};\n\t\tInteger[] NHMapedge2 ={String2Int.get(\"Location2\"),20,40};\n\t\tInteger[] NHMapedge3 ={String2Int.get(\"Location4\"),30,15};\n\t\tInteger[] NHMapedge4 ={String2Int.get(\"Location3\"),140,60};\n\t\t//edges.add(edge);\n\t\tNHMap.add(NHMapedge1);\n\t\tNHMap.add(NHMapedge2);\n\t\tNHMap.add(NHMapedge3);\n\t\tNHMap.add(NHMapedge4);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//HashMap<String,List<Integer>> EHMap = new HashMap<String,List<Integer>>();\n\t\tArrayList<Integer[]> EHMap = new ArrayList<Integer[]>();\n\t\tInteger[] EHMapedge1 ={String2Int.get(\"Location1\"),String2Int.get(\"Location2\"),10,30};\n\t\tInteger[] EHMapedge2 ={String2Int.get(\"Location2\"),String2Int.get(\"Location3\"),20,40};\n\t\tInteger[] EHMapedge3 ={String2Int.get(\"Location4\"),String2Int.get(\"Location4\"),30,50};\n\t\tInteger[] EHMapedge4 ={String2Int.get(\"Location3\"),String2Int.get(\"Location2\"),40,60};\n\t\t//edges.add(edge);\n\t\tEHMap.add(EHMapedge1);\n\t\tEHMap.add(EHMapedge2);\n\t\tEHMap.add(EHMapedge3);\n\t\tEHMap.add(EHMapedge4);\n\t\t\n\t\tArrayList<Integer[]> edges = new ArrayList<Integer[]>();\n\t\tInteger[] edge ={String2Int.get(\"Location1\"),String2Int.get(\"Location2\"),10};\n\t\tInteger[] edge1 ={String2Int.get(\"Location2\"),String2Int.get(\"Location3\"),20};\n\t\tInteger[] edge2 ={String2Int.get(\"Location1\"),String2Int.get(\"Location3\"),30};\n\t\tInteger[] edge4 ={String2Int.get(\"Location3\"),String2Int.get(\"Location4\"),40};\n\t\tInteger[] edge5 ={String2Int.get(\"Location4\"),String2Int.get(\"Location3\"),40};\n\t\t\n\t\t\n\t\tedges.add(edge);\n\t\tedges.add(edge1);\n\t\tedges.add(edge2);\n\t\tedges.add(edge4);\n\t\tedges.add(edge5);\n\t\t\n\t\t\n \n\t //int[][] adj_matrix = MapArrayList(edges1);\n int[][] adj_matrix = MapArrayList(edges);\n\t\tfor(int i=0;i<5;i++){\n\t\t\t//System.out.println(\"\");\n\t\t\tfor(int j=0;j<5;j++){\n\t\t\t\t\n\t\t\t\t//System.out.print(adj_matrix[i][j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//dijkstra(edges1);\n\t\t//System.out.print(edges2);\n\t\t//System.out.println(\"Ehtesham\");\n\t\tArrayList<ArrayList<Integer>> finalpaths = dijkstra(adj_matrix);\n\t\t for (ArrayList<Integer> item : finalpaths) { \n\t\t\t System.out.println(\"\");\n\t\t\t \tfor(Integer node: item)\n\t\t\t \t{\t\n\t\t\t \t\tSystem.out.print(Int2String.get(node)+\"->\");\n\t\t\t \t}\n\t\t\n\t\t }\n\t\t int cost = 210;\n\t\t int time = 190;\n\t\t //ArrayList<ArrayList<Integer>> finalp1aths1 = Pathinbound(finalp1aths1);\n\t\t ArrayList<ArrayList<Integer>> finalp1aths1 = Pathinbound(NHMap,EHMap,finalpaths,cost,time);\n\t\t System.out.println(\"\");\n\t\t System.out.println(\"-----------------------------Final answer-------------------------------\");\n\t\t for (ArrayList<Integer> item : finalp1aths1) { \n\t\t\t\tSystem.out.println(item);\n\t\t\t\t\n\t\t }\n\t\t\t\t \n\t}", "private void updateMap(final PlayerVision vision){\r\n\t\tint i, y, x;\n\t\t\n\t\t// add the current point to the map\n\t\taddToMap(east, north, vision.CurrentPoint);\n\t\t\n\t\t// add everything west to the map\n\t\tfor (i = 0; i < vision.mWest; i++){\n\t\t\tx = east - i - 1;\r\n\t\t\t\n\t\t\taddToMap(x, north, vision.West[i]);\n\t\t}\r\n\t\t\r\n\t\t// add everything east to the map\n\t\tfor (i = 0; i < vision.mEast; i++){\n\t\t\tx = east + i + 1;\r\n\t\t\t\n\t\t\taddToMap(x, north, vision.East[i]);\n\t\t}\r\n\t\t\r\n\t\t// add everything north to the map\n\t\tfor (i = 0; i < vision.mNorth; i++){\n\t\t\ty = north + i + 1;\r\n\t\t\t\n\t\t\taddToMap(east, y, vision.North[i]);\n\t\t}\r\n\t\t\n\t\t// add everything south to the map\n\t\tfor (i = 0; i < vision.mSouth; i++){\n\t\t\ty = north - i - 1;\r\n\t\t\t\n\t\t\taddToMap(east, y, vision.South[i]);\n\t\t}\r\n\t\t\n\t}", "private void ini_MapPaks()\r\n\t{\r\n\r\n\t}", "@org.junit.Test\n public void mapGet016() {\n final XQuery query = new XQuery(\n \"map:get(\\n\" +\n \" map:new(((for $i in 1 to 1000 return map:entry($i, $i*$i)),\\n\" +\n \" (for $i in 2000 to 3000 return map:entry($i, $i+30)),\\n\" +\n \" (for $i in 2500 to 3500 return map:entry($i, $i+30)))),\\n\" +\n \" 3260)\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEq(\"3290\")\n );\n }", "private static void showBoundaries(HashSet<Pair<Region, Polygon>> mapBoundaries) {\r\n\t\tint boundaryCount = mapBoundaries.size();\r\n\t\tint stepSize = 0xFFFFFF / boundaryCount;\r\n\t\tint currentCount = 1;\r\n\r\n\t\t// Linear interpolate the color based on the number of Regions.\r\n\t\tfor (Pair<Region, Polygon> pair : mapBoundaries) {\r\n\t\t\tint currentR = 0b111111110000000000000000 & (stepSize * currentCount);\r\n\t\t\tint currentG = 0b000000001111111100000000 & (stepSize * currentCount);\r\n\t\t\tint currentB = 0b000000000000000011111111 & (stepSize * currentCount);\r\n\t\t\tcurrentR = currentR >> 16;\r\n\t\t\tcurrentG = currentG >> 8;\r\n\r\n\t\t\tpair.second.display(new Color(currentR, currentG, currentB), true, POLYGON_VERTEX_RADIUS, false);\r\n\t\t\tcurrentCount++;\r\n\t\t}\r\n\t}", "private void storeValues(int source,\n Map<VWBetw, Double> map,\n DiskBufferDriver output) throws DriverException {\n for (Entry<VWBetw, Double> e : map.entrySet()) {\n storeValue(source, e.getKey().getID(), e.getValue(), output);\n }\n }", "private void initializeMaps() {\n\tcodon1 = new HashMap<String,String>();\n\tcodon3 = new HashMap<String,String>();\n\tiupac = new HashMap<String,String>();\n\t\n\tcodon1.put(\"AAA\",\"K\");\n\tcodon1.put(\"AAC\",\"N\");\n\tcodon1.put(\"AAG\",\"K\");\n\tcodon1.put(\"AAT\",\"N\");\n\tcodon1.put(\"ACA\",\"T\");\n\tcodon1.put(\"ACC\",\"T\");\n\tcodon1.put(\"ACG\",\"T\");\n\tcodon1.put(\"ACT\",\"T\");\n\tcodon1.put(\"AGA\",\"R\");\n\tcodon1.put(\"AGC\",\"S\");\n\tcodon1.put(\"AGG\",\"R\");\n\tcodon1.put(\"AGT\",\"S\");\n\tcodon1.put(\"ATA\",\"I\");\n\tcodon1.put(\"ATC\",\"I\");\n\tcodon1.put(\"ATG\",\"M\");\n\tcodon1.put(\"ATT\",\"I\");\n\tcodon1.put(\"CAA\",\"Q\");\n\tcodon1.put(\"CAC\",\"H\");\n\tcodon1.put(\"CAG\",\"Q\");\n\tcodon1.put(\"CAT\",\"H\");\n\tcodon1.put(\"CCA\",\"P\");\n\tcodon1.put(\"CCC\",\"P\");\n\tcodon1.put(\"CCG\",\"P\");\n\tcodon1.put(\"CCT\",\"P\");\n\tcodon1.put(\"CGA\",\"R\");\n\tcodon1.put(\"CGC\",\"R\");\n\tcodon1.put(\"CGG\",\"R\");\n\tcodon1.put(\"CGT\",\"R\");\n\tcodon1.put(\"CTA\",\"L\");\n\tcodon1.put(\"CTC\",\"L\");\n\tcodon1.put(\"CTG\",\"L\");\n\tcodon1.put(\"CTT\",\"L\");\n\tcodon1.put(\"GAA\",\"E\");\n\tcodon1.put(\"GAC\",\"D\");\n\tcodon1.put(\"GAG\",\"E\");\n\tcodon1.put(\"GAT\",\"D\");\n\tcodon1.put(\"GCA\",\"A\");\n\tcodon1.put(\"GCC\",\"A\");\n\tcodon1.put(\"GCG\",\"A\");\n\tcodon1.put(\"GCT\",\"A\");\n\tcodon1.put(\"GGA\",\"G\");\n\tcodon1.put(\"GGC\",\"G\");\n\tcodon1.put(\"GGG\",\"G\");\n\tcodon1.put(\"GGT\",\"G\");\n\tcodon1.put(\"GTA\",\"V\");\n\tcodon1.put(\"GTC\",\"V\");\n\tcodon1.put(\"GTG\",\"V\");\n\tcodon1.put(\"GTT\",\"V\");\n\tcodon1.put(\"TAA\",\"*\");\n\tcodon1.put(\"TAC\",\"Y\");\n\tcodon1.put(\"TAG\",\"*\");\n\tcodon1.put(\"TAT\",\"Y\");\n\tcodon1.put(\"TCA\",\"S\");\n\tcodon1.put(\"TCC\",\"S\");\n\tcodon1.put(\"TCG\",\"S\");\n\tcodon1.put(\"TCT\",\"S\");\n\tcodon1.put(\"TGA\",\"*\");\n\tcodon1.put(\"TGC\",\"C\");\n\tcodon1.put(\"TGG\",\"W\");\n\tcodon1.put(\"TGT\",\"C\");\n\tcodon1.put(\"TTA\",\"L\");\n\tcodon1.put(\"TTC\",\"F\");\n\tcodon1.put(\"TTG\",\"L\");\n\tcodon1.put(\"TTT\",\"F\");\n\n\tcodon3.put(\"AAA\",\"Lys\");\n\tcodon3.put(\"AAC\",\"Asn\");\n\tcodon3.put(\"AAG\",\"Lys\");\n\tcodon3.put(\"AAT\",\"Asn\");\n\tcodon3.put(\"ACA\",\"Thr\");\n\tcodon3.put(\"ACC\",\"Thr\");\n\tcodon3.put(\"ACG\",\"Thr\");\n\tcodon3.put(\"ACT\",\"Thr\");\n\tcodon3.put(\"AGA\",\"Arg\");\n\tcodon3.put(\"AGC\",\"Ser\");\n\tcodon3.put(\"AGG\",\"Arg\");\n\tcodon3.put(\"AGT\",\"Ser\");\n\tcodon3.put(\"ATA\",\"Ile\");\n\tcodon3.put(\"ATC\",\"Ile\");\n\tcodon3.put(\"ATG\",\"Met\");\n\tcodon3.put(\"ATT\",\"Ile\");\n\tcodon3.put(\"CAA\",\"Gln\");\n\tcodon3.put(\"CAC\",\"His\");\n\tcodon3.put(\"CAG\",\"Gln\");\n\tcodon3.put(\"CAT\",\"His\");\n\tcodon3.put(\"CCA\",\"Pro\");\n\tcodon3.put(\"CCC\",\"Pro\");\n\tcodon3.put(\"CCG\",\"Pro\");\n\tcodon3.put(\"CCT\",\"Pro\");\n\tcodon3.put(\"CGA\",\"Arg\");\n\tcodon3.put(\"CGC\",\"Arg\");\n\tcodon3.put(\"CGG\",\"Arg\");\n\tcodon3.put(\"CGT\",\"Arg\");\n\tcodon3.put(\"CTA\",\"Leu\");\n\tcodon3.put(\"CTC\",\"Leu\");\n\tcodon3.put(\"CTG\",\"Leu\");\n\tcodon3.put(\"CTT\",\"Leu\");\n\tcodon3.put(\"GAA\",\"Glu\");\n\tcodon3.put(\"GAC\",\"Asp\");\n\tcodon3.put(\"GAG\",\"Glu\");\n\tcodon3.put(\"GAT\",\"Asp\");\n\tcodon3.put(\"GCA\",\"Ala\");\n\tcodon3.put(\"GCC\",\"Ala\");\n\tcodon3.put(\"GCG\",\"Ala\");\n\tcodon3.put(\"GCT\",\"Ala\");\n\tcodon3.put(\"GGA\",\"Gly\");\n\tcodon3.put(\"GGC\",\"Gly\");\n\tcodon3.put(\"GGG\",\"Gly\");\n\tcodon3.put(\"GGT\",\"Gly\");\n\tcodon3.put(\"GTA\",\"Val\");\n\tcodon3.put(\"GTC\",\"Val\");\n\tcodon3.put(\"GTG\",\"Val\");\n\tcodon3.put(\"GTT\",\"Val\");\n\tcodon3.put(\"TAA\",\"*\");\n\tcodon3.put(\"TAC\",\"Tyr\");\n\tcodon3.put(\"TAG\",\"*\");\n\tcodon3.put(\"TAT\",\"Tyr\");\n\tcodon3.put(\"TCA\",\"Ser\");\n\tcodon3.put(\"TCC\",\"Ser\");\n\tcodon3.put(\"TCG\",\"Ser\");\n\tcodon3.put(\"TCT\",\"Ser\");\n\tcodon3.put(\"TGA\",\"*\");\n\tcodon3.put(\"TGC\",\"Cys\");\n\tcodon3.put(\"TGG\",\"Trp\");\n\tcodon3.put(\"TGT\",\"Cys\");\n\tcodon3.put(\"TTA\",\"Leu\");\n\tcodon3.put(\"TTC\",\"Phe\");\n\tcodon3.put(\"TTG\",\"Leu\");\n\tcodon3.put(\"TTT\",\"Phe\");\n\t\n\tiupac.put(\"-\",\"-\");\n\tiupac.put(\".\",\"-\");\n\tiupac.put(\"A\",\"AA\");\n\tiupac.put(\"B\",\"CGT\");\n\tiupac.put(\"C\",\"CC\");\n\tiupac.put(\"D\",\"AGT\");\n\tiupac.put(\"G\",\"GG\");\n\tiupac.put(\"H\",\"ACT\");\n\tiupac.put(\"K\",\"GT\");\n\tiupac.put(\"M\",\"AC\");\n\tiupac.put(\"N\",\"ACGT\");\n\tiupac.put(\"R\",\"AG\");\n\tiupac.put(\"S\",\"GC\");\n\tiupac.put(\"T\",\"TT\");\n\tiupac.put(\"V\",\"ACG\");\n\tiupac.put(\"W\",\"AT\");\n\tiupac.put(\"Y\",\"CT\");\n \n }", "Map<Long,String> getPlaces(String experiment_no,String laboratory_no) throws IOException;", "private void setupDefaultTerrainMap() {\n defaultTerrainKindMap.put(getHashCodeofPair(-7,1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(7,1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(-7,-1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(7,-1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(0,4), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(2,4), TerrainKind.SMALL_FISHERY);\n\n defaultTerrainKindMap.put(getHashCodeofPair(0,-2), TerrainKind.BIG_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(-3,-3), TerrainKind.FIELDS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,-3), TerrainKind.HILLS);\n \t \tdefaultTerrainKindMap.put(getHashCodeofPair(3,-3), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-4,-2), TerrainKind.FOREST);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-2,-2), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,-3), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(2,-2), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(4,-2), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-5,-1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-3,-1), TerrainKind.HILLS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,-1), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,-1), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(3,-1), TerrainKind.FIELDS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(5,-1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-6,0), TerrainKind.HILLS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-4,0), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-2,0), TerrainKind.FOREST);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(0,0), TerrainKind.FOREST);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(2,0), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(4,0), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(6,0), TerrainKind.HILLS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-5,1), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-3,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(3,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(5,1), TerrainKind.GOLDFIELD);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-4,2), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-2,2), TerrainKind.GOLDFIELD);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(0,2), TerrainKind.FIELDS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(2,2), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(4,2), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-3,3), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,3), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,3), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(3,3), TerrainKind.SEA);\n\t}", "public void testing(){\n //-2 because the last one has the double bracket\n finalSites = new String[(sites.length -1)][10]; //the final 2d array to hold onto the sites\n for(int i = 0; i < (sites.length -1); i++) { //for all of the sites\n String temp = sites[i];\n String temp1 = temp.replaceAll(\"\\\"\", \"\"); // get rid of the \"\" around each thing\n String temp2 = temp1.replaceAll(\"\\\\[\", \"\"); //get rid of the brackets\n tempSites = temp2.split(\",\"); //split site info by comma\n for (int j = 0; j < tempSites.length; j++) { //from 0 -->10 (id, site id, lat, long....)\n finalSites[i][j] = tempSites[j]; //put the value into the final array\n if(i == (sites.length-2) && j == (tempSites.length -1)){ //sites.length - 2 && tempSites.length.\n makeMap(); //new method to help break up the code...\n break; //redundant\n }\n } //end j for\n } //end i for\n }", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\r\n float zoomLevel = 16.0f; //This goes up to 21\r\n\r\n switch (mPost_L){\r\n\r\n case \"Mellor Building\":\r\n //Mellor Building\r\n LatLng mellor = new LatLng(53.010042, -2.180419);\r\n mMap.addMarker(new MarkerOptions()\r\n .position(mellor)\r\n .title(mPost_L).icon(BitmapDescriptorFactory\r\n .defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\r\n\r\n //Car park A\r\n LatLng carPark1 = new LatLng(53.010189, -2.180913);\r\n mMap.addMarker(new MarkerOptions().position(carPark1).title(mPost_L + \" Car park A\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark1, zoomLevel));\r\n\r\n //Car park B\r\n LatLng carPark2 = new LatLng(53.010197, -2.178928);\r\n mMap.addMarker(new MarkerOptions().position(carPark2).title(mPost_L +\" Car park B\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark2, zoomLevel));\r\n break;\r\n\r\n\r\n case \"Ember Lounge\":\r\n //Ember Lounge\r\n LatLng ember = new LatLng(53.009524, -2.179833);\r\n mMap.addMarker(new MarkerOptions()\r\n .position(ember)\r\n .title(mPost_L).icon(BitmapDescriptorFactory\r\n .defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\r\n\r\n //Car park A\r\n LatLng carPark1a = new LatLng(53.010189, -2.180913);\r\n mMap.addMarker(new MarkerOptions().position(carPark1a).title(mPost_L + \" Car park A\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark1a, zoomLevel));\r\n\r\n //Car park B\r\n LatLng carPark2b = new LatLng(53.010197, -2.178928);\r\n mMap.addMarker(new MarkerOptions().position(carPark2b).title(mPost_L +\" Car park B\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark2b, zoomLevel));\r\n break;\r\n\r\n case \"LRV and Verve\":\r\n //LRV and Verve\r\n LatLng lrvAndverve = new LatLng(53.007882, -2.175342);\r\n mMap.addMarker(new MarkerOptions()\r\n .position(lrvAndverve)\r\n .title(mPost_L).icon(BitmapDescriptorFactory\r\n .defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\r\n\r\n //Car Park A\r\n LatLng carPark3 = new LatLng(53.007652, -2.175546);\r\n mMap.addMarker(new MarkerOptions().position(carPark3).title(mPost_L + \" Car park A\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark3, zoomLevel));\r\n\r\n //Car park B\r\n LatLng carPark4 = new LatLng(53.008826, -2.175459);\r\n mMap.addMarker(new MarkerOptions().position(carPark4).title(mPost_L + \" Car park B\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark4, zoomLevel));\r\n break;\r\n\r\n\r\n case \"Sir Stanley Matthews Sports hall\":\r\n //Stanley Matthews Sports hall\r\n LatLng SMsportsHall = new LatLng(53.007882, -2.175342);\r\n mMap.addMarker(new MarkerOptions()\r\n .position(SMsportsHall)\r\n .title(mPost_L).icon(BitmapDescriptorFactory\r\n .defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\r\n\r\n\r\n //Car Park A\r\n LatLng carPark5 = new LatLng(53.008605, -2.174087);\r\n mMap.addMarker(new MarkerOptions().position(carPark5).title(mPost_L + \" Car park A\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark5, zoomLevel));\r\n\r\n //Car park B\r\n LatLng carPark6 = new LatLng(53.009739, -2.174776);\r\n mMap.addMarker(new MarkerOptions().position(carPark6).title(mPost_L + \" Car park B\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark6, zoomLevel));\r\n break;\r\n\r\n\r\n case \"S520 (Mellor Building)\":\r\n //Mellor Building (S520)\r\n LatLng s520mellor = new LatLng(53.010042, -2.180419);\r\n mMap.addMarker(new MarkerOptions()\r\n .position(s520mellor).snippet(\"5th Floor of Mellor Building!\")\r\n .title(mPost_L).icon(BitmapDescriptorFactory\r\n .defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\r\n\r\n //Car park A\r\n LatLng carPark7 = new LatLng(53.010189, -2.180913);\r\n mMap.addMarker(new MarkerOptions().position(carPark7).title(\"Mellor Building Car park A\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark7, zoomLevel));\r\n\r\n //Car park B\r\n LatLng carPark8 = new LatLng(53.010197, -2.178928);\r\n mMap.addMarker(new MarkerOptions().position(carPark8).title(\"Mellor Building Car park B\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark8, zoomLevel));\r\n break;\r\n\r\n }\r\n }", "private void createMapOfFirstType() {\n\n this.typeOfMap=1;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true, 0, 0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false, 0, 1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.RED, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n\n }", "public int NextMbAddress(int n) {\n\t\tint PicSizeInMapUnits= (sps0.pic_width_in_mbs_minus_1+1)*(sps0.pic_height_in_map_units_minus_1+1);\n\t\t// int FrameHeightInMbs = (2-(sps0.frame_mbs_only_flag ? 1:0))*(sps0.pic_height_in_map_units_minus_1+1);\n \t\t// int PicHeightInMbs = FrameHeightInMbs / (1+(field_pic_flag ? 1:0));\n\n \t\tint PicSizeInMbs = (sps0.pic_width_in_mbs_minus_1+1) * (PicHeightInMbs);\n\t\t// (7-34)\n\t\tint MapUnitsInSliceGroup0 = Math.min(((pps0.slice_group_change_rate_minus1 + 1) * slice_group_change_cycle), \n\t\t\t(PicSizeInMapUnits));\n\t\t// System.out.println(MapUnitsInSliceGroup0);\n\t\tint sizeOfUpperLeftGroup;\n\t\tif(pps0.num_slice_groups_minus1==1&&(pps0.slice_group_map_type==4||pps0.slice_group_map_type==5)){\n\n\t\t\tsizeOfUpperLeftGroup=(pps0.slice_group_change_direction_flag ? (PicSizeInMapUnits - MapUnitsInSliceGroup0)\n\t\t\t\t: MapUnitsInSliceGroup0);\n\t\t}\n\t\tint [] mapUnitToSliceGroupMap=new int[PicSizeInMapUnits];\n\t\tif(pps0.num_slice_groups_minus1==0){\n\t\t\t// System.out.println(\"zero \");\n\t\t\tfor(int i=0;i<pps0.pic_size_in_map_units_minus1+1;i++){\n\t\t\t\tmapUnitToSliceGroupMap[i]=0;\n\t\t\t}\t\t\t\n\t\t}\n\n\t\telse if(pps0.num_slice_groups_minus1!=0){\n\t\t\tif(pps0.slice_group_map_type==0){\n\t\t\t\t// 8.2.2.1\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==1){\n\t\t\t\t// 8.2.2.2\n\t\t\t}else if(pps0.slice_group_map_type==2){\n\t\t\t\t// 8.2.2.3\n\t\t\t}else if(pps0.slice_group_map_type==3){\n\t\t\t\t// 8.2.2.4\n\t\t\t}else if(pps0.slice_group_map_type==4){\n\t\t\t\t// 8.2.2.5\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==5){\n\t\t\t\t// 8.2.2.6\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==6){\n\t\t\t\t// 8.2.2.7\n\t\t\t}\n\t\t}\n\n\n\t\t\t\t\t\t\t\t\t/* 8.2.2.8 */\n \t\tint[] MbToSliceGroupMap=new int[PicSizeInMbs];\n \t\tfor(int i=0;i<PicSizeInMbs;i++){\n \t\t\tif(sps0.frame_mbs_only_flag==true||field_pic_flag==true){\n \t\t\t\t// System.out.println(PicSizeInMbs+\" \"+PicSizeInMapUnits);\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[i];\n \t\t\t} else if(MbaffFrameFlag){\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[(int)i/2];\n\n \t\t\t}else if(sps0.frame_mbs_only_flag==false&&sps0.mb_adaptive_frame_field_flag==false&&field_pic_flag==false){\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[(int)(i/(2*sps0.pic_width_in_mbs_minus_1+1))\n \t\t\t\t*sps0.pic_width_in_mbs_minus_1+1+(i%sps0.pic_width_in_mbs_minus_1+1)];\n \t\t\t}\n\n \t\t}\n\t\t// i = n + 1 \n\t\t// while( i < PicSizeInMbs && MbToSliceGroupMap[ i ] != MbToSliceGroupMap[ n ] )\n\t\t // i++; \n\t\t// nextMbAddress = i\n\t\tint i = n + 1;\n\t\t// int nextMbAddress = i;\n\n\t\twhile(i<PicSizeInMbs &&( MbToSliceGroupMap[i]!=MbToSliceGroupMap[n])) {\n\t\t\ti++;\n\t\t\t// System.out.println(\"here mb address\");\n\t\t\t// nextMbAddress = i;\n\t\t}\n\t\t// System.out.println(\"nextMbAddress \"+i);\n\t\treturn i;\n\t}", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "interface WorldmapBuffer2 {\n final static byte[] image2 = {\n -125, 47, -3, 77, 51, 29, -45, -103, -120, 119, 76, -122, -82, -22, -106, 61, 113, 4, -59, 124, -116, 59, 115, -26, -44,\n 56, -115, 34, 106, -124, 98, 83, -115, 70, 9, -67, -116, 99, 92, -127, 89, -23, -68, -11, -41, 72, -15, -68, -48, 4,\n 29, 85, -30, 4, -79, -56, -20, 126, 69, 119, -119, -115, -116, 60, -37, -53, -107, 68, 90, -45, 79, -99, 108, 109, 45,\n 84, -65, -93, -44, -79, -23, -40, 23, -40, -48, 98, -92, -50, 125, -104, -52, -58, 50, -97, -119, 13, -78, -81, 82, -86,\n 15, -71, -92, 77, -115, -48, 48, 77, -88, 6, 61, 104, -117, -51, 103, -90, 5, -71, -52, 42, 76, -68, 113, 79, -7,\n 43, -42, -84, 38, -56, -100, 93, -44, 34, 71, -113, 100, -116, 64, 42, 88, -40, 94, 93, -83, -118, -115, 99, -32, -27,\n 72, -26, 43, -104, 35, 7, 37, 101, 12, -66, 107, -104, -128, -106, -116, 54, -93, -83, -119, -50, 23, -47, -117, 39, 89,\n 6, -9, 41, 47, 10, -37, -124, -2, 115, -40, -55, -67, -37, -118, -118, 92, 108, 24, -41, 35, -43, -61, 45, 44, 118,\n 87, 92, 70, -14, 108, -37, -22, -106, -41, -127, 124, -92, -70, -99, -42, 22, -38, 106, 43, -8, -84, -97, -99, -39, -48,\n -6, -62, 78, -10, -98, -38, 109, -98, -23, -87, -45, 112, -67, 73, 42, 21, 99, -25, 109, -40, -21, 10, 120, -88, -110,\n -99, 105, -37, -97, 68, -70, -112, 15, 54, -99, 111, 77, 37, 108, 52, -33, 113, 93, 59, -33, 56, -78, 124, -85, 42,\n 107, -3, -54, -94, 29, -37, 97, -53, -54, -24, 8, -113, -18, 45, 108, 61, 122, -124, 19, 102, 118, -65, -14, -31, 32,\n 30, -30, -8, 35, -40, 102, -106, -109, -33, -115, -58, -27, 38, -37, 43, 88, 106, -11, -104, -51, -16, 11, -39, 116, 24,\n -123, -48, -6, 107, 73, -39, -31, -107, 109, -98, 85, -36, 39, 115, 61, -37, -33, 53, -61, -49, 103, -119, -73, 84, -35,\n -64, -6, 97, -72, -85, -98, -94, 58, -33, 127, 77, -34, 96, 90, -127, 58, -22, -118, -61, -83, 58, 96, 59, 95, 27,\n 11, -29, -123, 76, 79, -108, 11, -48, -35, -100, -40, 82, 4, 97, 57, -18, -36, -63, -94, -28, -105, -87, -76, -57, -84,\n 122, -13, -40, -60, -37, -6, -28, -105, -42, -34, -105, 76, 61, 59, -2, -27, -103, -125, -76, 111, 39, -39, 118, -88, -119,\n 56, 43, 116, 50, 22, -87, 44, 43, -91, 63, -21, -51, -2, -14, -26, -38, -76, 36, -26, -52, -122, -26, 100, -61, -75,\n -108, 7, 24, -24, 92, -37, -28, -116, -51, 52, 126, -33, -103, -102, 114, -27, 77, -24, -124, 87, 68, -13, -119, -28, 99,\n -71, -33, 25, 88, -49, 120, 41, -24, -125, -82, -62, 102, -25, -49, -119, 25, -82, 111, 38, 63, -52, 76, 26, 81, 71,\n 118, -115, 39, 125, -58, -94, -26, 29, -109, -25, -4, -92, -80, 43, -42, -83, -108, -66, -86, -65, 43, -25, 19, 70, -23,\n -80, -68, -54, -72, -3, -43, 32, -117, -93, 102, -93, 27, -29, -77, 56, -70, -38, -34, 27, -67, -94, 52, -75, -119, -73,\n -5, -45, 58, 120, -48, 107, 125, -112, 109, -84, -25, 40, 78, -21, -8, 69, -27, -117, -36, 108, 57, 93, -114, 52, 120,\n -32, 100, 68, -48, -51, 65, -35, -42, 78, 82, 58, -88, 96, -121, 126, -39, 104, 34, -123, -6, 9, 66, -35, 40, 107,\n 66, -120, -65, 127, -125, -19, -75, 6, 122, -30, -21, -74, 42, 126, -121, 2, 3, -19, 22, 20, 53, 85, 89, 61, -21,\n -25, -95, 94, 18, -18, -35, 70, -101, 33, 10, -80, 18, 35, 94, 99, -98, -18, 40, -66, 87, 54, -18, -23, -36, 107,\n -24, 8, 47, -28, -113, -61, -87, -20, -98, -19, -71, 45, -35, -128, -82, -80, -23, -121, -38, 99, -117, -70, 7, 104, -20,\n 52, 122, -18, 76, -115, -40, 36, -6, -16, 88, -59, -72, 127, -58, -111, 59, 126, -2, 82, -17, -68, -49, -18, -63, -118,\n 111, -109, -33, 120, -118, -50, -52, 52, -29, -121, -2, -62, 126, 26, -124, -46, -18, -112, -115, 92, -65, 117, 125, -16, -74,\n 74, 90, -9, 27, -61, 0, 111, 110, 2, -72, -125, -102, 30, 22, 42, -33, 115, 23, -6, -24, 124, -102, -57, -16, 78,\n -62, 76, -119, 91, -48, -87, -65, -71, 126, -118, -123, -89, -18, -31, -92, -13, -95, -68, -35, -63, -100, 55, 88, -68, -47,\n -69, 55, -12, 99, 33, -16, -34, -22, -63, 66, 78, -11, -93, 78, 66, 17, 12, -75, -115, 6, -109, 34, 9, 114, -108,\n -72, -103, 8, -76, 112, 58, 126, -16, -74, -34, 102, 29, -56, -64, 88, 103, 123, -91, 100, 55, 61, -55, -50, 59, -33,\n -22, 90, 55, -90, -106, -3, -20, -79, -35, 53, -112, -2, -47, 49, -114, -23, 30, 95, -16, 25, 70, -17, 75, 53, -9,\n -38, 73, 109, 53, 38, -10, 106, -102, 55, -17, -31, 76, -26, -6, -128, -110, -1, -44, 25, 7, -56, 86, -56, -9, -6,\n 9, -10, -57, -66, -20, 5, 125, -8, 106, -83, -8, -1, -89, -13, -114, 31, -97, -88, -120, 75, -21, 42, -22, -19, -111,\n 101, -117, 107, -30, -71, 121, -11, -99, 23, 88, -68, -8, -88, -85, 25, -128, 72, 47, -95, -122, -125, -87, 50, -82, 50,\n -14, -34, -92, 112, 102, -29, -87, -113, -106, -64, -18, 108, 26, 107, 32, 69, -37, 120, 10, -113, 118, -20, -2, 38, -46,\n 93, -116, -63, 23, 126, -19, 25, -55, -113, -95, -99, 121, -55, 106, -122, 29, 72, -32, 117, 103, -106, 86, -52, 104, -37,\n 15, -14, -122, -27, -33, 77, 79, 96, 4, 27, 34, -87, -6, 69, -69, -69, -93, 113, 3, -49, 69, -75, 56, 101, 106,\n 78, 57, 62, -15, -16, 92, -8, -63, -114, -48, -59, -82, 95, 52, 116, 108, 104, 11, -69, 78, 6, 16, 1, 4, 14,\n 36, 88, -48, -32, 65, -124, 9, 21, 46, 100, 56, 80, 0, 0, 1, 7, 35, 10, -96, 8, 49, 98, -61, -126, 15,\n 1, 108, -28, -40, -47, -29, 71, -112, 33, 69, -114, 36, 89, -46, -28, 73, -108, 41, 47, 98, 76, -88, 113, 100, -59,\n -115, 43, 9, -62, -20, 72, 49, -128, 77, -121, 11, 93, -106, -92, 72, 83, -92, -52, -101, 61, 29, -6, -12, -120, 51,\n -88, -48, -116, 10, -127, 74, 100, 57, 115, 105, 83, -88, 45, -97, 10, -20, 57, 53, 42, 84, -93, 59, 85, 62, 20,\n -86, 53, -27, 87, -80, 97, -59, -114, 37, 91, -42, 108, 88, -85, 87, -43, -82, 101, -120, 52, -93, 70, -93, 87, -67,\n -98, -91, 91, -41, -82, -39, -86, 108, -25, 22, -35, 25, 119, -24, -57, -117, 50, -105, 86, 37, 10, 56, 110, -31, -102,\n 84, -111, 30, -2, -23, 23, -95, 85, -57, 65, 115, 98, -115, -52, 118, 109, 86, -73, -106, -43, 10, 30, -37, -109, 35,\n -30, -69, -2, -95, 69, -113, 38, 93, 58, 100, 90, -51, -87, 85, 27, -52, -85, 23, -76, 105, -40, -79, -47, 14, 69,\n -51, 122, 47, 95, -61, -84, 1, 83, 117, 74, -8, -90, 83, -117, 46, 43, 7, -83, 73, 24, -13, -17, -103, -89, 99,\n 54, -100, -24, -72, -7, 98, -29, -61, 21, -41, 94, -51, 50, 115, 117, -21, -103, 111, -13, -12, 44, -37, -5, 119, -16,\n -31, 65, 82, -57, 94, -34, -68, -50, -18, -30, -43, -81, 79, 60, 25, -29, -21, -94, 55, 79, -21, 110, -1, -5, -16,\n 68, -38, -48, -87, -73, 126, 59, 84, -30, 120, -72, -104, -29, -115, 53, -34, -116, -21, -17, 49, -14, -50, 83, -80, 41,\n -56, -2, -21, 108, 34, -10, 34, -108, 112, 66, -80, 18, 92, -16, -62, -43, -46, -93, 112, 67, -39, 4, -77, 78, 37,\n -86, 78, 3, -118, -90, -107, 112, 10, 44, -90, -86, -118, -77, -112, -71, 18, 31, -37, 77, -70, -57, -108, -102, 46, 58,\n 4, 49, -76, -47, -75, -89, 42, -37, -114, 39, -30, 56, -12, -15, 71, 9, 87, -68, 113, 72, -84, -128, 52, 114, 52,\n 15, -33, -5, -22, -60, -58, 104, 91, 14, 57, -59, -28, -5, -52, 64, 5, 3, 67, 48, -66, -53, 90, -126, 18, 61,\n 24, -119, -12, 50, -71, 39, -35, 123, -85, -84, 18, -113, 52, -13, 76, -46, -124, -4, 114, 77, 7, -47, 116, -77, -77,\n -103, 62, 4, 81, -54, -105, 66, -2, -124, 9, 63, -121, 32, -30, 107, -56, -25, -24, -29, 75, -51, 40, 9, -108, -18,\n 58, 54, 11, 5, 46, -52, -93, 108, -61, 11, -52, 55, 27, 117, 116, 73, 67, 35, 109, -53, -90, 29, 31, -75, 52,\n -52, 4, 43, 125, -47, 36, 38, -21, -53, 19, 75, 27, -97, -93, -76, 83, 80, 47, 27, 49, 63, 26, 37, 85, -107,\n -50, 39, 73, 100, -108, -52, 87, 47, -107, 117, 86, 64, 87, 93, -112, 43, -8, 102, -75, -76, 69, 37, -105, -52, -75,\n -43, -15, 14, 45, -11, -42, 1, 41, 101, 117, 79, -53, -4, 66, -83, 86, 91, 85, 35, -86, -71, 97, 53, -27, 49,\n 68, 93, -85, -107, -107, -39, 102, -85, -85, 8, 66, 107, -83, 53, -111, 65, -76, 78, -30, 118, -73, -93, -126, -67, 49,\n 48, -63, -74, -61, -42, 63, 49, 109, 91, 55, -37, -88, -26, 42, 108, -80, -77, -54, -20, -10, -34, 55, -33, -123, 87,\n -77, -82, -16, -11, 118, 75, -99, 68, 51, -18, 37, 19, -5, -22, -46, -39, -106, -22, -20, 109, -77, 1, -37, 117, 120,\n -33, 42, 81, 26, 76, -38, -97, 62, -11, -9, -30, 35, -7, -125, -40, 75, 13, 49, -34, 21, -32, -124, -21, -30, -17,\n -41, -32, -114, -123, -24, 92, -91, 42, 30, 89, -56, -26, -100, -118, 113, -29, 80, -59, 45, -40, 100, 72, -87, -11, -8,\n 102, 31, -11, -123, -103, 50, -118, 113, -34, -48, 74, -26, -2, 66, 51, -111, 83, 81, -55, 13, 85, 42, 17, -91, 34,\n 15, -49, -55, -46, -43, 121, -25, -128, -125, 123, -115, -79, 37, 17, -19, -39, 103, -84, -45, -124, -102, -29, -85, -77, -114,\n -80, -27, -74, -46, 36, -103, -44, -8, 8, -115, 55, 58, -115, 37, -14, -86, 54, -77, 103, 76, 21, 74, -96, -73, -66,\n 80, -39, -67, 56, -37, 74, 89, -81, -13, 86, -17, 105, -71, 83, -42, -37, -51, 59, -89, -22, -72, 49, -76, 83, 28,\n 79, 102, -102, -91, 62, 85, 109, -76, -109, 114, 92, 41, -31, 14, -114, 44, -45, -103, -5, 38, 114, -22, -116, 36, 6,\n 57, -15, -65, 59, 23, -38, 114, 12, -69, -10, -4, 107, 116, 65, 43, -4, 101, -50, 125, 37, -102, -72, -126, -17, -44,\n -119, 41, 22, 87, 84, -106, 103, 116, 65, -97, 123, -57, 17, 53, 119, 113, 116, -34, -111, -76, -3, -68, -63, 123, -49,\n -8, -74, -74, -75, -76, -7, 59, -83, -26, 125, 29, 118, -32, -29, -52, -82, 70, -105, 127, -41, 107, -38, -52, -87, -9,\n 83, 120, -20, -21, -107, 30, -8, -20, -49, 36, 12, 89, -84, 98, 37, 51, 120, -18, -124, 91, -98, -7, -14, -66, 101,\n 16, 61, -55, 54, -33, 62, 108, -21, -113, 87, 88, -47, -18, -21, 39, -117, 111, -23, 73, -74, 95, -68, 17, -45, 94,\n 95, -4, 7, 125, -81, 124, -84, 74, 75, 1, -101, -41, -66, -1, 65, -18, 113, -2, -17, -21, 21, 73, 114, 7, 32,\n -33, 108, -55, 112, -5, -93, -96, -18, 24, -104, -84, 10, 2, 73, 112, 122, 1, 96, 120, -58, -123, 40, 2, 25, 47,\n 125, 28, -20, -115, -1, -16, -73, 49, 105, -107, 14, 64, 74, -109, -110, -24, 50, 88, -65, -30, 93, 48, 106, 47, -4,\n -103, 8, -49, 102, -79, 32, -127, -49, 54, 54, -44, 22, 9, -99, -57, 67, 25, -50, -112, 96, 117, 43, -99, 91, -32,\n 66, 67, 36, 110, 37, -120, -17, 113, 97, 18, 5, 38, -93, 120, 9, 43, 103, 13, 99, 23, 16, 17, 38, 23, -25,\n 64, 113, -119, 65, -69, -33, 4, -115, -24, 68, 48, 90, 112, -117, 109, 10, -29, 122, 96, 4, -88, -2, -3, -120, 105,\n -127, 58, 31, 118, -48, -120, 58, -12, -115, -47, 111, 104, 73, 79, 119, -56, 87, 70, 60, 126, 70, -114, -41, -53, 35,\n 120, -10, -109, -91, -73, 52, -15, 46, -38, -79, -48, -63, -62, 119, -74, 28, 105, 113, -113, 33, -85, -48, -119, -122, -90,\n -89, 62, 70, -46, 92, 123, -44, -97, 36, 69, -74, 52, 64, -70, 103, -126, 14, 20, 100, -46, 2, 37, 59, 55, -54,\n 69, -127, 112, 92, 36, 25, 37, 118, 50, -55, 84, -46, -110, 97, 124, -37, -5, 58, -71, -54, -102, 89, 39, -109, -101,\n -53, -107, 10, -75, -89, 49, -106, -123, -14, -112, -118, -100, 78, 41, -123, 40, 46, 84, 114, 5, -106, -61, -2, 4, 85,\n -23, -74, -9, 74, 98, -118, 107, 82, -2, -5, 95, 1, 43, 22, -56, -15, 49, -82, -112, -70, 124, 30, 47, -87, -24,\n -53, 64, -118, -114, 108, -55, 36, -90, 49, -39, -120, -86, 19, -14, -117, -101, -90, 97, 91, 15, -35, 39, 63, 79, 101,\n 115, -120, 125, -111, -32, 125, 100, -103, -95, -3, 116, 105, -125, -40, 68, -112, 42, -127, 53, 78, 110, 50, -55, 105, -124,\n 10, -25, 101, -16, 89, -102, 114, 102, -24, -100, 127, 25, 86, 8, 55, -103, 21, 20, -127, -19, -102, -67, 108, -29, 21,\n -95, 39, 32, 82, -46, -77, -125, -100, -76, -25, 63, -111, -88, -49, 4, -50, -115, -117, 22, -3, 28, -5, -32, -55, 68,\n -72, 24, -48, 93, -3, 3, 90, -110, 30, 26, 71, 126, 89, -77, 45, -11, -108, 40, -3, 56, -6, -46, 105, 5, 40,\n -93, -38, 58, -35, -18, 96, 42, -78, 81, -102, -109, 65, 1, -35, -52, 96, 60, -54, 56, -121, -94, -76, -95, -46, -108,\n 104, 69, 111, -118, -49, 113, -127, -110, 123, -122, -71, 14, 50, -113, 42, 56, 67, 70, -47, 60, -52, -102, -35, 74, -43,\n 6, 66, 44, 102, 83, -87, -25, 99, -90, 12, 7, 118, 84, -80, 98, -55, 124, 9, -116, 33, 56, 35, 88, 41, -124,\n -122, -11, 126, 59, 36, -42, 84, 119, -7, -55, -91, -111, 52, -99, 88, -20, 42, 68, -83, 122, 32, -41, 64, -52, -87,\n 106, -59, -2, 99, 29, 17, -7, -80, -22, -119, 40, -123, 56, -28, 43, -30, -94, -89, 81, -73, -18, 114, 84, -120, -52,\n 11, 59, 125, -8, 88, -107, 2, -106, 69, 3, 53, -44, 94, 11, 91, 70, 87, 37, 11, 114, 56, 69, -25, 101, -97,\n -7, -61, -48, 29, 112, -89, 11, -107, -86, 98, -26, 90, 90, -122, 49, -47, -118, 92, 2, -19, -86, 44, -21, 89, 86,\n -114, 21, -78, -90, -75, -117, -35, 96, -21, -55, 5, -74, 53, -79, -76, -101, -22, 105, -33, -6, -37, -55, 10, -107, -95,\n 8, 92, -104, -83, 94, 123, 91, 26, 62, 18, -107, -77, -20, -47, 32, 39, 10, -37, 8, -110, 86, -76, 35, -116, -105,\n 69, 122, -21, -37, -103, 114, -87, 86, -109, 107, -36, 112, 89, 42, -87, -29, 34, 55, -125, -117, -63, -18, 123, -98, -69,\n -42, -13, -14, -107, -92, 101, 21, -24, 116, -63, -75, 92, 109, -23, 16, -75, 67, 53, 85, -125, 22, 39, -62, 126, 54,\n 80, -68, 96, -91, 84, 121, -19, 26, 94, -85, -19, 87, -113, 44, 68, -20, 110, -85, 11, -33, 12, -27, 102, 70, -26,\n -67, 43, 77, 103, 87, -94, -74, 25, 49, 82, 0, 22, -16, 11, 63, -120, 45, -27, 58, -105, -80, -73, 21, 41, 101,\n 83, -22, -34, -9, 34, 56, 53, 68, 116, 108, 100, 67, 88, -91, -82, -12, 73, 42, 39, 94, 19, -123, 43, 108, 97,\n 2, -14, -53, -88, -54, 76, 93, -2, 97, 33, 76, 37, -23, 6, -107, -102, 114, 25, 112, 124, -43, 37, 98, 22, -45,\n 119, -86, 107, -116, 104, -114, 67, -9, -30, -53, -6, 68, 95, 20, -34, 38, 116, 91, -85, -74, 42, 69, -39, -97, 64,\n -106, 113, 99, 18, 90, -28, -43, 38, 118, 89, -62, 61, 23, -110, 109, 76, -89, 119, -71, 56, 56, 21, 54, -87, -112,\n 71, 12, -30, 16, -29, -49, 116, -57, -117, -18, -115, 35, -52, 39, -17, 2, 54, -65, -65, -12, -14, 83, 109, -74, 46,\n 49, 35, -7, -66, -11, -116, 42, 112, 117, 124, 96, 42, -69, 6, -126, -60, -5, -22, 105, -25, -20, 48, -19, 112, 57,\n 102, 9, -83, 51, 76, -19, 21, -24, -115, 54, 90, -61, 79, 94, 96, -97, -33, -71, 99, 30, -9, -40, 89, 107, 67,\n -50, -116, -105, 27, -35, 2, -117, 105, -98, 45, 30, 112, -98, 37, -35, 59, 82, 89, 122, -61, -89, 94, 84, 110, -125,\n -20, 97, 81, 98, 58, -45, 88, 77, 22, -114, 33, 44, 22, 34, -93, -84, -75, -119, 84, 117, -83, 19, 99, 106, 86,\n -13, -82, -65, -2, -75, 105, -80, 91, 125, -40, 34, -97, 16, -44, -20, 125, 53, -96, 105, -51, 92, 68, -29, -102, 77,\n -89, -118, 91, 127, 14, 77, -48, 82, 27, -5, -91, -54, 115, -10, 32, 55, -23, -39, 61, -81, -74, -41, 39, 61, 10,\n -124, -77, -37, 109, -66, -31, -46, -108, -70, 27, 119, -84, -2, -93, -73, -27, -97, -10, -44, 92, -64, -42, -10, -24, -28,\n -43, -19, 122, -47, -51, -55, -82, 86, 116, -104, 121, 105, 72, -86, 126, 16, -46, 56, 18, 92, 0, 57, -106, 31, 88,\n 67, -75, 118, -17, -124, -113, -64, -21, 109, -25, 16, -25, -69, -36, 99, -6, 50, -65, -5, -67, 93, 120, -29, 53, -53,\n 13, 46, 49, -102, 59, -53, 41, -74, 74, 57, 64, -110, 115, -77, -94, -109, -13, 43, 79, 63, 92, -110, -78, -69, 100,\n -32, 8, -87, -42, 68, -38, 117, -29, 51, -49, -15, -96, 10, 119, 115, -25, 104, -38, -29, 77, -28, 76, 63, 83, -68,\n -100, 66, -30, 9, -86, 124, -82, -102, -54, -43, 91, 36, -94, 21, -70, 124, -24, -30, 47, -86, 24, 28, -17, 6, -101,\n -8, -101, -108, -34, -116, -50, 13, -68, -22, 57, 109, 107, -87, -49, -54, -22, 64, -47, 102, -12, 122, -77, 28, -28, -127,\n 85, 98, 115, 45, 10, -22, 75, 71, -99, -36, 102, -82, -94, 100, -99, 61, 103, 122, -31, 69, -74, -15, -3, 108, -38,\n -35, 103, 48, -80, -121, 125, -42, 117, -1, 56, -115, -51, -114, -44, -39, 74, 29, -42, -51, 14, -7, -32, 35, -99, -33,\n -72, 79, -102, -18, 124, -49, 41, -78, 77, 70, -17, -68, 3, 6, -77, 123, -97, 15, -39, 99, 41, -64, 127, 110, -105,\n 50, 80, 118, -9, 50, -37, 77, -58, -49, -1, -37, 119, 110, 28, -5, 40, 71, -2, 45, -81, -56, -17, 45, -27, 127,\n 83, -109, -70, -42, 45, -79, -114, 21, 14, -106, -102, 71, -19, -25, -73, -102, -32, -126, 18, -36, -14, -100, -59, 125, -4,\n 52, 14, -78, 71, -85, 8, -14, -87, 63, -39, -22, -11, 102, 105, -41, -13, -111, 46, -58, -62, 118, 31, 105, -49, -40,\n 15, -37, 125, -60, 70, -21, 105, -15, 0, -84, 51, 85, 54, 40, -73, -63, -49, 54, -15, -3, -24, -4, -96, 79, 50,\n -67, -72, 110, -22, -16, -15, -11, -4, -50, -89, -10, -36, 24, -92, 62, 72, 115, 45, -59, -114, -78, 63, -106, -108, -10,\n -23, -29, 29, -82, 58, -17, -13, 55, -24, 56, -98, -114, -73, -65, 117, -48, 111, -125, 49, -11, 75, 63, 2, 84, -69,\n -23, -53, -67, 21, -77, -72, 60, -61, 48, -98, 107, 54, 115, 75, -91, -61, -127, 21, -29, -53, 63, 48, 10, -67, 68,\n -103, 64, -63, 34, -94, -66, -126, -74, -11, -21, 64, -102, -85, 58, 4, 36, -68, 28, -119, 13, -86, -126, -107, 87, 3,\n -101, -1, -117, 63, -13, -93, 64, 97, 107, -67, 20, 124, 56, -86, -30, 64, 63, 99, -69, -22, 107, 63, 44, 3, 24,\n 12, -12, 61, 57, 65, -81, -100, -104, 24, -125, -86, -79, 10, 25, 63, 22, -20, -90, 92, -94, 45, -67, 11, -68, -89,\n -109, 65, -63, 43, 45, 78, 91, 48, -73, -77, -113, 28, 44, -67, -99, -46, 30, 118, -7, 35, 35, 92, -2, 62, 33,\n 28, 66, 34, -52, -88, 21, -76, 36, 111, -14, 64, 26, 52, 64, 49, -52, 36, 78, 115, 39, -54, -118, 66, 49, -46,\n 47, 19, 108, -95, -63, -77, -110, -67, -78, 45, 45, 12, -85, -5, -96, -101, -32, -61, 60, 61, -53, -118, 25, -108, -71,\n -7, -110, 62, -51, -38, 48, 94, -93, 51, -17, 8, -65, 75, 2, 51, 35, -45, 36, 32, -12, -69, 46, -116, 67, -20,\n 57, -88, -121, 73, -101, 68, 20, -64, -57, 57, -93, 1, -36, 67, -43, 106, 47, 63, -28, -68, 57, -30, 31, 53, 20,\n -103, -10, -64, -92, 78, -93, -62, 67, 84, 68, 57, 92, 40, 103, 122, -79, 13, 42, -94, -18, 114, -65, 62, -52, 67,\n 104, 75, 30, -109, 67, -61, -39, -128, 31, 114, 50, 60, 94, 65, -90, -5, 19, 69, 14, -117, -71, -111, 34, -77, 37,\n 116, -65, 37, 43, -64, -24, -117, -107, 112, -21, 13, 10, -39, -113, 14, -15, 68, -14, 90, -108, 71, -60, -59, 10, -86,\n 42, -68, 90, -58, -3, -47, -66, -68, 122, -102, 94, 83, -74, 98, 27, -58, -65, -101, 16, -74, 57, 70, -91, 57, -85,\n -66, -125, -108, 59, 98, 70, 27, 51, -106, -61, -40, 61, 14, -21, -59, -121, -62, 62, 92, 1, -61, 73, -92, -72, -2,\n 113, 18, 13, -110, -59, 89, -44, 69, -40, 113, -86, -42, -127, 70, 113, -20, 30, 3, -55, 57, 83, -76, -75, -82, -93,\n 58, -10, -2, 74, -58, 76, -71, -70, -1, 48, -73, 0, -100, 34, 64, 124, -94, 106, 19, 41, 91, -60, -107, 97, -53,\n 71, 61, 43, 54, -15, -22, -86, -96, 75, 64, 77, -62, 37, -68, 25, 72, -126, 44, 72, 59, -12, -98, -124, 124, 34,\n 40, -84, -74, 19, 107, -56, -104, -80, 8, -120, -84, -77, 17, -108, -69, 97, -62, 57, -24, -24, 69, -95, -29, 51, -117,\n 28, 67, 36, 100, -100, 107, -55, 68, -40, -128, -106, 86, -63, -81, 124, 43, -118, -109, 68, 73, -27, -13, -107, 22, 90,\n -91, -38, -15, -63, 14, 123, 29, -37, -101, 38, -99, 90, 38, -40, -29, -112, 82, -20, 16, 54, -45, -111, 44, -28, -92,\n -98, 100, -75, -60, 107, -92, 79, -127, 69, -42, -29, 21, 44, -117, -89, 39, 52, 74, 62, 84, -62, -85, -94, -88, 91,\n 52, 35, 70, 34, 65, 116, -14, -63, -88, -92, -88, -87, -108, -76, 7, 2, -54, -65, 120, -56, 72, 82, -88, -83, 28,\n 41, 34, -93, 61, -92, 60, 51, -43, 34, 49, 115, 100, 15, -56, 64, -98, 108, -124, -81, 52, -70, -97, 78, 92, -53,\n 70, 83, 58, -65, -93, 13, 0, -6, 58, 124, 100, -54, -89, -61, -56, 22, -87, 63, 38, 100, -57, 36, 52, 47, -105,\n 43, 56, -124, -4, 73, -128, -86, 27, 81, 123, -91, 103, 17, 38, -62, -116, -56, -88, -100, 24, -47, -60, 72, 20, 105,\n 70, 1, -63, 67, 68, -61, -58, -2, 36, -116, 43, -68, 84, -84, 109, -68, -52, -67, 20, 27, -62, 73, 75, 17, -111,\n 60, -84, -4, 76, 47, 76, -85, -61, -76, -113, -127, -109, -90, -15, -6, 61, -32, 83, -97, 30, -92, 58, -114, 99, 27,\n -111, 4, 70, -103, -116, -51, -81, 113, -87, 99, 116, -96, 43, -124, 19, 121, 73, 30, -36, 20, -80, -126, -103, 18, 110,\n -117, 19, -82, -112, -73, -33, 108, 31, -43, 76, 20, -20, 36, -50, -27, -111, 28, -16, -100, -52, -81, 124, 61, 109, 4,\n -114, -37, -100, 15, -41, -13, -52, -15, -87, -51, 41, -103, 78, 50, -13, 38, 47, 26, -55, -23, -79, -80, 50, 59, -61,\n -92, -72, -49, -43, -20, 70, -62, 43, -49, 101, -6, -56, -13, 36, 68, 96, 107, -78, -30, 88, 62, 7, -22, 62, -8,\n -100, 72, -6, 72, 17, 122, -84, -81, -59, 100, -52, 3, -111, 68, -115, 107, 61, -128, -124, 58, -55, -44, -82, -86, 84,\n -93, 24, 27, 80, -84, 43, -55, 122, -31, -114, 79, 75, 80, -22, -84, 67, -30, 26, -49, -25, 121, -48, 26, 26, 78,\n 15, -13, 41, -83, -108, 62, -76, 12, 67, -109, -93, -85, 111, 44, 70, -79, 50, -53, 25, 117, 74, 9, 18, -47, -8,\n 60, -106, -116, -101, 37, 20, 13, -48, 78, 43, 81, -108, 122, -55, 61, 44, -94, 11, 109, 59, 75, -4, 81, 101, 26,\n 80, 2, -11, -53, -74, -44, -47, -3, -46, 16, -29, -116, -2, -63, 14, 109, -63, 78, 123, 63, -6, 11, -46, 25, 108,\n 55, -106, -95, -58, 42, 53, -109, 38, -3, -100, -12, 76, -70, 79, 83, 82, 40, -75, 31, -54, -23, 41, -38, -52, 26,\n -56, -100, 75, 44, -91, -53, 27, 36, 79, 61, 36, 67, 90, -71, -47, -38, 58, 72, 3, -3, -119, 30, 27, -45, 51,\n 21, 74, -38, -111, -89, -108, -116, -58, -18, -68, -69, 84, -20, -49, -82, 76, -50, 56, 77, 59, 51, -107, -103, -31, -61,\n 15, -84, -84, 36, 8, 89, -44, 62, 93, -60, -103, 4, -56, 112, -12, -100, 114, -116, 40, -52, 49, -44, 67, 69, -44,\n 24, 109, 35, 73, -27, 20, -43, 11, 83, -85, -4, 75, 0, -103, -44, 83, 67, 63, 43, -38, 39, 24, 58, -50, -51,\n 116, 78, 78, 53, 60, 79, -75, -72, -55, 12, 85, 51, -38, 84, 59, -35, 77, 83, -27, 73, 84, 45, 76, -80, 68,\n 76, 57, -29, -45, 70, 33, 36, -33, -48, -97, 116, -103, 83, -57, -29, -77, -37, -85, -90, 47, 21, -98, -25, 104, 63,\n -50, -124, -86, 94, -115, -68, 55, -126, 28, -83, -100, 39, 97, -51, -105, -125, -20, 25, -90, -77, 46, 33, 91, 56, -73,\n -95, 67, -49, 83, 69, -52, -124, -95, 75, 108, 86, 78, 10, -53, 105, -51, -69, 106, 37, 48, -72, 121, -103, 108, 5,\n -100, 109, -51, -70, -112, 18, 67, 112, 45, -73, -14, -101, -46, -72, -102, -100, -117, -2, 58, -41, 92, 109, 18, -26, 92,\n 87, -107, 107, 87, -89, 115, 28, 105, 12, -59, 60, -70, -50, -71, 68, -72, 74, 44, 88, 39, 116, 88, -13, -116, 70,\n -62, -126, -61, 32, 68, 69, -127, -91, -42, 86, -76, 33, 122, 28, 75, -64, 11, -49, -70, -6, 83, -55, -14, 70, -101,\n 76, -82, -26, -93, 88, 49, -30, -66, -117, -123, -63, -116, 37, 37, -56, 36, -43, 124, 90, 41, -3, -28, 64, -115, -108,\n -56, 36, -78, 45, -109, -27, -114, 74, 75, 89, -93, -93, 82, 5, 116, -75, 107, 109, -70, -88, -13, 82, 90, 29, 90,\n 91, -115, 71, -117, -55, 48, -100, -35, 62, -99, 29, -40, -22, 19, -51, 56, 114, 51, -68, -71, -87, -101, 3, -83, 116,\n -5, -44, -66, -116, 75, 97, -31, 88, 27, 4, -66, -50, 88, 90, -104, -5, 43, 82, 60, 61, -76, 43, -41, -105, -107,\n -96, 11, 52, -47, 115, -13, 68, -78, 117, -94, -64, -68, 84, -83, 19, 65, 81, -27, 85, -81, -107, 90, 10, 125, -73,\n 101, 81, -75, -94, -83, -106, -123, 124, -64, 66, -12, 51, -75, 93, 83, 10, -102, 24, 15, 37, -100, 23, 13, 44, 59,\n -20, -52, -68, -99, -37, 107, 113, 85, -6, -78, -64, -78, -28, 40, 19, 74, -44, -76, 117, -47, 110, -94, 89, 114, 41,\n 84, 104, 90, -81, 50, 84, -36, -77, 27, 90, 119, -71, -100, -89, 58, 88, -76, -83, -43, -88, 122, -46, -2, -39, 115,\n 23, 88, -115, 56, -100, 99, 42, -50, -51, 60, 56, 69, -57, -34, 115, 52, -47, -19, -37, 75, -13, 43, -103, 75, -36,\n 124, -79, 92, 98, -13, 19, -83, 45, -48, -42, 29, -89, -69, -123, -35, 3, -108, -38, -58, 77, 82, -7, 66, 29, -36,\n 29, -42, -120, -75, -70, 76, -20, 93, -21, -124, -96, -33, 77, 88, 40, 42, -54, 35, -5, -109, -28, 5, -45, -30, 61,\n 51, 70, 100, -80, -21, 85, 94, -27, 124, 54, 83, -46, -89, 112, 76, -98, 91, -117, -34, 10, -44, -94, -39, -67, -107,\n 82, -119, 87, -84, -95, 94, 89, 101, -97, -92, 18, 82, -90, -24, 94, -17, -3, -34, 76, 17, 43, 60, 5, 88, -84,\n 99, 95, -13, 69, -109, -94, 28, -75, 80, 25, -37, 93, 101, 37, 40, 27, 84, -87, -30, -106, -104, 93, -37, -107, 92,\n -34, -91, 89, 95, -98, -93, -40, -22, -20, -33, 69, -52, -111, -47, 28, -35, 17, 19, 78, 5, 102, 91, -125, 77, 96,\n -122, -7, -71, 119, 124, 92, -56, 101, -32, 72, 3, 76, -71, -109, -46, -128, -107, 96, 76, 77, -42, -111, -46, -85, -114,\n 36, -32, -102, -93, -87, 2, -71, 59, -35, 117, -35, -120, 21, -32, -57, -117, 18, -118, -23, -52, -109, -125, -116, 25, -93,\n 95, 20, -74, -102, -47, -38, 26, -61, 36, 89, 25, -42, 37, -82, 4, -36, -107, -101, 97, 61, -46, -114, -53, 117, 94,\n -91, 43, -2, 41, -104, -67, 84, -61, -8, -31, -113, -95, 93, 96, -75, 29, 31, -10, -93, 115, 82, 51, 89, -67, -39,\n 109, 83, -30, -46, 68, -111, -65, 68, -63, -69, 89, -30, -103, 125, 78, 16, -91, 98, 121, -19, 84, 36, -75, 28, -2,\n -83, -55, 15, -36, -68, -51, -53, -30, 58, -51, 96, -55, 83, -49, -30, 35, 19, 49, 54, -64, 28, 54, 73, 53, -58,\n 94, -26, 107, 88, 87, -46, -32, -62, -77, 68, 124, 27, -59, -17, -83, -40, -30, 123, -61, 65, 1, -29, -46, 124, -29,\n 63, -66, 60, -42, 92, 34, 41, 118, 86, -2, -109, -75, 29, 76, 50, 47, -122, -50, -63, -11, -74, 27, 36, -76, -2,\n -94, 99, -50, 93, -42, 45, -126, 100, 109, -43, -75, 67, -82, 56, -124, 101, 84, 18, 108, 83, -44, -107, 26, 36, -114,\n 100, -65, 60, -46, -33, 17, 101, -128, -126, -40, 77, -93, 60, -24, 26, 98, -63, -60, -47, 67, 117, -71, 127, -107, -27,\n -27, -108, -45, 82, 78, -82, -90, 114, -93, -42, 51, -59, 18, -86, -28, 32, -119, 85, 30, -75, -27, -2, -75, 66, 108,\n -126, 102, -112, 124, 90, 102, -61, -60, 76, 86, 80, 107, 13, 85, 3, 94, 101, 97, 54, 90, 24, -67, 32, 106, -82,\n -26, 74, -77, 96, 21, -106, -57, -119, 52, 70, -28, 73, -61, -41, -4, -26, 58, -114, 99, 113, 38, -30, 122, -20, 102,\n 108, -34, -60, 116, -74, 62, 102, -2, -18, 34, 70, 125, -78, 47, 114, 103, 93, 113, 95, 74, -22, -41, -104, 100, -29,\n 115, 6, -48, 123, 94, -74, 20, 93, -116, -84, -19, 86, 127, -66, 20, -128, 30, -93, 113, 38, 103, -1, -28, 60, -28,\n -37, 89, 0, -52, 95, -42, -19, -94, -56, 65, -39, 16, 109, -24, 42, -42, 84, -120, -82, 89, 74, 4, 42, -32, 28,\n 89, 106, 77, -95, 22, 94, 62, -14, -39, 100, -113, -50, 24, -45, 107, 100, 55, 38, -28, 11, 29, 14, 102, -117, 104,\n -74, 101, -24, -67, -127, -65, -106, -58, 94, -113, 82, -72, -104, -106, -23, -119, 110, 99, 21, 69, 103, 113, -60, -55, 32,\n 73, -58, -99, -10, 95, 23, 101, -36, 125, -79, -23, 91, -98, -23, 2, 2, -44, -75, 92, 84, -116, 78, -22, 98, -52,\n -114, -59, 50, -25, 66, 113, -22, -89, 102, -72, 8, -117, -22, -88, -10, -26, 81, -74, -22, -117, -23, -46, 79, 5, -81,\n 13, -36, 41, 55, 44, 92, 69, -39, 39, -114, -18, -45, 124, -58, 13, -78, -10, 23, 82, -98, 58, 120, -31, 106, -83,\n -15, 33, 35, -126, 74, -121, -44, -111, -117, -75, 88, -112, -61, -21, -99, 46, -62, 122, 54, 46, -23, -99, -83, 76, -51,\n -49, -34, -20, 26, -63, 14, 92, -25, 104, 56, 116, -99, -21, -36, 101, 69, -7, -83, 44, -25, 91, -59, 64, -94, 37,\n -7, 104, 103, -103, -55, -57, -78, 74, 62, -79, -106, 108, -2, -105, 14, 106, -69, -98, -74, -53, 102, -84, 51, -86, -65,\n -20, 52, -23, 58, 105, -20, -20, 81, -25, -49, 114, -19, -122, -66, -53, -32, -78, -20, -61, -90, -20, -1, 90, -106, 57,\n 9, -19, 35, 52, -24, -73, 22, 109, -121, 38, 109, -83, -66, -82, -55, 67, 78, -84, -10, 78, 71, -82, 15, -39, 102,\n 83, -82, 27, 97, -22, 91, 110, 119, 62, 99, 98, -26, -109, -37, -58, 109, -104, 116, 27, 16, -98, 31, -24, -58, -103,\n -14, -19, -51, 26, 11, 76, -32, -42, 91, -98, -94, 101, -30, 118, -31, -111, 110, -68, 31, -78, -52, -92, 13, 102, -97,\n -36, 97, -40, -82, 60, -118, 11, -17, 127, 14, 107, -21, -114, -104, -76, 54, -18, 79, -106, 51, 41, 68, -29, -34, 118,\n 30, -110, 99, 60, -10, -106, 111, 35, -111, 86, -62, -2, -110, -19, -58, -62, 118, -60, -48, 31, 92, -34, -110, 57, -31,\n -2, 38, -24, -3, -51, 110, 1, 127, 20, -88, 68, 109, -114, -87, -18, -6, -50, -41, -90, 97, -32, -85, 29, -40, 6,\n -33, -76, -83, 13, -16, 9, 7, -25, -31, -10, -36, -12, -71, 111, -4, 22, -22, 118, 114, -16, -14, 58, -16, 110, 105,\n 25, 53, 11, 65, 23, -9, -25, -60, -2, -43, 19, -57, 44, -52, 69, -17, -110, -90, -38, 68, -42, 109, -90, 117, 92,\n -101, -14, -15, 17, -9, 22, -71, -76, -15, -59, 59, 95, 105, 26, 91, 37, 71, -2, 86, 59, 21, -14, 35, 68, -68,\n -43, -106, -16, 33, 15, 110, 127, -93, 110, 20, -9, -68, -77, -78, 97, -72, -35, -17, 68, 110, -17, -93, 49, -24, 41,\n -9, 94, 60, -77, -14, 43, 23, 100, 12, 70, -42, 28, 102, -19, 84, -67, -21, 48, -1, -105, -9, 61, -21, -31, 45,\n -13, 49, -92, 109, -2, -98, 31, 59, -26, 69, 54, 111, -13, 127, -122, -16, -58, 34, 115, 12, 103, 114, 43, -58, -63,\n 88, -68, 115, 60, -65, -21, 25, -113, -18, 78, 37, 36, 63, -1, 115, 26, -4, 91, 23, 82, -17, 96, -69, -26, -83,\n 62, 116, 97, 102, 106, 126, -69, 54, 17, 55, 87, 118, -108, -26, 71, -105, -14, 40, -3, -40, 60, -41, 115, 71, -79,\n 116, 57, -21, 50, 63, 13, -22, -15, -18, -12, -28, 30, 71, 76, 47, 111, 81, 7, 28, -38, 5, 96, -11, 61, -11,\n -23, 30, 79, -106, 6, -16, 76, 119, 52, -81, 122, -11, -6, 109, 81, -30, 60, 52, 74, 87, -68, 112, -114, -36, 46,\n -105, -15, 59, 12, -94, 96, 87, -29, 90, -28, -50, 55, 69, 110, 87, 79, -30, -1, -28, -103, 104, -37, 109, 6, -105,\n 67, -17, -2, 105, 94, -9, -56, 98, -87, -62, 35, 38, -67, 100, 26, -17, 102, -30, 87, 106, 47, -10, -48, -107, -93,\n -72, -50, 118, 45, -66, 98, 42, -110, -89, 11, -82, 106, 70, 55, -15, 66, 14, -44, 52, -116, 108, -120, -2, 11, 104,\n 116, 39, -15, -66, 5, 119, -54, -48, -11, 112, 110, -60, 85, 103, 94, -34, -18, -40, 82, 74, 118, -13, 117, -27, -75,\n 43, 104, 48, 95, -32, 126, -81, 112, 66, -89, 50, -126, -65, 106, 95, 122, -8, -33, -3, -32, -38, -122, -13, 58, 23,\n -8, 56, 126, 104, -58, 110, -8, 47, -98, -26, 123, -65, -52, 106, -124, -25, -128, -57, 90, -105, 12, 90, 109, -30, -8,\n 16, -90, 39, -119, 87, 92, 95, 15, 98, 120, 31, -32, -50, -43, 113, 120, -65, -11, -44, 53, 101, 72, -12, -8, -113,\n 111, 102, 8, 63, 65, -25, 6, -38, -127, -66, 100, -29, 49, 62, -25, 85, 101, -100, -49, 121, -78, -36, 121, -97, 61,\n 35, 112, -13, -54, 64, 87, -20, 60, 61, -10, -94, 50, 122, -66, 44, 113, 68, 43, -60, -107, 79, 119, 45, 105, -7,\n -55, -70, 122, -113, 105, 118, 74, -106, -6, -93, 111, 122, -98, 63, -61, 125, -117, 17, 80, 55, 123, -101, -105, -61, 86,\n -97, 48, -80, -49, 105, -79, 95, -31, 119, -11, 116, -30, 21, -7, -96, -9, -20, -106, 26, -7, -74, -105, -74, -73, 39,\n 48, 39, 39, 122, 103, -74, -25, 56, 92, 123, -74, -49, -5, 64, 68, 122, 64, -89, -9, -104, -73, -8, -124, -49, 63,\n -63, -33, 106, -62, 47, -4, -67, -9, 84, -82, -41, 68, -125, -97, 50, -69, -113, -6, -57, -73, -47, 55, -105, 124, -22,\n 52, -37, -2, 27, 34, 119, -17, 107, 124, -45, -50, -4, -101, -116, 124, -105, -60, -13, -77, -81, 71, -48, 15, 125, -52,\n 39, -3, -89, -82, -38, -98, 47, 123, -11, -93, 121, 45, 20, 125, 3, 119, -3, 89, -36, -4, -116, 7, -51, 1, 68,\n 90, -120, -76, -3, 11, -57, -3, -68, -58, -66, -54, 70, 124, 68, 22, -91, 126, 38, 76, -32, 95, 116, -31, -81, 45,\n -35, 71, 94, -71, -105, -3, 34, -59, -51, -27, 55, -11, -26, 23, -45, -92, -124, 116, -34, 23, -89, -23, -84, -2, -22,\n -67, 126, -25, 34, -2, -33, -101, 124, 8, -27, -2, -18, 31, 50, 73, 127, 118, -16, -65, 37, 67, 78, -17, 72, 55,\n -1, -13, -105, -79, 111, 75, -3, 35, 95, 127, -100, 18, 127, -125, 122, 127, 65, 19, -47, -128, -53, -31, -54, 7, -120,\n 0, 2, 7, 18, 44, 104, 112, -96, 0, 0, 10, 23, 50, 108, -24, -16, 33, -60, -120, 18, 39, 82, -84, 104, -15,\n 34, -58, -116, 26, 55, 114, -20, -24, -15, 35, -56, -123, 2, 4, -114, 60, 104, -14, 100, -128, -110, 7, 71, 38, 12,\n -23, -14, 37, -52, -104, 27, 85, -94, 60, -39, 82, 38, -50, -100, 58, 119, -30, -92, 89, -45, -96, -128, -101, 24, 125,\n 6, -3, 105, 20, 40, -49, -92, 74, -105, 50, 109, -22, 84, 105, 73, -97, 71, -127, -94, 12, -6, -12, 42, -42, -105,\n 82, -89, 10, -51, -22, -11, 43, -2, 88, -122, 91, 127, 90, -19, 72, -77, -24, -44, -93, 93, -61, -78, 109, -21, -10,\n -19, 85, -107, 99, -45, -90, -84, 10, -9, 46, -40, -71, 85, -41, -30, -19, -21, 87, -93, -34, -96, -126, 7, -125, -108,\n 11, 64, 47, 93, -110, 127, 23, 51, 110, -36, 88, 110, -30, -107, 104, 11, -14, 117, 108, 57, 36, 98, -54, -107, 47,\n 115, -10, 59, -103, -14, -50, -88, -103, 19, 111, -18, 108, -6, 52, 106, -114, 103, 35, 35, 61, 44, 88, 113, -22, -40,\n 67, 7, -45, -82, 93, 90, 54, 110, -84, -97, -53, -22, 20, 124, -72, 46, -21, -107, 95, 121, -25, 46, 110, -4, 35,\n -28, -32, -96, -59, -34, 62, -18, -4, 57, 116, -73, 69, -101, 107, 117, 61, 90, 109, 88, -33, -47, -73, 115, -1, -115,\n 80, -7, -14, -18, -30, -57, -109, 127, 74, 61, -26, -21, -49, -84, -49, -13, -116, 90, -2, 125, -22, -43, -32, 9, -78,\n -121, 111, -1, 62, -2, -20, 9, -81, -37, -51, -98, 50, 63, -128, -98, 81, 54, 31, 125, 1, 26, 120, 32, -126, -70,\n -127, 87, 95, 123, 12, 38, -8, 32, 122, -12, 17, 24, 30, -124, 21, 90, 120, -31, 80, 11, 74, -73, 31, -122, 29,\n -54, 68, -44, -124, 5, 122, 56, 34, -119, 24, -14, -41, 90, 91, -124, -107, -72, -30, 76, 3, -122, -8, 31, -117, 49,\n -54, 120, -33, -119, 20, -78, 53, -35, -116, 57, 70, 4, -2, 98, -120, 14, -22, -8, 35, -112, -114, -115, 53, -105, 118,\n -46, -111, 68, 91, -112, 51, -14, 56, -95, -113, 73, 58, -7, 100, -118, 72, -99, 85, 36, 92, 91, 53, 9, 37, -115,\n 18, 46, -88, 34, -106, 93, 122, -23, 25, 90, 55, -79, 116, 37, 83, 86, 126, 57, -94, 124, 116, 33, 121, 38, -101,\n 109, -34, 69, -100, 107, -116, -103, -23, -90, -123, 105, -90, 69, 38, -99, 121, -22, 25, -38, 98, 86, -30, -71, -25, 113,\n 75, -34, 9, 40, -95, -123, -42, -87, -103, -95, 7, 10, -54, 85, -94, -115, 58, -118, -33, 89, -113, 2, -72, 40, 118,\n -110, 90, 122, 41, 116, -122, 97, 106, 31, -91, -110, -123, -71, 41, -88, -95, 50, 39, -26, -97, -24, 53, -28, -98, -88,\n -28, 117, -118, 34, -107, -87, -70, -22, -88, 104, 44, 25, -39, 82, 122, -81, -114, 87, 91, -91, -74, -22, 42, -23, -100,\n -2, -91, 52, 38, -100, -69, 58, 71, 106, -91, -91, 10, 123, -84, -116, 82, 25, 91, 24, -118, -56, 102, -86, 16, 75,\n -40, 5, -21, 44, -75, 94, 42, 123, 35, 125, -53, 86, 91, 37, -83, -64, -111, -43, -22, -74, -31, 62, 25, -87, -81,\n -80, -119, 27, 104, -73, -4, 77, 123, 46, -69, 57, 106, 58, 28, -71, -19, 26, -105, 110, -82, -14, -38, -85, 35, -72,\n 113, 53, 123, 47, 110, -55, -43, -92, 45, -65, 1, -17, -87, -34, -111, 2, -9, -2, -5, 29, 89, 6, 43, -84, -85,\n -97, 11, -53, -26, -81, 77, 14, 75, 28, -22, -112, 19, -57, 22, 109, -62, 22, 107, 12, -85, 73, 0, 111, -36, 84,\n 84, -33, 126, 60, 50, -95, 21, -109, 124, 89, -56, 54, 121, 124, 50, -53, -121, 10, -41, -14, 95, 86, 65, 108, 35,\n -52, 53, -113, -37, -80, -51, 111, 30, -119, 112, -57, 57, -5, 124, -77, 104, 63, -65, -7, 26, -49, 61, 11, 125, -12,\n -113, -21, 34, -99, -105, -117, -3, 45, -3, 52, -44, -37, -38, -23, 116, -44, 85, 91, -3, 106, -104, 70, -83, 124, 53,\n -41, 93, 39, 61, -104, -42, 94, -117, 61, -74, -95, -109, -115, -74, 53, -39, 105, -85, -99, -96, -39, 25, -81, -3, 54,\n -36, 73, -18, -25, 109, -60, 113, -37, 125, 119, -78, -45, -3, -117, 55, -33, 125, -93, 73, 55, 85, 104, -5, 61, 56,\n -31, -90, 17, -35, -79, -32, -123, 43, -66, -72, -100, -121, 35, -60, 56, -28, -111, -33, 90, -76, -71, -110, 91, 126, 121,\n 110, -47, 18, 53, -45, -102, -104, 123, -2, -71, 110, 41, 87, 126, -111, -52, -7, -126, 126, 58, -22, -24, 77, 71, 52,\n -125, -76, 38, -98, 58, -20, -96, 59, -2, -85, -46, -79, -37, 126, 59, 84, -23, 117, -114, 59, -17, -67, -73, 71, -69,\n 92, -81, -5, 62, 124, -22, -91, 3, -1, 43, -15, -55, 43, 111, 86, -23, -34, -115, -71, 60, -12, -47, 59, 83, -124,\n -85, -73, -75, 75, 127, 61, -15, -70, 3, 110, 61, -10, -35, -13, -98, 30, 66, 92, 122, 63, -66, -14, -69, -109, 127,\n 126, -10, -74, -95, -65, 126, -7, -36, -77, -1, 62, -4, -15, -53, 63, 63, -3, -11, -37, 127, 63, -2, -7, -21, -65,\n 63, -1, -3, -81, 24, 16, 0, 0, 59\n };\n}", "public abstract int getPopulation(int west, int south, int east, int north);", "public MapCalculator(ZanMinimap minimap) {\n \t\tmap = minimap.map;\n \t}", "@Override\n public void onMapReady(GoogleMap map) {\n\n map.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n map.getUiSettings().setZoomControlsEnabled(true);\n map.setBuildingsEnabled(true);\n\n map.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n\n i.putExtra(\"nom_usuario\",marker.getTitle().toString());\n i.putExtra(\"origen2\",0);\n startActivity(i);\n }\n });\n\n\n\n for (int i =0; i<latitude.size(); i++){\n\n for (int j =0; j<longitude.size(); j++){\n\n for (int k =0; k<emails.size(); k++){\n\n for (int l =0;l<nombres.size(); l++){\n\n lat = latitude.get(i);\n lon = longitude.get(i);\n email=emails.get(i);\n // controller.obtener_imagen_todos(bit,email);\n nombre=nombres.get(i);\n // bm=bit.get(i);\n // escala =controller.obtener_imagen_con_email(email).createScaledBitmap(controller.obtener_imagen_con_email(email), 75, 75, true);\n\n marca= map.addMarker(new MarkerOptions()\n .position(new LatLng(lat, lon))\n //.icon(BitmapDescriptorFactory.fromBitmap(escala))\n .title(email)\n .snippet(nombre));\n map.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng latLng) {\n //showStreetView(new LatLng(controller.obtener_latitud_con_email(marca.getTitle().toString()),controller.obtener_longitud_con_email(marca.getTitle().toString())));\n }\n });\n\n\n map.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n @Override\n public View getInfoWindow(Marker marker) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n\n View v = getLayoutInflater().inflate(R.layout.map_info, null);\n TextView tv =(TextView)v.findViewById(R.id.map_nombre);\n tv.setText(\"Nombre: \"+ marker.getSnippet());\n TextView tv2=(TextView)v.findViewById(R.id.map_email);\n tv2.setText(\"Email: \"+marker.getTitle());\n CircleImageView civ=(CircleImageView)v.findViewById(R.id.imagen_map);\n civ.setImageBitmap(controller.obtener_imagen_con_email(marker.getTitle()));\n\n return v;\n }\n });\n\n\n }\n }\n\n }\n }\n\n map.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n //if (marker.getTitle().equals(marca.getTitle().toString())){\n\n lat2=controller.obtener_latitud_con_email(marker.getTitle().toString());\n lon2=controller.obtener_longitud_con_email(marker.getTitle().toString());\n showStreetView(new LatLng(lat2,lon2));\n //Toast.makeText(MapsActivity.this, \"latn: \"+lat2, Toast.LENGTH_SHORT).show();\n // panoram.setPosition(new LatLng(lat2,lon2));\n //onStreetViewPanoramaReady(panoram);\n //}\n\n return false;\n }\n });\n\n }", "@Override\n\tpublic Map getPointsForHotArea(String terminalId) {\n\t\tMap map = new HashMap();\n\t\tString lngs = \"\";\n\t\tString lats = \"\";\n\t\ttry {\n\t\t\tList<PositionData> info_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' order by date desc limit 2000\");\n\t\t\tfor(int i=0;i<info_list.size();i++){\n\t\t\t\tif(info_list.get(i).getInfo().contains(\"GPS状态:GPS不定位;\")){\n\t\t\t\t\tinfo_list.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tList<PositionData> position_list = new ArrayList<PositionData>();\n\t\t\tfor(int i=0;i<(info_list.size()>2000?2000:info_list.size());i++){\n\t\t\t\tposition_list.add(info_list.get(i));\n\t\t\t}\n\t\t\tfor(int i=0;i<position_list.size();i++){\n\t\t\t\tString point_latitude = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\tpoint_latitude = point_latitude.substring(0,point_latitude.indexOf(\";\"));\n\t\t\t\tpoint_latitude = point_latitude.split(\":\")[1];\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart1 = point_latitude.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart1 = \"0.\" + tempStrPart1;\n\t\t\t\tdouble tempD1 = Double.parseDouble(tempStrPart1)/60*100;\n\t\t\t\tpoint_latitude = Integer.parseInt(point_latitude.split(\"\\\\.\")[0]) + tempD1 + \"\";\n\t\t\t\tlats += point_latitude + \",\";\n\t\t\t\t\n\t\t\t\tString point_longitute = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\tpoint_longitute = point_longitute.substring(0,point_longitute.indexOf(\";\"));\n\t\t\t\tpoint_longitute = point_longitute.split(\":\")[1];\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart2 = point_longitute.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart2 = \"0.\" + tempStrPart2;\n\t\t\t\tdouble tempD2 = Double.parseDouble(tempStrPart2)/60*100;\n\t\t\t\tpoint_longitute = Integer.parseInt(point_longitute.split(\"\\\\.\")[0]) + tempD2 + \"\";\n\t\t\t\tlngs += point_longitute + \",\";\n\t\t\t}\n\t\t\tmap.put(\"lngs\",lngs.subSequence(0, lngs.lastIndexOf(\",\")));\n\t\t\tmap.put(\"lats\",lats.subSequence(0, lats.lastIndexOf(\",\")));\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn map;\n\t}", "private static void paixu(ArrayList<Integer> p1, Map<Integer, String> map) {\n\t\tCollections.sort(p1);\n\t\tfor (Integer integer : p1) {\n\t\t\tint key = integer;\n\t\t\tString card = map.get(key);\n\t\t\tSystem.out.print(card + \" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t\t//map.\n\t}", "public void heightMap(World world, ActivePlayer player, int radius, int i, int k) {\n \t\tlong start = System.currentTimeMillis();\n \t\tint sStart = MiniMapWidget.scale;\n \t\t\n \t\t/*\n \t\t * Generate the image and apply shading \n \t\t */\n \t\tint tx, tz;\n \t\tint y, id, dy, diff;\n \t\t//Map<Integer, Integer[]> pairs = new HashMap<Integer, Integer[]>();\n \t\tint py = player.getLocation().getBlockY();\n \t\t\n \t\tBufferedImage image = null;\n \t\tif(MiniMapWidget.scale <= 0)\n \t\timage = new BufferedImage(radius*2*16, radius*2*16, BufferedImage.TYPE_INT_RGB);\n \t\telse\n \t\timage = new BufferedImage(radius*2, radius*2, BufferedImage.TYPE_INT_RGB);\n \t\tGraphics gr = image.getGraphics();\n \t\tgr.setColor(transparent);\n \t\t\n \t\tfor (int x = -radius; x < radius; x++)\n \t\t\tfor (int z = -radius; z < radius; z++) {\n \t\t\t\t\n \t\t\t\tif(System.currentTimeMillis()-start > 1000+MiniMapWidget.scale*4 || MiniMapWidget.scale != sStart) {\n \t\t\t\t\tgr.dispose();\n \t\t\t\t\t// TODO Add pathing back\n \t\t\t\t\t//writePath(pairs);\n \t\t\t\t\tgr = this.image.getGraphics();\n \t\t\t\t\tgr.drawImage(image, 0, 0, 256, 256, null);\n \t\t\t\t\tgr.dispose();\n \t\t\t\t\t// Can we help stop the memory leak here?\n \t\t\t\t\timage.flush();\n \t\t\t\t\timage = null;\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\ttx = (int) (i + x);\n \t\t\t\ttz = (int) (k + z);\n \t\t\t\t\n \t\t\t\t//MiniMapLocation test = inList(tx, tz);\n \t\t\t\t//if(test != null) {\n \t\t\t\t//int index = test.hashCode();\n \t\t\t\t//Integer[] pair = {(x+MiniMap.radius), (z+MiniMap.radius)};\n \t\t\t\t//pairs.put(index, pair);\n \t\t\t\t//}\n \t\t\t\t\n \t\t\t\ty = getHighestBlockY(world, tx, tz);\n \t\t\t\tid = world.getBlockTypeIdAt(tx, y, tz);\n \t\t\t\t\n \t\t\t\tif(map.isTransparent(id)) {\n \t\t\t\t\tint ly = getHighestNonTransparentBlockY(world, tx, tz);\n \t\t\t\t\tfor(int m=ly; m<y; m++) {\n \t\t\t\t\tint nd = world.getBlockTypeIdAt(tx, m, tz);\n \t\t\t\t\tBufferedImage tile = map.getTexture(nd);\n \t\t\t\t\tgr.drawImage(tile, (x+radius)*16, (z+radius)*16, null);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tdy = ((y-py)*2 + (y-64));\n \t\t\t\tdiff = getRelativeShading(world, tx, y, tz)*15;\n \t\t\t\t\n \t\t\t\tdy = dy+diff+world.getBlockAt(tx, y+1, tz).getLightLevel()*5;\n \t\t\t\t\n \t\t\t\tif(MiniMapWidget.scale <= 0) {\n \t\t\t\t\n \t\t\t\tBufferedImage tile = map.getTexture(id);\n \t\t\t\t\n \t\t\t\tfor(int m=0; m<16; m++)\n \t\t\t\t\tfor(int n=0; n<16; n++) {\n \t\t\t\t\t\tColor color = new Color(tile.getRGB(m, n));\n \t\t\t\t\t\tint r = color.getRed() + dy;\n \t\t\t\t\t\tif (r > 255)\n \t\t\t\t\t\tr = 255;\n \t\t\t\t\t\tif (r < 0)\n \t\t\t\t\t\tr = 0;\n \t\t\t\t\t\tint g = (color.getGreen() + dy);\n \t\t\t\t\t\tif (g > 255)\n \t\t\t\t\t\tg = 255;\n \t\t\t\t\t\tif (g < 0)\n \t\t\t\t\t\tg = 0;\n \t\t\t\t\t\tint b = color.getBlue() + dy;\n \t\t\t\t\t\tif (b > 255)\n \t\t\t\t\t\tb = 255;\n \t\t\t\t\t\tif (b < 0)\n \t\t\t\t\t\tb = 0;\n \t\t\t\t\t\tcolor = new Color(r, g, b);\n \t\t\t\t\t\ttile.setRGB(m, n, color.getRGB());\n \t\t\t\t\t\tcolor = null;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tgr.drawImage(tile, (x+radius)*16, (z+radius)*16, null);\n \t\t\t\t} else {\n \t\t\t\t\tColor color = map.getColor(id);\n \t\t\t\t\tint r = color.getRed() + dy;\n \t\t\t\t\tif (r > 255)\n \t\t\t\t\tr = 255;\n \t\t\t\t\tif (r < 0)\n \t\t\t\t\tr = 0;\n \t\t\t\t\tint g = (color.getGreen() + dy);\n \t\t\t\t\tif (g > 255)\n \t\t\t\t\tg = 255;\n \t\t\t\t\tif (g < 0)\n \t\t\t\t\tg = 0;\n \t\t\t\t\tint b = color.getBlue() + dy;\n \t\t\t\t\tif (b > 255)\n \t\t\t\t\tb = 255;\n \t\t\t\t\tif (b < 0)\n \t\t\t\t\tb = 0;\n \t\t\t\t\tcolor = new Color(r, g, b);\n \t\t\t\t\timage.setRGB(x+image.getWidth()/2, z+image.getHeight()/2, color.getRGB());\n \t\t\t\t\tcolor = null;\n \t\t\t\t}\n \t\t\t}\n \t\tgr.dispose();\n \t\ttry {\n \t\t\tFile file = new File(\"test.png\");\n \t\t\tImageIO.write(image, \"png\", file);\n \t\t} catch (Exception e) {\n \t\t\t\n \t\t}\n \t\t// TODO Add pathing back\n \t\t//writePath(pairs);\n \t\tgr = this.image.getGraphics();\n \t\tgr.drawImage(image, 0, 0, 256, 256, null);\n \t\tgr.dispose();\n \t\t// Can we help stop the memory leak here?\n \t\timage.flush();\n \t\timage = null;\n \t}", "public void zoomToBounds(double ulLon, double ulLat, double lrLon, double lrLat)\n/* 116: */ {\n/* 117:182 */ int x_min = 2147483647;\n/* 118:183 */ int y_min = 2147483647;\n/* 119:184 */ int x_max = -2147483648;\n/* 120:185 */ int y_max = -2147483648;\n/* 121:186 */ int mapZoomMax = 20;\n/* 122: */\n/* 123:188 */ x_max = Math.max(x_max, MercatorProj.LonToX(lrLon, mapZoomMax));\n/* 124:189 */ x_max = Math.max(x_max, MercatorProj.LonToX(ulLon, mapZoomMax));\n/* 125:190 */ y_max = Math.max(y_max, MercatorProj.LatToY(ulLat, mapZoomMax));\n/* 126:191 */ y_max = Math.max(y_max, MercatorProj.LatToY(lrLat, mapZoomMax));\n/* 127:192 */ x_min = Math.min(x_min, MercatorProj.LonToX(ulLon, mapZoomMax));\n/* 128:193 */ x_min = Math.min(x_min, MercatorProj.LonToX(lrLon, mapZoomMax));\n/* 129:194 */ y_min = Math.min(y_min, MercatorProj.LatToY(ulLat, mapZoomMax));\n/* 130:195 */ y_min = Math.min(y_min, MercatorProj.LatToY(lrLat, mapZoomMax));\n/* 131: */\n/* 132: */\n/* 133: */\n/* 134:199 */ int height = Math.max(0, this.mapPanel.getHeight());\n/* 135:200 */ int width = Math.max(0, this.mapPanel.getWidth());\n/* 136:201 */ int newZoom = mapZoomMax;\n/* 137:202 */ int x = x_max - x_min;\n/* 138:203 */ int y = y_max - y_min;\n/* 139:204 */ while ((x > width) || (y > height))\n/* 140: */ {\n/* 141:205 */ newZoom--;\n/* 142:206 */ x >>= 1;\n/* 143:207 */ y >>= 1;\n/* 144: */ }\n/* 145:209 */ x = x_min + (x_max - x_min) / 2;\n/* 146:210 */ y = y_min + (y_max - y_min) / 2;\n/* 147:211 */ int z = 1 << mapZoomMax - newZoom;\n/* 148:212 */ x /= z;\n/* 149:213 */ y /= z;\n/* 150:214 */ this.mapPanel.setZoom(new Point(x, y), newZoom);\n/* 151: */ }", "public static Map readMap(MapName s)\n {\n Map map = new Map(1);\n try\n {\n MapReader run = new MapReader();\n System.out.println(s.toString());\n Scanner mapReader = new Scanner(run.getClass().getResourceAsStream(\"/\"+s.toString()+\".jwmap\"));\n ArrayList<String[]> numberLines = new ArrayList<String[]>();\n int dim = mapReader.nextInt();\n mapReader.nextLine();\n for(int gh = 0 ; gh < dim; gh++)\n {\n String[] nums = mapReader.nextLine().split(\" \");\n numberLines.add(nums);\n }\n int[][] newMap = new int[numberLines.size()][numberLines.size()];\n \n for(int i = 0; i < numberLines.size();i++)\n {\n for(int h = 0; h < numberLines.get(i).length;h++)\n {\n newMap[i][h] = Integer.parseInt(numberLines.get(i)[h]);\n }\n }\n map.loadMap(newMap);\n \n TreeMap<Integer,ArrayList<Integer>> spawn1 = map.getSpawn1();\n TreeMap<Integer,ArrayList<Integer>> spawn2 = map.getSpawn2();\n \n String line = \"\";\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn1\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn1.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn1.get(x).add(in.nextInt());\n }\n }\n \n if(!line.equals(\"\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn2\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n }\n catch (Exception ex)\n {\n JOptionPane.showMessageDialog(null, \"Corrupted file!\");\n }\n return map;\n }", "public HashMap<String, NeonValue> getMap();", "public Map<String, Object> getMapRaster(Map<String, Double> params) {\n Map<String, Object> results = new HashMap<>();\n double lrlon = params.get(\"lrlon\");\n double ullon = params.get(\"ullon\");\n double w = params.get(\"w\");\n double h = params.get(\"h\");\n double ullat = params.get(\"ullat\");\n double lrlat = params.get(\"lrlat\");\n int depth = computeDepth(lrlon, ullon, w);\n boolean query_success = true;\n if (lrlat >= ullat || lrlon <= ullon || lrlat >= ROOT_ULLAT || lrlon <= ROOT_ULLON || ullat <= ROOT_LRLAT ||ullon >= ROOT_LRLON) {\n query_success = false;\n }\n int numImg = (int) Math.pow(2, depth);\n double wPerImg = W / Math.pow(2.0, depth);\n double hPerImg = H / Math.pow(2.0, depth);\n int xSt = (int) Math.floor(Math.abs(ullon - ROOT_ULLON) / wPerImg);\n int ySt = (int) Math.floor(Math.abs(ullat - ROOT_ULLAT) / hPerImg);\n int xEn = (int) Math.floor(Math.abs(lrlon - ROOT_ULLON) / wPerImg);\n int yEn = (int) Math.floor(Math.abs(lrlat - ROOT_ULLAT) / hPerImg);\n String[][] render_grid = new String[yEn - ySt + 1][xEn - xSt + 1];\n double raster_ul_lon = ROOT_ULLON + xSt * wPerImg;\n double raster_ul_lat = ROOT_ULLAT - ySt * hPerImg;\n double raster_lr_lon = ROOT_ULLON + (xEn + 1) * wPerImg;\n double raster_lr_lat = ROOT_ULLAT - (yEn + 1) * hPerImg;\n if (ullon < ROOT_ULLON) {\n xSt = 0;\n raster_ul_lon = ROOT_ULLON;\n }\n if (ullat > ROOT_ULLAT) {\n ySt = 0;\n raster_ul_lat = ROOT_ULLAT;\n }\n if (lrlon > ROOT_LRLON) {\n xEn = numImg - 1;\n raster_lr_lon = ROOT_LRLON;\n }\n if (lrlat < ROOT_LRLAT) {\n yEn = numImg - 1;\n raster_lr_lat = ROOT_LRLAT;\n }\n for (int i = 0; i < xEn - xSt + 1; ++i) {\n for (int j = 0; j < yEn - ySt + 1; ++j) {\n int x = i + xSt;\n int y = j + ySt;\n render_grid[j][i] = \"d\" + depth + \"_x\" + x + \"_y\" + y + \".png\";\n }\n }\n results.put(\"render_grid\", render_grid);\n results.put(\"raster_ul_lon\", raster_ul_lon);\n results.put(\"raster_ul_lat\", raster_ul_lat);\n results.put(\"raster_lr_lon\", raster_lr_lon);\n results.put(\"raster_lr_lat\", raster_lr_lat);\n results.put(\"depth\", depth);\n results.put(\"query_success\", query_success);\n return results;\n }", "private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }", "private void generateMap() {\n\n\t\t//Used to ensure unique locations of each Gameboard element\n\t\tboolean[][] spaceUsed = new boolean[12][12];\n\n\t\t//A running total of fences generated\n\t\tint fencesGenerated = 0;\n\n\t\t//A running total of Mhos generated\n\t\tint mhosGenerated = 0;\n\n\t\t//Fill the board with spaces and spikes on the edge\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\tif (i == 0 || i == 11 || j ==0 || j == 11) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t\tspaceUsed[i][j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generate 20 spikes in unique locations\n\t\twhile (fencesGenerated < 20) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Fence(x, y, board);\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\tfencesGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate 12 mhos in unique locations\n\t\twhile (mhosGenerated < 12) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Mho(x, y, board);\n\n\t\t\t\tmhoLocations.add(x);\n\t\t\t\tmhoLocations.add(y);\n\n\t\t\t\tspaceUsed[x][y] = true;\n\n\t\t\t\tmhosGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate a player in a unique location\n\t\twhile (true) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Player(x, y, board);\n\t\t\t\tplayerLocation[0] = x;\n\t\t\t\tplayerLocation[1] = y;\n\t\t\t\tnewPlayerLocation[0] = x;\n\t\t\t\tnewPlayerLocation[1] = y;\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public Dimension getMapSize() {\n \t\treturn new Dimension(15, 13);\n \t}", "public void drawMap() {\r\n\t\tfor (int x = 0; x < map.dimensionsx; x++) {\r\n\t\t\tfor (int y = 0; y < map.dimensionsy; y++) {\r\n\t\t\t\tRectangle rect = new Rectangle(x * scalingFactor, y * scalingFactor, scalingFactor, scalingFactor);\r\n\t\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\t\tif (islandMap[x][y]) {\r\n\t\t\t\t\tImage isl = new Image(\"island.jpg\", 50, 50, true, true);\r\n\t\t\t\t\tislandIV = new ImageView(isl);\r\n\t\t\t\t\tislandIV.setX(x * scalingFactor);\r\n\t\t\t\t\tislandIV.setY(y * scalingFactor);\r\n\t\t\t\t\troot.getChildren().add(islandIV);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trect.setFill(Color.PALETURQUOISE);\r\n\t\t\t\t\troot.getChildren().add(rect);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "private void createMapOfSecondType(){\n\n this.typeOfMap=2;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = createSquare( ColorOfFigure_Square.GREEN, true,0,3);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.YELLOW, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.YELLOW, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, false,2,3);\n\n\n }", "private void buildMapArea(MapBuilderBase mapBuilder) {\n\t\tmap = new Tile[width][height];\n\n\t\tthis.name = mapBuilder.buildMap(map);\n\t\tupdateValues();\n\n\t\t// TODO: pathfinding precalculations?\n\n\t\t// Log.debug(\"Calculating path maps...\");\n\t\t// pointGraph = new PointGraph();\n\t\t// for (int x = 0; x < width; x++) {\n\t\t// for (int y = 0; y < height; y++) {\n\t\t// if (getTileAt(x, y).isPassable)\n\t\t// pointGraph.addVertex(new Vertex(new Point(x, y)));\n\t\t// }\n\t\t// }\n\t\t// pointGraph.calculateEdges();\n\t\t// Log.debug(\"done\");\n\t}", "private LinkedHashMap<String, Type> scalarMappingODU() {\r\n\t\tLinkedHashMap<String, Type> scalarMapping = new LinkedHashMap<String, Type>();\r\n\t\tscalarMapping.put(DaoConstants.MAP_ODUID, StandardBasicTypes.LONG); // 0\r\n\t\tscalarMapping.put(DaoConstants.MAP_SITE_GROUP,\r\n\t\t\t\tStandardBasicTypes.STRING); // 1\r\n\t\tscalarMapping.put(DaoConstants.MAP_PARENT_CHILD,\r\n\t\t\t\tStandardBasicTypes.STRING); // 2\r\n\t\tscalarMapping.put(DaoConstants.MAP_NAME, StandardBasicTypes.STRING); // 3\r\n\t\tscalarMapping.put(DaoConstants.MAP_CENTRAL_ADDRESS,\r\n\t\t\t\tStandardBasicTypes.STRING); // 4\r\n\t\tscalarMapping.put(DaoConstants.MAP_PARENT_ID, StandardBasicTypes.LONG); // 5\r\n\t\tscalarMapping.put(DaoConstants.MAP_TYPE, StandardBasicTypes.STRING); // 6\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMAXLATITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 7\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMAXLONGITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 8\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMINLATITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 9\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMINLONGITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 10\r\n\t\tscalarMapping.put(DaoConstants.MAP_ODU_SVG_PATH,\r\n\t\t\t\tStandardBasicTypes.STRING); // 11\r\n\t\tscalarMapping.put(DaoConstants.MAP_SEVERITY, StandardBasicTypes.STRING); // 12\r\n\t\tscalarMapping.put(DaoConstants.MAP_SLINKADD, StandardBasicTypes.STRING); // 13\r\n\t\tscalarMapping.put(DaoConstants.MAP_ALARM_CODE,\r\n\t\t\t\tStandardBasicTypes.STRING); // 14\r\n\t\tscalarMapping.put(DaoConstants.MAP_C2, StandardBasicTypes.DOUBLE); // 15\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Outdoor\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Temp\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_1, StandardBasicTypes.LONG); // 16\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs_1\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_2, StandardBasicTypes.LONG); // 17\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs_2\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_3, StandardBasicTypes.LONG); // 18\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs_3\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_4, StandardBasicTypes.LONG); // 19\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// PAC\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_5, StandardBasicTypes.LONG); // 20\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// EngineWorkingHrs\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_6, StandardBasicTypes.LONG); // 21\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// NOT_IN_USE_EnginOilChange\r\n\t\tscalarMapping.put(DaoConstants.MAP_G44, StandardBasicTypes.STRING); // 22\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// GenerationPower\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGID, StandardBasicTypes.LONG); // 23\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGNAME, StandardBasicTypes.STRING); // 24\r\n\t\tscalarMapping.put(DaoConstants.MAP_VRFHRS1, StandardBasicTypes.DOUBLE); // 25\r\n\t\tscalarMapping.put(DaoConstants.MAP_VRFHRS2, StandardBasicTypes.DOUBLE); // 26\r\n\t\tscalarMapping.put(DaoConstants.MAP_VRFHRS3, StandardBasicTypes.DOUBLE); // 27\r\n\t\tscalarMapping.put(DaoConstants.MAP_PACHRS, StandardBasicTypes.DOUBLE); // 28\r\n\t\tscalarMapping.put(DaoConstants.MAP_GHPHRS, StandardBasicTypes.DOUBLE); // 29\r\n\t\tscalarMapping.put(DaoConstants.MAP_GHPOIL, StandardBasicTypes.DOUBLE); // 30\r\n\t\tscalarMapping.put(DaoConstants.MAP_SITEPATH, StandardBasicTypes.STRING); // 31\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPANYNAME,\r\n\t\t\t\tStandardBasicTypes.STRING); // 32\r\n\t\tscalarMapping.put(DaoConstants.MAP_CASTATUS, StandardBasicTypes.STRING); // 33\r\n\t\tscalarMapping.put(DaoConstants.MAP_V23, StandardBasicTypes.STRING); // 34\r\n\t\t// Demand\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPRESSOR1,\r\n\t\t\t\tStandardBasicTypes.BOOLEAN); // 35\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPRESSOR2,\r\n\t\t\t\tStandardBasicTypes.BOOLEAN); // 36\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPRESSOR3,\r\n\t\t\t\tStandardBasicTypes.BOOLEAN); // 37\r\n\t\t//add by shanf\r\n\t\tscalarMapping.put(DaoConstants.DEVICE_MODEL,\r\n\t\t\t\tStandardBasicTypes.STRING); // 38\r\n\r\n\t\treturn scalarMapping;\r\n\t}", "public void initializeMaps() {\n\t\t//can use any map\n\n\t\t//left map\n\t int x = 0, y = 0;\n\t int Lvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyLeft.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tLvalue = Integer.parseInt(str);\n\t \t\t\tleftMap[x][y] = Lvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //right map\n\t x = 0;\n\t y = 0;\n\t int Rvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \t//change to map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyRight.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tRvalue = Integer.parseInt(str);\n\t \t\t\trightMap[x][y] = Rvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //print each map for testing\n\t for(int i = 0; i < leftMap.length; i++ )\n\t \tfor(int j = 0; j < leftMap[i].length; j++ )\n\t \t\tSystem.out.println(leftMap[i][j]);\n\t System.out.println(\"*-----------------*\");\n\t for(int i = 0; i < rightMap.length; i++ )\n\t \tfor(int j = 0; j < rightMap[i].length; j++ )\n\t \t\tSystem.out.println(rightMap[i][j]);\n\t}", "public final C0869ga mo2869a(Map<String, C0869ga> map) {\n int i;\n C0869ga gaVar = (C0869ga) map.get(f3311b);\n C0869ga gaVar2 = (C0869ga) map.get(f3312c);\n if (gaVar == null || gaVar == C1233ev.m4942f() || gaVar2 == null || gaVar2 == C1233ev.m4942f()) {\n return C1233ev.m4942f();\n }\n int i2 = 64;\n if (C1233ev.m4937d((C0869ga) map.get(f3313d)).booleanValue()) {\n i2 = 66;\n }\n C0869ga gaVar3 = (C0869ga) map.get(f3314e);\n if (gaVar3 != null) {\n Long c = C1233ev.m4933c(gaVar3);\n if (c == C1233ev.m4930b()) {\n return C1233ev.m4942f();\n }\n i = c.intValue();\n if (i < 0) {\n return C1233ev.m4942f();\n }\n } else {\n i = 1;\n }\n try {\n String a = C1233ev.m4927a(gaVar);\n String str = null;\n Matcher matcher = Pattern.compile(C1233ev.m4927a(gaVar2), i2).matcher(a);\n if (matcher.find() && matcher.groupCount() >= i) {\n str = matcher.group(i);\n }\n return str == null ? C1233ev.m4942f() : C1233ev.m4924a((Object) str);\n } catch (PatternSyntaxException e) {\n return C1233ev.m4942f();\n }\n }", "public void execFunzzySearchMapGeneByRangeFunc(){\n Map map = new HashMap();\n\n if(this.searchParam != null && this.searchParam.length()> 0 ){\n if(this.searchParam.contains(\":\")==true || this.searchParam.startsWith(\"chr\") == true){\n String chrom = \"\";\n int pstart = -1;\n int pend = -1;\n if(this.searchParam.indexOf(\":\") > -1 ){\n int idex = this.searchParam.indexOf(\":\");\n chrom = this.searchParam.substring(0,idex );\n System.out.println(\"chrom=\"+chrom);\n map.put(\"chrom\",chrom);\n if(this.searchParam.indexOf(\"-\") > -1 ){\n int idex1 = this.searchParam.indexOf(\"-\");\n pstart = Integer.parseInt(this.searchParam.substring(idex+1, idex1));\n pend = Integer.parseInt(this.searchParam.substring(idex1+1, this.searchParam.length()));\n map.put(\"startpos\",pstart);\n map.put(\"endpos\",pend);\n }else {\n pstart = Integer.parseInt(this.searchParam.substring(idex+1, this.searchParam.length()));\n map.put(\"startpos\",pstart);\n }\n\n }else if(this.searchParam.startsWith(\"chr\") == true){\n map.put(\"chrom\",this.searchParam);\n\n\n }\n }\n }\n\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"null\") ==false && this.searchSpecies.equals(\"all\") == false){\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"species\",this.searchSpecies);\n }\n\n if(this.searchTrait != null && this.searchTrait.equals(\"null\") ==false && this.searchTrait.length()>0){\n\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"searchTrait\", this.searchTrait) ;\n }\n\n if(this.pvalue != null && this.pvalue.equals(\"null\") ==false && this.pvalue.length()>0){\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"psitu\", this.psitu);\n map.put(\"pval\", this.pvalue) ;\n }\n\n\n List<MapGeneBean> tmplist = (List<MapGeneBean>) baseService.findResultList(\"cn.big.gvk.dm.MapGene.selectMapGeneCountByPosition\",map);\n if(tmplist != null && tmplist.size()>0){\n mapGeneBeanList = new ArrayList<MapGeneBean>();\n\n for(MapGeneBean tbean: tmplist){\n Map cmp = new HashMap();\n cmp.put(\"gid\",tbean.getGid());\n MapGeneBean genebean = (MapGeneBean) baseService.findObjectByObject(\"cn.big.gvk.dm.MapGene.selectMapGeneCount\",cmp);\n if(genebean != null ){\n\n Map t = new HashMap();\n t.put(\"gId\",genebean.getGid()) ;\n t.put(\"count\",\"count\");\n\n //trait count\n GwasAssociationView gwas = (GwasAssociationView) baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectGwasViewByGeneInfo\",t);\n if(gwas != null){\n genebean.setTraitCount(gwas.getTraitCount());\n }\n\n //study count\n StudyBean study = (StudyBean) baseService.findObjectByObject(\"cn.big.gvk.dm.study.selectStudyByMapGeneId\",t);\n if(study != null ){\n genebean.setStudyCount(study.getStudyCount());\n }\n\n //publication count\n PublicationBean publication = (PublicationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.publication.selectPubByGeneId\",t);\n if (publication != null ){\n genebean.setPublicationCount(publication.getPublicationCount());\n }\n mapGeneBeanList.add(genebean) ;\n }\n\n }\n }\n\n StringBuffer sb = new StringBuffer() ;\n\n if(mapGeneBeanList != null && mapGeneBeanList.size()>0){\n for(MapGeneBean mapgene: mapGeneBeanList){\n sb.append(mapgene.getMapGeneId()).append(\"\\t\").append(mapgene.getMapGeneChrom()).append(\":\")\n .append(mapgene.getMapGeneStart()).append(\"-\").append(mapgene.getMapGeneEnd()).append(\"\\t\").append(mapgene.getTraitCount()).append(\"\\t\")\n .append(mapgene.getStudyCount()).append(\"\\n\");\n }\n }\n\n if(format == 1 ){ //export txt\n this.response.reset();\n this.response.setHeader(\"Content-Disposition\",\n \"attachment;filename=export.txt\");\n this.response.setContentType(\"application/ms-txt\");\n try {\n PrintWriter pr = this.response.getWriter();\n pr.print(sb.toString());\n pr.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "void numberOfOpenMapInformation(int number, int pIndex);", "@org.junit.Test\n public void mapGet100() {\n final XQuery query = new XQuery(\n \"fn:map(\\n\" +\n \" map{\\\"su\\\":=\\\"Sunday\\\",\\\"mo\\\":=\\\"Monday\\\",\\\"tu\\\":=\\\"Tuesday\\\",\\\"we\\\":=\\\"Wednesday\\\",\\\"th\\\":=\\\"Thursday\\\",\\\"fr\\\":=\\\"Friday\\\",\\\"sa\\\":=\\\"Saturday\\\"},\\n\" +\n \" (\\\"we\\\", \\\"th\\\"))\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n (\n assertCount(2)\n &&\n assertQuery(\"$result[1] eq \\\"Wednesday\\\"\")\n &&\n assertQuery(\"$result[2] eq \\\"Thursday\\\"\")\n )\n );\n }", "public static void main(String[] args) {\n String [][] map = {{\" \",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"K\"},\n {\"1 \",\"0\" ,\"*\",\"0\",\"0\" ,\"*\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"},\n {\"2 \",\"0\" ,\"0\",\"0\",\"0\" ,\"*\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"},\n {\"3 \",\"*\" ,\"0\",\"0\",\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"},\n {\"4 \",\"*\" ,\"0\",\"0\",\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"},\n {\"5 \",\"*\" ,\"0\",\"*\",\"*\" ,\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"},\n {\"6 \",\"*\" ,\"0\",\"0\",\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"*\",\"0\"},\n {\"7 \",\"0\" ,\"0\",\"0\",\"0\" ,\"0\" ,\"0\" ,\"*\" ,\"0\" ,\"*\",\"0\"},\n {\"8 \",\"0\" ,\"*\",\"0\",\"0\" ,\"0\" ,\"0\" ,\"*\" ,\"0\" ,\"*\",\"0\"},\n {\"9 \",\"0\" ,\"0\",\"0\",\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"},\n {\"10\",\"*\" ,\"0\",\"*\",\"*\" ,\"*\" ,\"0\" ,\"0\" ,\"0\" ,\"0\",\"0\"}};\n for (int i=0; i<11; ++i) {\n for (int j = 0; j < 11; ++j) {\n System.out.print(map[i][j]);\n }\n System.out.println();\n }\n System.out.println();\n }", "public void createWorldMap() {\r\n\t\tdo {\r\n\t\t\t//\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Recursive map generation method over here@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n\t\t\t//Generation loop 1 *ADDS VEIN STARTS AND GRASS*\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif (Math.random()*10000>9999) { //randomly spawn a conore vein start\r\n\t\t\t\t\t\ttileMap[i][j] = new ConoreTile (conore, true);\r\n\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t}else if (Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new KannaiteTile(kanna, true);\r\n\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new FuelTile(fuel, true);\r\n\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999) {\r\n\t\t\t\t\t\ttileMap[i][j] = new ForestTile(forest, true);\r\n\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new OilTile(oil,true);\r\n\t\t\t\t\t}else if(Math.random()*10000>9997) {\r\n\t\t\t\t\t\ttileMap[i][j] = new MountainTile(mountain, true);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttileMap[i][j] = new GrassTile(dirt);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // End for loop \r\n\t\t\t} // End for loop\r\n\t\t\t//End generation loop 1\r\n\r\n\t\t\t//Generation loop 2 *EXPANDS ON THE VEINS*\r\n\t\t\tdo {\r\n\t\t\t\tif (conoreCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ConoreTile (conore,true);\r\n\t\t\t\t\tconoreCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tconorePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (kannaiteCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new KannaiteTile (kanna,true);\r\n\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (fuelCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new FuelTile (fuel,true);\r\n\t\t\t\t\tfuelCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (forestCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ForestTile (forest,true);\r\n\t\t\t\t\tforestCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tforestPass = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 2\r\n\r\n\t\t\t//Generation loop 3 *COUNT ORES*\r\n\t\t\tint loop3Count = 0;\r\n\t\t\tconorePass = false;\r\n\t\t\tkannaitePass = false;\r\n\t\t\tfuelPass = false;\r\n\t\t\tforestPass = false;\r\n\t\t\tdo {\r\n\t\t\t\tconoreCount = 0;\r\n\t\t\t\tkannaiteCount = 0;\r\n\t\t\t\tfuelCount = 0;\r\n\t\t\t\tforestCount = 0;\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (conoreCount < 220) {\r\n\t\t\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tconorePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (kannaiteCount < 220) {\r\n\t\t\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fuelCount< 220) {\r\n\t\t\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (forestCount < 220) {\r\n\t\t\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tforestPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tloop3Count++;\r\n\t\t\t\tif (loop3Count > 100) {\r\n\t\t\t\t\tSystem.out.println(\"map generation failed! restarting\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\t\t\t//END OF LOOP 3\r\n\r\n\t\t\t//LOOP 4: THE MOUNTAIN & OIL LOOP\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildMountain(i,j);\r\n\t\t\t\t\tbuildOil(i,j);\r\n\t\t\t\t}\r\n\t\t\t}//End of THE Mountain & OIL LOOP\r\n\r\n\t\t\t//ADD MINIMUM AMOUNT OF ORES\r\n\r\n\t\t\t//Generation Loop 5 *FINAL SETUP*\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif(i == 1 || j == 1 || i == tileMap.length-2 || j == tileMap[i].length-2) {\r\n\t\t\t\t\t\ttileMap[i][j] = new DesertTile(desert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i == 0 || j == 0 || i == tileMap.length-1 || j == tileMap[i].length-1) {\r\n\t\t\t\t\t\ttileMap[i][j] = new WaterTile(water);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 5\r\n\t\t\t//mapToString();//TEST RUN\r\n\t\t} while(!conorePass || !kannaitePass || !fuelPass || !forestPass); // End createWorldMap method\r\n\t}", "private void createMapOfThirdType(){\n\n this.typeOfMap=3;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.RED, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, true,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = createSquare( ColorOfFigure_Square.GREEN, true,0,3);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.PURPLE, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.YELLOW, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = createSquare( ColorOfFigure_Square.GREY, true,2,0);\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.YELLOW, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, false,2,3);\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n mMap2 = googleMap;\n mMap3 = googleMap;\n mMap4 = googleMap;\n mMap5 = googleMap;\n mMap6 = googleMap;\n mMap7 = googleMap;\n mMap8 = googleMap;\n\n\n configuracion =mMap.getUiSettings();\n configuracion.setZoomControlsEnabled(true);\n\n // Add a marker in Sydney and move the camera\n\n LatLng med = new LatLng(5.5986029, -75.8189893);\n LatLng med2 = new LatLng(5.5963072,-75.8130777);\n LatLng med3 = new LatLng(5.5936377, -75.8126003);\n LatLng med4 = new LatLng(5.5749407, -75.7907993);\n LatLng med5 = new LatLng(5.5646469, -75.7912391);\n LatLng med6 = new LatLng(5.5457995, -75.7945168);\n LatLng med7 = new LatLng(5.5391573, -75.8043015);\n LatLng med8 = new LatLng(5.5305395, -75.8031642);\n\n\n final Marker medellin = mMap.addMarker(new MarkerOptions().position(med).title(getString(R.string.ventanas1)));\n final Marker medellin2 = mMap2.addMarker(new MarkerOptions().position(med2).title(getString(R.string.ventanas2)));\n final Marker medellin3 = mMap3.addMarker(new MarkerOptions().position(med3).title(getString(R.string.ventanas3)));\n final Marker medellin4 = mMap4.addMarker(new MarkerOptions().position(med4).title(getString(R.string.ventanas4)));\n final Marker medellin5 = mMap5.addMarker(new MarkerOptions().position(med5).title(getString(R.string.ventanas5)));\n final Marker medellin6 = mMap6.addMarker(new MarkerOptions().position(med6).title(getString(R.string.ventanas6)));\n final Marker medellin7 = mMap7.addMarker(new MarkerOptions().position(med7).title(getString(R.string.ventanas7)));\n final Marker medellin8 = mMap8.addMarker(new MarkerOptions().position(med8).title(getString(R.string.ventanas8)));\n\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(med, 12));\n mMap2.moveCamera(CameraUpdateFactory.newLatLngZoom(med2, 12));\n mMap3.moveCamera(CameraUpdateFactory.newLatLngZoom(med3, 12));\n mMap4.moveCamera(CameraUpdateFactory.newLatLngZoom(med4, 12));\n mMap5.moveCamera(CameraUpdateFactory.newLatLngZoom(med5, 12));\n mMap6.moveCamera(CameraUpdateFactory.newLatLngZoom(med6, 12));\n mMap7.moveCamera(CameraUpdateFactory.newLatLngZoom(med7, 12));\n mMap8.moveCamera(CameraUpdateFactory.newLatLngZoom(med8, 12));\n mMap.addPolyline(new PolylineOptions().geodesic(true)\n .add(new LatLng( 5.5985815 , -75.8189195 ))\n .add(new LatLng( 5.5975885 , -75.8166182 ))\n .add(new LatLng( 5.5960936 , -75.8130026 ))\n .add(new LatLng( 5.5957733 , -75.8127344 ))\n .add(new LatLng( 5.5937338 , -75.8126485 ))\n .add(new LatLng( 5.5927835 , -75.8132172 ))\n .add(new LatLng( 5.5918866 , -75.8127987 ))\n .add(new LatLng( 5.5912352 , -75.8127666 ))\n .add(new LatLng( 5.5893986 , -75.8110714 ))\n .add(new LatLng( 5.5885231 , -75.8110070 ))\n .add(new LatLng( 5.5888861 , -75.8095479 ))\n .add(new LatLng( 5.5902956 , -75.8079815 ))\n .add(new LatLng( 5.5909149 , -75.8080673 ))\n .add(new LatLng( 5.5915128 , -75.8073592 ))\n .add(new LatLng( 5.5918545 , -75.8078313 ))\n .add(new LatLng( 5.5923030 , -75.8079815 ))\n .add(new LatLng( 5.5923244 , -75.8068013 ))\n .add(new LatLng( 5.5926020 , -75.8059430 ))\n .add(new LatLng( 5.5915342 , -75.8057284 ))\n .add(new LatLng( 5.5906159 , -75.8050203 ))\n .add(new LatLng( 5.5903596 , -75.8037329 ))\n .add(new LatLng( 5.5898471 , -75.8031428 ))\n .add(new LatLng( 5.5896336 , -75.8027136 ))\n .add(new LatLng( 5.5879785 , -75.8015442 ))\n .add(new LatLng( 5.5874019 , -75.8011794 ))\n .add(new LatLng( 5.5868360 , -75.7985830 ))\n .add(new LatLng( 5.5854051 , -75.7966733 ))\n .add(new LatLng( 5.5851702 , -75.7962441 ))\n .add(new LatLng( 5.5847217 , -75.7942271 ))\n .add(new LatLng( 5.5847644 , -75.7931542 ))\n .add(new LatLng( 5.5843800 , -75.7911801 ))\n .add(new LatLng( 5.5845509 , -75.7902789 ))\n .add(new LatLng( 5.5842305 , -75.7894850 ))\n .add(new LatLng( 5.5835045 , -75.7887983 ))\n .add(new LatLng( 5.5825434 , -75.7871032 ))\n .add(new LatLng( 5.5823299 , -75.7861590 ))\n .add(new LatLng( 5.5821590 , -75.7850862 ))\n .add(new LatLng( 5.5813689 , -75.7821250 ))\n .add(new LatLng( 5.5813475 , -75.7805371 ))\n .add(new LatLng( 5.5813048 , -75.7790565 ))\n .add(new LatLng( 5.5813475 , -75.7774687 ))\n .add(new LatLng( 5.5807922 , -75.7771468 ))\n .add(new LatLng( 5.5801943 , -75.7785416 ))\n .add(new LatLng( 5.5789770 , -75.7780051 ))\n .add(new LatLng( 5.5781014 , -75.7763529 ))\n .add(new LatLng( 5.5773112 , -75.7762671 ))\n .add(new LatLng( 5.5766492 , -75.7756662 ))\n .add(new LatLng( 5.5760085 , -75.7753444 ))\n .add(new LatLng( 5.5745670 , -75.7738262 ))\n .add(new LatLng( 5.5729546 , -75.7729304 ))\n .add(new LatLng( 5.5729332 , -75.7734239 ))\n .add(new LatLng( 5.5728478 , -75.7743251 ))\n .add(new LatLng( 5.5735419 , -75.7747972 ))\n .add(new LatLng( 5.5737875 , -75.7752693 ))\n .add(new LatLng( 5.5738729 , -75.7764816 ))\n .add(new LatLng( 5.5744708 , -75.7764173 ))\n .add(new LatLng( 5.5746631 , -75.7779086 ))\n .add(new LatLng( 5.5753358 , -75.7794267 ))\n .add(new LatLng( 5.5761793 , -75.7801294 ))\n .add(new LatLng( 5.5760298 , -75.7809448 ))\n .add(new LatLng( 5.5761153 , -75.7816315 ))\n .add(new LatLng( 5.5759444 , -75.7829189 ))\n .add(new LatLng( 5.5764143 , -75.7844424 ))\n .add(new LatLng( 5.5754959 , -75.7865667 ))\n .add(new LatLng( 5.5748553 , -75.7888842 ))\n .add(new LatLng( 5.5749941 , -75.7906866 ))\n .add(new LatLng( 5.5720576 , -75.7914162 ))\n .add(new LatLng( 5.5712888 , -75.7906222 ))\n .add(new LatLng( 5.5705413 , -75.7906866 ))\n .add(new LatLng( 5.5700074 , -75.7903647 ))\n .add(new LatLng( 5.5687687 , -75.7913518 ))\n .add(new LatLng( 5.5677650 , -75.7907295 ))\n .add(new LatLng( 5.5668253 , -75.7910728 ))\n .add(new LatLng( 5.5664409 , -75.7907295 ))\n .add(new LatLng( 5.5656293 , -75.7911587 ))\n .add(new LatLng( 5.5646896 , -75.7910299 ))\n .add(new LatLng( 5.5659283 , -75.7927036 ))\n .add(new LatLng( 5.5660992 , -75.7936478 ))\n .add(new LatLng( 5.5655012 , -75.7942915 ))\n .add(new LatLng( 5.5647323 , -75.7943344 ))\n .add(new LatLng( 5.5619133 , -75.7972527 ))\n .add(new LatLng( 5.5614434 , -75.7990551 ))\n .add(new LatLng( 5.5608454 , -75.7991409 ))\n .add(new LatLng( 5.5602902 , -75.7984972 ))\n .add(new LatLng( 5.5588806 , -75.7975531 ))\n .add(new LatLng( 5.5561469 , -75.7968664 ))\n .add(new LatLng( 5.5561469 , -75.7953644 ))\n .add(new LatLng( 5.5536268 , -75.7944202 ))\n .add(new LatLng( 5.5514911 , -75.7936478 ))\n .add(new LatLng( 5.5500816 , -75.7948065 ))\n .add(new LatLng( 5.5493981 , -75.7944202 ))\n .add(new LatLng( 5.5457674 , -75.7934332 ))\n .add(new LatLng( 5.5453403 , -75.7951498 ))\n .add(new LatLng( 5.5457674 , -75.7961369 ))\n .add(new LatLng( 5.5460451 , -75.7968235 ))\n .add(new LatLng( 5.5468139 , -75.7983255 ))\n .add(new LatLng( 5.5453616 , -75.7986689 ))\n .add(new LatLng( 5.5455966 , -75.7996988 ))\n .add(new LatLng( 5.5464081 , -75.8006215 ))\n .add(new LatLng( 5.5458956 , -75.8013296 ))\n .add(new LatLng( 5.5463227 , -75.8022308 ))\n .add(new LatLng( 5.5451053 , -75.8032823 ))\n .add(new LatLng( 5.5449345 , -75.8037865 ))\n .add(new LatLng( 5.5445501 , -75.8039045 ))\n .add(new LatLng( 5.5443792 , -75.8036900 ))\n .add(new LatLng( 5.5449345 , -75.8028531 ))\n .add(new LatLng( 5.5452121 , -75.8025956 ))\n .add(new LatLng( 5.5449986 , -75.8023596 ))\n .add(new LatLng( 5.5448918 , -75.8023596 ))\n .add(new LatLng( 5.5445073 , -75.8025956 ))\n .add(new LatLng( 5.5431298 , -75.8041513 ))\n .add(new LatLng( 5.5423930 , -75.8043337 ))\n .add(new LatLng( 5.5426493 , -75.8036685 ))\n .add(new LatLng( 5.5430123 , -75.8031321 ))\n .add(new LatLng( 5.5436744 , -75.8024669 ))\n .add(new LatLng( 5.5428628 , -75.8022952 ))\n .add(new LatLng( 5.5419712 , -75.8028370 ))\n .add(new LatLng( 5.5408232 , -75.8030784 ))\n .add(new LatLng( 5.5403427 , -75.8016300 ))\n .add(new LatLng( 5.5402359 , -75.8005357 ))\n .add(new LatLng( 5.5402572 , -75.7992053 ))\n .add(new LatLng( 5.5403640 , -75.7983899 ))\n .add(new LatLng( 5.5400223 , -75.7985616 ))\n .add(new LatLng( 5.5399155 , -75.7995915 ))\n .add(new LatLng( 5.5400437 , -75.8032823 ))\n .add(new LatLng( 5.5394136 , -75.8042479 ))\n .add(new LatLng( 5.5382283 , -75.8037114 ))\n .add(new LatLng( 5.5381215 , -75.8027458 ))\n .add(new LatLng( 5.5374808 , -75.8024025 ))\n .add(new LatLng( 5.5358149 , -75.8037758 ))\n .add(new LatLng( 5.5349606 , -75.8032179 ))\n .add(new LatLng( 5.5340849 , -75.8039474 ))\n .add(new LatLng( 5.5337005 , -75.8036900 ))\n .add(new LatLng( 5.5340208 , -75.8031750 ))\n .add(new LatLng( 5.5336791 , -75.8025098 ))\n .add(new LatLng( 5.5323976 , -75.8024883 ))\n .add(new LatLng( 5.5324350 , -75.8019519 ))\n .add(new LatLng( 5.5320960 , -75.8018446 ))\n .add(new LatLng( 5.5317569 , -75.8020806 ))\n .add(new LatLng( 5.5317356 , -75.8029604 ))\n .add(new LatLng( 5.5314579 , -75.8030999 ))\n .add(new LatLng( 5.5310414 , -75.8026814 ))\n .add(new LatLng( 5.5304968 , -75.8027995 ))\n .color(Color.BLUE)\n .width(5)\n\n );\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n float zoomLevel = 7.0f;\n\n // Add a markers of every destination and move the camera\n Bundle b = this.getIntent().getExtras();\n String[] records = b.getStringArray(\"Records\");\n\n double lat;\n double lon;\n\n int index = 1;\n\n for(int r = 0; r < records.length; r++){\n\n if(index == records.length - 7){\n lat = Double.parseDouble(records[records.length - 4]);\n lon = Double.parseDouble(records[records.length - 3]);\n LatLng dest = new LatLng(lat, lon);\n mMap.addMarker(new MarkerOptions().position(dest).title(records[index])).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(dest, zoomLevel));\n break;\n }\n\n lat = Double.parseDouble(records[index+3]);\n lon = Double.parseDouble(records[index+4]);\n\n LatLng dest = new LatLng(lat, lon);\n mMap.addMarker(new MarkerOptions().position(dest).title(records[index])).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(dest, zoomLevel));\n index+=8;\n }\n\n\n /*\n // Царевец\n LatLng carevec = new LatLng(43.084030f, 25.652586f);\n mMap.addMarker(new MarkerOptions().position(carevec).title(\"Царевец\")).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carevec, zoomLevel));\n\n // Чудни мостове\n LatLng chydniMostove = new LatLng(41.819929f, 24.581748f);\n mMap.addMarker(new MarkerOptions().position(chydniMostove).title(\"„Чудните Мостове“\")).showInfoWindow();\n\n // Ягодинска Пещера\n LatLng yagodinskaPeshtera = new LatLng(41.628984f, 24.329589f);\n mMap.addMarker(new MarkerOptions().position(yagodinskaPeshtera).title(\"Ягодинска Пещера\")).showInfoWindow();\n\n // Връх Снежанка\n LatLng vruhSnejanka = new LatLng(41.638506f, 24.675594f);\n mMap.addMarker(new MarkerOptions().position(vruhSnejanka).title(\"Връх Снежанка\")).showInfoWindow();\n\n // Белоградчишки скали\n LatLng belogradchiskiSkali = new LatLng(43.623361f, 22.677964f);\n mMap.addMarker(new MarkerOptions().position(belogradchiskiSkali).title(\"Белоградчишки Скали\")).showInfoWindow();\n\n // Пещера „Леденика“\n LatLng peshteraLedenika = new LatLng(43.204703f, 23.493687f);\n mMap.addMarker(new MarkerOptions().position(peshteraLedenika).title(\"Пещера „Леденика“\")).showInfoWindow();\n\n // Паметник На Христо Ботев И Неговата Чета\n LatLng pametneikHristoBotev = new LatLng(43.798045f, 23.677926f);\n mMap.addMarker(new MarkerOptions().position(pametneikHristoBotev).title(\"Паметник На Христо Ботев И Неговата Чета\")).showInfoWindow();\n\n // Национален Музей \"Параход Радецки\"\n LatLng myzeiParahodRadecki = new LatLng(43.799125f, 23.676921f);\n mMap.addMarker(new MarkerOptions().position(myzeiParahodRadecki).title(\"Национален Музей 'Параход Радецки'\")).showInfoWindow();\n\n // Археологически Резерват „Калиакра”\n LatLng rezervatKaliakra = new LatLng(43.361190f, 28.465788f);\n mMap.addMarker(new MarkerOptions().position(rezervatKaliakra).title(\"Археологически Резерват „Калиакра”\")).showInfoWindow();\n\n // Перперикон\n LatLng perperikon = new LatLng(41.718126f, 25.468954f);\n mMap.addMarker(new MarkerOptions().position(perperikon).title(\"Перперикон\")).showInfoWindow();\n\n // Вр. Мусала (2925 М.) - Рила\n LatLng vruhMysala = new LatLng(42.180021f, 23.585167f);\n mMap.addMarker(new MarkerOptions().position(vruhMysala).title(\"Вр. Мусала (2925 М.) - Рила\")).showInfoWindow();\n\n // Връх Шипка – Национален Парк-Музей „Шипка“ - Паметник На Свободата\n LatLng vruhShipka = new LatLng(42.748281f, 25.321387f);\n mMap.addMarker(new MarkerOptions().position(vruhShipka).title(\"Връх Шипка – Национален Парк-Музей „Шипка“ - Паметник На Свободата\")).showInfoWindow();\n\n // Пещера – Пещера „Снежанка“ (Дължина: 145 М)\n LatLng peshteraSnejanka = new LatLng(42.004459f, 24.278645f);\n mMap.addMarker(new MarkerOptions().position(peshteraSnejanka).title(\"Пещера – Пещера „Снежанка“ (Дължина: 145 М)\")).showInfoWindow();\n\n // Античен Театър\n LatLng antichenTeatur = new LatLng(42.147109f, 24.751005f);\n mMap.addMarker(new MarkerOptions().position(antichenTeatur).title(\"Античен Театър\")).showInfoWindow();\n\n // Асенова Крепост\n LatLng asenovaKrepost = new LatLng(41.987020f, 24.873552f);\n mMap.addMarker(new MarkerOptions().position(asenovaKrepost).title(\"Асенова Крепост\")).showInfoWindow();\n\n // Бачковски Манастир\n LatLng bachkovskiManastir = new LatLng(41.942380f, 24.849340f);\n mMap.addMarker(new MarkerOptions().position(bachkovskiManastir).title(\"Бачковски Манастир\")).showInfoWindow();\n\n // Резерват „Сребърна“\n LatLng rezervatSreburna = new LatLng(44.115654f, 27.071807f);\n mMap.addMarker(new MarkerOptions().position(rezervatSreburna).title(\"Резерват „Сребърна“\")).showInfoWindow();\n\n // Мадарски Конник\n LatLng madarskiKonnik = new LatLng(43.277708f, 27.118949f);\n mMap.addMarker(new MarkerOptions().position(madarskiKonnik).title(\"Мадарски Конник\")).showInfoWindow();\n\n // Седемте Рилски езера\n LatLng sedemteRilskiEzera = new LatLng(42.203413f, 23.319871f);\n mMap.addMarker(new MarkerOptions().position(sedemteRilskiEzera).title(\"Седемте Рилски езера\")).showInfoWindow();\n\n //Храм-Паметник „Александър Невски“\n LatLng aleksandurNevski = new LatLng(42.696000f, 23.332879f);\n mMap.addMarker(new MarkerOptions().position(aleksandurNevski).title(\"Храм-Паметник „Александър Невски“\")).showInfoWindow();\n */\n\n }" ]
[ "0.6281499", "0.61337984", "0.6080781", "0.6045687", "0.6003564", "0.5965618", "0.59317327", "0.59155256", "0.59043074", "0.58292", "0.578044", "0.5748195", "0.56979084", "0.56979084", "0.56974614", "0.56840557", "0.56766635", "0.56512666", "0.5650144", "0.5628224", "0.5627039", "0.5621929", "0.5620187", "0.56153727", "0.5612597", "0.56040156", "0.559738", "0.5577824", "0.55764663", "0.5554703", "0.5549083", "0.5549083", "0.55381864", "0.5520031", "0.55126107", "0.55101615", "0.5506508", "0.54884034", "0.54866016", "0.54795706", "0.5476852", "0.5469771", "0.5469068", "0.5465599", "0.5451453", "0.54457045", "0.5445166", "0.5439339", "0.5430327", "0.5429099", "0.5422202", "0.540514", "0.5401259", "0.5400407", "0.5393662", "0.5393453", "0.5381314", "0.5370061", "0.5366395", "0.5360758", "0.5360758", "0.5360758", "0.5360758", "0.5360758", "0.5360758", "0.5360758", "0.5360758", "0.5360758", "0.5360758", "0.5360758", "0.5360758", "0.5360758", "0.5359162", "0.5357654", "0.53544575", "0.53505886", "0.53473127", "0.53469557", "0.5338345", "0.5336381", "0.5336363", "0.5335189", "0.53307736", "0.5328541", "0.53048366", "0.5300367", "0.52961737", "0.52950287", "0.52928203", "0.5286716", "0.52813035", "0.52721584", "0.52695215", "0.5266753", "0.52600265", "0.52587235", "0.52501875", "0.52475655", "0.52406937", "0.5240307", "0.5232188" ]
0.0
-1
====| Abstract methods |================================================================//
@Override protected abstract SecondOrderCollection wrapped();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public AbstractGenerateurAbstractSeule() {\r\n\t\tsuper();\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "protected abstract Set method_1559();", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public abstract void operation();", "public abstract void mo70713b();", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\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}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "abstract void method();", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n protected void init() {\n }", "protected abstract T self();", "protected abstract T self();", "protected abstract T self();", "public abstract void mo56925d();", "@Override\n void init() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Self self();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public abstract void mo35054b();", "@Override\r\n protected void end() {\r\n\r\n }", "@Override\n public void get() {}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo27386d();", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void selfValidate() {\n\t\t\n\t}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "protected abstract String name ();", "abstract void uminus();", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "protected abstract void work();", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public abstract String use();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "public abstract void mo30696a();", "protected abstract void construct();", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "public abstract void mo957b();", "public abstract void comes();", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo27385c();", "protected abstract void retrievedata();", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n protected void end() {\n \n }", "public abstract Object mo26777y();", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public abstract void mo102899a();", "abstract void add();", "public interface AbstractC1953c50 {\n}" ]
[ "0.67318755", "0.65610725", "0.65556306", "0.65556306", "0.6534525", "0.6441552", "0.640064", "0.6388373", "0.63624245", "0.6303811", "0.6303811", "0.62862873", "0.6270679", "0.6243789", "0.6213711", "0.6194584", "0.6184378", "0.61794037", "0.6154518", "0.61456376", "0.6132155", "0.6108841", "0.61045533", "0.60974896", "0.60974896", "0.6085206", "0.6069001", "0.6060932", "0.60271275", "0.6026771", "0.60095406", "0.59919196", "0.5989608", "0.5983225", "0.5979103", "0.59758323", "0.59712535", "0.59712535", "0.59712535", "0.59486914", "0.59384197", "0.5935422", "0.5933652", "0.5921887", "0.5921887", "0.5921887", "0.5921887", "0.5921887", "0.5921887", "0.5920317", "0.5918312", "0.59091276", "0.5906742", "0.58915573", "0.58889437", "0.588154", "0.5881431", "0.58795136", "0.5875726", "0.5875055", "0.5871763", "0.58674306", "0.5859923", "0.5853213", "0.5850558", "0.585002", "0.58442426", "0.58428806", "0.5836688", "0.5833899", "0.5831107", "0.58255166", "0.5811463", "0.5810203", "0.5804754", "0.5804754", "0.5804754", "0.5804754", "0.5804754", "0.5804754", "0.5804754", "0.5804754", "0.5804754", "0.5804754", "0.5804754", "0.5804754", "0.5800701", "0.57983065", "0.5797436", "0.57962805", "0.5790081", "0.5781323", "0.57737935", "0.57736546", "0.5766119", "0.576333", "0.57584786", "0.57561046", "0.57401335", "0.573905", "0.5737027" ]
0.0
-1
Returns the singleton instance for this class.
public static NotifySuspendedCommandControllerPowerState getInstance() { return NotifySuspendedCommandControllerPowerState.SINGLETON_INSTANCE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "public static Singleton getInstance()\r\n\t{\r\n\t\t// check if the instance is already created or not, required only for lazy init\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new Singleton();\r\n\t\treturn instance;\r\n\t}", "public static Singleton getInstance() {\n\n if (_instance == null) {\n synchronized (Singleton.class) {\n if (_instance == null)\n _instance = new Singleton();\n }\n }\n return _instance;\n }", "public static synchronized Singleton getInstance() {\n\t\tif (mContext == null) {\n\t\t\tthrow new IllegalArgumentException(\"Impossible to get the instance. This class must be initialized before\");\n\t\t}\n\n\t\tif (instance == null) {\n\t\t\tinstance = new Singleton();\n\t\t}\n\n\t\treturn instance;\n\t}", "public static Singleton getInstance() {\n if (instance == null) {\n synchronized (Singleton.class){\n if (instance == null) {\n instance = new Singleton();\n }\n }\n }\n return instance;\n }", "public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }", "public static SingletonClass getInstance() {\n if (instance == null) {\n instance = new SingletonClass();\n }\n return instance;\n }", "public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }", "public static SingletonClass getInstance() {\n\t\tif(singletonObj == null){\n\t\t\tsingletonObj = new SingletonClass();\n\t\t}\n\t\treturn singletonObj;\n\t}", "public static Singleton instance() {\n return Holder.instance;\n }", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}", "public static Singleton getInstance() {\n return mSing;\n }", "public static SingletonClass getInstance() {\n if (instance == null) {\n synchronized (SingletonClass.class) {\n if (instance == null) {\n instance = new SingletonClass();\n }\n }\n }\n return instance;\n }", "@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Return the singleton instance from the SingletonHolder.\n return (Singleton<T>) SingletonHolder.INSTANCE;\n }", "public static synchronized SingletonImpl getSingleton() {\n\t\t\n\t\tif(mySingleton == null){\n\t\t\tmySingleton = new SingletonImpl();\n\t\t}\n\t\treturn mySingleton;\n\t}", "@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Atomically set the reference's value to a new singleton iff\n // the current value is null. This constructor will most likely\n // be called more than once if instance() is called from\n // multiple threads, but only the first one is used.\n sSingletonAR\n .updateAndGet(u ->\n u != null ? u : new SingletonAR<T>());\n\n // Return the singleton's current value.\n return (Singleton<T>) sSingletonAR.get();\n }", "public static SingleObject getInstance(){\n return instance;\n }", "public T getInstance() {\n return instance;\n }", "public static Singleton getInstance() {\n\t //Je-li promenna instance null, tak se vytvori objekt\n\t if (instance == null) {\n\t instance = new Singleton();\n\t }\n\t //Vratime jedinacka\n\t return instance;\n\t }", "public static MySingleton getInstance() {\r\n\t\tif(instance==null){\r\n\t\t\tinstance= new MySingleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static Main getInstance() {\r\n return instance;\r\n }", "public static Main getInstance() {\n return instance;\n }", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "public static LazySingleton getInstance()\n {\n // Check null\n if (instance == null)\n instance = new LazySingleton();\n return instance;\n\n }", "public static Singleton getInstance() {\t\t//getInstance nam omogucava da instanciramo klasu jedinstveno ako vec nismo!\r\n\t\tif (instance == null) {\t\t\t\t\t// inace nam vraca instancu ako je vec napravljena!\r\n\t\t\tinstance = new Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }", "public static SingletonEager getInstance()\n {\n return instance;\n }", "@Override\n public T getInstance() {\n return instance;\n }", "public static synchronized Singleton getInstanceTS() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "public static Singleton getInstance(){\n if(instance == null)\n {\n synchronized (Singleton.class) {\n if (instance == null) {\n instance = new Singleton();\n Log.d(\"***\", \"made new Singleton\");\n }\n }\n }\n return instance;\n }", "public static synchronized ThreadSafeSingleton getInstance() {\n\t\tif (null == instance) {\n\t\t\tinstance = new ThreadSafeSingleton();\n\t\t}\n\n\t\treturn instance;\n\t}", "public static synchronized ThreadSafeSingleton getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new ThreadSafeSingleton();\n\t\t}\n\t\treturn instance;\n\t}", "public static OneByOneManager getInstance() {\n // The static instance of this class\n return INSTANCE;\n }", "@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}", "public static ChatSingleton getInstance( ) {\n return singleton;\n }", "public static synchronized MultiThreadedSingleton getInstance() {\n\t\t//Lazy instantiation using double locking mechanism.\n\t\tif (singleton == null) {\n\t\t\tsynchronized (MultiThreadedSingleton.class) {\n\t\t\t\tif (singleton == null) {\n\t\t\t\t\tsimulateRandomActivity();\n\t\t\t\t\tsingleton = new MultiThreadedSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"created singleton: \" + singleton);\n\t\treturn singleton;\n\t}", "public static synchronized Model getInstance() {\n if (instance == null) {\n instance = new Model();\n }\n return instance;\n }", "public static Manager getInstance() {\n if (instance == null) {\n instance = new Manager();\n }\n return instance;\n }", "synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }", "public static SingletonDoubleCheck getInstance() {\n\t\tif (_instance == null) {\n\t\t\tsynchronized (SingletonDoubleCheck.class) {\n\t\t\t\tif (_instance == null) {\n\t\t\t\t\t_instance = new SingletonDoubleCheck();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn _instance;\n\t}", "public static ThreadSingleton getInstance() {\n if (instance == null) {\n synchronized(ThreadSingleton.class) {\n if (instance == null) {\n instance = new ThreadSingleton();\n }\n }\n }\n \n return instance;\n }", "public static CZSZApplication_bak getInstance() {\n return theSingletonInstance;\n }", "public static Singleton getInstanceDC() {\n\t\tif (_instance == null) {\n\t\t\tsynchronized (Singleton.class) {\n\t\t\t\tif (_instance == null) {\n\t\t\t\t\t_instance = new Singleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn _instance;\n\t}", "public static FixtureCache getInstance() {\n\t\tif(instance==null) {\n\t\t\tsynchronized(lock) {\n\t\t\t\tif(instance==null) {\n\t\t\t\t\tinstance = new FixtureCache();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static MetaDataManager getInstance() {\n return instance;\n }", "public synchronized static SynchronizedMethodSingleton getInstance()\n\t{\n\t\tif ( instance == null )\n\t\t{\n\t\t\tinstance = new SynchronizedMethodSingleton();\n\t\t}\n\t\treturn instance;\n\t}", "public SingletonSyncBlock getInstance() { // when getting a new instance, getInstance as synchronized method is\n\t\t\t\t\t\t\t\t\t\t\t\t// called\n\n\t\tif (SINGLETON_INSTANCE == null) { // if no Singleton was yet initialized, one instance will be created else,\n\t\t\t\t\t\t\t\t\t\t\t// it's returned the one already created.\n\n\t\t\tsynchronized (SingletonSyncBlock.class) { // synchronized block\n\n\t\t\t\tif (SINGLETON_INSTANCE == null) {\n\n\t\t\t\t\tSINGLETON_INSTANCE = new SingletonSyncBlock();\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn SINGLETON_INSTANCE;\n\n\t}", "public static Boot getInstance()\n {\n return instance;\n }", "public static Empty getInstance() {\n return instance;\n }", "public static Resource getInstance() {\n if (singleInstance == null) {\n // lazy initialization of Resource class\n singleInstance = Resource.loadFromFile();\n }\n return singleInstance;\n }", "public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }", "public static UI getInstance() {\r\n if (singleton == null) {\r\n singleton = new UI();\r\n }\r\n return singleton;\r\n }", "public static TaskManager getInstance()\n {\n return gInstance;\n }", "public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public static DotPrinter getInstance() {\n\t\t// needed because once there is singleton available no need to acquire\n\t\t// monitor again & again as it is costly\n\t\tif (instance == null) {\n\t\t\tsynchronized (DotPrinter.class) {\n\t\t\t\t// this is needed if two threads are waiting at the monitor at\n\t\t\t\t// the\n\t\t\t\t// time when singleton was getting instantiated\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new DotPrinter();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static J2_Singleton getInstance() {\n\t\tif(singletonInstance == null ) {\n\t\t\tsynchronized(J2_Singleton.class) {\n\t\t\t\tif(singletonInstance == null) {\n\t\t\t\t\tsingletonInstance = new J2_Singleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn singletonInstance;\n\t}", "public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }", "public static Settings get() {\n return INSTANCE;\n }", "public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}", "public static SingletonEager get_instance(){\n }", "public static LazyInitializedSingleton getInstance(){ // method for create/return Object\n if(instance == null){//if instance null?\n instance = new LazyInitializedSingleton();//create new Object\n }\n return instance; // return early created object\n }", "public static DataManager getInstance() {\n return instance == null ? (instance = new DataManager()) : instance;\n }", "public synchronized static RecordManager instance() {\n\t\tif (s_Instance == null) s_Instance = new RecordManager();\n\t\treturn s_Instance;\n\t}", "public synchronized static MetaDataCache getInstance() {\r\n if (instance == null) {\r\n instance = new MetaDataCache();\r\n }\r\n return instance;\r\n }", "public static EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static HierarchyFactory getSingleton ()\n {\n return HierarchyFactorySingleton._singleton;\n }", "public static User getInstance(){\n if(singleton == null){\n singleton = new User();\n }\n return singleton;\n }", "public static Backend get() {\n\t\tif (Backend.singleton == null) {\n\t\t\tBackend.singleton = new Backend();\n\t\t}\n\n\t\treturn Backend.singleton;\n\t}", "T getInstance();", "synchronized public static InstitutionManager getInstance()\n {\n return singleton;\n }", "public static OI getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static PSUniqueObjectGenerator getInstance()\n {\n if ( null == ms_instance )\n ms_instance = new PSUniqueObjectGenerator();\n return ms_instance;\n }", "public static DataStore getInstance() {\n if (ourInstance == null) {\n ourInstance = new DataStore();\n }\n return ourInstance;\n }", "public static LinkList instance() {\n\t\tif(singleton == null) \n\t\t\tsingleton = new LinkList();\n\t\t\t\t\n\t\t\n\t\treturn singleton;\n\t}", "public static Parser getInstance() {\n return instance;\n }", "public static DataStore getInstance() {\n if (instance == null) {\n synchronized (mutex) {\n if (instance == null)\n instance = new DataStore();\n }\n }\n return instance;\n }", "public static ServerModel getInstance() {\n if (SINGLETON == null) {\n SINGLETON = new ServerModel();\n }\n return SINGLETON;\n }", "public static Controller getInstance() { return INSTANCE; }", "public ScannerSimulator getInstance() {\n\t\tif (mInstance == null)\n\t\t\tmInstance = new ScannerSimulator();\n\t\treturn mInstance;\n\t}", "public static AppClient getInstance() {\n return instance;\n }", "public static Casino getInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tcreateInstance();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static UrlDAO instance() {\n\n if (instance == null) {\n synchronized(UrlDAO.class) {\n if (instance == null)\n instance = new UrlDAO();\n }\n }\n return instance;\n }", "public static DataController getInstance()\n\t{\n\t\tif (single_instance == null)\n\t\t\tsingle_instance = new DataController();\n\n\t\treturn single_instance;\n\t}", "private static Injector instance() {\n if (instance == null) {\n instance = new Injector();\n }\n \n return instance;\n }", "public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}", "public static MainActivity instance() {\n Log.d(TAG, \" instance(): called\");\n return inst;\n }", "public static CommandLogger getInstance() {\n if (instance == null) {\n synchronized (CommandLogger.class) {\n if (instance == null) {\n instance = new CommandLogger();\n }\n }\n }\n return instance;\n }", "private Singleton(){}", "public static synchronized SingletonThreadSave getInstance(){\n if(uniqueThreadSaveInstance == null){\n uniqueThreadSaveInstance = new SingletonThreadSave();\n }\n return uniqueThreadSaveInstance;\n }", "public static Log getInstance() {\r\n if (firstInstance == null) {\r\n firstInstance = new Log();\r\n }\r\n return firstInstance;\r\n }", "public static Configuration getInstance() {\r\n if (INSTANCE == null)\r\n INSTANCE = new Configuration();\r\n else\r\n INSTANCE.loadConfigurationFromDisk();\r\n\r\n return INSTANCE;\r\n }", "public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }", "synchronized public static PreferenceManager getInstance()\n {\n return singleton;\n }", "public static synchronized DataInterface getSingletonInstance() {\n\t\tif (null == dataInstance) {\n\t\t\tsynchronized (DataInterface.class){\n\t\t\t\t\tif (null == dataInstance) {\n\t\t\t\t\t\tdataInstance = new DataInterface();\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dataInstance;\n\t}", "public static GameManager getInstance() {\n return ourInstance;\n }", "public static SlavesHolder getInstance() {\n if (instance == null) {\n instance = new SlavesHolder();\n }\n return instance;\n }", "public static Ambulancia get_instance() {\n if (instance == null)\n instance = new Ambulancia();\n return instance;\n }" ]
[ "0.842811", "0.8347791", "0.8183048", "0.81176835", "0.8112668", "0.8046577", "0.8042144", "0.79919964", "0.7991678", "0.7924879", "0.7916152", "0.7906903", "0.7889407", "0.7888268", "0.7871128", "0.7860308", "0.7831187", "0.77522945", "0.7706519", "0.76944476", "0.76939946", "0.76687664", "0.7656461", "0.76385134", "0.76317704", "0.7623298", "0.75843436", "0.7557893", "0.75335616", "0.75259805", "0.752076", "0.74893856", "0.7414", "0.7307226", "0.7292974", "0.7253301", "0.7229196", "0.71776605", "0.71721786", "0.7156385", "0.71533024", "0.7144808", "0.7140113", "0.7133697", "0.711419", "0.7113813", "0.71130234", "0.7105384", "0.71011716", "0.7097238", "0.70863277", "0.7081006", "0.70778316", "0.70757824", "0.7075473", "0.70754296", "0.7072027", "0.7071958", "0.7067272", "0.70529276", "0.7051782", "0.70330983", "0.7032577", "0.70041645", "0.69875985", "0.6985538", "0.6983039", "0.69823486", "0.6973921", "0.697036", "0.6970257", "0.6967057", "0.6964161", "0.6956241", "0.695146", "0.6932371", "0.69323575", "0.69257563", "0.692492", "0.69218266", "0.6914568", "0.6913046", "0.6908887", "0.6893811", "0.6893786", "0.68839246", "0.6881465", "0.6876433", "0.6873834", "0.6871755", "0.68626237", "0.68548155", "0.68536747", "0.68473464", "0.68425053", "0.68345636", "0.6831873", "0.6830124", "0.6828041", "0.68267626", "0.682102" ]
0.0
-1
A basic constructor which is private to support singletonfunctionality.
private NotifySuspendedCommandControllerPowerState() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton()\n\t\t{\n\t\t}", "private Singleton() {\n\t}", "private SingletonObject() {\n\n\t}", "private Singleton(){}", "private Singleton() { }", "private Instantiation(){}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private SingletonSample() {}", "private Singleton(){\n }", "private SingleObject()\r\n {\r\n }", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private SingletonSigar(){}", "public Constructor(){\n\t\t\n\t}", "private J2_Singleton() {}", "private MApi() {}", "private SparkeyServiceSingleton(){}", "Constructor() {\r\n\t\t \r\n\t }", "private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}", "Reproducible newInstance();", "private EagerlySinleton()\n\t{\n\t}", "private Rekenhulp()\n\t{\n\t}", "private SingleTon() {\n\t}", "private Utility() {\n\t}", "private LazySingleton(){}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private TagCacheManager(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}", "defaultConstructor(){}", "private LOCFacade() {\r\n\r\n\t}", "private SingleObject(){}", "private InstanceUtil() {\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private Server()\n\t{\n\t}", "public CyanSus() {\n\n }", "private SingleObject(){\n }", "private StreamFactory()\n {\n /*\n * nothing to do\n */\n }", "private Supervisor() {\r\n\t}", "private Marinator() {\n }", "private Marinator() {\n }", "public CSSTidier() {\n\t}", "private Singleton()\r\n\t{\r\n\t\tSystem.out.println(\"1st instance of class Singleton created\");\r\n\t\tstr = \"Constructor init\";\r\n\t}", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "private HttpClient() {\n\t}", "private WebXmlIo()\n {\n // Voluntarily empty constructor as utility classes should not have a public or default\n // constructor\n }", "private GeoUtil()\n\t{\n\t}", "private Singleton() {\n if (instance != null){\n throw new RuntimeException(\"Use getInstance() to create Singleton\");\n }\n }", "private TMCourse() {\n\t}", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "private CLUtil()\n {\n }", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "private ServiceListingList() {\n //This Exists to defeat instantiation\n super();\n }", "private Util() {\n }", "private XMLUtils()\r\n\t{\r\n\t}", "private LoggerSingleton() {\n\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "private ObjectFactory() { }", "private ResourceFactory() {\r\n\t}", "private WolUtil() {\n }", "private Util() {\n }", "private Util() {\n }", "private SnapshotUtils() {\r\n\t}", "private Service() {}", "public Instance() {\n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private Ex() {\n }", "private APIClient() {\n }", "private LazySingleton() {\n if (null != INSTANCE) {\n throw new InstantiationError(\"Instance creation not allowed\");\n }\n }", "private CommonMethods() {\n }", "private FlowExecutorUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "private SingletonClass() {\n x = 10;\n }", "private Util() { }", "private DarthSidious(){\n }", "private Connection() {\n \n }", "private Const() {\n }", "private BusquedaMaker() {\n\t\tinit();\n\t}", "private GeneralServicesImpl() {\r\n\t}", "private PerksFactory() {\n\n\t}", "private Main() {\n\n super();\n }", "private XMLUtil() {\n\t}", "private S3Utils() {\n throw new UnsupportedOperationException(\"This class cannot be instantiated\");\n }", "public ObjectFactory() {\n\t}", "private SparkseeUtils()\n {\n /*\n * Intentionally left empty.\n */\n }", "private Helper() {\r\n // empty\r\n }", "public ObjectFactory() {\r\n\t}", "private RestUtil() {\n\t}" ]
[ "0.8310908", "0.8113895", "0.80074036", "0.79915875", "0.79276454", "0.7862939", "0.7814407", "0.7753222", "0.76598054", "0.76048815", "0.75412214", "0.74912995", "0.74896705", "0.74176395", "0.73959565", "0.7371995", "0.73592585", "0.7344187", "0.7336898", "0.7325045", "0.7308522", "0.730665", "0.730383", "0.7302595", "0.7296608", "0.72879064", "0.7263118", "0.725954", "0.725954", "0.72537273", "0.72502184", "0.72500914", "0.7230225", "0.72132933", "0.71969897", "0.7189561", "0.71556854", "0.7148197", "0.714024", "0.71363777", "0.7113618", "0.711293", "0.7103012", "0.7103012", "0.7098119", "0.7087883", "0.7085366", "0.7083893", "0.70815176", "0.70802516", "0.70801723", "0.7049505", "0.7048342", "0.70404434", "0.70371246", "0.70291656", "0.7028453", "0.7027503", "0.70266926", "0.7023707", "0.7023707", "0.7023707", "0.7023707", "0.7023707", "0.70168555", "0.7014644", "0.7005303", "0.69959027", "0.6992789", "0.6992789", "0.6989507", "0.6981964", "0.69746536", "0.6966107", "0.6963752", "0.69625497", "0.6957941", "0.6953663", "0.6952878", "0.69508594", "0.69418615", "0.69418615", "0.69418615", "0.69418615", "0.6939473", "0.69390994", "0.6937654", "0.6928628", "0.69172955", "0.69096154", "0.69091654", "0.6899582", "0.6899422", "0.68982875", "0.6896555", "0.68958515", "0.68901575", "0.6890046", "0.6880947", "0.6879639", "0.6874132" ]
0.0
-1
Crea una llamada a una funcion en el where
public LnwRestrictionFunction( String functionName ) { function = functionName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FunctionAnalytical createFunctionAnalytical();", "Function createFunction();", "List<FunctionInfo> selectByExample(FunctionInfoExample example);", "private Function createLambdaFunction()\n {\n return lambdaFunctionBuilder().build();\n }", "OpFunction createOpFunction();", "FunctionExtract createFunctionExtract();", "public Function getFunction();", "private Func funcFromNum(int funcNum) {\n Func func = null;\n switch (funcNum) {\n case 0:\t\n func = new Func() {\n public double f(double d) {\n return d == Double.POSITIVE_INFINITY ? 0.0 : 1.0;\n }\t\t\t\n };\t\n break;\n case 1:\n func = new Func() {\n public double f(double d) {\n return d == Double.POSITIVE_INFINITY ? 0.0 : 1.0 + 1.0 / d;\n }\t\t\t\n };\n break;\n case 2:\n func = new Func() {\n public double f(double d) {\n return d == Double.POSITIVE_INFINITY ? 0.0 : 1.0 + Math.sqrt(d);\n }\t\t\t\n };\n break;\n }\n return func;\n }", "private QueryFunction compile(Stack<QueryTerm> queryTerms) {\n if (queryTerms.isEmpty()) return (s, r) -> s;\n return (s, r) -> Queries.of(queryTerms.pop()).apply(compile(queryTerms).apply(s, r), r);\n }", "PivotFunctions createPivotFunctions();", "@Query(\"SELECT f FROM Funcionario f\" +\n \" WHERE f.nome = :nome\" +\n \" AND f.salario >= :salario\" +\n \" AND f.dataContratacao = :data\")\n List<Funcionario> findNomeDataContratacaoSalarioMaior(String nome, Double salario, LocalDate data);", "TblBTSSysFunctionDO selectByPrimaryKey(String funcId);", "public QbWhere where();", "public static void main(String[] args) {\n\n Function<String, String> function1 = (string) -> string +string;\n System.out.println(function1.apply(\"aaa\"));\n\n Function<String,String> function2 =s -> new String(s);\n System.out.println(function2.apply(function2.apply(\"sss\")));\n\n// Function<String, Emp> function = s -> new Emp(s);\n// System.out.println(function.apply(\"yy\"));\n\n Function<String, Emp> function3 = Emp::new;\n System.out.println(function3.apply(\"yy\"));\n }", "public Function getFunctionContaining(Address addr);", "FunctionInfo selectByPrimaryKey(String fucno);", "public static String functionize(String func, String col) {\n return func + \"(\" + col + \")\";\n }", "private Clause make(Literal... e) {\n Clause c = new Clause();\n for (int i = 0; i < e.length; ++i) {\n c = c.add(e[i]);\n }\n return c;\n }", "PivotFunction createPivotFunction();", "Optional<Funcionario> buscarPorId(Long id);", "FunCall createFunCall();", "Expr createExpr();", "Expression createExpression();", "public SimpleLambda getTheLambda(int offset) {\n int scopedVar = offset;\n return (int x, int y) -> x + y + scopedVar;\n }", "private Expression transform(Expression exp)\n {\n return UseContracts.execute(exp, fun, callers);\n }", "List<TblBTSSysFunctionDO> selectByExample(TblBTSSysFunctionDOExample example);", "@FunctionalInterface\npublic interface QuadFunction<P1, P2, P3, P4, R> extends MethodFinder {\n\n R apply(P1 p1, P2 p2, P3 p3, P4 p4);\n\n}", "List<PageFunc> selectByExample(PageFuncExample example);", "SELECT createSELECT();", "private String createWhere() {\n String where = \"\";\n if (getLatitude() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + LATITUDE + \"=\" + getLatitude(\"\");\n } // if getLatitude\n if (getLongitude() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + LONGITUDE + \"=\" + getLongitude(\"\");\n } // if getLongitude\n if (getDepth() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + DEPTH + \"=\" + getDepth(\"\");\n } // if getDepth\n if (getTemperatureMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + TEMPERATURE_MIN + \"=\" + getTemperatureMin(\"\");\n } // if getTemperatureMin\n if (getTemperatureMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + TEMPERATURE_MAX + \"=\" + getTemperatureMax(\"\");\n } // if getTemperatureMax\n if (getSalinityMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SALINITY_MIN + \"=\" + getSalinityMin(\"\");\n } // if getSalinityMin\n if (getSalinityMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SALINITY_MAX + \"=\" + getSalinityMax(\"\");\n } // if getSalinityMax\n if (getOxygenMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + OXYGEN_MIN + \"=\" + getOxygenMin(\"\");\n } // if getOxygenMin\n if (getOxygenMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + OXYGEN_MAX + \"=\" + getOxygenMax(\"\");\n } // if getOxygenMax\n if (getNitrateMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + NITRATE_MIN + \"=\" + getNitrateMin(\"\");\n } // if getNitrateMin\n if (getNitrateMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + NITRATE_MAX + \"=\" + getNitrateMax(\"\");\n } // if getNitrateMax\n if (getPhosphateMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + PHOSPHATE_MIN + \"=\" + getPhosphateMin(\"\");\n } // if getPhosphateMin\n if (getPhosphateMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + PHOSPHATE_MAX + \"=\" + getPhosphateMax(\"\");\n } // if getPhosphateMax\n if (getSilicateMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SILICATE_MIN + \"=\" + getSilicateMin(\"\");\n } // if getSilicateMin\n if (getSilicateMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SILICATE_MAX + \"=\" + getSilicateMax(\"\");\n } // if getSilicateMax\n if (getChlorophyllMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + CHLOROPHYLL_MIN + \"=\" + getChlorophyllMin(\"\");\n } // if getChlorophyllMin\n if (getChlorophyllMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + CHLOROPHYLL_MAX + \"=\" + getChlorophyllMax(\"\");\n } // if getChlorophyllMax\n if (dbg) System.out.println (\"<br>where = \" + where); // debug\n return (!where.equals(\"\") ? where : null);\n }", "public static void main(String[] args) {\n FunctionFactory<Integer, Integer> functionFactory = new FunctionFactory<>();\n // 1. add simple functions \"square\", \"increment\", \"decrement\", \"negative\"\n // 2. get each function by name, and apply to argument 5, print a result (should be 25, 6, 4,-5 accordingly)\n // 3. add simple function \"abs\" using method reference (use class Math)\n // 4. add try/catch block, catch InvalidFunctionNameException and print some error message to the console\n // 5. try to get function with invalid name\n\n functionFactory.addFunction(\"square\", n -> n * n);\n functionFactory.addFunction(\"abs\", Math::abs);\n\n functionFactory.getFunction(\"square\").apply(5);\n try{\n functionFactory.getFunction(\"abs\").apply(5);\n }catch (InvalidFunctionNameException e){\n System.out.println(e.getMessage());\n }\n\n\n\n\n }", "private NoVO listaFuncao() throws AnaliseSintaticaException {\n\t\tNoVO noFuncao = new NoVO();\n\t\tLinhaVO linha = getLinhaAtual();\n\t\tTokenVO tokenDef = getTokenAtual();\n\t\tif (sintaticoHelper.isPalavraReservadaDefSemErro(tokenDef.getPalavraReservada())) {\n\t\t\tnoFuncao = listaFuncaoL(noFuncao);\n\t\t}\n\t\treturn noFuncao;\n\t}", "List<Condition> composeFilterConditions(F filter);", "org.globus.swift.language.Function insertNewFunction(int i);", "ColumnOperand createColumnOperand();", "Condition(Column col1, String relation, Column col2) {\n // YOUR CODE HERE\n }", "AnalyticClause createAnalyticClause();", "org.globus.swift.language.Function getFunctionArray(int i);", "String getWhereClause();", "public LinearValueFunction getInternalLinearValueFunction(Criterion criterion) {\n checkNotNull(criterion);\n checkArgument(criterion.isDoubleCrescent());\n return this.linearValueFunctions.get(criterion);\n }", "@Override\r\n\tpublic ExecutedFunctionsProgramPoint addExecutedFuncsProgramPoint(\r\n\t\t\tString name, String lineNo) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic List<Function> getFunctionByModulesAndName(Modules modules, String name) {\n\t\tString hql = \"from Function f where f.modules.name=? and f.name =?\";\r\n\t\treturn (List<Function>) getHibernateTemplate().find(hql, modules, name);\r\n\t}", "public IAverage whereClause(String whereClause);", "static Identifier makeFunction(final QualifiedName name) {\r\n if (name == null) {\r\n return null;\r\n } else {\r\n return new Identifier(Category.TOP_LEVEL_FUNCTION, name);\r\n }\r\n }", "RowFunction getRowFunction();", "public HashMap<String,LinkedList<String>> splitWhere() {\n\n LinkedList<String> where = new LinkedList<>(whereClause);\n LinkedList<String> referencingRelations;\n LinkedList<MyRelation> relations;\n String temp;\n optimizedWhere = new HashMap<>();\n\n String whereString = new String(myHelper.getWhereFields(where));\n String[] whereParts = whereString.split(\"(?i)and\");\n\n //Iterates through all the parts divided by \"AND\"\n for (int i=0; i<whereParts.length; i++) {\n\n referencingRelations = new LinkedList<>();\n String symbol = myHelper.getSymbol(whereParts[i]);\n\n if(symbol != null) {\n String[] equationParts = whereParts[i].split(symbol);\n String condition = null;\n\n //For every side of the \"=\" sing.\n for(int j=0; j<equationParts.length; j++) {\n //Removes white spaces if any.\n equationParts[j] = equationParts[j].replaceAll(\"\\\\s\",\"\");\n\n //if there is a referencing table stores the table and and the field used is temporarily stored.\n if(equationParts[j].contains(\".\")) {\n referencingRelations.addLast(equationParts[j].substring(0, equationParts[j].indexOf(\".\")));\n temp = equationParts[j].substring(equationParts[j].indexOf(\".\")+1);\n\n }else {\n //if no \".\" p simeni en ksero se pio relation kamni reference enna to psaxo p to schema !!\n relations = schema.getRelations();\n String name = myHelper.getRelationNameOnField(equationParts[j],relations,newTablesFromCanonical);\n\n //if name is a field name add the table name to the referencing\n if(name != null) {\n referencingRelations.addLast(name);\n temp = equationParts[j];\n }\n else\n temp = equationParts[j].substring(equationParts[j].indexOf(\".\")+1);\n }\n if(j!= equationParts.length-1)\n condition = temp + symbol;\n else condition = condition + temp;\n }\n optimizedWhere.put(condition,referencingRelations);\n }\n }\n return optimizedWhere;\n }", "@Override\r\n\tpublic Function getFunctionById(int id) {\n\t\treturn getHibernateTemplate().get(Function.class, id);\r\n\t}", "void generateWriteParam2WhereCondition(Builder methodBuilder, SQLiteModelMethod method, String paramName, TypeName paramTypeName);", "public ExpressionFunction getFunction(String name) { return wrappedSerializationContext.getFunction(name); }", "@Override\r\n\tpublic List<Function> getAllFunction() {\n\t\tString hql = \"from Function\";\r\n\t\treturn (List<Function>) getHibernateTemplate().find(hql);\r\n\t}", "private Function[] getFunctionObjects() throws Exception{\n String[] sFunctions = getStringProperty(ParameterList.FUNCTION_LIST, false).split(\",\");\n ArrayList<Function> functionArray = new ArrayList<Function>();\n \n for(String str : sFunctions){\n try{\n str = str.trim();\n Class<?> function = Class.forName(str);\n functionArray.add((Function)function.newInstance());\n }\n catch(ClassNotFoundException e){\n throw new ClassNotFoundException(\"Error loading the function set. Class \" + str + \" not found\", e);\n }\n }\n \n return functionArray.toArray(new Function[functionArray.size()]);\n }", "public void llamarFuncion(String nombreFuncion, String symb, Integer in) throws Exception{\n\n boolean running = false;\n java.lang.reflect.Method method = null;\n try{\n method = this.getClass().getMethod(nombreFuncion.toLowerCase(), symb.getClass(), in.getClass());\n }catch(SecurityException e){\n System.out.println(\"Security exception\");\n }catch(NoSuchMethodException e){\n System.out.println(\"Method doesn't exists\");\n }\n\n try{\n method.invoke(this, symb, in);\n }catch (IllegalArgumentException e){\n System.out.println(\"Argumento ilegal\");\n }catch (IllegalAccessException e){\n System.out.println(\"Acceso ilegal\");\n }\n }", "Calcul createCalcul();", "private Reviews filterByFunc(FilterFunction filterFunc)\n\t{\n\t\tArrayList<Review> filteredList = new ArrayList<Review>();\n\t\tfor(Review review : list)\n\t\t\tif(filterFunc.filter(review))\n\t\t\t\tfilteredList.add(review);\n\t\treturn new Reviews(filteredList);\n\t}", "public interface IOptimizableFuncExpr {\n public AbstractFunctionCallExpression getFuncExpr();\n\n public int getNumLogicalVars();\n\n public int getNumConstantVals();\n\n public LogicalVariable getLogicalVar(int index);\n\n public void setLogicalExpr(int index, ILogicalExpression logExpr);\n\n public ILogicalExpression getLogicalExpr(int index);\n\n public void setFieldName(int index, List<String> fieldName);\n\n public List<String> getFieldName(int index);\n\n public void setFieldType(int index, IAType fieldName);\n\n public IAType getFieldType(int index);\n\n public void setOptimizableSubTree(int index, OptimizableOperatorSubTree subTree);\n\n public OptimizableOperatorSubTree getOperatorSubTree(int index);\n\n public IAlgebricksConstantValue getConstantVal(int index);\n\n public int findLogicalVar(LogicalVariable var);\n\n public int findFieldName(List<String> fieldName);\n\n public void substituteVar(LogicalVariable original, LogicalVariable substitution);\n\n public void setPartialField(boolean partialField);\n\n public boolean containsPartialField();\n\n public void setSourceVar(int index, LogicalVariable var);\n\n public LogicalVariable getSourceVar(int index);\n}", "private LinearAVF cloneLinearAVF() {\n LinearAVF avf = new LinearAVF();\n // value function\n Arrays.stream(Criterion.values())\n .forEach(\n c -> {\n if (c.hasBooleanDomain()) {\n avf.setInternalValueFunction(c, this.getInternalBooleanValueFunction(c));\n } else if (c.isDoubleCrescent()) {\n avf.setInternalValueFunction(c, this.getInternalLinearValueFunction(c));\n } else if (c.isDoubleDecrease()) {\n avf.setInternalValueFunction(c, this.getInternalReversedLinearValueFunction(c));\n }\n });\n // weights\n Arrays.stream(Criterion.values())\n .forEach(criterion -> avf.weight.put(criterion, this.weight.get(criterion)));\n return avf;\n }", "@SuppressWarnings ( \"unchecked\" )\n private static List<LogEntry> getWhere ( final List<Criterion> where ) {\n return (List<LogEntry>) getWhere( LogEntry.class, where );\n }", "@Query( value = \"SELECT * FROM tb_funcionario f\" +\n \" WHERE f.data_contratacao >= :data\",\n nativeQuery = true)\n List<Funcionario> findDataContratacaoMaiorQue(LocalDate data);", "public interface EvaluatorFactory {\n Evaluator createEvaluator(RelationalOperator operator);\n}", "String getIfFunction(String condition, String exprtrue, String exprfalse);", "WindowingClauseOperandPreceding createWindowingClauseOperandPreceding();", "UserFunction getUserFunctions(int index);", "private List<Condition> generate(Expression exp)\n {\n return generate(exp, fun, callers);\n }", "@CheckResult\n public Where where(@NonNull Expr expr) {\n return new Where(this, expr);\n }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Calc.Function function = token.getValue(); // e.g. CalcGrammar.Function.sin\n Expression argument = next.pollFirst().getTarget(); // e.g. Expression.Variable(\"x\")\n return new Expression.Function(function, argument);\n }", "@Override\r\n public Funcionario consultarFuncionarioPorId(long id) throws Exception {\n return rnFuncionario.consultarPorId(id);\r\n }", "public Object lambda22(Object i1) {\n Object x = Scheme.applyToArgs.apply2(this.staticLink.sk, i1);\n return x != Boolean.FALSE ? x : this.staticLink.lambda7loupOr(lists.cdr.apply1(this.res));\n }", "public Function( String name )\n {\n this.name = name;\n }", "@Test\n public void tableFunctionInWhere() throws Exception {\n String sql = \"explain select k1 from db1.tbl1 where explode_split(k2, \\\",\\\");\";\n String explainString = UtFrameUtils.getSQLPlanOrErrorMsg(ctx, sql);\n Assert.assertTrue(\n explainString.contains(\"No matching function with signature: explode_split(varchar(-1), varchar(-1)).\"));\n }", "@Override\r\n\tpublic List<Function> getFunctionByModulesByPager(Modules modules, PagerUtil pager) {\n\t\tString hql = \"from Function f where f.modules.name=? \";\r\n\t\treturn getListByPage(hql, pager, modules.getName());\r\n\t}", "SQLCall createSQLCall();", "public QueryExecution createQueryExecution(Query qry);", "R apply(T t);", "public final <R> SelectStmt<T, R> select(Function<T, R> s) {\n return new SelectStmt<>(previousResults, source, false, s);\n }", "public static SqlFunction extractSqlOperatorFromWrapper(final SqlFunction sqlFunction) {\n if(sqlFunction instanceof DrillCalciteSqlWrapper) {\n return (SqlFunction) ((DrillCalciteSqlWrapper) sqlFunction).getOperator();\n } else {\n return sqlFunction;\n }\n }", "private <R> Callable<MultiResponse> createCallable(final HRegionLocation loc,\n final MultiAction<R> multi, final byte [] tableName) {\n final HConnection connection = this;\n return new Callable<MultiResponse>() {\n public MultiResponse call() throws IOException {\n ServerCallable<MultiResponse> callable =\n new ServerCallable<MultiResponse>(connection, tableName, null) {\n public MultiResponse call() throws IOException {\n return server.multi(multi);\n }\n @Override\n public void connect(boolean reload) throws IOException {\n server = connection.getHRegionConnection(loc.getHostname(), loc.getPort());\n }\n };\n return callable.withoutRetries();\n }\n };\n }", "AnalyticExprArg createAnalyticExprArg();", "AggregateFunction getAggregateFunctions(int index);", "public final <F, S> SelectStmt<T, Tuple<F, S>> select(Function<T, F> first, Function<T, S> second) {\n Function<T, Tuple<F, S>> converter = (element) -> (new Tuple<>(first.apply(element), second.apply(element)));\n return new SelectStmt<>(previousResults, source, false, converter);\n }", "static <T> Function<T, SibillaValue> apply(DoubleUnaryOperator op, Function<T,SibillaValue> f) {\n return arg -> SibillaValue.of(op.applyAsDouble(f.apply(arg).doubleOf()));\n }", "private static void addFunciones() {\n funciones = new ArrayList<GlobalSimilarityNode>();\n funciones.add(new ParticularSimilGLNode());\n funciones.add(new TemporalSimilGLNode());\n\n }", "public abstract AbstractFunction getFunction(String name) throws BadAlloc;", "@Test\n public void testMultiFunction() throws Exception {\n String sql = \"SELECT 5 + length(concat(a, 'x')) FROM g\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node function1Node = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, Function.ID);\n verifyProperty(function1Node, Function.NAME_PROP_NAME, \"+\");\n verifyConstant(function1Node, Function.ARGS_REF_NAME, 1, 5);\n \n Node function2Node = verify(function1Node, Function.ARGS_REF_NAME, 2, Function.ID);\n verifyProperty(function2Node, Function.NAME_PROP_NAME, \"length\");\n \n Node function3Node = verify(function2Node, Function.ARGS_REF_NAME, Function.ID);\n verifyProperty(function3Node, Function.NAME_PROP_NAME, \"concat\");\n verifyElementSymbol(function3Node, Function.ARGS_REF_NAME, 1, \"a\");\n verifyConstant(function3Node, Function.ARGS_REF_NAME, 2, \"x\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"g\");\n \n verifySql(\"SELECT (5 + length(concat(a, 'x'))) FROM g\", fileNode);\n }", "PivotForClause createPivotForClause();", "FullExpression createFullExpression();", "private void clausuraLambda(int q) {\n\t\n\tint qf;\n\tfor(Transicion t : d)\n\t if((qf = t.obtenerEstadoSiguiente(q, LAMBDA)) != 0)\n\t\tclausuraLambda(qf);\n\n\tauxiliarClausuraLambda.add(q);\n }", "public Object lambda23() {\n return this.staticLink.lambda7loupOr(lists.cdr.apply1(this.res));\n }", "T getFunction(String functionName) throws IllegalArgumentException;", "public static void main(String[] args) {\n\n List<String> functionArgumentOfA = new ArrayList<>();\n functionArgumentOfA.add(\"Boolean\");\n functionArgumentOfA.add(\"Integer\");\n functionArgumentOfA.add(\"Integer\");\n\n Function functionA = new Function(\"A\", false, functionArgumentOfA);\n\n\n List<String> functionArgumentOfB = new ArrayList<>();\n functionArgumentOfB.add(\"Integer\");\n functionArgumentOfB.add(\"Integer\");\n functionArgumentOfB.add(\"Integer\");\n\n Function functionB = new Function(\"B\", false, functionArgumentOfB);\n\n List<String> functionArgumentOfC = new ArrayList<>();\n functionArgumentOfC.add(\"Integer\");\n\n Function functionC = new Function(\"C\", true, functionArgumentOfC);\n\n FunctionSearchPlugin searchPlugin = new FunctionSearchPlugin();\n\n List<Function> functions = new ArrayList<>();\n\n functions.add(functionA);\n functions.add(functionB);\n functions.add(functionC);\n\n searchPlugin.register(functions);\n //Search for functions now\n //Integer, Integer, Integer should return B and C\n\n List<String> firstSearch = new ArrayList<>();\n firstSearch.add(\"Integer\");\n firstSearch.add(\"Integer\");\n firstSearch.add(\"Integer\");\n\n List<Function> searchResponse = searchPlugin.searchFunctions(firstSearch);\n System.out.format(\"Query: %s\", String.join(\", \", firstSearch) + \"\\n\");\n System.out.println(\"Response: \");\n printFunctionSignature(searchResponse);\n\n\n List<String> secondSearch = new ArrayList<>();\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n\n searchResponse = searchPlugin.searchFunctions(secondSearch);\n System.out.format(\"Query: %s\", String.join(\", \", secondSearch) + \"\\n\");\n System.out.println(\"Response: \");\n printFunctionSignature(searchResponse);\n\n }", "public interface WhereHqlGetter {\n /**\n * 生成查询的hql语句\n *\n * @param entityName 要查询的实体名称\n * @param modelName 实体在查询中的别名\n * @param enableSort 启用排序\n * @return\n */\n KeyValuePair<String, Map<String, Object>> getWhereHql(String entityName, String modelName, boolean enableSort);\n\n /**\n * 生成查询条数的语句\n * @param entityName\n * @param modelName\n * @return\n */\n KeyValuePair<String, Map<String, Object>> getCountHql(String entityName, String modelName);\n}", "default <V> Fn<V, U> compose(Fn<V, T> before){\n Objects.requireNonNull(before);\n return (V v)-> apply(before.apply(v));\n }", "static <T> Function<T,SibillaValue> apply(UnaryOperator<SibillaValue> op, Function<T,SibillaValue> f1) {\n return arg -> op.apply(f1.apply(arg));\n }", "public FilterCriterion createFilter(String column, Object value, FilterCriterion.FilterType type)\n {\n return new FilterCriterion(column, value, type);\n }", "public Function getFunction()\n\t{\n\t\treturn function;\n\t}", "public static TreeNode makeFunction(String function,\n List<TreeNode> children,\n ArrowType retType) {\n return new FunctionNode(function, children, retType);\n }", "public Cond newCond() {\n return new Cond();\n }", "public static void main(String[] args) {\n\n Function<Integer, String> parOuImpar = n -> n % 2 == 0 ? \"Par\" : \"Ímpar\";\n\n System.out.println(parOuImpar.apply(27));\n\n Function<String, String> oResutladoE = v -> \"O resultado é: \" + v;\n\n Function<String, String> empolgado = x -> x + \"!!\";\n\n Function<String, String> duvida = v -> v + \"??\";\n\n String resultadoFinal = parOuImpar\n .andThen(oResutladoE) //Função encadeada\n .andThen(empolgado) //Função encadeada\n .apply(27);\n System.out.println(resultadoFinal);\n\n String resutladoFinal2 = parOuImpar\n .andThen(duvida)\n .apply(33);\n System.out.println(resutladoFinal2);\n\n }", "private void jetFunctions(){\n\t\tInvokeExpr invokeExpr = (InvokeExpr) rExpr;\n\t\tSootMethodRef methodRef = invokeExpr.getMethodRef();\n\t\t\n\t\t//if this is a java.lang.String.func, we don't need to declare it\n\t\tif(StringModeling.stringMethods.contains(methodRef.getSignature())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString funStr = constructFunStr(invokeExpr);\n\t\tType thisType = null;\n\t\tif(!fileGenerator.getDeclaredFunctions().contains(funStr)){\n\t\t\tif(invokeExpr instanceof StaticInvokeExpr){\n\t\t\t\twriter.println(Z3MiscFunctions.v().getFuncDeclareStmt(funStr, thisType,\n\t\t\t\t\t\tmethodRef.parameterTypes(), methodRef.returnType()));\n\t\t\t}else{\n\t\t\t\tif(invokeExpr instanceof InterfaceInvokeExpr){\n\t\t\t\t\tthisType = ((InterfaceInvokeExpr) invokeExpr).getBase().getType();\n\t\t\t\t}else if(invokeExpr instanceof SpecialInvokeExpr){\n\t\t\t\t\tthisType = ((SpecialInvokeExpr) invokeExpr).getBase().getType();\n\t\t\t\t}else if(invokeExpr instanceof VirtualInvokeExpr){\n\t\t\t\t\tthisType = ((VirtualInvokeExpr) invokeExpr).getBase().getType();\n\t\t\t\t}\n\t\t\t\twriter.println(Z3MiscFunctions.v().getFuncDeclareStmt(funStr, thisType,\n\t\t\t\t\t\tmethodRef.parameterTypes(), methodRef.returnType()));\n\t\t\t}\n\t\t\tfileGenerator.getDeclaredFunctions().add(funStr);\n\t\t}\n\t}", "Lexpr createLexpr();", "public InternalResultsResponse<HorarioFunc> fetchHorafuncsByRequest(HoraFuncInquiryRequest request);", "Operand createOperand();" ]
[ "0.61931497", "0.55644155", "0.551341", "0.5394007", "0.53204983", "0.5180416", "0.51688874", "0.5156379", "0.5070401", "0.5054794", "0.50106096", "0.50012606", "0.49294412", "0.4913087", "0.48798117", "0.48348302", "0.483367", "0.4797723", "0.47925332", "0.47855157", "0.47812787", "0.47601742", "0.4756496", "0.4747487", "0.47341293", "0.47321787", "0.47157687", "0.47005284", "0.46981597", "0.46945566", "0.46797815", "0.46728244", "0.46551183", "0.46536222", "0.46520293", "0.46327856", "0.46117997", "0.46103057", "0.46060643", "0.45816863", "0.45804778", "0.45756346", "0.4574662", "0.4573556", "0.45727703", "0.45648608", "0.45419854", "0.45383677", "0.4538186", "0.45320225", "0.452765", "0.45254752", "0.45251733", "0.45202354", "0.45174584", "0.4517018", "0.45135587", "0.45067483", "0.45036337", "0.4499527", "0.44915265", "0.4483133", "0.4480776", "0.44802895", "0.44734728", "0.44718862", "0.4468723", "0.44679752", "0.44633543", "0.44620514", "0.44546264", "0.44543505", "0.4452116", "0.44483656", "0.4445998", "0.44434252", "0.44356617", "0.44347087", "0.44312164", "0.4430625", "0.44215837", "0.4418744", "0.4414909", "0.44135997", "0.44091982", "0.44044775", "0.44025597", "0.43977866", "0.43885985", "0.4380257", "0.43793243", "0.4375949", "0.43725124", "0.4371941", "0.43718734", "0.43645516", "0.43619117", "0.43616146", "0.4353614", "0.43529698", "0.43527445" ]
0.0
-1
Agrega un parametro a la funcion
public LnwRestrictionFunction addParam( Object param ) { values.add( LnwSqlParameter.adaptData(param) ); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void asignarFuncionUnParametro(Token id, Token param) {\t\n\t\tHashtable variables = tabla.getTable(); \n\t\ttablafunc1.put(id.image, tablafunc2);\n\t\ttablafunc2.put(param.image, variables.get(param.image));\n\t\tSystem.out.println(\"Se guardo la funcion '\" + id.image + \"' con el parametro '\" + param.image + \"'\");\n\t}", "public static void asignarFuncionCeroParametros(Token id) {\t \n\t\ttablafunc1.put(id.image, 0);\n\t\tSystem.out.println(\"Se guardo la funcion '\" + id.image + \"' sin parametros \");\n\t}", "public static void asignarFuncionDosParametros(Token id, Token param1, Token param2) {\t\n\t\tHashtable variables = tabla.getTable(); \n\t\ttablafunc1.put(id.image, tablafunc2);\n\t\tString parametros = param1.image + \", \" + param2.image;\n\t\tint valorParam1 = (Integer)variables.get(param1.image);\n\t\tint valorParam2 = (Integer)variables.get(param2.image);\n\t\t//el valor que se le da es la suma de los valores que ya tenian esos parametros\n\t\ttablafunc2.put(parametros, valorParam1 + valorParam2);\n\t\tSystem.out.println(\"Se guardo la funcion '\" + id.image + \"' con los parametros '\" + parametros + \"'\");\n\t}", "String toParameter();", "public Tipo visitParameter(DECAFParser.ParameterContext ctx){\r\n\t\tVarDec var =new VarDec(ctx.ID().getText(),tablaSimbolos.searchTipo(ctx.parameterType().getText()),0,position);\r\n\t\tfirmaA.addParam(var);\r\n\t\taddComment(\"paramname: \"+var.getNombre()+\"-position: \"+position);\r\n\t\tposition+=var.getByteSize();\r\n\t\treturn tablaSimbolos.correct();\r\n\t}", "private void addParameter(int param) {\r\n command_parameters.addInt(param);\r\n }", "Parameter getParameter();", "public Final_parametre() {\r\n\t}", "java.lang.String getParameterValue();", "Funcionario(){\n }", "@Override\n protected void adicionar(Funcionario funcionario) {\n\n }", "String getParam( String paraName );", "public void param(int direccionValorParam, int numeroParam){\n String valorParam = \"\";\n //traduce casos de direccionamiento indirecto\n direccionValorParam = traduceDirIndirecto(direccionValorParam);\n // obtener la direccion de la variable parametrizada en el procedimiento llamado\n int dirParamRegistro = this.directorioProcedimientos.\n obtenerProcedimientoPorId(this.pilaEras.peek().\n getIdentificadorProcedimiento()).getDireccionParametros().get(numeroParam);\n\n if (ManejadorMemoria.isGlobal(direccionValorParam)){\n // obtener el valor del parametro enviado\n valorParam = this.registroGlobal.getValor(direccionValorParam);\n\n } else if (ManejadorMemoria.isConstante(direccionValorParam)){\n // REVISAR QUE NO SEA UN PARAMETRO POR REFERENCIA\n if (this.directorioProcedimientos.\n obtenerProcedimientoPorId(this.pilaEras.peek().\n getIdentificadorProcedimiento()).getIndicadorPorReferencia().get(numeroParam)){\n // ERROR\n throw new IllegalArgumentException();\n }\n // obtener el valor del parametro enviado\n valorParam = this.directorioProcedimientos.getConstantes().get(direccionValorParam).getValorConstante();\n\n } else { // VARIABLE LOCAL\n // obtener el valor del parametro enviado\n valorParam = this.pilaRegistros.peek().getValor(direccionValorParam);\n }\n // asignar el valor del parametro a su variable correspondiente\n this.pilaEras.peek().guardaValor(dirParamRegistro, valorParam);\n }", "public void Metodo1(String valor1){\r\n\r\n }", "Parameter createParameter();", "public Funcionario(String nome, double salario){//construtor\nthis.nome=nome;\nthis.salario=salario;\n\n}", "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "protected abstract Object getConsequenceParameter(Object consequence);", "void addParam(OpCode opcode, String param) {\n\t\t// We need to add 'param' to pool of constants and add a reference to it\n\t\tint idx = parseParam(opcode, param);\n\t\tcode.add(idx);\n\t}", "final public void function() throws ParseException {\n String name = \"\";\n LinkedList<String> params = new LinkedList<String>();\n jj_consume_token(TO);\n jj_consume_token(VARIABLE);\n name = token.image;\n label_8:\n while (true) {\n if (jj_2_44(4)) {\n ;\n } else {\n break label_8;\n }\n jj_consume_token(PARAM);\n params.add(token.image);\n }\n //retorna el viejo valor (si ya habia uno con esa misma key) y null si es la primera vez que se inserta.\n if(functions.put(name,params)!=null) {\n {if (true) throw new ParseException(\"La funcion: \"+ name +\" ya fue previamente definida.\");}\n }\n funparams = params;\n label_9:\n while (true) {\n if (jj_2_45(4)) {\n ;\n } else {\n break label_9;\n }\n jj_consume_token(34);\n }\n jj_consume_token(OUTPUT);\n label_10:\n while (true) {\n if (jj_2_46(4)) {\n ;\n } else {\n break label_10;\n }\n jj_consume_token(34);\n }\n command(salidaS);\n label_11:\n while (true) {\n if (jj_2_47(4)) {\n ;\n } else {\n break label_11;\n }\n jj_consume_token(34);\n }\n jj_consume_token(END);\n funparams = null;\n }", "private void addParam(TaskParam param){\r\n\t\tint row = table.getRowCount();\r\n\t\t\r\n\t\tTextBox txtName = new TextBox();\r\n\t\tTextBox txtValue = new TextBox();\r\n\t\t\r\n\t\ttxtName.setText(param.getName());\r\n\t\ttxtValue.setText(param.getValue());\r\n\t\t\r\n\t\ttable.setWidget(row, 0,txtName);\r\n\t\ttable.setWidget(row, 1,txtValue);\r\n\t\tButton button = new OpenXDataButton(OpenXDataFacade.getOpenXDataConstants().label_remove());\r\n\t\tbutton.addClickHandler(this);\r\n\t\ttable.setWidget(row, 2,button);\r\n\r\n\t\ttable.getFlexCellFormatter().setWidth(row, 2, \"10%\");\r\n\t\ttable.getWidget(row, 0).setWidth(\"100%\");\r\n\t\ttable.getWidget(row, 1).setWidth(\"100%\");\r\n\t\t\r\n\t\ttxtName.addChangeHandler(new ChangeHandler() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onChange(ChangeEvent event) {\r\n\t\t\t\tWidget sender = (Widget) event.getSource();\r\n\t\t\t\tupdateName(sender);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttxtName.addKeyPressHandler(new KeyPressHandler() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onKeyPress(KeyPressEvent event) {\r\n\t\t\t\tWidget sender = (Widget) event.getSource();\r\n\t\t\t\tupdateName(sender);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttxtValue.addChangeHandler(new ChangeHandler() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onChange(ChangeEvent event) {\r\n\t\t\t\tWidget sender = (Widget) event.getSource();\r\n\t\t\t\tupdateValue(sender);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttxtValue.addKeyPressHandler(new KeyPressHandler() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onKeyPress(KeyPressEvent event) {\r\n\t\t\t\tWidget sender = (Widget) event.getSource();\r\n\t\t\t\tupdateValue(sender);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "Param createParam();", "Param createParam();", "Param createParam();", "public void setMotivoRechazo(biz.belcorp.www.canonico.ffvv.vender.TMotivoRechazo param){\n \n this.localMotivoRechazo=param;\n \n\n }", "void pasarALista();", "public void addParameter(ParmInfoEntry p){\n\t}", "public abstract String toFORMParam();", "void agregar(int c, int x);", "public void caricaPartita(String partita) {\n\r\n }", "private static void variosParametros(String nombre, int ... numeros){\n System.out.println(\"nombre = \" + nombre);\n imprimirNumeros(numeros);\n }", "OpFunctionArg createOpFunctionArg();", "Report addParameter(String parameter, Object value);", "public void tutki(Suunta suunta);", "public abstract void addParameter(String key, Object value);", "public java.lang.String getParam0(){\n return localParam0;\n }", "public java.lang.String getParam0(){\n return localParam0;\n }", "public java.lang.String getParam0(){\n return localParam0;\n }", "public java.lang.String getParam0(){\n return localParam0;\n }", "IParameter getParameter();", "PARAM createPARAM();", "public void limpiarListaParametro() throws Exception;", "static ParameterLine generateParameterLine(final ParameterInterface pi, final String param,\r\n final ActionListener listener) {\n final String paramName = Mysys.encString(param);\r\n final Object paramValue = pi.getParameter(param);\r\n final List<Class<?>> allowedClasses = pi.getAllowedClass(param);\r\n final ParameterLine retObj = new ParameterLine();\r\n retObj.setOpisByClass(allowedClasses, paramName, listener);\r\n retObj.setComponentByClass(allowedClasses, paramValue);\r\n return retObj;\r\n }", "Object getParameter(String name);", "@Override\r\n\tpublic <T> EktParam creatParam(T t) {\n\t\todo = (ODO) t;\r\n\t\todo.setEktSql(null);\r\n\t\tif (EKTIO.getInstance().ektSwitch()) {\r\n\t\t\t\r\n\t\t\tReg reg = ektParam.getReg();\r\n\t\t\tPat pat = ektParam.getPat();\r\n\t\t\t\r\n\t\t\tTParm orderOldParm = ektParam.getOrderOldParm();\r\n\t\t\tTParm orderParm = ektParam.getOrderParm();\r\n\r\n\t\t\tif (odo == null) {\r\n\t\t\t\todoMainControl.messageBox(\"E0115\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tektParam.setOpType(\"\");\r\n\t\t\t\r\n\t\t\tTParm unParm = new TParm();\r\n\t\t\tif (orderOldParm == null) {\r\n\t\t\t\todoMainControl.messageBox(\"没有需要操作的医嘱\");\r\n\t\t\t\tektParam.setOpType(\"5\");\r\n\t\t\t\treturn ektParam;\r\n\t\t\t}\r\n\t\t\tif(orderParm.getValue(\"OP_FLG\").length()>0 && orderParm.getInt(\"OP_FLG\")==5){\r\n\t\t\t\todoMainControl.messageBox(\"没有需要操作的医嘱\");\r\n\t\t\t\tektParam.setOpType(\"5\");\r\n\t\t\t\treturn ektParam;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tTParm updateParm=orderParm.getParm(\"updateParm\");\r\n\t\t\t//TODO\r\n\t\t\tboolean unFlg = odoMainControl.updateOrderParm(updateParm, orderOldParm, unParm);\r\n\t\t\tTParm parm = new TParm();\r\n\t\t\t isDelOrder = false;// 执行删除医嘱\r\n\t\t\t//boolean exeDelOrder = false;// 执行删除医嘱\r\n\t\t\tString delFlg=orderParm.getValue(\"DEL_FLG\");\r\n\t\t\t// 如果出现所有医嘱删除也会出现IS_NEW = false 状态 所有需要在执行方法时先查询当前所有医嘱\r\n\t\t\t// 校验是否发送删除检验检查接口\r\n\t\t\tif(delFlg.equals(\"Y\")){\r\n\t\t\t\tisDelOrder = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\torderParm.setData(\"BUSINESS_TYPE\", \"ODO\");\r\n\t\t\tparm.setData(\"CASE_NO\",reg.caseNo());\r\n\t\t\torderParm.setData(\"REGION_CODE\", Operator.getRegion());\r\n\t\t\torderParm.setData(\"MR_NO\", pat.getMrNo());\r\n\t\t\torderParm.setData(\"NAME\", pat.getName());\r\n\t\t\torderParm.setData(\"IDNO\", pat.getIdNo());\r\n\t\t\torderParm.setData(\"SEX\", pat.getSexCode() != null\r\n\t\t\t\t\t&& pat.getSexCode().equals(\"1\") ? \"男\" : \"女\");\r\n\t\t\t// 送医疗卡,返回医疗卡的回传值\r\n\t\t\torderParm.setData(\"INS_FLG\", \"N\");// 医保卡操作\r\n\t\t\torderParm.setData(\"UN_FLG\", unFlg ? \"Y\" : \"N\");// 医生修改的医嘱超过医疗卡金额执行的操作\r\n\t\t\torderParm.setData(\"unParm\", unParm.getData());// 获得执行修改的医嘱\r\n\t\t\tif (null != orderOldParm.getValue(\"OPBEKTFEE_FLG\")\r\n\t\t\t\t\t&& orderOldParm.getValue(\"OPBEKTFEE_FLG\").equals(\"Y\")) {\r\n\t\t\t\torderParm.setData(\"OPBEKTFEE_FLG\", \"Y\");\r\n\t\t\t}\r\n\t\t\t//直接收费操作如果有修改的收费医嘱 不能执行取消操作\r\n\t\t\tif(null == orderOldParm.getValue(\"OPBEKTFEE_FLG\")\r\n\t\t\t\t\t|| orderOldParm.getValue(\"OPBEKTFEE_FLG\").length()<=0){\r\n\t\t\t\tif(unFlg)\r\n\t\t\t\t\torderParm.setData(\"OPBEKTFEE_FLG\", \"Y\");\r\n\t\t\t}\r\n\t\t\tif (odoMainControl.resultData.getCount(\"CASE_NO\")>0) {//====pangben 2014-1-20 建行卡校验\r\n\t\t\t\todoMainControl.messageBox(\"P0001\");\r\n//\t\t\t\tparm.setData(\"OP_TYPE\", 5);\r\n\t\t\t\tektParam.setOpType(\"5\");\r\n\t\t\t\treturn ektParam;\r\n\t\t\t}else{\r\n\t\t\t\todoMainControl.ektReadParm = EKTIO.getInstance().TXreadEKT();\r\n\t\t\t\tif (null == odoMainControl.ektReadParm || odoMainControl.ektReadParm.getErrCode() < 0\r\n\t\t\t\t\t\t|| null == odoMainControl.ektReadParm.getValue(\"MR_NO\")) {\r\n\t\t\t\t\todoMainControl.messageBox(\"医疗卡读卡有误。\");\r\n\t\t\t\t\todoMainControl.setValue(\"LBL_EKT_MESSAGE\", \"未读卡\");//====pangben 2013-5-3添加读卡\r\n\t\t\t\t\todoMainControl.ekt_lable.setForeground(red);//======yanjing 2013-06-14设置读卡颜色\r\n\t\t\t\t\tektParam.setOpType(\"5\");\r\n\t\t\t\t\treturn ektParam;\r\n\t\t\t\t}else{\r\n\t\t\t\t\todoMainControl.setValue(\"LBL_EKT_MESSAGE\", \"已读卡\");//====pangben 2013-5-3添加读卡\r\n\t\t\t\t\todoMainControl.ekt_lable.setForeground(green);//======yanjing 2013-06-14设置读卡颜色\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!odoMainControl.ektReadParm.getValue(\"MR_NO\").equals(odoMainControl.getValue(\"MR_NO\"))) {\r\n\t\t\t\todoMainControl.messageBox(\"病患信息不符,此医疗卡病患名称为:\"\r\n\t\t\t\t\t\t+ odoMainControl.ektReadParm.getValue(\"PAT_NAME\"));\r\n\t\t\t\todoMainControl.ektReadParm = null;\r\n\t\t\t\tektParam.setOpType(\"5\");\r\n\t\t\t\treturn ektParam;\r\n\t\t\t}\r\n\t\t\tint type=0;\r\n\t\t\t//parm.setData(\"BILL_FLG\", \"Y\");\r\n\t\t\torderParm.setData(\"ektParm\", odoMainControl.ektReadParm.getData()); // 医疗卡数据\r\n\t\t\t\r\n\t\t\t\tboolean isNull = true;\r\n\t\t\t\tOpdOrder opdOrder = odo.getOpdOrder();\r\n\t\t\t\tString lastFilter = opdOrder.getFilter();\r\n\t\t\t\topdOrder.setFilter(\"\");\r\n\t\t\t\topdOrder.filter();\r\n\t\t\t\tfor (int i = 0; i < opdOrder.rowCount(); i++) {\r\n\t\t\t\t\tif(opdOrder.getItemString(i, \"ORDER_CODE\").length() > 0){\r\n\t\t\t\t\t\tisNull = false;\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\topdOrder.setFilter(lastFilter);\r\n\t\t\t\topdOrder.filter();\r\n\t\t\t\r\n\t\t\tektParam.setNull(isNull);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t} else {\r\n\t\t\todoMainControl.messageBox_(\"医疗卡接口未开启\");\r\n\t\t\treturn null;\r\n\t\t\t\r\n\r\n\t\t}\r\n\t\r\n\t\t\r\n\t\treturn ektParam;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private void addFuncArgument(ST template, String reg, String id, String argtype) {\n ST alloca = this.group.getInstanceOf(\"localdeclare\");\n alloca.add(\"reg\", reg);\n alloca.add(\"type\", argtype);\n template.add(\"allocaargs\", alloca.render() + \"\\n\");\n\n ST store = this.group.getInstanceOf(\"store\");\n store.add(\"type\", argtype);\n store.add(\"reg\", id);\n store.add(\"where\", reg);\n template.add(\"storeargs\", store.render() + \"\\n\");\n }", "public void c(ahd paramahd) {}", "public Funcionario(String nome, String funcao, int matricula) {\n\t\tsuper();\n\t\tthis.nome = nome;\n\t\tthis.funcao = funcao;\n\t\tthis.matricula = matricula;\n\t}", "void setParameter(String name, String value);", "QuerySql addParamer(Object... paramers);", "public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }", "public String getParameter(String name) throws IllegalArgumentException {\n\t if ( LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"getParameter() \" \n\t\t+ name);\n Via via=(Via)sipHeader;\n \n if (name == null) throw new\n IllegalArgumentException(\"JAIN-EXCEPTION: null argument\");\n return via.getParameter(name);\n }", "public void getParameters(Parameters parameters) {\n\n }", "void Planificar(Reserva unaReserva);", "java.lang.String getParameterName();", "void setParameter(String name, Object value);", "public void ee_parameter(Double ee_parameter) {\n }", "public void setParametr(double p) {\n parametr = p; // додано 26.12.2011\n timeServ = parametr; // 20.11.2012\n\n }", "public String getParameterFromX();", "@Override\n public void addParam(String param, Object value) {\n request.addProperty(param, value);\n }", "@Override\n\t\tpublic String getParameter(String name) {\n\t\t\treturn null;\n\t\t}", "void onAddParameterButtonClick();", "public AST_EXP_VAR_PARAM_FUNC( AST_VAR var, String name ,AST_EXP_LIST expList)\r\n\t{\r\n\t\tsuper(var, name, AST_EXP_LIST.toNativeList(expList));\r\n\t}", "public Object getParam() {\n return param;\n }", "OpFunctionArgAgregate createOpFunctionArgAgregate();", "public void passValue() {\n }", "public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Parametres\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_Param();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void addParameter(ConstraintParameter param) {\n\t\tif (m_parameters == null) {\n\t\t\tm_parameters = new ArrayList<ConstraintParameter>();\n\t\t\tm_parameterString = \"\";\n\t\t}\n\t\t\n\t\t// add this parameter info to the end of the list\n\t\tm_parameters.add(param);\n\t\tm_parameterString += \" :\" + param.toString();\n\t}", "void addTypedParameter(Parameter typedParameter);", "private Path addParam(AtonNode aton, Path path, HttpServletRequest request, String param) {\n String val = request.getParameter(param);\n if (StringUtils.isNotBlank(val)) {\n aton.updateTag(param, val);\n path = path.resolve(escape(val));\n }\n return path;\n }", "java.lang.String getArg();", "public Function getParameter(int index) throws IndexOutOfBoundsException;", "java.lang.String getParameterId();", "public String getParameterFromP();", "@Override\r\n public void setParameter(String parameters) {\r\n // dummy\r\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "@Override\n\tpublic void visit(JdbcParameter arg0) {\n\n\t}", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "ParameterSource createParameterSource();", "public void addParam(JParameter x) {\n params = Lists.add(params, x);\n }", "public String getParam() {\n return param;\n }", "public String getParam() {\n return param;\n }", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "public void setParamReformaTributaria(String paramReformaTributaria)\n {\n this.paramReformaTributaria=paramReformaTributaria;\n }", "ParameterList getParameters();", "private final void addParam(Object oParam, final int piModule)\n\t{\n\t\tswitch(piModule)\n\t\t{\n\t\t\tcase PREPROCESSING:\n\t\t\t\tthis.oPreprocessingParams.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase FEATURE_EXTRACTION:\n\t\t\t\tthis.oFeatureExtraction.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase CLASSIFICATION:\n\t\t\t\tthis.oClassification.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tMARF.debug(\"ModuleParams.addParam() - Unknown module type: \" + piModule);\n\t\t}\n\t}", "@Override\n\tpublic void visit(JdbcParameter arg0) {\n\t\t\n\t}", "public abstract boolean a(e parame, b paramb, int paramInt1, int paramInt2);", "public void verificaNulo(Object parametro, String mensagem) {\n if (parametro == null) {\n throw new NullPointerException(this.msgGeral + mensagem);\n }\n }", "public String getParameterFromY();", "public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Fen_Param\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_Param();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}", "public void addParameter(ParameterExtendedImpl param) {\n \tParameterExtendedImpl paramExt = parameters.getParameter(param.getIndex());\n \tif(paramExt != null)\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\n \tparamExt = parameters.getParameter(param.getIndex(), param.getDirection());\n \tif(paramExt != null){\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\treturn;\n \t}\n \t\n \taddToParameters(param);\n }", "public double getParam(String paramName);", "@Override\n\tpublic String getParameter(String name) {\n\t\treturn null;\n\t}", "public JVar addParameter(JType type, String name) {\n if(intf!=null)\n intfMethod.param(type,name);\n return implMethod.param(type,name);\n }", "public Function setParameter(int index, Function var) throws IndexOutOfBoundsException;", "public void addPedidoDetalle(biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle param){\n if (localPedidoDetalle == null){\n localPedidoDetalle = new biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle[]{};\n }\n\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localPedidoDetalle);\n list.add(param);\n this.localPedidoDetalle =\n (biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle[])list.toArray(\n new biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle[list.size()]);\n\n }", "public void addParam(Object obj) {\n\t\tparams.add(obj);\n\t}", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }" ]
[ "0.67177653", "0.65836656", "0.65710557", "0.63217723", "0.6232261", "0.6174161", "0.6159581", "0.6122871", "0.60642135", "0.6020384", "0.59822714", "0.59818244", "0.5975596", "0.59597415", "0.5953132", "0.58909225", "0.5867381", "0.5854788", "0.58083785", "0.58026034", "0.57926095", "0.57881355", "0.57881355", "0.57881355", "0.5781062", "0.57491696", "0.5703531", "0.5699886", "0.56837267", "0.567669", "0.5670647", "0.5649884", "0.5638051", "0.56333494", "0.5625714", "0.56169486", "0.56169486", "0.56169486", "0.56169486", "0.5597005", "0.5569907", "0.5562552", "0.5562057", "0.5555846", "0.5550933", "0.5533317", "0.5523551", "0.55230105", "0.5516473", "0.55162394", "0.5501757", "0.5496869", "0.5490391", "0.54886365", "0.54785293", "0.54759735", "0.5469862", "0.5447868", "0.54428476", "0.54422736", "0.54407036", "0.543411", "0.54286695", "0.5427269", "0.5421071", "0.5413755", "0.54080546", "0.5406648", "0.53929675", "0.5381181", "0.5380085", "0.53662544", "0.53579915", "0.5353047", "0.5341025", "0.5332185", "0.53292316", "0.5327693", "0.53235745", "0.53168094", "0.53116596", "0.53116596", "0.53004414", "0.528248", "0.52817523", "0.52805823", "0.5278857", "0.52780354", "0.52702016", "0.5258217", "0.525741", "0.525476", "0.5253935", "0.52525336", "0.52457374", "0.5238919", "0.52301335", "0.522932", "0.52244014", "0.52244014" ]
0.52764153
88
The following method shows an example of a synchronous gRPC call to remote recommendation service This method is called as part of a composite UI/backendforfrontend pattern for microservices
private List<Product> getrecommendedProductsSync(Product product) { List<Product> recommendedProducts = new ArrayList<Product>(); RecommendationsRequest request = RecommendationsRequest.newBuilder().addAllProductCategory(product.getCategories()).build(); // Blocking call to remote recommendation microservice try { ListRecommendationsResponse response = blockingStub.withDeadlineAfter(2, TimeUnit.SECONDS).listRecommendations(request); for (String pid : response.getProductIdsList()) { recommendedProducts.add(productService.findProductById(pid).get()); } } catch (StatusRuntimeException e) { e.printStackTrace(); } recommendedProducts.remove(product); return recommendedProducts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface GreetingServiceAsync {\r\n \r\n public void getAvailableDatasets(AsyncCallback<Map<Integer,String> >datasetResults);\r\n public void loadDataset(int datasetId,AsyncCallback<DatasetInformation> asyncCallback);\r\n public void computeLineChart(int datasetId,AsyncCallback<LineChartResults> asyncCallback);\r\n public void computeSomClustering(int datasetId,int linkage,int distanceMeasure,AsyncCallback<SomClusteringResults> asyncCallback);\r\n public void computeHeatmap(int datasetId,List<String>indexer,List<String>colIndexer,AsyncCallback<ImgResult> asyncCallback );\r\n public void computePCA(int datasetId,int comI,int comII, AsyncCallback<PCAResults> asyncCallback);\r\n public void computeRank(int datasetId,String perm,String seed,String[] colGropNames,String log2, AsyncCallback<RankResult> asyncCallback);\r\n public void createRowGroup(int datasetId, String name, String color, String type, int[] selection, AsyncCallback<Boolean> asyncCallback);\r\n public void createColGroup(int datasetId, String name, String color, String type, String[] selection, AsyncCallback<Boolean> asyncCallback);\r\n public void createSubDataset(String name,int[] selection,AsyncCallback<Integer> asyncCallback);\r\n public void updateDatasetInfo(int datasetId, AsyncCallback<DatasetInformation> asyncCallback);\r\n public void activateGroups(int datasetId,String[] rowGroups,String[] colGroups, AsyncCallback<DatasetInformation> asyncCallback);\r\n\r\n \r\n public void saveDataset(int datasetId, String newName,AsyncCallback<Integer> asyncCallback);\r\n \r\n}", "public abstract void retrain(Call serviceCall, Response serviceResponse, CallContext messageContext);", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Lists nodes.\n * </pre>\n */\n default void listNodes(\n com.google.cloud.tpu.v2alpha1.ListNodesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListNodesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets the details of a node.\n * </pre>\n */\n default void getNode(\n com.google.cloud.tpu.v2alpha1.GetNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.Node> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a node.\n * </pre>\n */\n default void createNode(\n com.google.cloud.tpu.v2alpha1.CreateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a node.\n * </pre>\n */\n default void deleteNode(\n com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Stops a node. This operation is only available with single TPU nodes.\n * </pre>\n */\n default void stopNode(\n com.google.cloud.tpu.v2alpha1.StopNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Starts a node.\n * </pre>\n */\n default void startNode(\n com.google.cloud.tpu.v2alpha1.StartNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates the configurations of a node.\n * </pre>\n */\n default void updateNode(\n com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists queued resources.\n * </pre>\n */\n default void listQueuedResources(\n com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListQueuedResourcesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets details of a queued resource.\n * </pre>\n */\n default void getQueuedResource(\n com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.QueuedResource>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a QueuedResource TPU instance.\n * </pre>\n */\n default void createQueuedResource(\n com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a QueuedResource TPU instance.\n * </pre>\n */\n default void deleteQueuedResource(\n com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Resets a QueuedResource TPU instance\n * </pre>\n */\n default void resetQueuedResource(\n com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getResetQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Generates the Cloud TPU service identity for the project.\n * </pre>\n */\n default void generateServiceIdentity(\n com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateServiceIdentityMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists accelerator types supported by this API.\n * </pre>\n */\n default void listAcceleratorTypes(\n com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAcceleratorTypesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets AcceleratorType.\n * </pre>\n */\n default void getAcceleratorType(\n com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.AcceleratorType>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAcceleratorTypeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists runtime versions supported by this API.\n * </pre>\n */\n default void listRuntimeVersions(\n com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListRuntimeVersionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets a runtime version.\n * </pre>\n */\n default void getRuntimeVersion(\n com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.RuntimeVersion>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetRuntimeVersionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves the guest attributes for the node.\n * </pre>\n */\n default void getGuestAttributes(\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetGuestAttributesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Simulates a maintenance event.\n * </pre>\n */\n default void simulateMaintenanceEvent(\n com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getSimulateMaintenanceEventMethod(), responseObserver);\n }\n }", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Returns a specific `Metrics Scope`.\n * </pre>\n */\n default void getMetricsScope(\n com.google.monitoring.metricsscope.v1.GetMetricsScopeRequest request,\n io.grpc.stub.StreamObserver<com.google.monitoring.metricsscope.v1.MetricsScope>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetMetricsScopeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Returns a list of every `Metrics Scope` that a specific `MonitoredProject`\n * has been added to. The metrics scope representing the specified monitored\n * project will always be the first entry in the response.\n * </pre>\n */\n default void listMetricsScopesByMonitoredProject(\n com.google.monitoring.metricsscope.v1.ListMetricsScopesByMonitoredProjectRequest request,\n io.grpc.stub.StreamObserver<\n com.google.monitoring.metricsscope.v1.ListMetricsScopesByMonitoredProjectResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListMetricsScopesByMonitoredProjectMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Adds a `MonitoredProject` with the given project ID\n * to the specified `Metrics Scope`.\n * </pre>\n */\n default void createMonitoredProject(\n com.google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateMonitoredProjectMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a `MonitoredProject` from the specified `Metrics Scope`.\n * </pre>\n */\n default void deleteMonitoredProject(\n com.google.monitoring.metricsscope.v1.DeleteMonitoredProjectRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteMonitoredProjectMethod(), responseObserver);\n }\n }", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resource on a given Google Cloud project and region.\n * `AzureClient` resources hold client authentication\n * information needed by the Anthos Multicloud API to manage Azure resources\n * on your Azure subscription on your behalf.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureClient(\n com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.\n * </pre>\n */\n default void getAzureClient(\n com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureClient>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resources on a given Google Cloud project and region.\n * </pre>\n */\n default void listAzureClients(\n com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureClientsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resource.\n * If the client is used by one or more clusters, deletion will\n * fail and a `FAILED_PRECONDITION` error will be returned.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureClient(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]\n * resource on a given Google Cloud Platform project and region.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureCluster(\n com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * </pre>\n */\n default void updateAzureCluster(\n com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * </pre>\n */\n default void getAzureCluster(\n com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureCluster>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]\n * resources on a given Google Cloud project and region.\n * </pre>\n */\n default void listAzureClusters(\n com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureClustersMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * Fails if the cluster has one or more associated\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureCluster(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Generates a short-lived access token to authenticate to a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * </pre>\n */\n default void generateAzureAccessToken(\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateAzureAccessTokenMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool],\n * attached to a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureNodePool(\n com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].\n * </pre>\n */\n default void updateAzureNodePool(\n com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.\n * </pre>\n */\n default void getAzureNodePool(\n com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureNodePool>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]\n * resources on a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * </pre>\n */\n default void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureNodePoolsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureNodePool(\n com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Returns information, such as supported Azure regions and Kubernetes\n * versions, on a given Google Cloud location.\n * </pre>\n */\n default void getAzureServerConfig(\n com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureServerConfig>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureServerConfigMethod(), responseObserver);\n }\n }", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Initializes a MetadataStore, including allocation of resources.\n * </pre>\n */\n default void createMetadataStore(\n com.google.cloud.aiplatform.v1.CreateMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateMetadataStoreMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific MetadataStore.\n * </pre>\n */\n default void getMetadataStore(\n com.google.cloud.aiplatform.v1.GetMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.MetadataStore>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetMetadataStoreMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists MetadataStores for a Location.\n * </pre>\n */\n default void listMetadataStores(\n com.google.cloud.aiplatform.v1.ListMetadataStoresRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListMetadataStoresResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListMetadataStoresMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a single MetadataStore and all its child resources (Artifacts,\n * Executions, and Contexts).\n * </pre>\n */\n default void deleteMetadataStore(\n com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteMetadataStoreMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates an Artifact associated with a MetadataStore.\n * </pre>\n */\n default void createArtifact(\n com.google.cloud.aiplatform.v1.CreateArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Artifact> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateArtifactMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific Artifact.\n * </pre>\n */\n default void getArtifact(\n com.google.cloud.aiplatform.v1.GetArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Artifact> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetArtifactMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists Artifacts in the MetadataStore.\n * </pre>\n */\n default void listArtifacts(\n com.google.cloud.aiplatform.v1.ListArtifactsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListArtifactsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListArtifactsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a stored Artifact.\n * </pre>\n */\n default void updateArtifact(\n com.google.cloud.aiplatform.v1.UpdateArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Artifact> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateArtifactMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes an Artifact.\n * </pre>\n */\n default void deleteArtifact(\n com.google.cloud.aiplatform.v1.DeleteArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteArtifactMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Purges Artifacts.\n * </pre>\n */\n default void purgeArtifacts(\n com.google.cloud.aiplatform.v1.PurgeArtifactsRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getPurgeArtifactsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a Context associated with a MetadataStore.\n * </pre>\n */\n default void createContext(\n com.google.cloud.aiplatform.v1.CreateContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateContextMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific Context.\n * </pre>\n */\n default void getContext(\n com.google.cloud.aiplatform.v1.GetContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists Contexts on the MetadataStore.\n * </pre>\n */\n default void listContexts(\n com.google.cloud.aiplatform.v1.ListContextsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListContextsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListContextsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a stored Context.\n * </pre>\n */\n default void updateContext(\n com.google.cloud.aiplatform.v1.UpdateContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateContextMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a stored Context.\n * </pre>\n */\n default void deleteContext(\n com.google.cloud.aiplatform.v1.DeleteContextRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteContextMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Purges Contexts.\n * </pre>\n */\n default void purgeContexts(\n com.google.cloud.aiplatform.v1.PurgeContextsRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getPurgeContextsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Adds a set of Artifacts and Executions to a Context. If any of the\n * Artifacts or Executions have already been added to a Context, they are\n * simply skipped.\n * </pre>\n */\n default void addContextArtifactsAndExecutions(\n com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getAddContextArtifactsAndExecutionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Adds a set of Contexts as children to a parent Context. If any of the\n * child Contexts have already been added to the parent Context, they are\n * simply skipped. If this call would create a cycle or cause any Context to\n * have more than 10 parents, the request will fail with an INVALID_ARGUMENT\n * error.\n * </pre>\n */\n default void addContextChildren(\n com.google.cloud.aiplatform.v1.AddContextChildrenRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.AddContextChildrenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getAddContextChildrenMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Remove a set of children contexts from a parent Context. If any of the\n * child Contexts were NOT added to the parent Context, they are\n * simply skipped.\n * </pre>\n */\n default void removeContextChildren(\n com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.RemoveContextChildrenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getRemoveContextChildrenMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves Artifacts and Executions within the specified Context, connected\n * by Event edges and returned as a LineageSubgraph.\n * </pre>\n */\n default void queryContextLineageSubgraph(\n com.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.LineageSubgraph>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getQueryContextLineageSubgraphMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates an Execution associated with a MetadataStore.\n * </pre>\n */\n default void createExecution(\n com.google.cloud.aiplatform.v1.CreateExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateExecutionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific Execution.\n * </pre>\n */\n default void getExecution(\n com.google.cloud.aiplatform.v1.GetExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetExecutionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists Executions in the MetadataStore.\n * </pre>\n */\n default void listExecutions(\n com.google.cloud.aiplatform.v1.ListExecutionsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListExecutionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListExecutionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a stored Execution.\n * </pre>\n */\n default void updateExecution(\n com.google.cloud.aiplatform.v1.UpdateExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateExecutionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes an Execution.\n * </pre>\n */\n default void deleteExecution(\n com.google.cloud.aiplatform.v1.DeleteExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteExecutionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Purges Executions.\n * </pre>\n */\n default void purgeExecutions(\n com.google.cloud.aiplatform.v1.PurgeExecutionsRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getPurgeExecutionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Adds Events to the specified Execution. An Event indicates whether an\n * Artifact was used as an input or output for an Execution. If an Event\n * already exists between the Execution and the Artifact, the Event is\n * skipped.\n * </pre>\n */\n default void addExecutionEvents(\n com.google.cloud.aiplatform.v1.AddExecutionEventsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.AddExecutionEventsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getAddExecutionEventsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Obtains the set of input and output Artifacts for this Execution, in the\n * form of LineageSubgraph that also contains the Execution and connecting\n * Events.\n * </pre>\n */\n default void queryExecutionInputsAndOutputs(\n com.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.LineageSubgraph>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getQueryExecutionInputsAndOutputsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a MetadataSchema.\n * </pre>\n */\n default void createMetadataSchema(\n com.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.MetadataSchema>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateMetadataSchemaMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific MetadataSchema.\n * </pre>\n */\n default void getMetadataSchema(\n com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.MetadataSchema>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetMetadataSchemaMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists MetadataSchemas.\n * </pre>\n */\n default void listMetadataSchemas(\n com.google.cloud.aiplatform.v1.ListMetadataSchemasRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListMetadataSchemasResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListMetadataSchemasMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves lineage of an Artifact represented through Artifacts and\n * Executions connected by Event edges and returned as a LineageSubgraph.\n * </pre>\n */\n default void queryArtifactLineageSubgraph(\n com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.LineageSubgraph>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getQueryArtifactLineageSubgraphMethod(), responseObserver);\n }\n }", "@RemoteServiceRelativePath(\"greet\")\npublic interface MyBitService extends RemoteService {\n OrderInfoList getOrderInfoList() throws IllegalArgumentException;\n\n CoinInfoList getCoinInfoList() throws IllegalArgumentException;\n\n ExchangeInfoList getExchangeInfoList() throws IllegalArgumentException;\n\n CompareInfoList getCompareInfoList() throws IllegalArgumentException;\n\n String toggleBot() throws IllegalArgumentException;\n\n String setThreshold(Double threshold) throws IllegalArgumentException;\n\n String getThreshold() throws IllegalArgumentException;\n\n public static class App {\n private static MyBitServiceAsync ourInstance = GWT.create(MyBitService.class);\n\n public static synchronized MyBitServiceAsync getInstance() {\n return ourInstance;\n }\n }\n}", "public interface SyncSpeakerService {\n @GET(\"/speakers\")\n void getSpeakers(Callback<List<Speaker>> speakers);\n}", "private static void streamServerService(ManagedChannel channel) {\n CalculatorServiceGrpc.CalculatorServiceBlockingStub calculatorClient = newBlockingStub(channel);\n\n //Create a Greet Request\n Calculator.PrimeNumberDecompositionRequest primedDecompositionRequest = Calculator.PrimeNumberDecompositionRequest\n .newBuilder()\n .setNumber(567890 )\n .build();\n\n //Call the RPC and get back a GreetResponse\n calculatorClient.primeNumberDecomposition(primedDecompositionRequest)\n .forEachRemaining(primeNumberDecompositionResponse -> {\n System.out.println(primeNumberDecompositionResponse.getPrimeFactor());\n });\n\n }", "public interface ConnectionServiceAsync {\n void searchSynonyms(String input, AsyncCallback<List<String>> callback) throws IllegalArgumentException;;\n void callMaplabelsToSynonyms(AsyncCallback<Boolean> callback) throws IllegalArgumentException;;\n\n\n}", "public interface ReplicaRepositoryServiceAsync extends IAsyncRemoteServiceProxy {\n\t\n\t/**\n\t * Add the specified ontology to the pool of shared ontologies. The ontology\n\t * will belong to no group. Use <code>addOWLOntology(OWLOntology, ID)</code>\n\t * if you want to set the group to which the ontology belongs.\n\t * \n\t * @param ontology\n\t * @return\n\t * @throws ReplicaOntologyAddException\n\t * \n\t * @deprecated use addOWLOntology(OWLOntology, ID) instead\n\t */\n\t// OWLOntology addOWLOntology(OWLOntology ontology) throws\n\t// ReplicaOntologyAddException;\n\n\t/**\n\t * Add the specified ontology to the pool of shared ontologies in\n\t * <code>groups</code>. If <code>groups</code> is null, then the ontology will\n\t * belong to no group. If <code>groups</code> does not exist yet, it will be\n\t * created.\n\t * \n\t * @param ontology\n\t * @param groups\n\t * @param listener\n\t * @throws AddException\n\t */\n\tvoid addOWLOntologyAsync(OWLOntology ontology, Set<? extends Object> groups,\n\t\t\tIAsyncCallback<String> callback);\n//\t\t\tthrows AddException;\n\n\t/**\n\t * Fetches the ontology with the specified OWLOntologyID.\n\t * \n\t * @param ontologyID\n\t * @param listener\n\t * @throws FetchException\n\t */\n\tvoid getOWLOntologyAsync(OWLOntologyID ontologyID,\n\t\t\tIAsyncCallback<OWLOntology> callback);\n//\t\t\tthrows FetchException;\n\n\t/**\n\t * Returns IDs of all shared ontologies or an empty list if none found.\n\t * \n\t * @deprecated use getOWLOntologies(String group) instead\n\t */\n\t// List<OWLOntologyID> getOWLOntologies() throws\n\t// ReplicaOntologyFetchException;\n\n\t/**\n\t * Returns IDs of all shared ontologies which belong to the specified groups.\n\t * <br>\n\t * If <code>groups</code> is null, IDs of all shared ontologies will be\n\t * returned.<br>\n\t * Beware that the specified set implementation has to be serializable.\n\t * \n\t * @param groups\n\t * @param listener\n\t */\n\tvoid getOWLOntologyIDsAsync(Set<Object> groups,\n\t\t\tIAsyncCallback<String> callback);\n//\t\t\tthrows FetchException;\n\n\t/**\n\t * Returns a set of all group names currently registered.\n\t * \n\t * @param listener\n\t */\n\tvoid getGroupsAsync(IAsyncCallback<Set<Object>> callback);\n//\t\t\tthrows FetchException;\n\t\n}", "public RpcClient(ManagedChannelBuilder<?> channelBuilder) {\n channel = channelBuilder.build();\n blockingStub = PredictionServiceGrpc.newBlockingStub(channel);\n asyncStub = PredictionServiceGrpc.newStub(channel);\n modelServiceBlockingStub = ModelServiceGrpc.newBlockingStub(channel);\n modelServiceStub = ModelServiceGrpc.newStub(channel);\n channelzBlockingStub = ChannelzGrpc.newBlockingStub(channel);\n }", "com.rajni.grpc.greeting.Greeting getGreeting();", "public interface GeneralService {\n\n /**\n * Returns general server data\n */\n Request getGeneralData(AsyncCallback<GeneralData> callback);\n\n}", "@Service\npublic interface BugFetch {\n @Async\n void fetch(BugzillaConnector conn) throws InterruptedException;\n}", "public interface StakeServiceAsync {\n\tvoid sendStake(long uuid, int raceType, int horseNumber, int summ, AsyncCallback<Integer> callback);\n\t\n\tvoid getRaceResultfromDB(int raceId, AsyncCallback<List<Result>> callback);\n}", "@Override public void askPressionAsync() throws MeteoServiceException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tcomConnexion.askPressionAsync();\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new MeteoServiceException(\"[MeteoService] : askPressionAsync failure\", e);\n\t\t\t}\n\t\t}", "public interface GreetingServiceAsync {\r\n\tvoid getAll( String type, AsyncCallback<HashMap<String, String>> callback );\r\n\tvoid delete(String id,AsyncCallback callback );\r\n\tvoid getById(String idData, AsyncCallback<PhotoClient> callback);\r\n\tvoid addProject(String proName,AsyncCallback callback);\r\n\tvoid getProjectList(AsyncCallback callback);\r\n\tvoid getFolderChildren(FileModel model, AsyncCallback<List<FileModel>> children);\r\n \r\n}", "public static void main(String[] args) throws Exception {\n\n ManagedChannel channel = NettyChannelBuilder.forAddress(\"localhost\", 6565)\n .sslContext(GrpcSslContexts.forClient().trustManager(new File(\"ca.crt\")).build())\n .build();\n\n SubscriptionServiceGrpc.SubscriptionServiceStub helloServiceStub = SubscriptionServiceGrpc\n .newStub(channel)\n .withCallCredentials(CallCredentialsHelper.basicAuth(\"sai\", \"sai123\"));\n\n long start = System.currentTimeMillis();\n SubscriptionRequest rq = SubscriptionRequest.newBuilder().setId(\"Sai\")\n .setSubscriptionScheme(SubscriptionScheme.newBuilder()\n .setSubscriptionTimeInSeconds(10).build()).setTopic(\"foo\").build();\n helloServiceStub.subscribe(rq,\n new StreamObserver<>() {\n @Override\n public void onNext(SubscriptionResponse helloResponse) {\n System.out.println(\" --- \" + helloResponse.getDataJson());\n }\n\n @Override\n public void onError(Throwable throwable) {\n System.out.println(\" ***** On Error **** \"+throwable);\n }\n\n @Override\n public void onCompleted() {\n long end = System.currentTimeMillis();\n System.out.println((end - start) / 1000);\n System.exit(0);\n }\n });\n Thread.sleep(10000000);\n }", "public interface EPAsyncResponseListener {\n public void getJokesfromEndpoint(String result);\n}", "public interface ArtistService {\n\n /**\n * Asynchronously returns a given artist's name, ID and primary genre.\n * \n * @param apikey\n * the API key\n * @param pretty\n * if <code>true</code> pretty prints the JSON\n * @param catalog\n * countries' catalog (two-letter country code, which is case-sensitive)\n * @param artistId\n * the ID of the artist to load\n * @param callBack\n * callback to which the result is passed\n */\n @GET(\"/v1/artists/{artistId}\")\n void getArtist( //\n @Query(\"apikey\") String apikey, //\n @Query(\"pretty\") boolean pretty, //\n @Query(\"catalog\") String catalog, //\n @Path(\"artistId\") String artistId, //\n Callback<ArtistData> callBack);\n\n /**\n * Synchronously returns a given artist's name, ID and primary genre.\n * \n * @param apikey\n * the API key\n * @param pretty\n * if <code>true</code> pretty prints the JSON\n * @param catalog\n * countries' catalog (two-letter country code, which is case-sensitive)\n * @param artistId\n * the ID of the artist to load\n * @return the {@link ArtistData}\n */\n @GET(\"/v1/artists/{artistId}\")\n ArtistData getArtist( //\n @Query(\"apikey\") String apikey, //\n @Query(\"pretty\") boolean pretty, //\n @Query(\"catalog\") String catalog, //\n @Path(\"artistId\") String artistId);\n\n /**\n * Returns biographical info for a given artist, including up to five short \"blurbs\" written by our editorial staff.\n * \n * @param apikey\n * the API key\n * @param pretty\n * if <code>true</code> pretty prints the JSON\n * @param catalog\n * countries' catalog (two-letter country code, which is case-sensitive)\n * @param artistId\n * the ID of the artist to load\n * @param callBack\n * callback to which the result is passed\n */\n @GET(\"/v1/artists/{artistId}/bio\")\n void getBio( //\n @Query(\"apikey\") String apikey, //\n @Query(\"pretty\") boolean pretty, //\n @Query(\"catalog\") String catalog, //\n @Path(\"artistId\") String artistId, //\n Callback<BioData> callBack);\n\n /**\n * Synchronously returns a list of an artist's new releases (if any), updated weekly.\n * \n * @param apikey\n * the API key\n * @param pretty\n * if <code>true</code> pretty prints the JSON\n * @param catalog\n * countries' catalog (two-letter country code, which is case-sensitive)\n * @param artistId\n * the ID of the artist to load\n * @param limit\n * the number of releases which are loaded, if <code>null</code> the servers default value is used\n * @return a list of an artist's new releases\n */\n @GET(\"/v1/artists/{artistId}/albums/new\")\n Collection<AlbumData> getNewReleases( //\n @Query(\"apikey\") String apikey, //\n @Query(\"pretty\") boolean pretty, //\n @Query(\"catalog\") String catalog, //\n @Path(\"artistId\") String artistId, //\n @Query(\"limit\") Integer limit);\n}", "public interface RLatitudeServiceAsync {\r\n\r\n\tvoid sayHello(AsyncCallback<String> callback);\r\n\r\n\tvoid publishUser(String name, String firstName, String dateNaissance,\r\n\t\t\tAsyncCallback< String > callback );\r\n\t\r\n\tvoid checkPasswordLoginValidity( String login, String password, AsyncCallback< Boolean > callback );\r\n\t\r\n\tvoid publishAuthentication( String uid, String login, String password, AsyncCallback</*IUser*/Void> callback );\r\n\t\r\n\tvoid connect(String login, String password, AsyncCallback< String > callback);\r\n\t\r\n\tvoid disconnect(String uid, AsyncCallback< Boolean > callback);\r\n\t\r\n\tvoid changeMyVisibility(String uid, boolean visibility,\r\n\t\t\tAsyncCallback<Boolean> callback);\r\n\r\n\tvoid getVisibility(String uid, AsyncCallback<Boolean> callback);\r\n\t\r\n\tvoid setCurrentPostion(String uid, Position position,\r\n\t\t\tAsyncCallback<Void> callback);\r\n\t\r\n\tvoid addContact( String uidUser, String uidContact, AsyncCallback< Void > callback );\r\n\t\r\n\tvoid getContact( String uid,\r\n\t\t\tAsyncCallback< List< ResolvedContact > > callback );\r\n\t\r\n\tvoid getUser( String name, String lastName, AsyncCallback<ResolvedUser> callback );\r\n\t\r\n\tvoid getUser(String uid,AsyncCallback<ResolvedUser> callback);\r\n\r\n\tvoid getPosition( String uidUser, AsyncCallback< Position > callback );\r\n\r\n}", "public interface HomepageServiceAsync {\n\tpublic void getProtectionInformation(AsyncCallback<ProtectionInformationModel[]> callback);\n\n\tpublic void getRecentBackups(int backupType, int backupStatus,int top, AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getRecentBackupsByServerTime(int backupType, int backupStatus, String serverBeginDate, String serverEndDate, boolean needCatalogStatus, AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getVMRecentBackupsByServerTime(int backupType, int backupStatus, String serverBeginDate, String serverEndDate, boolean needCatalogStatus, BackupVMModel vmModel,AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getBackupInforamtionSummary(AsyncCallback<BackupInformationSummaryModel> callback);\n\t\n\tpublic void updateProtectionInformation(AsyncCallback<ProtectionInformationModel[]> callback);\n\t\n\tpublic void getDestSizeInformation(BackupSettingsModel model,AsyncCallback<DestinationCapacityModel> callback);\n\t\n\tpublic void getNextScheduleEvent(int in_iJobType,AsyncCallback<NextScheduleEventModel> callback);\n\n\tpublic void getTrustHosts(\n\t\t\tAsyncCallback<TrustHostModel[]> callback);\n\n\tvoid becomeTrustHost(TrustHostModel trustHostModel,\n\t\t\tAsyncCallback<Boolean> callback);\n\n\tvoid checkBaseLicense(AsyncCallback<Boolean> callback);\n\n\tvoid getBackupInforamtionSummaryWithLicInfo(AsyncCallback<BackupInformationSummaryModel> callback);\n\t\n\tvoid getLocalHost(AsyncCallback<TrustHostModel> callback);\n\n\tvoid PMInstallPatch(PatchInfoModel in_patchinfoModel,\n\t\t\tAsyncCallback<Integer> callback);\n\t\n\tvoid PMInstallBIPatch(PatchInfoModel in_patchinfoModel,\n\t\t\tAsyncCallback<Integer> callback);//added by cliicy.luo\n\t\n\tvoid getVMBackupInforamtionSummaryWithLicInfo(BackupVMModel vm,\n\t\t\tAsyncCallback<BackupInformationSummaryModel> callback);\n\n\tvoid getVMBackupInforamtionSummary(BackupVMModel vm,\n\t\t\tAsyncCallback<BackupInformationSummaryModel> callback);\n\n\tvoid getVMProtectionInformation(BackupVMModel vmModel,\n\t\t\tAsyncCallback<ProtectionInformationModel[]> callback);\n\n\tvoid getVMNextScheduleEvent(BackupVMModel vmModel,\n\t\t\tAsyncCallback<NextScheduleEventModel> callback);\n\tpublic void getVMRecentBackups(int backupType, int backupStatus,int top,BackupVMModel vmModel, AsyncCallback<RecoveryPointModel[]> callback);\n\n\tvoid updateVMProtectionInformation(BackupVMModel vm,\n\t\t\tAsyncCallback<ProtectionInformationModel[]> callback);\n\n\tvoid getArchiveInfoSummary(AsyncCallback<ArchiveJobInfoModel> callback);\n\n\tvoid getLicInfo(AsyncCallback<LicInfoModel> callback);\n\n\tvoid getVMStatusModel(BackupVMModel vmModel,\n\t\t\tAsyncCallback<VMStatusModel[]> callback);\n\n\tvoid getConfiguredVM(AsyncCallback<BackupVMModel[]> callback);\n\n\tvoid getMergeJobMonitor(String vmInstanceUUID,\n\t\t\tAsyncCallback<MergeJobMonitorModel> callback);\n\n\tvoid pauseMerge(String vmInstanceUUID, AsyncCallback<Integer> callback);\n\n\tvoid resumeMerge(String vmInstanceUUID, AsyncCallback<Integer> callback);\n\n\tvoid getMergeStatus(String vmInstanceUUID,\n AsyncCallback<MergeStatusModel> callback);\n\n\tvoid getBackupSetInfo(String vmInstanceUUID, \n\t\t\tAsyncCallback<ArrayList<BackupSetInfoModel>> callback);\n\t\n\tpublic void getDataStoreStatus(String dataStoreUUID, AsyncCallback<DataStoreInfoModel> callback);\n\n\tvoid getVMDataStoreStatus(BackupVMModel vm, String dataStoreUUID,\n\t\t\tAsyncCallback<DataStoreInfoModel> callback);\n\t\n}", "public interface IBugReportRpcAsync {\r\n\r\n /**\r\n * Submit a bug report.\r\n * @param bugReport Bug report to submit\r\n * @param callback Callback to be invoked after method call completes\r\n */\r\n void submitBugReport(BugReport bugReport, AsyncCallback<Void> callback);\r\n\r\n}", "public interface RecipeService {\n\n @GET(\"recipes\")\n Call<List<Recipe>> getRecipes();\n}", "private static void bidiStreamService(ManagedChannel channel){\n CalculatorServiceGrpc.CalculatorServiceStub asynClient = CalculatorServiceGrpc.newStub(channel);\n CountDownLatch latch = new CountDownLatch(1);\n StreamObserver<FindMaximumRequest> streamObserver = asynClient.findMaximum(new StreamObserver<FindMaximumResponse>() {\n @Override\n public void onNext(FindMaximumResponse value) {\n System.out.println(\"Got new maxium from server: \"+ value.getMaximum());\n }\n\n @Override\n public void onError(Throwable t) {\n latch.countDown();\n }\n\n @Override\n public void onCompleted() {\n System.out.println(\"Server is done sending data\");\n latch.countDown();\n }\n });\n\n Arrays.asList(1,5,3,6,2,20).forEach(\n number -> {\n System.out.println(\"Sending number: \"+ number);\n streamObserver.onNext(FindMaximumRequest.newBuilder()\n .setNumber(number)\n .build());\n }\n );\n\n streamObserver.onCompleted();\n try {\n latch.await(3L, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public interface GiftSvcApi {\n\n public static final String PASSWORD_PARAMETER = \"password\";\n\n public static final String USERNAME_PARAMETER = \"username\";\n\n public static final String TITLE_PARAMETER = \"title\";\n\n public static final String TOKEN_PATH = \"/oauth/token\";\n\n public static final String DATA_PARAMETER = \"data\";\n\n public static final String ID_PARAMETER = \"id\";\n\n public static final String OBSCENE_PARAMETER = \"obscene\";\n\n // The path where we expect the GiftSvc to live\n public static final String GIFT_SVC_PATH = \"/gift\";\n\n public static final String GIFT_DATA_PATH = GIFT_SVC_PATH + \"/{id}/data\";\n\n public static final String GIFT_OBSCENE_PATH = GIFT_SVC_PATH + \"/{id}/obscene\";\n\n public static final String GIFT_UPDATE_PATH = GIFT_SVC_PATH + \"/update\";\n\n public static final String GIFT_TITLE_SEARCH_PATH = GIFT_SVC_PATH + \"/search/findByTitle\";\n\n public static final String GIFT_OBSCENE_SEARCH_PATH = GIFT_SVC_PATH + \"/search/findByObscene\";\n\n @GET(GIFT_SVC_PATH)\n public Collection<Gift> getGiftList();\n\n @POST(GIFT_SVC_PATH)\n public Gift addGift(@Body Gift gift);\n\n @POST(GIFT_SVC_PATH + \"/{id}\")\n public List<Long> deleteGift(@Path(ID_PARAMETER) long id);\n\n @GET(GIFT_TITLE_SEARCH_PATH)\n public Collection<Gift> findByTitle(@Query(TITLE_PARAMETER) String title);\n\n @Multipart\n @POST(GIFT_DATA_PATH)\n public GiftStatus setGiftData(@Path(ID_PARAMETER) long id, @Part(DATA_PARAMETER) TypedFile giftData);\n\n @GET(GIFT_DATA_PATH)\n Response getData(@Path(ID_PARAMETER) long id);\n\n @POST(GIFT_UPDATE_PATH)\n public Long updateGift(@Body Gift gift);\n\n @POST(GIFT_SVC_PATH + \"/{id}/touch\")\n public Long touchGift(@Path(\"id\") long id);\n\n @POST(GIFT_SVC_PATH + \"/{id}/untouch\")\n public Long untouchGift(@Path(\"id\") long id);\n\n @POST(GIFT_OBSCENE_PATH)\n public Boolean obsceneGift(@Path(\"id\") long id);\n\n public static final String USER_SVC_PATH = \"/user\";\n\n @GET(USER_SVC_PATH)\n public Collection<User> getUserList();\n\n @GET(GIFT_SVC_PATH + \"/{user}\")\n public Collection<Gift> getGiftListForUser(@Path(\"user\") User user);\n\n @POST(USER_SVC_PATH)\n public boolean addUser(@Body User user);\n}", "public interface RecipeRetroFit {\n @GET(\"baking.json\")\n Call<ArrayList<RecipeModel>> getRecipe();\n}", "@Override\n public void callSync() {\n\n }", "public interface ISeedProveiderRpcService {\n Long getTask( Map<String, Object> mapQuery) throws BizCheckedException;\n void createTask( Map<String, Object> mapQuery) throws BizCheckedException;\n List<String> getOrderList(String barcode) throws BizCheckedException;\n List<Map> getStoreList(Map<String, Object> mapQuery) throws BizCheckedException;\n}", "@ThriftService(\"ThriftTaskService\")\npublic interface ThriftTaskClient\n{\n @ThriftMethod\n ListenableFuture<ThriftBufferResult> getResults(TaskId taskId, OutputBufferId bufferId, long token, long maxSizeInBytes);\n\n @ThriftMethod\n ListenableFuture<Void> acknowledgeResults(TaskId taskId, OutputBufferId bufferId, long token);\n\n @ThriftMethod\n ListenableFuture<Void> abortResults(TaskId taskId, OutputBufferId bufferId);\n}", "public interface LooksoftMainApi {\n @GET(\"main\")\n Call<Data> loadData();\n}", "public interface PgStudioServiceAsync {\n\n\tvoid getConnectionInfoMessage(String connectionToken, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\t\n\tvoid getList(String connectionToken, DATABASE_OBJECT_TYPE type, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\n\tvoid getList(String connectionToken, int schema, ITEM_TYPE type, AsyncCallback<String> callback)\n \t\tthrows IllegalArgumentException;\n\n\tvoid getRangeDiffFunctionList(String connectionToken, String schema, String subType, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getTriggerFunctionList(String connectionToken, int schema, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid getItemObjectList(String connectionToken, int item, ITEM_TYPE type, ITEM_OBJECT_TYPE object, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getItemMetaData(String connectionToken, int item, ITEM_TYPE type, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getItemData(String connectionToken, int item, ITEM_TYPE type, int count, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getQueryMetaData(String connectionToken, String query, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid executeQuery(String connectionToken, String query, String queryType, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid dropItem(String connectionToken, int item, ITEM_TYPE type, boolean cascade, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid analyze(String connectionToken, int item, ITEM_TYPE type, boolean vacuum, boolean vacuumFull, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid renameItem(String connectionToken, int item, ITEM_TYPE type, String newName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid truncate(String connectionToken, int item, ITEM_TYPE type, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createIndex(String connectionToken, int item, String indexName, INDEX_TYPE indexType, boolean isUnique, boolean isConcurrently, ArrayList<String> columnList, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid dropItemObject(String connectionToken, int item, ITEM_TYPE type, String objectName, ITEM_OBJECT_TYPE objType, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid renameItemObject(String connectionToken, int item, ITEM_TYPE type, String objectName, ITEM_OBJECT_TYPE objType, String newObjectName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid renameSchema(String connectionToken, String oldSchema, String schema, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid dropSchema(String connectionToken, String schemaName, boolean cascade, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createSchema(String connectionToken, String schemaName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getExplainResult(String connectionToken, String query, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createView(String connectionToken, String schema, String viewName, String definition, String comment, boolean isMaterialized, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createColumn(String connectionToken, int item, String columnName, String datatype, String comment, boolean not_null, String defaultval, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createTable(String connectionToken, int schema, String tableName, boolean unlogged, boolean temporary, String fill, ArrayList<String> col_list, HashMap<Integer,String> commentLog, ArrayList<String> col_index, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createUniqueConstraint(String connectionToken, int item, String constraintName, boolean isPrimaryKey, ArrayList<String> columnList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createCheckConstraint(String connectionToken, int item, String constraintName, String definition, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createForeignKeyConstraint(String connectionToken, int item, String constraintName, ArrayList<String> columnList, String referenceTable, ArrayList<String> referenceList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\t\t\n\tvoid createSequence(String connectionToken, int schema, String sequenceName, boolean temporary, int increment, int minValue, int maxValue, int start, int cache, boolean cycle, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createFunction(String connectionToken, int schema, String functionName, String returns, String language, ArrayList<String> paramList, String definition, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createType(String connectionToken, String schema, String typeName, TYPE_FORM form, String baseType, String definition, ArrayList<String> attributeList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createForeignTable(String connectionToken, String schema, String tableName, String server, ArrayList<String> columns, HashMap<Integer, String> comments, ArrayList<String> options, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid refreshMaterializedView(String connectionToken, String schema, String viewName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createRule(String connectionToken, int item, ITEM_TYPE type, String ruleName, String event, String ruleType, String definition, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createTrigger(String connectionToken, int item, ITEM_TYPE type, String triggerName, String event, String triggerType, String forEach, String function, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid revoke(String connectionToken, int item, ITEM_TYPE type, String privilege, String grantee, boolean cascade, AsyncCallback<String> callback) \n\t\t\t\t\tthrows IllegalArgumentException;\n\t\t\t\n\tvoid grant(String connectionToken, int item, ITEM_TYPE type, ArrayList<String> privileges, String grantee, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid doLogout(String connectionToken, String source, AsyncCallback<Void> asyncCallback) throws IllegalArgumentException;\n\n\tvoid invalidateSession(AsyncCallback<Void> callback);\n\n}", "public interface PgStudioServiceAsync {\n\n\tvoid getConnectionInfoMessage(String connectionToken, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\t\n\tvoid getList(String connectionToken, DATABASE_OBJECT_TYPE type, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\n\tvoid getList(String connectionToken, int schema, ITEM_TYPE type, AsyncCallback<String> callback)\n \t\tthrows IllegalArgumentException;\n\n\tvoid getRangeDiffFunctionList(String connectionToken, String schema, String subType, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getTriggerFunctionList(String connectionToken, int schema, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid getItemObjectList(String connectionToken, long item, ITEM_TYPE type, ITEM_OBJECT_TYPE object, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getItemMetaData(String connectionToken, long item, ITEM_TYPE type, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getItemData(String connectionToken, long item, ITEM_TYPE type, int count, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getQueryMetaData(String connectionToken, String query, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid executeQuery(String connectionToken, String query, String queryType, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid dropItem(String connectionToken, long item, ITEM_TYPE type, boolean cascade, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid analyze(String connectionToken, long item, ITEM_TYPE type, boolean vacuum, boolean vacuumFull, boolean reindex, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid renameItem(String connectionToken, long item, ITEM_TYPE type, String newName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid truncate(String connectionToken, long item, ITEM_TYPE type, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createIndex(String connectionToken, long item, String indexName, INDEX_TYPE indexType, boolean isUnique, boolean isConcurrently, ArrayList<String> columnList, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid dropItemObject(String connectionToken, long item, ITEM_TYPE type, String objectName, ITEM_OBJECT_TYPE objType, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid renameItemObject(String connectionToken, long item, ITEM_TYPE type, String objectName, ITEM_OBJECT_TYPE objType, String newObjectName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid renameSchema(String connectionToken, String oldSchema, String schema, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid dropSchema(String connectionToken, String schemaName, boolean cascade, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createSchema(String connectionToken, String schemaName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getExplainResult(String connectionToken, String query, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createView(String connectionToken, String schema, String viewName, String definition, String comment, boolean isMaterialized, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createColumn(String connectionToken, long item, String columnName, String datatype, String comment, boolean not_null, String defaultval, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createTable(String connectionToken, int schema, String tableName, boolean unlogged, boolean temporary, String fill, ArrayList<String> col_list, HashMap<Integer,String> commentLog, ArrayList<String> col_index, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createTableLike(String connectionToken, int schema, String tableName, String source, boolean defaults, boolean constraints, boolean indexes, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid createUniqueConstraint(String connectionToken, long item, String constraintName, boolean isPrimaryKey, ArrayList<String> columnList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createCheckConstraint(String connectionToken, long item, String constraintName, String definition, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createForeignKeyConstraint(String connectionToken, long item, String constraintName, ArrayList<String> columnList, String referenceTable, ArrayList<String> referenceList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\t\t\n\tvoid createSequence(String connectionToken, int schema, String sequenceName, boolean temporary, String increment, String minValue, String maxValue, String start, int cache, boolean cycle, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createFunction(String connectionToken, AlterFunctionRequest funcRequest, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createType(String connectionToken, String schema, String typeName, TYPE_FORM form, String baseType, String definition, ArrayList<String> attributeList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createForeignTable(String connectionToken, String schema, String tableName, String server, ArrayList<String> columns, HashMap<Integer, String> comments, ArrayList<String> options, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid refreshMaterializedView(String connectionToken, String schema, String viewName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createRule(String connectionToken, long item, ITEM_TYPE type, String ruleName, String event, String ruleType, String definition, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createTrigger(String connectionToken, long item, ITEM_TYPE type, String triggerName, String event, String triggerType, String forEach, String function, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid revoke(String connectionToken, long item, ITEM_TYPE type, String privilege, String grantee, boolean cascade, AsyncCallback<String> callback) \n\t\t\t\t\tthrows IllegalArgumentException;\n\t\t\t\n\tvoid grant(String connectionToken, long item, ITEM_TYPE type, ArrayList<String> privileges, String grantee, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getActivity(String connectionToken, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\n\tvoid configureRowSecurity(String connectionToken, long item, boolean hasRowSecurity, boolean forceRowSecurity, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\n\tvoid createPolicy(String connectionToken, long item, String policyName, String cmd, String role, String using, String withCheck, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\t\n\tvoid doLogout(String connectionToken, String source, AsyncCallback<Void> asyncCallback) throws IllegalArgumentException;\n\n\tvoid invalidateSession(AsyncCallback<Void> callback);\n\t\n\tvoid alterFunction(String connectionToken, AlterFunctionRequest alterFunctionRequest, AsyncCallback<String> asyncCallback) throws Exception;\n\t\n\tvoid incrementValue(String connectionToken, int schema, String sequenceName, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\t\n\tvoid alterSequence(String connectionToken, int schema, String sequenceName, String increment, String minValue, String maxValue, String start, int cache, boolean cycle, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid changeSequenceValue(String connectionToken, int schema, String sequenceName, String value, AsyncCallback<String> asyncCallback);\n\n\tvoid restartSequence(String connectionToken, int schema, String sequenceName, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid resetSequence(String connectionToken, int schema, String sequenceName, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getLanguageFullList(String connectionToken, DATABASE_OBJECT_TYPE type, AsyncCallback<String> callback) throws IllegalArgumentException;\n\t\n\tvoid getFunctionFullList(String connectionToken, int schema, ITEM_TYPE type, AsyncCallback<String> callback) throws IllegalArgumentException;\n\n\tvoid fetchDictionaryTemplates(String connectionToken, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\t\n\tvoid addDictionary(String connectionToken, int schema, String dictName, String template, String option, String comment, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid createFTSConfiguration(String connectionToken, String schemaName, String configurationName, String templateName, String parserName, String comments, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getFTSTemplatesList(String connectionToken, AsyncCallback<String> callback) throws Exception;\n\t\n\tvoid getFTSParsersList(String connectionToken, AsyncCallback<String> callback) throws Exception;\n\t\n\tvoid alterFTSConfiguration(String connectionToken, String schemaName, String configurationName, String comments, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid dropFTSConfiguration(String connectionToken, String schemaName, String configurationName, boolean cascade, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getFTSConfigurations(String connectionToken, String schemaName, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid fetchDictionaryDetails(String connectionToke, int schema, long id, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid alterDictionary(String connectionToken, int schema, String dictName, String newDictName, String options, String comments, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid createFTSMapping(String connectionToken, String schemaName, String configurationName, String tokenType, String dictionary, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getFTSTokensList(String connectionToken, AsyncCallback<String> callback) throws Exception;\n\n\tvoid getFTSDictionariesList(String connectionToken, AsyncCallback<String> callback) throws Exception;\n\n\tvoid alterFTSMapping(String connectionToken, String schemaName, String configurationName, String tokenType, String oldDict, String newDict, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid dropFTSMapping(String connectionToken, String schemaName, String configurationName, String token, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getFTSConfigurationDetails(String connectionToken, String schemaName, String configName, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid importData(String connectionToken, List<String> columnList, List<ArrayList<String>> dataRows, int schema, String tableId, String tableName, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid dropItemData(String connectionToken, int schema, String tableName,AsyncCallback<String> callback) throws IllegalArgumentException, DatabaseConnectionException, PostgreSQLException;\n\n\tvoid connectToDatabase(String connectionToken, String databaseName , AsyncCallback<Void> asyncCallback) throws IllegalArgumentException;\n\n\tvoid fetchDomainDetails(String connectionToken, long item, AsyncCallback<DomainDetails> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid addCheck(String connectionToken, int schema, String domainName, String checkName, String expression, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid dropCheck(String connectionToken, int schema, String domainName, String checkName, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid alterDomain(String connectionToken, int schema, AlterDomainRequest request, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n void createItemData(String connectionToken, int schema, String tableName, ArrayList<String>colNames, ArrayList<String> values, AsyncCallback<String> callback) throws IllegalArgumentException, DatabaseConnectionException, PostgreSQLException;\n\t\n\tvoid alterColumn(String connectionToken, long item, AlterColumnRequest command, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\t}", "public interface MeteringClient {\n\n void consume(Collection<ResourceSnapshot> resources);\n\n MeteringInfo getResourceSnapshots(TenantName tenantName, ApplicationName applicationName);\n\n}", "public interface GrpcService extends BindableService {\r\n public String getServiceName();\r\n public String getDescription();\r\n}", "@RemoteServiceRelativePath(\"greet\")\npublic interface GreetingService extends RemoteService \n{\n\tBoolean greetServer(Osoba person) throws IllegalArgumentException;\n\tList<Osoba> getOsoba() throws IllegalArgumentException;\n\tList<Osoba> fetchPage(int start, int length) throws IllegalArgumentException;\n\tLong fetchCount() throws IllegalArgumentException;\n}", "@Test\n\tpublic void greeterServiceWithLoadBalancerWithConsulServiceDiscoveryTest() throws Exception {\n\t\tif (!consulServiceRegisterRule.isRegistered()) {\n\t\t\tlog.warn(\"Consul Service wasn't registered. Test won't run and is resolved as correct.\");\n\t\t\tAssert.assertTrue(true);\n\t\t\treturn;\n\t\t}\n\n\t\tString message = \"grpc load balancer\";\n\n\t\tregisterGreeterServiceGrpc();\n\n\t\t// number of concurrent client stubs calls\n\t\tint repeatNumStubs = 1000;\n\n\t\t// create grpc client using Consul as load balancer\n\t\tGrpcClientWithLoadBalancer<GreeterBlockingStub, GreeterStub, GreeterFutureStub> clientLbs = \n\t\t\t\tcreateClientLoadBalancerWithConsul(\n\t\t\t\t\t\tnew GrpcManagedChannelNonSecuredFactory(),\n\t\t\t\t\t\tnew GreeterServiceGrpcClientStubFactory());\n\t\t// repeat it N times\n\t\tList<GrpcClientWithLoadBalancer<GreeterBlockingStub, GreeterStub, GreeterFutureStub>> clientLoadBalancers = \n\t\t\t\trepeatClient(repeatNumStubs, clientLbs);\n\n\t\t// wraps as Callable tasks\n \tList<Callable<Boolean>> tasks = clientLoadBalancers.stream()\n \t\t\t.map( clientLb -> new Callable<Boolean>() {\n \t\t\t\t@Override\n \t public Boolean call() {\n \t\t\t\t\tString messageResult = callGreeterService(clientLb, message);\n \t\t\t\t\tAssert.assertEquals(message, messageResult);\n \t return Boolean.TRUE;\n \t }\n \t\t\t})\n \t\t\t.collect( Collectors.toList() );\n\n\t\t// call grpc stubs in a parallel fashion\n\t\tExecutorService executorService = Executors.newFixedThreadPool(4);\n\t\tList<Future<Boolean>> futures = executorService.invokeAll(tasks, 5, TimeUnit.SECONDS);\n\n\t\t// block until all tasks are done\n long finishedCount = futures.stream()\n\t \t.map( f -> {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn f.get();\n\t\t\t\t\t} catch (InterruptedException | ExecutionException ex) {\n\t\t\t\t\t\tlog.error(\"{}. {}\", ex.getClass().getSimpleName(), ex.getMessage());\n\t\t\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t\t\t}\n\t\t\t\t})\n\t \t.filter( r -> Boolean.TRUE.equals(r))\n\t \t.count();\n\n\t\tAssert.assertEquals(repeatNumStubs, finishedCount);\n\n\t\t// shutdown clients before the serverStarterRule calls its shutdown method\n\t\tshutdownClients(clientLoadBalancers);\n\t}", "@Override\n\tprotected void doAsyncExecute(VoiceMessage requestMessage) {\n\n\t}", "@RemoteServiceRelativePath(\"rpc\")\npublic interface AppService extends RemoteService {\n\n TemplateRespRPC process(TemplateReqRPC rpc);\n\n}", "private static void runClient() {\n long clientStartTime = System.currentTimeMillis();\n \n // Pick a random entry point\n int entryPointId = random.nextInt(entryPointAddresses.size());\n String[] ep = entryPointAddresses.get(entryPointId);\n String entryPointCode = ep[0];\n String entryPointAddress = ep[1];\n \n // User number and id\n int userCount = COUNT.incrementAndGet();\n String userToken = (clientLocation + userCount + \"-\" + Math.abs(random.nextInt(1000)));\n User u = USER_RESOLVER.resolve(userToken);\n \n // Point the client to the entry point\n WebTarget webTarget = entryPointTarget(entryPointAddress, userToken);\n EntryPointResponse response = new EntryPointResponse(null, null);\n try {\n String responseJson = webTarget.request(MediaType.APPLICATION_JSON).get(String.class);\n response = Jsons.fromJson(responseJson, EntryPointResponse.class);\n } catch (Exception e) {\n LOG.log(Level.SEVERE, String.format(\"Could not load responses from entry point %s: %s\", ep[0], ep[1]));\n LOG.log(Level.SEVERE, \"Attempted to connect with: \" + webTarget.getUri().toString());\n }\n \n // current time after the response\n long clientEndTime = System.currentTimeMillis(); \n \n Double latency = null;\n if (response.getRedirectAddress() != null) {\n latency = latencies.get(response.getRedirectAddress());\n }\n \n writer.writeCsv(LOG_LENS, \n sdf.format(new Date()),\n clientStartTime - Main.clientStartTime,\n userCount,\n Main.clientLocation,\n entryPointCode,\n response.getSelectedCloudSiteCode(),\n clientEndTime - clientStartTime,\n latency == null ? \"null\" : String.format(\"%.2f\", latency),\n userToken,\n Arrays.toString(u.getCitizenships().toArray()),\n Arrays.toString(u.getTags().toArray()),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getProviderCode(),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getLocationCode(),\n response.getDefinition() == null ? \"null\" : Arrays.toString(response.getDefinition().getTags().toArray()),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getCost()\n );\n //writer.flush();\n }", "public interface RetroiftService {\n @GET(\"catalog\")\n Call<CgBaseEntity> getCategories(@Query(\"key\") String key);\n\n @FormUrlEncoded\n @POST(\"query\")\n Call<BookBaseEntity> getBookList(@Field(\"catalog_id\") String id, @Field(\"pn\") String\n pn, @Field(\"rn\") String rn, @Field(\"key\") String key);\n\n}", "public interface GrafanaService {\n @GET(\"/render\")\n Call<List<ParsedStatElement>> getData(@Query(\"from\") String from, @Query(\"until\") String until, @Query(\"target\") String target, @Query(\"format\") String format);\n}", "@Override\r\n\tpublic ResponseMessage performService(Scope cSScope)\r\n\t{\r\n\t\t//implemented in ChatRequest on C# server side;\r\n\t\t/*\r\n\t\t * Send back a response confirming that we got the request \r\n\t\t */\r\n\t\treturn OkResponse.reusableInstance;\r\n\t}", "@RemoteServiceRelativePath(\"data\")\npublic interface GreetingService extends RemoteService {\n\n\t/**\n\t * The Client-side stub for the RPC service. LUCAS LUCAS\n\t */\n\tString [][] importData (String path);\n\tpublic Integer getNumberOfColumns (String path);\n\tpublic Integer getNumberOfLines (String path);\n\n}", "public interface AsynService {\n void asynMethod();\n}", "public interface IBooksRestModel {\n\n @GET(\"volumes\")\n public Call<Volumes> searchBook(@Query(\"q\") String query);\n\n}", "public interface RecipeQueryInterface {\n\n @GET(\"recipes?\")\n Call<RecipeQuery> getResponse(@Query(\"_app_id\") String appId,\n @Query(\"_app_key\") String appKey,\n @Query(\"q\") String queryText,\n @Query(\"allowedIngredient[]\") List<String> ingredientList);\n\n @GET(\"recipes?\")\n Call<RecipeQuery> getPaginatedResponse(@Query(\"_app_id\") String appId,\n @Query(\"_app_key\") String appKey,\n @Query(\"q\") String queryText,\n @Query(\"allowedIngredient[]\") List<String> ingredientList,\n @Query(\"start\") String start);\n}", "public Object call() throws Exception {\n\t\t\t\t\t\tProducerSimpleNettyResponseFuture future;\n\t\t\t\t\t\tProducerSimpleNettyResponse responseFuture;\n\t\t\t\t\t\tfuture = clientProxy.request(message);\n\t\t\t\t\t\tresponseFuture = future\n\t\t\t\t\t\t\t\t.get(3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\t\treturn responseFuture.getResponse();\n\t\t\t\t\t}", "public interface GateWay {\n @GET(\"retrofit-demo.php?company_no=123\")\n Call<EmployeeList> getEmployee();\n}", "public interface EmailService {\n\n Boolean send(Greeting greeting);\n\n void sendAsync(Greeting greeting);\n\n CompletableFuture<Boolean> sendAsyncWithResults(Greeting greeting);\n}", "public void doCall(){\n CalculatorPayload operation = newContent();\n\n ((PBFTClient)getProtocol()).syncCall(operation);\n }", "public interface FaceService {\n /**\n *发送图片给设备端\n * @param snCode\n * @param file\n * @return\n * @throws Exception\n */\n\n ResponseData sendImg(String snCode, MultipartFile file) throws Exception;\n\n /**\n *开始/停止 比对 (图像与视频流比对)\n * @param snCode\n * @param content\n * @return\n * @throws Exception\n */\n ResponseData stop(String snCode, String type, String content) throws Exception;\n\n ResponseData start(String snCode, String content,String token, MultipartFile file) throws Exception;\n\n// ResponseData start( String snCode, String content) throws Exception;\n /**\n *拉流接口,拼接一个拉流地址给前端\n * @param snCode\n * @param content\n * @return\n * @throws Exception\n */\n ResponseData pushStream(String snCode, String content) throws Exception;\n\n ResponseData takePhoto(String snCode, String content) throws Exception;\n\n void receiveImage(receiveImgBody revBody);\n\n void receiveResponse(CompareResult compareResult);\n}", "@GetMapping(\"/hello\")\n\tpublic String hello() throws IOException {\n\t\tlong startTime = new Date().getTime();\n\n\t\tString url = \"https://api.icndb.com/jokes/random?limitTo=[nerdy]\";\n\t\tCloseableHttpClient httpclient = HttpClients.createDefault();\n\t\tHttpGet httpget = new HttpGet(url);\n\t\tCloseableHttpResponse response = null;\n\n\t\ttry {\n\t\t\tresponse = httpclient.execute(httpget);\n\t\t\tSystem.out.println(EntityUtils.toString(response.getEntity(), \"UTF-8\"));\n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tresponse.close();\n\t\t\tlong endTime = new Date().getTime();\n\t\t\tlong delta = endTime - startTime;\n\t\t\tRemoteDependencyTelemetry dependencyTelemetry = new RemoteDependencyTelemetry(\"My Dependency\", \"myCall\",\n\t\t\t\t\tnew Duration(delta), true);\n\t\t\tdependencyTelemetry.setTimestamp(new Date(startTime));\n\t\t\t// telemetryClient.trackDependency(dependencyTelemetry);\n\t\t}\n\n\t\treturn \"hello\";\n\t}", "public interface HealthServiceClient extends ClientProxy {\n\n /**\n * Register a service with the health system\n *\n * @param name name of the service\n * @param ttl ttl on how long before the service timeout.\n * @param timeUnit time unit for the ttl.\n */\n default void register(String name, long ttl, TimeUnit timeUnit) {\n }\n\n\n /**\n * Check in the service so it passes it TTL\n *\n * @param name name of service.\n */\n default void checkInOk(String name) {\n }\n\n /**\n * Check in with a certain TTL.\n *\n * @param name name of service (PASS, WARN, FAIL, UNKNOWN)\n * @param status status\n */\n default void checkIn(String name, HealthStatus status) {\n }\n\n\n /**\n * Checks to see if all services registered with the health system are ok.\n *\n * @return ok\n */\n default Promise<Boolean> ok() {\n final Promise<Boolean> promise = Promises.promise();\n promise.resolve(true);\n return promise;\n }\n\n /**\n * Returns list of healthy nodes.\n *\n * @return promise\n */\n default Promise<List<String>> findHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Find all nodes\n *\n * @return promise\n */\n default Promise<List<String>> findAllNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Find all nodes with a certain status.\n *\n * @param queryStatus status you are looking for.\n * @return promise\n */\n default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }\n\n /**\n * Find all healthy nodes\n *\n * @return promise\n */\n default Promise<List<String>> findNotHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }\n\n\n /**\n * Load all nodes no matter the status.\n *\n * @return promise\n */\n default Promise<List<NodeHealthStat>> loadNodes() {\n final Promise<List<NodeHealthStat>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Unregister the service\n *\n * @param serviceName name of service\n */\n default void unregister(String serviceName) {\n }\n\n /**\n * Fail with a particular reason.\n *\n * @param name name\n * @param reason reason\n */\n default void failWithReason(final String name, final HealthFailReason reason) {\n }\n\n\n /**\n * Fail with error\n *\n * @param name name\n * @param error error\n */\n default void failWithError(final String name, final Throwable error) {\n }\n\n /**\n * warn with reason\n *\n * @param name name\n * @param reason reason\n */\n default void warnWithReason(final String name, final HealthFailReason reason) {\n }\n\n\n /**\n * warn with error\n *\n * @param name name\n * @param error error\n */\n default void warnWithError(final String name, final Throwable error) {\n }\n\n\n /**\n * Register a service but don't specify a check in TTL.\n *\n * @param name name\n */\n default void registerNoTtl(String name) {\n }\n\n}", "@RemoteServiceRelativePath(\"rpc/userservice\")\r\npublic interface UserService extends RemoteService {\r\n\r\n public boolean isLogin();\r\n\r\n public boolean hasAccess(Long userId);\r\n \r\n public boolean isAdmin();\r\n\r\n public Artist getArtist(Long artistId);\r\n \r\n public User getCurrentUser();\r\n\r\n public List<LinkObject<String>> getArtistNames(List<Long> ids);\r\n\r\n public Artist getAsArtist(User user);\r\n \r\n public User addMoney(int amount);\r\n \r\n public void sendRequest(String msg, int type);\r\n}", "public interface Server {\n\n @GET\n Call<CalonModel> getCalon(@Url String url);\n\n}", "public interface RpcClient {\r\n\r\n\t/**\r\n\t * Initializes this RpcClient\r\n\t */\r\n\tpublic void initialize();\r\n\t\r\n\t/**\r\n\t * Sends the specified object and waits for a response message (or) the specified timeout to occur. Keeps the connection open for further \r\n\t * send requests. Note that clients of this RPCClient must call {@link RPCClient#closeConnections()} when done using this RPCClient.\r\n\t * This method performs to-and-from conversion of the specified object to a raw byte array when publishing it to the queue / consuming off it. \r\n\t * @param message the message to be sent\r\n\t * @param timeout the timeout duration in milliseconds\r\n\t * @return response Object from the RPC message call\r\n\t * @throws MessagingTimeoutException in case the specified timeout occurs\r\n\t * @throws MessagingException in case of errors in message publishing\r\n\t */\r\n\tpublic Object send(Object message, int timeout) throws MessagingTimeoutException, MessagingException;\r\n\r\n\t/**\r\n\t * Sends the specified String and waits for a response message (or) the specified timeout to occur. Keeps the connection open for further \r\n\t * send requests. Note that clients of this RPCClient must call {@link RPCClient#closeConnections()} when done using this RPCClient.\r\n\t * This method performs to-and-from conversion of the specified object to UTF-8 encoded byte array when publishing it to the queue / consuming off it. \r\n\t * @param message the String message to be sent\r\n\t * @param timeout the timeout duration in milliseconds\r\n\t * @return response String from the RPC message call\r\n\t * @throws MessagingTimeoutException in case the specified timeout occurs\r\n\t * @throws MessagingException in case of errors in message publishing\r\n\t */\r\n\tpublic String sendString(String message , int timeout) throws MessagingTimeoutException, MessagingException;\r\n\t\r\n\t/**\r\n\t * Closes connection related objects used by this RpcClient.\r\n\t * @throws MessagingException in case of errors closing connections to the underlying messaging system.\r\n\t */\r\n\tpublic void closeConnections() throws MessagingException;\r\n\t\r\n}", "public interface RestaurantEndpoints {\n @GET(\"/restaurants\")\n Call<ArrayList<GETRestaurantResponse>> getRestaurants(@Query(\"priceeq\") String priceEquals,\n @Query(\"pricelte\") String priceLte,\n @Query(\"pricegte\") String priceGte,\n @Query(\"city\") String city,\n @Query(\"name\") String name,\n @Query(\"address\") String address);\n @GET(\"/restaurant_statistics\")\n Call<GETRestaurantStatisticsResponse> getRestaurantStatistics(@Query(\"name\") String name, @Query(\"address\") String address);\n\n @PUT(\"/restaurants\")\n Call<Void> updateRestaurantOwner(@Body PUTRestaurantRequest putRestaurantRequest);\n\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"http://youfood.ddns.net\")\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n RestaurantEndpoints restaurantEndpoints = retrofit.create(RestaurantEndpoints.class);\n}", "public interface TypiCodeServices {\n @GET(\"/photos\")\n Call<ArrayList<Model>> data();\n}", "public interface SWAPIInterface {\n @GET(\"people\")\n Call<PeopleResponse> getPeopleFromPage();\n}", "@Override\n protected Void call() throws InterruptedException {\n _tempVr.SetTimeout(5);\n _tempVr.SetMicDistance(Protocol.Distance.FAR_MIC);\n\n updateMessage(String.format(\"Speak%s\", System.getProperty(\"line.separator\")));\n\n //instruct the module to listen for a built in word from the 1st wordset\n _tempVr.RecognizeWord(1);\n\n //need to wait until HasFinished has completed before collecting results\n while (!_tempVr.HasFinished()) {\n updateMessage(\".\");\n }\n\n // Once HasFinished has returned true, we can ask the module for the index of the word it recognised. If you're new to using the EasyVR module,\n // download the Easy VR Commander (http://www.veear.eu/downloads/) to interrogate the config of your module and see what the indexes correspond to\n // Here is a standard setup at time of writing for an EASYVR 3 module:\n // 0=Action,1=Move,2=Turn,3=Run,4=Look,5=Attack,6=Stop,7=Hello\n int indexOfRecognisedWord = _tempVr.GetWord();\n\n updateMessage(String.format(\"Response: %d%s\", indexOfRecognisedWord, System.getProperty(\"line.separator\")));\n // updateMessage(String.format(\"Recognition finished%s\", System.getProperty(\"line.separator\")));\n\n return null;\n }", "public static interface ApplicationManagerFutureClient {\n\n /**\n * <pre>\n * Applications should first be registered to the Handler with the `RegisterApplication` method\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> registerApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * GetApplication returns the application with the given identifier (app_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Application> getApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * SetApplication updates the settings for the application. All fields must be supplied.\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Application request);\n\n /**\n * <pre>\n * DeleteApplication deletes the application with the given identifier (app_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * GetDevice returns the device with the given identifier (app_id and dev_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Device> getDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);\n\n /**\n * <pre>\n * SetDevice creates or updates a device. All fields must be supplied.\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);\n\n /**\n * <pre>\n * DeleteDevice deletes the device with the given identifier (app_id and dev_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);\n\n /**\n * <pre>\n * GetDevicesForApplication returns all devices that belong to the application with the given identifier (app_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> getDevicesForApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * DryUplink simulates processing a downlink message and returns the result\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DryDownlinkResult> dryDownlink(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DryDownlinkMessage request);\n\n /**\n * <pre>\n * DryUplink simulates processing an uplink message and returns the result\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DryUplinkResult> dryUplink(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DryUplinkMessage request);\n\n /**\n * <pre>\n * SimulateUplink simulates an uplink message\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> simulateUplink(\n org.thethingsnetwork.management.proto.HandlerOuterClass.SimulatedUplinkMessage request);\n }", "public static void main(String[] args) throws RemotingException, InterruptedException, ExecutionException, TimeoutException {\n\n PigeonRpcReference referencer = new PigeonRpcReference(HelloWorld.class, null, 3000, \"127.0.0.1:8091\", NetEnum.NETTY\n , SerializerEnum.HESSIAN2, RegistryTypeEnum.ZK, RouteTypeEnum.DEFAULT, CallTypeEnum.SYNC);\n HelloWorld helloWorld = (HelloWorld) referencer.getReference();\n HelloWorldResponse response = helloWorld.sayHello();\n System.out.println(\"client get response: \"+response);\n\n }", "public interface ClientServiceAsync {\n\t/**\n\t * Save a Client instance to the data store\n\t * @param c The client to be saved\n\t * @param cb The async callback\n\t */\n\tpublic void saveClient(Client c, AsyncCallback<Void> cb);\n\t\n\t/**\n\t * Load all the Client instances from the server\n\t * @param cb The async callback\n\t */\n\tpublic void getClients(AsyncCallback<List<Client>> cb);\n\t\n\t/**\n\t * Get a Client by id\n\t * @param id The client id\n\t * @param cb The async callback\n\t */\n\tpublic void getClient(String id, AsyncCallback<Client> cb);\n\n\t/**\n\t * Delete a list of clients from the data store\n\t * @param clients The list of clients to be deleted\n\t * @param cb The async callback\n\t */\n\tpublic void deleteClients(Collection<Client> clients, AsyncCallback<Void> cb);\n\t\n\tpublic void saveClients(Collection<Client> clients, AsyncCallback<Void> cb);\n}", "@Test\n public void testQuery() throws PTQueryException, IOException, InterruptedException {\n PubSub.startServer();\n PivotTracing.initialize();\n Thread.sleep(100);\n\n // Get a client for submitting queries\n PivotTracingClient client = PivotTracingClient.newInstance();\n\n // Create a tracepoint\n Tracepoint myMethod1 = Tracepoints.create(getClass(), \"myMethod1\", \"a\", \"b\");\n Tracepoint myMethod2 = Tracepoints.create(getClass(), \"myMethod2\", \"a\", \"b\");\n Tracepoint myMethod3 = Tracepoints.create(getClass(), \"myMethod3\", \"a\", \"b\");\n Tracepoint myMethod4 = Tracepoints.create(getClass(), \"myMethod4\", \"a\", \"b\");\n\n PTQuery q = PTQuery.From(\"m\", myMethod1).HappenedBefore2(\"m\", myMethod2, \"m1\")\n .HappenedBefore2(\"m\", myMethod3, \"m2\")\n .HappenedBefore2(\"m\", myMethod4, \"m3\")\n .Select(\"m3.m2.m1.m.a\", \"m3.m2.m.a\", \"m3.m.a\", \"m.a\");\n\n CallbackForTest cb = new CallbackForTest();\n client.install(q, cb);\n\n /* No results in first report */\n cb.expectNoResults();\n \n /* Invoke once */\n Execution execution = new Execution(\"first\", \"second\", \"third\", \"fourth\", 0,0,0,0);\n execution.start();\n execution.awaitCompletion();\n cb.expectTuple(\"first\", \"second\", \"third\", \"fourth\");\n\n /* No results in third report */\n cb.expectNoResults();\n \n /* Invoke many */\n List<Execution> executions = Lists.newArrayList();\n List<ResultsTuple> expectedResults = Lists.newArrayList();\n for (int i = 0; i < 100; i++) {\n String first = \"first\" + i;\n String second = \"second\" + i;\n String third = \"third\" + i;\n String fourth = \"fourth\" + i;\n execution = new Execution(first, second, third, fourth, 0,0,0,0);\n executions.add(execution);\n expectedResults.add(tuple(first, second, third, fourth));\n execution.start();\n }\n for (Execution exec : executions) {\n exec.awaitCompletion();\n }\n\n /* No results in third report */\n cb.expectTuples(expectedResults);\n }", "public interface AsyncResponce {\n\n /// Cette classe permet de realiser une callback dans une Async Task en overidant cette classe\n void ComputeResult(Object result);\n}", "public static void main(String[] args) {\n\n V2Grpc.V2BlockingStub stub = V2Grpc.newBlockingStub(ClarifaiChannel.INSTANCE.getGrpcChannel())\n .withCallCredentials(new ClarifaiCallCredentials(PAT));\n\n // To start from beginning, do not provide the last ID parameter.\n MultiInputResponse firstStreamInputsResponse = stub.streamInputs(\n StreamInputsRequest.newBuilder()\n .setUserAppId(UserAppIDSet.newBuilder().setUserId(USER_ID).setAppId(APP_ID))\n .setPerPage(10)\n .build()\n );\n\n if (firstStreamInputsResponse.getStatus().getCode() != StatusCode.SUCCESS) {\n throw new RuntimeException(\"Stream inputs failed, status: \" + firstStreamInputsResponse.getStatus());\n }\n\n System.out.println(\"First response (starting from the first input):\");\n List < Input > inputs = firstStreamInputsResponse.getInputsList();\n for (Input input: inputs) {\n System.out.println(\"\\t\" + input.getId());\n }\n\n String lastId = inputs.get(inputs.size() - 1).getId();\n\n // Set last ID to get the next set of inputs. The returned inputs will not include the last ID input.\n MultiInputResponse secondStreamInputsResponse = stub.streamInputs(\n StreamInputsRequest.newBuilder()\n .setUserAppId(UserAppIDSet.newBuilder().setUserId(USER_ID).setAppId(APP_ID))\n .setLastId(lastId)\n .setPerPage(10)\n .build()\n );\n\n if (secondStreamInputsResponse.getStatus().getCode() != StatusCode.SUCCESS) {\n throw new RuntimeException(\"Stream inputs failed, status: \" + secondStreamInputsResponse.getStatus());\n }\n\n System.out.println(String.format(\"Second response (first input is the one following input ID %s)\", lastId));\n for (Input input: secondStreamInputsResponse.getInputsList()) {\n System.out.println(\"\\t\" + input.getId());\n }\n\n }", "public interface GoogleBooksService {\n @GET(\"/books/v1/volumes\")\n void search(@Query(\"q\") String query, Callback<SearchResult> callback);\n}", "public interface ClientInterface {\r\n\r\n @GET(\"/bins/x5279\")\r\n Call<ArrayList<Details>> getDetails();\r\n}", "public interface ServiceClient {\n @GET(\"exec\")\n Call<ListWisata> getWisata(@Query(\"sheet\") String namaSheet);\n}", "public interface NextBusXmlFeed {\n\n @GET(\"/service/publicXMLFeed?command=agencyList\")\n Call<AgenciesResponse> agencyList();\n\n @GET(\"/service/publicXMLFeed?command=routeList\")\n Call<RoutesResponse> routeList(@Query(\"a\") final String agency);\n\n @GET(\"/service/publicXMLFeed?command=routeConfig\")\n Call<RouteConfigResponse> routeConfig(@Query(\"a\") final String agency, @Query(\"r\") final String route);\n\n @GET(\"/service/publicXMLFeed?command=predictions\")\n Call<PredictionResponse> predictions(@Query(\"a\") final String agency, @Query(\"r\") final String route, @Query(\"s\") final String stop);\n}", "public void invoke(ServerServiceDesc serviceDesc, RequestMetaContext reqMetaCtx, ResponseMetaContext respMetaCtx) throws ServiceException;", "public interface Client {\n \n /**\n * Get the unique id of current client.\n *\n * @return id of client\n */\n String getClientId();\n \n /**\n * Whether is ephemeral of current client.\n *\n * @return true if client is ephemeral, otherwise false\n */\n boolean isEphemeral();\n \n /**\n * Set the last time for updating current client as current time.\n */\n void setLastUpdatedTime();\n \n /**\n * Get the last time for updating current client.\n *\n * @return last time for updating\n */\n long getLastUpdatedTime();\n \n /**\n * Add a new instance for service for current client.\n *\n * @param service publish service\n * @param instancePublishInfo instance\n * @return true if add successfully, otherwise false\n */\n boolean addServiceInstance(Service service, InstancePublishInfo instancePublishInfo);\n \n /**\n * Remove service instance from client.\n *\n * @param service service of instance\n * @return instance info if exist, otherwise {@code null}\n */\n InstancePublishInfo removeServiceInstance(Service service);\n \n /**\n * Get instance info of service from client.\n *\n * @param service service of instance\n * @return instance info\n */\n InstancePublishInfo getInstancePublishInfo(Service service);\n \n /**\n * Get all published service of current client.\n *\n * @return published services\n */\n Collection<Service> getAllPublishedService();\n \n /**\n * Add a new subscriber for target service.\n *\n * @param service subscribe service\n * @param subscriber subscriber\n * @return true if add successfully, otherwise false\n */\n boolean addServiceSubscriber(Service service, Subscriber subscriber);\n \n /**\n * Remove subscriber for service.\n *\n * @param service service of subscriber\n * @return true if remove successfully, otherwise false\n */\n boolean removeServiceSubscriber(Service service);\n \n /**\n * Get subscriber of service from client.\n *\n * @param service service of subscriber\n * @return subscriber\n */\n Subscriber getSubscriber(Service service);\n \n /**\n * Get all subscribe service of current client.\n *\n * @return subscribe services\n */\n Collection<Service> getAllSubscribeService();\n \n /**\n * Generate sync data.\n *\n * @return sync data\n */\n ClientSyncData generateSyncData();\n \n /**\n * Whether current client is expired.\n *\n * @param currentTime unified current timestamp\n * @return true if client has expired, otherwise false\n */\n boolean isExpire(long currentTime);\n \n /**\n * Release current client and release resources if neccessary.\n */\n void release();\n \n /**\n * Recalculate client revision and get its value.\n * @return recalculated revision value\n */\n long recalculateRevision();\n \n /**\n * Get client revision.\n * @return current revision without recalculation\n */\n long getRevision();\n \n /**\n * Set client revision.\n * @param revision revision of this client to update\n */\n void setRevision(long revision);\n \n}", "@Suspendable\n @Override\n public Void call() throws FlowException {\n\n\n\n try {\n Class<EconomicTerms> clazz = EconomicTerms.class;\n //String json = cdmContent != null ? JsonUtil.toJsonString(cdmContent) : JsonUtil.toJsonString(obj);\n ObjectMapper rosettaObjectMapper = RosettaObjectMapper.getDefaultRosettaObjectMapper();\n\n EconomicTerms economicTerms = rosettaObjectMapper.readValue(cdmContent, clazz);\n\n List<Function<? super EconomicTerms, QualifyResult>> qualifyFunctions = new EconomicTermsMeta().getQualifyFunctions();\n\n\n // Use the QualifyResultsExtractor helper to easily make use of qualification results\n //\n\n String result = new QualifyResultsExtractor<>(qualifyFunctions, economicTerms)\n .getOnlySuccessResult()\n .map(QualifyResult::getName)\n .orElse(\"Failed to qualify\");\n\n\n System.out.println(result);\n\n }catch(Exception Ex){\n\n throw new FlowException(\"Problem reading CDM.\");\n }\n\n\n\n // We retrieve the notary identity from the network map.\n Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0);\n UniqueIdentifier linearId = null;\n if(initFlag) {\n linearId = new UniqueIdentifier();\n }else{\n linearId = UniqueIdentifier.Companion.fromString(id);\n }\n\n\n // We create the transaction components.\n CDMState outputState = new CDMState(status,cdmContent,getOurIdentity(),otherParty,linearId);\n Command command = new Command<>(new CDMTemplateContract.Commands.Action(), getOurIdentity().getOwningKey());\n\n\n // We create a transaction builder and add the components.\n TransactionBuilder txBuilder = new TransactionBuilder(notary);\n\n if(!initFlag) {\n StateAndRef<CDMState> previousState = retrievePreviousState(linearId);\n if(previousState!=null) {\n txBuilder = txBuilder.addInputState(previousState);\n }\n }\n\n txBuilder = txBuilder.addOutputState(outputState, CDMTemplateContract.ID)\n .addCommand(command);\n\n // Signing the transaction.\n SignedTransaction signedTx = getServiceHub().signInitialTransaction(txBuilder);\n\n // Creating a session with the other party.\n FlowSession otherPartySession = initiateFlow(otherParty);\n\n // We finalise the transaction and then send it to the counterparty.\n subFlow(new FinalityFlow(signedTx, otherPartySession));\n\n return null;\n }", "public interface RESTService {\n\n /**\n * Check Voter Services\n **/\n\n //TODO to check this is work or not\n //@GET(Config.REGISTER) Call<User> registerUser(@Header(\"uuid\") String uuid,\n // @QueryMap Map<String, String> body);\n\n @GET(Config.REGISTER) Call<User> registerUser(@QueryMap Map<String, String> body);\n\n /**\n * Maepaysoh services\n **/\n\n //candidate\n @GET(Config.CANDIDATE_LIST_URL) Call<CandidateListReturnObject> getCandidateList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.CANDIDATE_URL + \"/{id}\") Call<JsonObject> getCandidate(@Path(\"id\") String id,\n @QueryMap Map<String, String> optionalQueries);\n\n //geo location\n @GET(Config.GEO_LOCATION_URL) Call<GeoReturnObject> getLocationList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.GEO_LOCATION_SEARCH) Call<JsonObject> searchLocation(\n @QueryMap Map<String, String> optionalQueries);\n\n //party\n @GET(Config.PARTY_LIST_URL) Call<PartyReturnObject> getPartyList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.PARTY_LIST_URL + \"/{id}\") Call<JsonObject> getPartyDetail(@Path(\"id\") String id);\n\n //OMI service\n @GET(Config.MOTION_DETAIL_URL) Call<JsonObject> getMotionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.MOTION_COUNT) Call<JsonObject> getMotionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_DETAIL_URL) Call<JsonObject> getQuestionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_COUNT) Call<JsonObject> getQuestionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_MOTION) Call<JsonObject> getQuestionAndMotion(@Query(\"mpid\") String mpId);\n\n @GET(Config.COMPARE_QUESTION) Call<JsonElement> getCompareQuestion(\n @Query(\"first\") String first_candidate_id, @Query(\"second\") String second_candidate_id);\n\n @GET(Config.CANDIDTE_AUTO_SEARCH) Call<ArrayList<CandidateSearchResult>> searchCandidate(\n @Query(\"q\") String keyWord, @QueryMap Map<String, Integer> options);\n\n @GET(Config.CANDIDATE_COUNT) Call<JsonObject> getCandidateCount(@Query(\"party\") String party_id);\n\n @GET(Config.CURRENT_COUNT) Call<JsonObject> getCurrentCount();\n\n @GET(Config.FAQ_LIST_URL) Call<FAQListReturnObject> listFaqs(\n @QueryMap Map<String, String> options);\n\n @GET(Config.FAQ_SEARCH) Call<FAQListReturnObject> searchFaq(@Query(\"q\") String keyWord,\n @QueryMap Map<String, String> options);\n\n @GET(\"/faq/{faq_id}\") Call<FAQDetailReturnObject> searchFaqById(@Path(\"faq_id\") String faqId,\n @QueryMap Map<String, String> options);\n\n @GET(Config.APP_VERSIONS) Call<JsonObject> checkUpdate();\n}", "@RemoteServiceRelativePath(\"greet\")\r\npublic interface GreetingService extends RemoteService {\r\n\tString greetServer(String name) throws IllegalArgumentException;\r\n\r\n\tContactInfo createNameCard(String name, String email);\r\n}", "public interface ServiceEpisodeListNo {\n\n @GET(ConstantServices.SER_NAME_EDPISODE_LIST)\n Call<List<Episode>> respN(@Query(ConstantServices.SPECIALS) String specials);\n}", "public interface PaintService {\n\n @GET(\"x858r\")\n Call<PaintContainer> getPaints();\n}", "public interface GenerateResourceServiceAsync {\n /**\n * {@link GenerateResourceServiceImpl#generateTSDPattern(long,boolean)}\n */\n void generateTSDPattern(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#generateBehaviorPattern(long,boolean)}\n */\n void generateBehaviorPattern(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#generateScenarioSet(long, boolean)}\n */\n void generateScenarioSet(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#generateConcreteScenarioSet(long, byte[])}\n */\n void generateConcreteScenarioSet(long settingFileId, byte[] pattern, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#getPartOfFileContent(long, long, long, long)}\n */\n void getPartOfFileContent(long projectId, long fileId, long startRecordOffset, long recordCount, AsyncCallback<byte[]> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#getPartOfFileContent(long, long, long, String)}\n */\n void getPartOfFileContent(long projectId, long fileId, long patternId, String generationHash, AsyncCallback<byte[]> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#getSettingFileJobStatusList(long, long)}\n */\n void getSettingFileJobStatusList(long fileId, long projectId, AsyncCallback<List<JobStatusInfo>> callback) throws IllegalArgumentException;\n\n}", "public interface BakingInterface {\n\n @GET(\"5907926b_baking/baking.json\")\n Call<List<Recipe>> getRecipe();\n}", "public interface IRpcResponser {\n\n public void callback(String secret, Class<?> clazzOfInterface, Object serviceProvider, long timeout, TimeUnit timeUnit);\n\n public WrappedRpcServer buildRpcServer(String secret, IRpcMessageProcessor rpcMsgProcessor);\n}", "public interface LibraryService {\n\n @GET(\"resource/b67a-vkqb.json\")\n Call<List<QueensLibraryResponse>> getLibraries();\n\n}", "private static void unaryService(ManagedChannel channel){\n CalculatorServiceBlockingStub calculatorClient = newBlockingStub(channel);\n\n //Create a Greet Request\n SumRequest sumRequest = SumRequest\n .newBuilder()\n .setFirstNumber(1)\n .setSecondNumber(2)\n .build();\n\n //Call the RPC and get back a GreetResponse\n SumResponse sumResponse = calculatorClient.sum(sumRequest);\n System.out.println(sumRequest.getFirstNumber() +\"+\" + sumRequest.getSecondNumber() +\"=\"+ sumResponse.getSumResult());\n }", "public void callAsyncCallback(String text) {\n\n \n com.cdyne.ws.Check service = new com.cdyne.ws.Check();\n com.cdyne.ws.CheckSoap port = service.getCheckSoap();\n // initialize WS operation arguments here\n java.lang.String bodyText = text;\n\n javax.xml.ws.AsyncHandler<com.cdyne.ws.CheckTextBodyV2Response> asyncHandler = new javax.xml.ws.AsyncHandler<com.cdyne.ws.CheckTextBodyV2Response>() {\n\n public void handleResponse(final javax.xml.ws.Response<com.cdyne.ws.CheckTextBodyV2Response> response) {\n SwingUtilities.invokeLater(new Runnable() {\n\n public void run() {\n\n try {\n // Create a DocumentSummary object containing the response.\n // Note that getDocumentSummary() is called from the Response object\n // unlike the synchronous client, where it is called directly from\n // com.cdyne.ws.CheckTextBody\n\n com.cdyne.ws.DocumentSummary doc = response.get().getDocumentSummary();\n\n\n //From the retrieved DocumentSummary,\n //identify and display the number of wrongly spelled words:\n\n final int no_of_mistakes = doc.getMisspelledWordCount();\n String number_of_mistakes = Integer.toString(no_of_mistakes);\n tfNumberMistakes.setText(number_of_mistakes);\n\n\n // Check to see if there are any mistakes\n if (no_of_mistakes > 0) {\n\n //From the retrieved document summary,\n //identify the array of wrongly spelled words, if any:\n\n final List<com.cdyne.ws.Words> allwrongwords = doc.getMisspelledWord();\n\n\n //Get the first wrong word\n String firstwrongword = allwrongwords.get(0).getWord();\n\n //Build a string of all wrong words separated by commas, then display this in tfWrongWords\n\n StringBuilder wrongwordsbuilder = new StringBuilder(firstwrongword);\n\n for (int i = 1; i < allwrongwords.size(); i++) {\n String onewrongword = allwrongwords.get(i).getWord();\n wrongwordsbuilder.append(\", \");\n wrongwordsbuilder.append(onewrongword);\n }\n String wrongwords = wrongwordsbuilder.toString();\n tfWrongWords.setText(wrongwords);\n\n //Display the first wrong word\n tfWrongWord1.setText(firstwrongword);\n\n\n //See how many suggestions there are for the wrong word\n int onewordsuggestioncount = allwrongwords.get(0).getSuggestionCount();\n\n\n //Check to see if there are any suggestions.\n if (onewordsuggestioncount > 0) {\n\n //Make a list of all suggestions for correcting the first wrong word, and build them into a String.\n //Display the string of concactenated suggestions in the tfSuggestions1 text field\n\n\n List<String> allsuggestions = ((com.cdyne.ws.Words) allwrongwords.get(0)).getSuggestions();\n\n String firstsuggestion = allsuggestions.get(0);\n StringBuilder suggestionbuilder = new StringBuilder(firstsuggestion);\n for (int i = 1; i < onewordsuggestioncount; i++) {\n String onesuggestion = allsuggestions.get(i);\n suggestionbuilder.append(\", \");\n suggestionbuilder.append(onesuggestion);\n }\n String onewordsuggestions = suggestionbuilder.toString();\n tfSuggestions1.setText(onewordsuggestions);\n\n } else {\n // No suggestions for this mistake\n tfSuggestions1.setText(\"No suggestions\");\n }\n btNextWrongWord.setEnabled(true);\n\n // See if the ActionListener for getting the next wrong word and suggestions\n // has already been defined. Unregister it if it has, so only one action listener\n // will be registered at one time.\n\n if (nextWord != null) {\n btNextWrongWord.removeActionListener(nextWord);\n }\n\n // Define the ActionListener (already instantiated as a private field)\n nextWord = new ActionListener() {\n\n //Initialize a variable to track the index of the allwrongwords list\n\n int wordnumber = 1;\n\n public void actionPerformed(ActionEvent e) {\n if (wordnumber < no_of_mistakes) {\n\n // get wrong word in index position wordnumber in allwrongwords\n String onewrongword = allwrongwords.get(wordnumber).getWord();\n\n //next part is same as code for first wrong word\n\n tfWrongWord1.setText(onewrongword);\n int onewordsuggestioncount = allwrongwords.get(wordnumber).getSuggestionCount();\n if (onewordsuggestioncount > 0) {\n List<String> allsuggestions = allwrongwords.get(wordnumber).getSuggestions();\n String firstsuggestion = allsuggestions.get(0);\n StringBuilder suggestionbuilder = new StringBuilder(firstsuggestion);\n for (int j = 1; j < onewordsuggestioncount; j++) {\n String onesuggestion = allsuggestions.get(j);\n suggestionbuilder.append(\", \");\n suggestionbuilder.append(onesuggestion);\n }\n String onewordsuggestions = suggestionbuilder.toString();\n tfSuggestions1.setText(onewordsuggestions);\n } else {\n tfSuggestions1.setText(\"No suggestions\");\n }\n\n // increase i by 1\n wordnumber++;\n\n } else {\n // No more wrong words! Disable next word button\n // Enable Check button\n btNextWrongWord.setEnabled(false);\n btCheck.setEnabled(true);\n }\n }\n };\n\n // Register the ActionListener\n btNextWrongWord.addActionListener(nextWord);\n\n } else {\n // The text has no mistakes\n // Enable Check button\n tfWrongWords.setText(\"No wrong words\");\n tfSuggestions1.setText(\"No suggestions\");\n tfWrongWord1.setText(\"--\");\n btCheck.setEnabled(true);\n\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n // Clear the progress bar\n pbProgress.setIndeterminate(false);\n pbProgress.setString(\"\");\n }\n });\n\n }\n };\n\n java.util.concurrent.Future result = port.checkTextBodyV2Async(bodyText, asyncHandler);\n while (!result.isDone()) {\n try {\n\n\n //Display a message that the application is waiting for a response from the server\n tfWrongWords.setText(\"Waiting...\");\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n Logger.getLogger(MainForm.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n}", "@RemoteServiceRelativePath(\"greet\")\r\npublic interface GreetingService extends RemoteService {\r\n\tAdd getsubmit(Add name) throws IllegalArgumentException;\r\n\r\n\tData p(Data n) throws IllegalArgumentException;\r\n\r\n\tLog l(Log u) throws IllegalArgumentException;\r\n\r\n\tupl insert(upl u) throws IllegalArgumentException;\r\n\r\n\toutuser getdata(outuser name) throws IllegalArgumentException;\r\n\r\n\t\r\n\r\n\tBooks[] fun(String s1)throws IllegalArgumentException;\r\n\r\n\tAdd[] po(String s)throws IllegalArgumentException;\r\n\t\r\n\t\r\n\tBooks fun1(Books s1)throws IllegalArgumentException;\r\n}", "public interface TravelsService {\n\n /**\n * Get data list.\n *\n * @param query default \"\"\n * @param page default 1\n * @return\n * @throws Exception\n */\n @GET(App.SUFFIX_URL_TRAVELS)\n Call<TravelsMapObject> getData(@Query(\"query\") String query, @Query(\"page\") Integer page) throws Exception;\n\n}", "public interface IOnlineSearchClient {\n\n /**\n * Passes a result / item to this client.\n * @param dco\n */\n public void addObject(DcObject dco);\n \n /**\n * Indicates a task is currently running.\n */\n public void processing();\n \n /**\n * Indicates a task has been stopped and a new task can be started.\n */\n public void stopped();\n \n /**\n * Passes a message to this client.\n * @param message\n */\n public void addMessage(String message);\n \n /**\n * Passes an error to this client.\n * @param t \n */\n public void addError(Throwable t);\n \n /**\n * Passes an error message to this client.\n * @param t \n */\n public void addError(String message);\n \n /**\n * Passes a warning message to this client.\n * @param t \n */\n public void addWarning(String warning);\n \n /**\n * Returns the total count of added items (see {@link #addObject(DcObject)})\n */\n public int resultCount();\n \n /**\n * Returns the current module.\n * @return The module\n */\n public DcModule getModule();\n \n /**\n * Passes the count of results which are going to be processed.\n * This way the client knows how many items to expect.\n * @param i The total count.\n */\n public void processingTotal(int i);\n \n /**\n * The current result number being processed (x of x).\n * @param i\n */\n public void processed(int i);\n}", "public static void main(String ...args) {\n Operation myOperation = Operation.alloc(\"http://example/special2\", \"special2\", \"Custom operation\");\n\n // Service endpoint names.\n String queryEndpoint = \"q\";\n String customEndpoint = \"x\";\n\n // Make a DataService with custom named for endpoints.\n // In this example, \"q\" for SPARQL query and \"x\" for our custom extension and no others.\n DatasetGraph dsg = DatasetGraphFactory.createTxnMem();\n DataService dataService = DataService.newBuilder(dsg)\n .addEndpoint(myOperation, customEndpoint)\n .addEndpoint(Operation.Query, queryEndpoint)\n .build();\n\n // This will be the code to handled for the operation.\n ActionService customHandler = new DemoService();\n\n FusekiServer server =\n FusekiServer.create().port(PORT)\n .verbose(true)\n // Register the new operation, and it's handler\n .registerOperation(myOperation, customHandler)\n\n // The DataService.\n .add(DATASET, dataService)\n\n // And build the server.\n .build();\n\n server.start();\n\n // Try some operations on the server using the service URL.\n String customOperationURL = SERVER_URL + DATASET + \"/\" + customEndpoint;\n String queryOperationURL = SERVER_URL + DATASET + \"/\" + queryEndpoint;\n\n Query query = QueryFactory.create(\"ASK{}\");\n\n try {\n\n // Try custom name - OK\n try ( QueryExecution qExec = QueryExecution.service(queryOperationURL, query) ) {\n qExec.execAsk();\n }\n\n // Try the usual default name, which is not configured in the DataService so expect a 404.\n try ( QueryExecution qExec = QueryExecution.service(SERVER_URL + DATASET + \"/sparql\", query) ) {\n qExec.execAsk();\n throw new RuntimeException(\"Didn't fail\");\n } catch (QueryExceptionHTTP ex) {\n if ( ex.getStatusCode() != HttpSC.NOT_FOUND_404 ) {\n throw new RuntimeException(\"Not a 404\", ex);\n }\n }\n\n // Make an HTTP GET to the custom operation.\n // Service endpoint name : GET\n String s1 = HttpOp.httpGetString(customOperationURL);\n if ( s1 == null )\n throw new RuntimeException(\"Failed: \"+customOperationURL);\n\n } finally {\n server.stop();\n }\n }", "public interface InviteService extends Service, ActorService {\r\n\r\n @AsyncInvocation\r\n void save();\r\n @AsyncInvocation\r\n void insert(DbRow dbRow);\r\n @AsyncInvocation\r\n void update(DbRow dbRow);\r\n @AsyncInvocation\r\n void bindInviteCode(RoleInvitePo roleInvitePoFrom, RoleBeInvitePo roleBeInvitePo);\r\n\r\n}", "public interface OmniProxyMethods extends JacksonRpcClient {\n Logger log = LoggerFactory.getLogger(OmniProxyMethods.class);\n AddressParser addressParser = AddressParser.getDefault();\n\n /**\n * Determine if remote server is an OmniProxy server.\n * @return true if server is OmniProxy\n */\n boolean isOmniProxyServer();\n\n private List<OmniPropertyInfo> omniProxyListPropertiesSync() throws IOException {\n JavaType javaType = getMapper().getTypeFactory().constructCollectionType(List.class, OmniPropertyInfo.class);\n return send(\"omniproxy.listproperties\", javaType);\n }\n\n default CompletableFuture<List<OmniPropertyInfo>> omniProxyListProperties() {\n return supplyAsync(this::omniProxyListPropertiesSync);\n }\n\n default CompletableFuture<TokenRichList<OmniValue, CurrencyID>> omniProxyGetRichList(CurrencyID id, int size) {\n return supplyAsync(() -> omniProxyGetRichListSync(id, size));\n }\n\n default TokenRichList<OmniValue, CurrencyID> omniProxyGetRichListSync(CurrencyID id, int size) throws IOException {\n // TODO: Can we replace JsonNode with a JavaType for TokenRichList<OmniValue, CurrencyID> ??\n // JavaType javaType = client.getMapper().getTypeFactory().constructParametricType(TokenRichList.class, OmniValue.class, CurrencyID.class);\n\n JsonNode node = send(\"omniproxy.getrichlist\", JsonNode.class, id.getValue(), size);\n if (node instanceof NullNode) {\n log.error(\"Got null node: {}\", node);\n throw new JsonRpcException(\"Got null node\");\n }\n JsonNode listNode = node.get(\"richList\");\n List<TokenRichList.TokenBalancePair<OmniValue>> listOnly =\n (listNode != null)\n ? StreamSupport.stream(listNode.spliterator(), false)\n .map(this::nodeToBalancePair)\n .collect(Collectors.toList())\n : List.of();\n return new TokenRichList<>(\n 0,\n Sha256Hash.ZERO_HASH,\n 0,\n CurrencyID.OMNI,\n listOnly,\n OmniValue.of(node.get(\"otherBalanceTotal\").asText())\n );\n }\n\n default WalletAddressBalance omniProxyGetBalance(Address address) throws IOException {\n return send(\"omniproxy.getbalance\", WalletAddressBalance.class, address);\n }\n\n default OmniJBalances omniProxyGetBalances(List<Address> addresses) throws IOException {\n return send(\"omniproxy.getbalances\", OmniJBalances.class, addresses.toArray());\n }\n\n private TokenRichList.TokenBalancePair<OmniValue> nodeToBalancePair(JsonNode node) {\n Address address = addressParser.parseAddress(node.get(\"address\").asText());\n OmniValue value = OmniValue.of(node.get(\"balance\").asText());\n return new TokenRichList.TokenBalancePair<>(address, value);\n }\n}", "java.util.concurrent.Future<GetDataIntegrationResult> getDataIntegrationAsync(GetDataIntegrationRequest getDataIntegrationRequest);", "@PlanBody\n public boolean body(){\n ICenterService ser = agent.getComponentFeature\n (IRequiredServicesFeature.class).searchService(ICenterService.class,RequiredServiceInfo.SCOPE_GLOBAL).get();\n\n ser.collectBallot(voter).addResultListener(new IResultListener<Boolean>() {\n @Override\n public void exceptionOccurred(Exception exception) {\n exception.printStackTrace();\n System.out.println(exception);\n }\n @Override\n public void resultAvailable(Boolean result) {\n System.out.println(voter.getId()+ \" submit result: \"+result);\n }\n });\n return true;\n }", "public interface AppServiceAsync {\r\n void addBookmark(Bookmark bookmark, AsyncCallback<Long> callback);\r\n\r\n void deleteBookmark(Long id, AsyncCallback<Void> callback);\r\n\r\n void getBookmarks(AsyncCallback<List<Bookmark>> callback);\r\n\r\n void isLogged(String location, AsyncCallback<String> callback);\r\n}", "@Test\n public void testControlResponses() throws Exception {\n createTethering(\"xyz\", NAMESPACES, REQUEST_TIME, DESCRIPTION);\n acceptTethering();\n TetheringControlResponseV2 expectedResponse =\n new TetheringControlResponseV2(Collections.emptyList(), TetheringStatus.ACCEPTED);\n\n expectTetheringControlResponse(\"xyz\", HttpResponseStatus.OK, GSON.toJson(expectedResponse));\n\n // Queue up a couple of messages for the peer\n MessagePublisher publisher =\n new MultiThreadMessagingContext(messagingService).getMessagePublisher();\n String topicPrefix = cConf.get(Constants.Tethering.CLIENT_TOPIC_PREFIX);\n String topic = topicPrefix + \"xyz\";\n TetheringLaunchMessage launchMessage =\n new TetheringLaunchMessage.Builder()\n .addFileNames(DistributedProgramRunner.LOGBACK_FILE_NAME)\n .addFileNames(DistributedProgramRunner.PROGRAM_OPTIONS_FILE_NAME)\n .addFileNames(DistributedProgramRunner.APP_SPEC_FILE_NAME)\n .addRuntimeNamespace(\"default\")\n .build();\n TetheringControlMessage message1 =\n new TetheringControlMessage(\n TetheringControlMessage.Type.START_PROGRAM, Bytes.toBytes(GSON.toJson(launchMessage)));\n publisher.publish(NamespaceId.SYSTEM.getNamespace(), topic, GSON.toJson(message1));\n ProgramRunInfo programRunInfo =\n new ProgramRunInfo.Builder()\n .setNamespace(\"ns\")\n .setApplication(\"app\")\n .setVersion(\"1.0\")\n .setProgramType(\"workflow\")\n .setProgram(\"program\")\n .setRun(\"runId\")\n .build();\n TetheringControlMessage message2 =\n new TetheringControlMessage(\n TetheringControlMessage.Type.STOP_PROGRAM, Bytes.toBytes(GSON.toJson(programRunInfo)));\n publisher.publish(NamespaceId.SYSTEM.getNamespace(), topic, GSON.toJson(message2));\n\n // Poll the server\n HttpRequest.Builder builder =\n HttpRequest.builder(HttpMethod.POST, config.resolveURL(\"tethering/channels/xyz\"))\n .withBody(GSON.toJson(new TetheringControlChannelRequest(null, null)));\n\n // Response should contain 2 messages\n HttpResponse response = HttpRequests.execute(builder.build());\n TetheringControlResponseV2 controlResponse =\n GSON.fromJson(response.getResponseBodyAsString(), TetheringControlResponseV2.class);\n List<TetheringControlMessageWithId> controlMessages = controlResponse.getControlMessages();\n\n Assert.assertEquals(HttpResponseStatus.OK.code(), response.getResponseCode());\n Assert.assertEquals(2, controlMessages.size());\n Assert.assertEquals(message1, controlMessages.get(0).getControlMessage());\n Assert.assertEquals(message2, controlMessages.get(1).getControlMessage());\n\n // Poll again with lastMessageId set to id of last message received from the server\n String lastMessageId = controlMessages.get(1).getMessageId();\n builder =\n HttpRequest.builder(HttpMethod.POST, config.resolveURL(\"tethering/channels/xyz\"))\n .withBody(GSON.toJson(new TetheringControlChannelRequest(lastMessageId, null)));\n\n // There should be no more messages queued up for this client\n response = HttpRequests.execute(builder.build());\n controlResponse =\n GSON.fromJson(response.getResponseBodyAsString(), TetheringControlResponseV2.class);\n Assert.assertEquals(HttpResponseStatus.OK.code(), response.getResponseCode());\n Assert.assertEquals(0, controlResponse.getControlMessages().size());\n }", "public interface ActorAPI {\n @GET(\"EJP8Q22E-\")\n Call<Actor> getActorImageUrl(String actorName);\n\n @GET(\"EJP8Q22E-\")\n Call<Actor> getTestActorImageUrl();\n}", "public interface PokeApiService {\n\n @GET(\"qvqk-dtmf.json\")\n Call<ArrayList<ViasRespuesta>> obtenerListaPokemon();\n}", "public interface RankClient {\n @POST(\"api/givefeedback\")\n @FormUrlEncoded\n Call<Response> giverank (@Field(\"reviewer\") String reviewer,\n @Field(\"reviewee\") String reviewee,\n @Field(\"rank\") int rank);\n}", "public interface RealTimeTransportApi {\n\n @GET(\"busstopinformation\")\n Call<PublicStopListResponse> listAllStops(@Query(\"operator\") String operator);\n\n @GET(\"realtimebusinformation\")\n Call<RealtimeRouteResponse> getRealtimeInfo(@Query(\"stopid\") String stopId);\n\n}", "public interface PokemonService {\n @GET(\"pokemon/?limit=151\")\n Call<ListResponse> listPokemon();\n}", "public static void main(String[] args) throws Exception {\n InputStream clientCert = new FileInputStream(System.getenv(\"TEMPORAL_CLIENT_CERT\"));\n // PKCS8 client key, which should look like:\n // -----BEGIN PRIVATE KEY-----\n // ...\n // -----END PRIVATE KEY-----\n InputStream clientKey = new FileInputStream(System.getenv(\"TEMPORAL_CLIENT_KEY\"));\n // For temporal cloud this would likely be ${namespace}.tmprl.cloud:7233\n String targetEndpoint = System.getenv(\"TEMPORAL_ENDPOINT\");\n // Your registered namespace.\n String namespace = System.getenv(\"TEMPORAL_NAMESPACE\");\n // Create SSL enabled client by passing SslContext, created by SimpleSslContextBuilder.\n WorkflowServiceStubs service =\n WorkflowServiceStubs.newServiceStubs(\n WorkflowServiceStubsOptions.newBuilder()\n .setSslContext(SimpleSslContextBuilder.forPKCS8(clientCert, clientKey).build())\n .setTarget(targetEndpoint)\n .build());\n\n // Now setup and start workflow worker, which uses SSL enabled gRPC service to communicate with\n // backend.\n // client that can be used to start and signal workflows.\n WorkflowClient client =\n WorkflowClient.newInstance(\n service, WorkflowClientOptions.newBuilder().setNamespace(namespace).build());\n // worker factory that can be used to create workers for specific task queues\n WorkerFactory factory = WorkerFactory.newInstance(client);\n // Worker that listens on a task queue and hosts both workflow and activity implementations.\n factory.newWorker(TASK_QUEUE);\n // TODO now register your workflow types and activity implementations.\n // worker.registerWorkflowImplementationTypes(...);\n // worker.registerActivitiesImplementations(...);\n factory.start();\n }" ]
[ "0.6128273", "0.5922577", "0.59101135", "0.57470775", "0.5716222", "0.56797826", "0.5655584", "0.5646897", "0.5633618", "0.5598338", "0.55600655", "0.55137193", "0.5507427", "0.5507184", "0.5496679", "0.5456381", "0.54395765", "0.54257315", "0.5416307", "0.5401536", "0.5388633", "0.53872544", "0.5362864", "0.53542244", "0.5348811", "0.5338801", "0.5330115", "0.5328452", "0.5314261", "0.5306339", "0.5305672", "0.5283108", "0.5269267", "0.5260243", "0.5260143", "0.5238658", "0.5215158", "0.5204687", "0.51900303", "0.5155382", "0.51544046", "0.51354516", "0.51219684", "0.5115412", "0.5108426", "0.5097644", "0.5092865", "0.50733775", "0.5067903", "0.50676405", "0.506599", "0.50586355", "0.5053319", "0.5051486", "0.5049101", "0.5043907", "0.5043762", "0.5042057", "0.50380194", "0.50244206", "0.5023418", "0.5011077", "0.50086546", "0.500088", "0.49998662", "0.49963525", "0.49945086", "0.49921137", "0.49859762", "0.49840155", "0.49747896", "0.49734384", "0.49733254", "0.49670842", "0.4965716", "0.49563566", "0.49514395", "0.49497694", "0.49477714", "0.4945261", "0.49430788", "0.49425486", "0.49418378", "0.49416006", "0.49409994", "0.49394104", "0.4937876", "0.49137482", "0.49128017", "0.49102783", "0.49060336", "0.49049744", "0.49046853", "0.49034777", "0.4898358", "0.4896156", "0.48891962", "0.48891336", "0.488411", "0.48831472", "0.4882716" ]
0.0
-1
The following method demostrates gRPC async call to a remote recommendation service Since the UI expects recommended products to be provided at the time of rendering the view, the following code blocks until async call returns (using countdownlatch) This example only intends to show how gRPC can be leveraged to make async calls between microservices
@SuppressWarnings("unused") private List<Product> getrecommendedProductsAsync(Product product) throws InterruptedException { List<Product> recommendedProducts = new ArrayList<Product>(); RecommendationsRequest request = RecommendationsRequest.newBuilder().addAllProductCategory(product.getCategories()).build(); final CountDownLatch finishLatch = new CountDownLatch(1); // Async callback StreamObserver<ListRecommendationsResponse> responseObserver = new StreamObserver<ListRecommendationsResponse>() { @Override public void onNext(ListRecommendationsResponse response) { for (String pid : response.getProductIdsList()) { recommendedProducts.add(productService.findProductById(pid).get()); } recommendedProducts.remove(product); } @Override public void onCompleted() { finishLatch.countDown(); } @Override public void onError(Throwable arg0) { finishLatch.countDown(); } }; // Async call to recommendations microservice asyncStub.listRecommendations(request, responseObserver); finishLatch.await(); return recommendedProducts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Service\npublic interface BugFetch {\n @Async\n void fetch(BugzillaConnector conn) throws InterruptedException;\n}", "@Override public void askPressionAsync() throws MeteoServiceException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tcomConnexion.askPressionAsync();\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new MeteoServiceException(\"[MeteoService] : askPressionAsync failure\", e);\n\t\t\t}\n\t\t}", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Lists nodes.\n * </pre>\n */\n default void listNodes(\n com.google.cloud.tpu.v2alpha1.ListNodesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListNodesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets the details of a node.\n * </pre>\n */\n default void getNode(\n com.google.cloud.tpu.v2alpha1.GetNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.Node> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a node.\n * </pre>\n */\n default void createNode(\n com.google.cloud.tpu.v2alpha1.CreateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a node.\n * </pre>\n */\n default void deleteNode(\n com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Stops a node. This operation is only available with single TPU nodes.\n * </pre>\n */\n default void stopNode(\n com.google.cloud.tpu.v2alpha1.StopNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Starts a node.\n * </pre>\n */\n default void startNode(\n com.google.cloud.tpu.v2alpha1.StartNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates the configurations of a node.\n * </pre>\n */\n default void updateNode(\n com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists queued resources.\n * </pre>\n */\n default void listQueuedResources(\n com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListQueuedResourcesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets details of a queued resource.\n * </pre>\n */\n default void getQueuedResource(\n com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.QueuedResource>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a QueuedResource TPU instance.\n * </pre>\n */\n default void createQueuedResource(\n com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a QueuedResource TPU instance.\n * </pre>\n */\n default void deleteQueuedResource(\n com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Resets a QueuedResource TPU instance\n * </pre>\n */\n default void resetQueuedResource(\n com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getResetQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Generates the Cloud TPU service identity for the project.\n * </pre>\n */\n default void generateServiceIdentity(\n com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateServiceIdentityMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists accelerator types supported by this API.\n * </pre>\n */\n default void listAcceleratorTypes(\n com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAcceleratorTypesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets AcceleratorType.\n * </pre>\n */\n default void getAcceleratorType(\n com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.AcceleratorType>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAcceleratorTypeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists runtime versions supported by this API.\n * </pre>\n */\n default void listRuntimeVersions(\n com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListRuntimeVersionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets a runtime version.\n * </pre>\n */\n default void getRuntimeVersion(\n com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.RuntimeVersion>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetRuntimeVersionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves the guest attributes for the node.\n * </pre>\n */\n default void getGuestAttributes(\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetGuestAttributesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Simulates a maintenance event.\n * </pre>\n */\n default void simulateMaintenanceEvent(\n com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getSimulateMaintenanceEventMethod(), responseObserver);\n }\n }", "private static void bidiStreamService(ManagedChannel channel){\n CalculatorServiceGrpc.CalculatorServiceStub asynClient = CalculatorServiceGrpc.newStub(channel);\n CountDownLatch latch = new CountDownLatch(1);\n StreamObserver<FindMaximumRequest> streamObserver = asynClient.findMaximum(new StreamObserver<FindMaximumResponse>() {\n @Override\n public void onNext(FindMaximumResponse value) {\n System.out.println(\"Got new maxium from server: \"+ value.getMaximum());\n }\n\n @Override\n public void onError(Throwable t) {\n latch.countDown();\n }\n\n @Override\n public void onCompleted() {\n System.out.println(\"Server is done sending data\");\n latch.countDown();\n }\n });\n\n Arrays.asList(1,5,3,6,2,20).forEach(\n number -> {\n System.out.println(\"Sending number: \"+ number);\n streamObserver.onNext(FindMaximumRequest.newBuilder()\n .setNumber(number)\n .build());\n }\n );\n\n streamObserver.onCompleted();\n try {\n latch.await(3L, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resource on a given Google Cloud project and region.\n * `AzureClient` resources hold client authentication\n * information needed by the Anthos Multicloud API to manage Azure resources\n * on your Azure subscription on your behalf.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureClient(\n com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.\n * </pre>\n */\n default void getAzureClient(\n com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureClient>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resources on a given Google Cloud project and region.\n * </pre>\n */\n default void listAzureClients(\n com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureClientsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resource.\n * If the client is used by one or more clusters, deletion will\n * fail and a `FAILED_PRECONDITION` error will be returned.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureClient(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]\n * resource on a given Google Cloud Platform project and region.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureCluster(\n com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * </pre>\n */\n default void updateAzureCluster(\n com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * </pre>\n */\n default void getAzureCluster(\n com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureCluster>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]\n * resources on a given Google Cloud project and region.\n * </pre>\n */\n default void listAzureClusters(\n com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureClustersMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * Fails if the cluster has one or more associated\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureCluster(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Generates a short-lived access token to authenticate to a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * </pre>\n */\n default void generateAzureAccessToken(\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateAzureAccessTokenMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool],\n * attached to a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureNodePool(\n com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].\n * </pre>\n */\n default void updateAzureNodePool(\n com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.\n * </pre>\n */\n default void getAzureNodePool(\n com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureNodePool>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]\n * resources on a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * </pre>\n */\n default void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureNodePoolsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureNodePool(\n com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Returns information, such as supported Azure regions and Kubernetes\n * versions, on a given Google Cloud location.\n * </pre>\n */\n default void getAzureServerConfig(\n com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureServerConfig>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureServerConfigMethod(), responseObserver);\n }\n }", "public interface EPAsyncResponseListener {\n public void getJokesfromEndpoint(String result);\n}", "public static void main(String[] args) throws Exception {\n\n ManagedChannel channel = NettyChannelBuilder.forAddress(\"localhost\", 6565)\n .sslContext(GrpcSslContexts.forClient().trustManager(new File(\"ca.crt\")).build())\n .build();\n\n SubscriptionServiceGrpc.SubscriptionServiceStub helloServiceStub = SubscriptionServiceGrpc\n .newStub(channel)\n .withCallCredentials(CallCredentialsHelper.basicAuth(\"sai\", \"sai123\"));\n\n long start = System.currentTimeMillis();\n SubscriptionRequest rq = SubscriptionRequest.newBuilder().setId(\"Sai\")\n .setSubscriptionScheme(SubscriptionScheme.newBuilder()\n .setSubscriptionTimeInSeconds(10).build()).setTopic(\"foo\").build();\n helloServiceStub.subscribe(rq,\n new StreamObserver<>() {\n @Override\n public void onNext(SubscriptionResponse helloResponse) {\n System.out.println(\" --- \" + helloResponse.getDataJson());\n }\n\n @Override\n public void onError(Throwable throwable) {\n System.out.println(\" ***** On Error **** \"+throwable);\n }\n\n @Override\n public void onCompleted() {\n long end = System.currentTimeMillis();\n System.out.println((end - start) / 1000);\n System.exit(0);\n }\n });\n Thread.sleep(10000000);\n }", "public interface StakeServiceAsync {\n\tvoid sendStake(long uuid, int raceType, int horseNumber, int summ, AsyncCallback<Integer> callback);\n\t\n\tvoid getRaceResultfromDB(int raceId, AsyncCallback<List<Result>> callback);\n}", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Returns a specific `Metrics Scope`.\n * </pre>\n */\n default void getMetricsScope(\n com.google.monitoring.metricsscope.v1.GetMetricsScopeRequest request,\n io.grpc.stub.StreamObserver<com.google.monitoring.metricsscope.v1.MetricsScope>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetMetricsScopeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Returns a list of every `Metrics Scope` that a specific `MonitoredProject`\n * has been added to. The metrics scope representing the specified monitored\n * project will always be the first entry in the response.\n * </pre>\n */\n default void listMetricsScopesByMonitoredProject(\n com.google.monitoring.metricsscope.v1.ListMetricsScopesByMonitoredProjectRequest request,\n io.grpc.stub.StreamObserver<\n com.google.monitoring.metricsscope.v1.ListMetricsScopesByMonitoredProjectResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListMetricsScopesByMonitoredProjectMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Adds a `MonitoredProject` with the given project ID\n * to the specified `Metrics Scope`.\n * </pre>\n */\n default void createMonitoredProject(\n com.google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateMonitoredProjectMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a `MonitoredProject` from the specified `Metrics Scope`.\n * </pre>\n */\n default void deleteMonitoredProject(\n com.google.monitoring.metricsscope.v1.DeleteMonitoredProjectRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteMonitoredProjectMethod(), responseObserver);\n }\n }", "public interface GreetingServiceAsync {\r\n \r\n public void getAvailableDatasets(AsyncCallback<Map<Integer,String> >datasetResults);\r\n public void loadDataset(int datasetId,AsyncCallback<DatasetInformation> asyncCallback);\r\n public void computeLineChart(int datasetId,AsyncCallback<LineChartResults> asyncCallback);\r\n public void computeSomClustering(int datasetId,int linkage,int distanceMeasure,AsyncCallback<SomClusteringResults> asyncCallback);\r\n public void computeHeatmap(int datasetId,List<String>indexer,List<String>colIndexer,AsyncCallback<ImgResult> asyncCallback );\r\n public void computePCA(int datasetId,int comI,int comII, AsyncCallback<PCAResults> asyncCallback);\r\n public void computeRank(int datasetId,String perm,String seed,String[] colGropNames,String log2, AsyncCallback<RankResult> asyncCallback);\r\n public void createRowGroup(int datasetId, String name, String color, String type, int[] selection, AsyncCallback<Boolean> asyncCallback);\r\n public void createColGroup(int datasetId, String name, String color, String type, String[] selection, AsyncCallback<Boolean> asyncCallback);\r\n public void createSubDataset(String name,int[] selection,AsyncCallback<Integer> asyncCallback);\r\n public void updateDatasetInfo(int datasetId, AsyncCallback<DatasetInformation> asyncCallback);\r\n public void activateGroups(int datasetId,String[] rowGroups,String[] colGroups, AsyncCallback<DatasetInformation> asyncCallback);\r\n\r\n \r\n public void saveDataset(int datasetId, String newName,AsyncCallback<Integer> asyncCallback);\r\n \r\n}", "public abstract T await();", "void await( long millis ) throws UnavailableException;", "java.util.concurrent.Future<GetDataIntegrationResult> getDataIntegrationAsync(GetDataIntegrationRequest getDataIntegrationRequest);", "public abstract void retrain(Call serviceCall, Response serviceResponse, CallContext messageContext);", "@Test\n\tpublic void greeterServiceWithLoadBalancerWithConsulServiceDiscoveryTest() throws Exception {\n\t\tif (!consulServiceRegisterRule.isRegistered()) {\n\t\t\tlog.warn(\"Consul Service wasn't registered. Test won't run and is resolved as correct.\");\n\t\t\tAssert.assertTrue(true);\n\t\t\treturn;\n\t\t}\n\n\t\tString message = \"grpc load balancer\";\n\n\t\tregisterGreeterServiceGrpc();\n\n\t\t// number of concurrent client stubs calls\n\t\tint repeatNumStubs = 1000;\n\n\t\t// create grpc client using Consul as load balancer\n\t\tGrpcClientWithLoadBalancer<GreeterBlockingStub, GreeterStub, GreeterFutureStub> clientLbs = \n\t\t\t\tcreateClientLoadBalancerWithConsul(\n\t\t\t\t\t\tnew GrpcManagedChannelNonSecuredFactory(),\n\t\t\t\t\t\tnew GreeterServiceGrpcClientStubFactory());\n\t\t// repeat it N times\n\t\tList<GrpcClientWithLoadBalancer<GreeterBlockingStub, GreeterStub, GreeterFutureStub>> clientLoadBalancers = \n\t\t\t\trepeatClient(repeatNumStubs, clientLbs);\n\n\t\t// wraps as Callable tasks\n \tList<Callable<Boolean>> tasks = clientLoadBalancers.stream()\n \t\t\t.map( clientLb -> new Callable<Boolean>() {\n \t\t\t\t@Override\n \t public Boolean call() {\n \t\t\t\t\tString messageResult = callGreeterService(clientLb, message);\n \t\t\t\t\tAssert.assertEquals(message, messageResult);\n \t return Boolean.TRUE;\n \t }\n \t\t\t})\n \t\t\t.collect( Collectors.toList() );\n\n\t\t// call grpc stubs in a parallel fashion\n\t\tExecutorService executorService = Executors.newFixedThreadPool(4);\n\t\tList<Future<Boolean>> futures = executorService.invokeAll(tasks, 5, TimeUnit.SECONDS);\n\n\t\t// block until all tasks are done\n long finishedCount = futures.stream()\n\t \t.map( f -> {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn f.get();\n\t\t\t\t\t} catch (InterruptedException | ExecutionException ex) {\n\t\t\t\t\t\tlog.error(\"{}. {}\", ex.getClass().getSimpleName(), ex.getMessage());\n\t\t\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t\t\t}\n\t\t\t\t})\n\t \t.filter( r -> Boolean.TRUE.equals(r))\n\t \t.count();\n\n\t\tAssert.assertEquals(repeatNumStubs, finishedCount);\n\n\t\t// shutdown clients before the serverStarterRule calls its shutdown method\n\t\tshutdownClients(clientLoadBalancers);\n\t}", "static CompletableFuture<String> callAsync(Api2 ignored) {\n return CompletableFuture.supplyAsync(() -> {\n System.out.println(\"supplyAsync thread =:\" + Thread.currentThread().getName());\n throw new RuntimeException(\"oops\");\n });\n }", "public interface ReplicaRepositoryServiceAsync extends IAsyncRemoteServiceProxy {\n\t\n\t/**\n\t * Add the specified ontology to the pool of shared ontologies. The ontology\n\t * will belong to no group. Use <code>addOWLOntology(OWLOntology, ID)</code>\n\t * if you want to set the group to which the ontology belongs.\n\t * \n\t * @param ontology\n\t * @return\n\t * @throws ReplicaOntologyAddException\n\t * \n\t * @deprecated use addOWLOntology(OWLOntology, ID) instead\n\t */\n\t// OWLOntology addOWLOntology(OWLOntology ontology) throws\n\t// ReplicaOntologyAddException;\n\n\t/**\n\t * Add the specified ontology to the pool of shared ontologies in\n\t * <code>groups</code>. If <code>groups</code> is null, then the ontology will\n\t * belong to no group. If <code>groups</code> does not exist yet, it will be\n\t * created.\n\t * \n\t * @param ontology\n\t * @param groups\n\t * @param listener\n\t * @throws AddException\n\t */\n\tvoid addOWLOntologyAsync(OWLOntology ontology, Set<? extends Object> groups,\n\t\t\tIAsyncCallback<String> callback);\n//\t\t\tthrows AddException;\n\n\t/**\n\t * Fetches the ontology with the specified OWLOntologyID.\n\t * \n\t * @param ontologyID\n\t * @param listener\n\t * @throws FetchException\n\t */\n\tvoid getOWLOntologyAsync(OWLOntologyID ontologyID,\n\t\t\tIAsyncCallback<OWLOntology> callback);\n//\t\t\tthrows FetchException;\n\n\t/**\n\t * Returns IDs of all shared ontologies or an empty list if none found.\n\t * \n\t * @deprecated use getOWLOntologies(String group) instead\n\t */\n\t// List<OWLOntologyID> getOWLOntologies() throws\n\t// ReplicaOntologyFetchException;\n\n\t/**\n\t * Returns IDs of all shared ontologies which belong to the specified groups.\n\t * <br>\n\t * If <code>groups</code> is null, IDs of all shared ontologies will be\n\t * returned.<br>\n\t * Beware that the specified set implementation has to be serializable.\n\t * \n\t * @param groups\n\t * @param listener\n\t */\n\tvoid getOWLOntologyIDsAsync(Set<Object> groups,\n\t\t\tIAsyncCallback<String> callback);\n//\t\t\tthrows FetchException;\n\n\t/**\n\t * Returns a set of all group names currently registered.\n\t * \n\t * @param listener\n\t */\n\tvoid getGroupsAsync(IAsyncCallback<Set<Object>> callback);\n//\t\t\tthrows FetchException;\n\t\n}", "public interface AsyncResponce {\n\n /// Cette classe permet de realiser une callback dans une Async Task en overidant cette classe\n void ComputeResult(Object result);\n}", "CompletableFuture<CalculationResult> goInfiniteAsync();", "@Test\n public void shouldReturnTotalNumberOfRequestsAs3ForFailAsync() {\n AsyncHelloWorldService helloWorldService = mock(AsyncHelloWorldService.class);\n ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();\n\n CompletableFuture<String> failedFuture = new CompletableFuture<>();\n failedFuture.completeExceptionally(new HelloWorldException());\n given(helloWorldService.returnHelloWorld())\n .willReturn(failedFuture)\n .willReturn(completedFuture(\"Success\"));\n\n Retry retry = Retry.of(\"metrics\", RetryConfig.<String>custom()\n .retryExceptions(Exception.class)\n .maxAttempts(5)\n .failAfterMaxAttempts(true)\n .build());\n\n Supplier<CompletionStage<String>> supplier = Retry.decorateCompletionStage(retry, scheduler, helloWorldService::returnHelloWorld);\n\n String result = awaitResult(supplier.get(), 5);\n\n assertThat(retry.getMetrics().getNumberOfTotalCalls()).isEqualTo(2);\n assertThat(result).isEqualTo(\"Success\");\n }", "public CountDownLatch getProductAsync(String productCode, String responseFields, AsyncCallback<com.mozu.api.contracts.productadmin.Product> callback) throws Exception\r\n\t{\r\n\t\tMozuClient<com.mozu.api.contracts.productadmin.Product> client = com.mozu.api.clients.commerce.catalog.admin.ProductClient.getProductClient(_dataViewMode, productCode, responseFields);\r\n\t\tclient.setContext(_apiContext);\r\n\t\treturn client.executeRequest(callback);\r\n\r\n\t}", "public interface AsyncResponse {\n void processFinish(double calories, double date);\n}", "public CountDownLatch fetchRepo(PitchParams pp) {\n\n final String grmKey = GitRepoModel.genKey(pp);\n log.debug(\"fetchRepo: pp={}\", pp);\n CountDownLatch freshLatch = new CountDownLatch(1);\n CountDownLatch activeLatch =\n repoLatchMap.putIfAbsent(grmKey, freshLatch);\n\n if (activeLatch != null) {\n\n /*\n * Non-null activeLatch implies a fetchRepo() operation\n * is already in progress for this /{user}/{repo}. So\n * activeLatch so caller can block until operation completes.\n */\n log.debug(\"fetchRepo: pp={}, already in progress, \" +\n \"returning existing activeLatch={}\", pp, activeLatch);\n return activeLatch;\n\n } else {\n\n GRS grs = grsManager.get(pp);\n final GRSService grsService = grsManager.getService(grs);\n String apiCall = grsService.repo(pp);\n\n log.debug(\"fetchRepo: apiCall={}\", apiCall);\n final long start = System.currentTimeMillis();\n\n WSRequest apiRequest = wsClient.url(apiCall);\n\n grs.getHeaders().forEach((k,v) -> {\n apiRequest.setHeader(k, v);\n });\n\n CompletableFuture<WSResponse> apiFuture =\n apiRequest.get().toCompletableFuture();\n\n CompletableFuture<GitRepoModel> rmFuture =\n apiFuture.thenApplyAsync(apiResp -> {\n\n log.debug(\"fetchRepo: pp={}, fetch meta time-taken={}\",\n pp, (System.currentTimeMillis() - start));\n\n log.info(\"{}: API Rate Limit Status [ {}, {} ]\",\n grs.getName(),\n apiResp.getHeader(API_RATE_LIMIT),\n apiResp.getHeader(API_RATE_LIMIT_REMAINING));\n\n try {\n\n if (apiResp.getStatus() == HTTP_OK) {\n\n try {\n\n JsonNode json = apiResp.asJson();\n GitRepoModel grm = grsService.model(pp, json);\n\n /*\n * Update pitchCache with new GitRepoModel\n * generated using GitHub API response data.\n */\n pitchCache.set(grm.key(), grm, cacheTimeout.grm(pp));\n\n } catch (Exception ex) {\n /*\n * Prevent any runtime errors, such as JSON parsing,\n * from propogating to the front end.\n */\n log.warn(\"fetchRepo: pp={}, unexpected ex={}\", pp, ex);\n }\n\n } else {\n\n log.debug(\"fetchRepo: pp={}, fail status={}\",\n pp, apiResp.getStatus());\n\n try {\n\n String remainingHdr =\n apiResp.getHeader(API_RATE_LIMIT_REMAINING);\n int rateLimitRemaining =\n Integer.parseInt(remainingHdr);\n\n if (rateLimitRemaining <= 0) {\n log.warn(\"WARNING! {} API rate limit exceeded.\", grs.getName());\n }\n\n } catch (Exception rlex) {\n }\n }\n\n } catch (Exception rex) {\n log.warn(\"fetchRepo: pp={}, unexpected runtime ex={}\", pp, rex);\n }\n\n /*\n * Current operation completed, so remove latch associated\n * with operation from repoLatchMap to permit future operations\n * on this /{user}/{repo}.\n */\n releaseCountDownLatch(repoLatchMap, grmKey);\n\n /*\n * Operation completed, valid result cached, no return required.\n */\n return null;\n\n }, backEndThreads.POOL)\n .handle((result, error) -> {\n\n if (error != null) {\n\n log.warn(\"fetchRepo: pp={}, fetch error={}\", pp, error);\n releaseCountDownLatch(repoLatchMap, grmKey);\n }\n\n return null;\n });\n\n return freshLatch;\n }\n }", "protected void awaitResult(){\t\n\t\ttry {\n\t\t\t/*place thread/tuple identifier in waitlist for future responses from web service*/\n\t\t\tResponses.getInstance().addToWaitList(this.transId, this);\n\t\t\tthis.latch.await();\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\n\t\t\tLogger.getLogger(\"RSpace\").log(Level.WARNING, \"Transaction #\" + transId + \" response listener was terminated\");\n\t\t}\n\t}", "public Object call() throws Exception {\n\t\t\t\t\t\tProducerSimpleNettyResponseFuture future;\n\t\t\t\t\t\tProducerSimpleNettyResponse responseFuture;\n\t\t\t\t\t\tfuture = clientProxy.request(message);\n\t\t\t\t\t\tresponseFuture = future\n\t\t\t\t\t\t\t\t.get(3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\t\treturn responseFuture.getResponse();\n\t\t\t\t\t}", "public interface ConnectionServiceAsync {\n void searchSynonyms(String input, AsyncCallback<List<String>> callback) throws IllegalArgumentException;;\n void callMaplabelsToSynonyms(AsyncCallback<Boolean> callback) throws IllegalArgumentException;;\n\n\n}", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Initializes a MetadataStore, including allocation of resources.\n * </pre>\n */\n default void createMetadataStore(\n com.google.cloud.aiplatform.v1.CreateMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateMetadataStoreMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific MetadataStore.\n * </pre>\n */\n default void getMetadataStore(\n com.google.cloud.aiplatform.v1.GetMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.MetadataStore>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetMetadataStoreMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists MetadataStores for a Location.\n * </pre>\n */\n default void listMetadataStores(\n com.google.cloud.aiplatform.v1.ListMetadataStoresRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListMetadataStoresResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListMetadataStoresMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a single MetadataStore and all its child resources (Artifacts,\n * Executions, and Contexts).\n * </pre>\n */\n default void deleteMetadataStore(\n com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteMetadataStoreMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates an Artifact associated with a MetadataStore.\n * </pre>\n */\n default void createArtifact(\n com.google.cloud.aiplatform.v1.CreateArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Artifact> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateArtifactMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific Artifact.\n * </pre>\n */\n default void getArtifact(\n com.google.cloud.aiplatform.v1.GetArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Artifact> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetArtifactMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists Artifacts in the MetadataStore.\n * </pre>\n */\n default void listArtifacts(\n com.google.cloud.aiplatform.v1.ListArtifactsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListArtifactsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListArtifactsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a stored Artifact.\n * </pre>\n */\n default void updateArtifact(\n com.google.cloud.aiplatform.v1.UpdateArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Artifact> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateArtifactMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes an Artifact.\n * </pre>\n */\n default void deleteArtifact(\n com.google.cloud.aiplatform.v1.DeleteArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteArtifactMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Purges Artifacts.\n * </pre>\n */\n default void purgeArtifacts(\n com.google.cloud.aiplatform.v1.PurgeArtifactsRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getPurgeArtifactsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a Context associated with a MetadataStore.\n * </pre>\n */\n default void createContext(\n com.google.cloud.aiplatform.v1.CreateContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateContextMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific Context.\n * </pre>\n */\n default void getContext(\n com.google.cloud.aiplatform.v1.GetContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists Contexts on the MetadataStore.\n * </pre>\n */\n default void listContexts(\n com.google.cloud.aiplatform.v1.ListContextsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListContextsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListContextsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a stored Context.\n * </pre>\n */\n default void updateContext(\n com.google.cloud.aiplatform.v1.UpdateContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateContextMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a stored Context.\n * </pre>\n */\n default void deleteContext(\n com.google.cloud.aiplatform.v1.DeleteContextRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteContextMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Purges Contexts.\n * </pre>\n */\n default void purgeContexts(\n com.google.cloud.aiplatform.v1.PurgeContextsRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getPurgeContextsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Adds a set of Artifacts and Executions to a Context. If any of the\n * Artifacts or Executions have already been added to a Context, they are\n * simply skipped.\n * </pre>\n */\n default void addContextArtifactsAndExecutions(\n com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getAddContextArtifactsAndExecutionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Adds a set of Contexts as children to a parent Context. If any of the\n * child Contexts have already been added to the parent Context, they are\n * simply skipped. If this call would create a cycle or cause any Context to\n * have more than 10 parents, the request will fail with an INVALID_ARGUMENT\n * error.\n * </pre>\n */\n default void addContextChildren(\n com.google.cloud.aiplatform.v1.AddContextChildrenRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.AddContextChildrenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getAddContextChildrenMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Remove a set of children contexts from a parent Context. If any of the\n * child Contexts were NOT added to the parent Context, they are\n * simply skipped.\n * </pre>\n */\n default void removeContextChildren(\n com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.RemoveContextChildrenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getRemoveContextChildrenMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves Artifacts and Executions within the specified Context, connected\n * by Event edges and returned as a LineageSubgraph.\n * </pre>\n */\n default void queryContextLineageSubgraph(\n com.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.LineageSubgraph>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getQueryContextLineageSubgraphMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates an Execution associated with a MetadataStore.\n * </pre>\n */\n default void createExecution(\n com.google.cloud.aiplatform.v1.CreateExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateExecutionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific Execution.\n * </pre>\n */\n default void getExecution(\n com.google.cloud.aiplatform.v1.GetExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetExecutionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists Executions in the MetadataStore.\n * </pre>\n */\n default void listExecutions(\n com.google.cloud.aiplatform.v1.ListExecutionsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListExecutionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListExecutionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a stored Execution.\n * </pre>\n */\n default void updateExecution(\n com.google.cloud.aiplatform.v1.UpdateExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateExecutionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes an Execution.\n * </pre>\n */\n default void deleteExecution(\n com.google.cloud.aiplatform.v1.DeleteExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteExecutionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Purges Executions.\n * </pre>\n */\n default void purgeExecutions(\n com.google.cloud.aiplatform.v1.PurgeExecutionsRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getPurgeExecutionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Adds Events to the specified Execution. An Event indicates whether an\n * Artifact was used as an input or output for an Execution. If an Event\n * already exists between the Execution and the Artifact, the Event is\n * skipped.\n * </pre>\n */\n default void addExecutionEvents(\n com.google.cloud.aiplatform.v1.AddExecutionEventsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.AddExecutionEventsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getAddExecutionEventsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Obtains the set of input and output Artifacts for this Execution, in the\n * form of LineageSubgraph that also contains the Execution and connecting\n * Events.\n * </pre>\n */\n default void queryExecutionInputsAndOutputs(\n com.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.LineageSubgraph>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getQueryExecutionInputsAndOutputsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a MetadataSchema.\n * </pre>\n */\n default void createMetadataSchema(\n com.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.MetadataSchema>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateMetadataSchemaMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific MetadataSchema.\n * </pre>\n */\n default void getMetadataSchema(\n com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.MetadataSchema>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetMetadataSchemaMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists MetadataSchemas.\n * </pre>\n */\n default void listMetadataSchemas(\n com.google.cloud.aiplatform.v1.ListMetadataSchemasRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListMetadataSchemasResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListMetadataSchemasMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves lineage of an Artifact represented through Artifacts and\n * Executions connected by Event edges and returned as a LineageSubgraph.\n * </pre>\n */\n default void queryArtifactLineageSubgraph(\n com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.LineageSubgraph>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getQueryArtifactLineageSubgraphMethod(), responseObserver);\n }\n }", "public interface HomepageServiceAsync {\n\tpublic void getProtectionInformation(AsyncCallback<ProtectionInformationModel[]> callback);\n\n\tpublic void getRecentBackups(int backupType, int backupStatus,int top, AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getRecentBackupsByServerTime(int backupType, int backupStatus, String serverBeginDate, String serverEndDate, boolean needCatalogStatus, AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getVMRecentBackupsByServerTime(int backupType, int backupStatus, String serverBeginDate, String serverEndDate, boolean needCatalogStatus, BackupVMModel vmModel,AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getBackupInforamtionSummary(AsyncCallback<BackupInformationSummaryModel> callback);\n\t\n\tpublic void updateProtectionInformation(AsyncCallback<ProtectionInformationModel[]> callback);\n\t\n\tpublic void getDestSizeInformation(BackupSettingsModel model,AsyncCallback<DestinationCapacityModel> callback);\n\t\n\tpublic void getNextScheduleEvent(int in_iJobType,AsyncCallback<NextScheduleEventModel> callback);\n\n\tpublic void getTrustHosts(\n\t\t\tAsyncCallback<TrustHostModel[]> callback);\n\n\tvoid becomeTrustHost(TrustHostModel trustHostModel,\n\t\t\tAsyncCallback<Boolean> callback);\n\n\tvoid checkBaseLicense(AsyncCallback<Boolean> callback);\n\n\tvoid getBackupInforamtionSummaryWithLicInfo(AsyncCallback<BackupInformationSummaryModel> callback);\n\t\n\tvoid getLocalHost(AsyncCallback<TrustHostModel> callback);\n\n\tvoid PMInstallPatch(PatchInfoModel in_patchinfoModel,\n\t\t\tAsyncCallback<Integer> callback);\n\t\n\tvoid PMInstallBIPatch(PatchInfoModel in_patchinfoModel,\n\t\t\tAsyncCallback<Integer> callback);//added by cliicy.luo\n\t\n\tvoid getVMBackupInforamtionSummaryWithLicInfo(BackupVMModel vm,\n\t\t\tAsyncCallback<BackupInformationSummaryModel> callback);\n\n\tvoid getVMBackupInforamtionSummary(BackupVMModel vm,\n\t\t\tAsyncCallback<BackupInformationSummaryModel> callback);\n\n\tvoid getVMProtectionInformation(BackupVMModel vmModel,\n\t\t\tAsyncCallback<ProtectionInformationModel[]> callback);\n\n\tvoid getVMNextScheduleEvent(BackupVMModel vmModel,\n\t\t\tAsyncCallback<NextScheduleEventModel> callback);\n\tpublic void getVMRecentBackups(int backupType, int backupStatus,int top,BackupVMModel vmModel, AsyncCallback<RecoveryPointModel[]> callback);\n\n\tvoid updateVMProtectionInformation(BackupVMModel vm,\n\t\t\tAsyncCallback<ProtectionInformationModel[]> callback);\n\n\tvoid getArchiveInfoSummary(AsyncCallback<ArchiveJobInfoModel> callback);\n\n\tvoid getLicInfo(AsyncCallback<LicInfoModel> callback);\n\n\tvoid getVMStatusModel(BackupVMModel vmModel,\n\t\t\tAsyncCallback<VMStatusModel[]> callback);\n\n\tvoid getConfiguredVM(AsyncCallback<BackupVMModel[]> callback);\n\n\tvoid getMergeJobMonitor(String vmInstanceUUID,\n\t\t\tAsyncCallback<MergeJobMonitorModel> callback);\n\n\tvoid pauseMerge(String vmInstanceUUID, AsyncCallback<Integer> callback);\n\n\tvoid resumeMerge(String vmInstanceUUID, AsyncCallback<Integer> callback);\n\n\tvoid getMergeStatus(String vmInstanceUUID,\n AsyncCallback<MergeStatusModel> callback);\n\n\tvoid getBackupSetInfo(String vmInstanceUUID, \n\t\t\tAsyncCallback<ArrayList<BackupSetInfoModel>> callback);\n\t\n\tpublic void getDataStoreStatus(String dataStoreUUID, AsyncCallback<DataStoreInfoModel> callback);\n\n\tvoid getVMDataStoreStatus(BackupVMModel vm, String dataStoreUUID,\n\t\t\tAsyncCallback<DataStoreInfoModel> callback);\n\t\n}", "default <T> EagerFutureStream<T> async(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =ParallelElasticPools.eagerReact.nextReactor().withAsync(true);\n\t\treturn react.apply( r)\n\t\t\t\t\t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t\t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\n\t}", "AWSCodeStarNotificationsAsyncClient(AwsAsyncClientParams asyncClientParams, boolean endpointDiscoveryEnabled) {\n super(asyncClientParams, endpointDiscoveryEnabled);\n this.executorService = asyncClientParams.getExecutor();\n }", "public static void main(String[] args) throws InterruptedException {\n\r\n FutureService futureService = new FutureService();\r\n Future<String> future = futureService.submit(() -> {\r\n try {\r\n Thread.sleep(10_000);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n return \"FINISH\";\r\n }, System.out::println);\r\n System.out.println(\"================\");\r\n System.out.println(\"do other thing.\");\r\n Thread.sleep(1_000L);\r\n System.out.println(\"================\");\r\n\r\n// System.out.println(future.get());\r\n }", "public final static void main(String[] args) throws Exception {\n \n ThreadFactory threadFactory =\n new VerboseThreadFactory(log, Executors.defaultThreadFactory());\n \n ThreadPoolExecutor executor = (ThreadPoolExecutor)\n (MAX_THREADS == Integer.MAX_VALUE\n ? Executors.newCachedThreadPool(threadFactory)\n : Executors.newFixedThreadPool(MAX_THREADS, threadFactory));\n \n AsynchronousChannelProvider provider =\n AsynchronousChannelProvider.provider();\n \n AsynchronousChannelGroup group =\n provider.openAsynchronousChannelGroup(executor);\n \n log.log(Level.INFO, \"ChannelGroup is a {0}\", group.getClass());\n \n startSignal = new CountDownLatch(NUM_CLIENTS);\n doneSignal = new CountDownLatch(NUM_CLIENTS);\n \n log.log(Level.INFO,\n \"Prestarting {0,number,integer} threads\", NUM_THREADS);\n \n executor.setCorePoolSize(NUM_THREADS);\n executor.prestartAllCoreThreads();\n \n log.log(Level.INFO,\n \"Connecting {0,number,integer} clients\", NUM_CLIENTS);\n \n Set<EchoClient> clients = new HashSet<EchoClient>(NUM_CLIENTS);\n \n for (int i = 0; i < NUM_CLIENTS; ++i) {\n EchoClient client = new EchoClient(group);\n clients.add(client);\n client.connect();\n }\n \n startSignal.await();\n \n log.info(\"Starting test\");\n startTime = System.nanoTime();\n \n for (EchoClient client : clients)\n client.start();\n \n doneSignal.await();\n \n long ops = NUM_CLIENTS * NUM_MSGS * 2;\n long elapsed = System.nanoTime() - startTime;\n log.log(Level.INFO, \"Bytes read: {0} written:{1}\",\n new Object[] {\n totalBytesRead.get(),\n totalBytesWritten.get()\n });\n log.log(Level.INFO, \"{0} ops in {1} seconds = {2} ops/sec\",\n new Object[] {\n ops,\n TimeUnit.NANOSECONDS.toSeconds(elapsed),\n TimeUnit.SECONDS.toNanos(ops) / elapsed\n });\n \n group.shutdown();\n log.info(\"Awaiting group termination\"); \n if (! group.awaitTermination(5, TimeUnit.SECONDS)) {\n log.warning(\"Forcing group termination\");\n group.shutdownNow();\n if (! group.awaitTermination(5, TimeUnit.SECONDS)) {\n log.warning(\"Group could not be forcibly terminated\");\n }\n }\n if (group.isTerminated())\n log.info(\"Group terminated\");\n \n log.info(\"Terminating executor\");\n executor.shutdown();\n log.info(\"Awaiting executor termination\"); \n if (! executor.awaitTermination(5, TimeUnit.SECONDS)) {\n log.warning(\"Forcing executor termination\");\n executor.shutdownNow();\n if (! executor.awaitTermination(5, TimeUnit.SECONDS)) {\n log.warning(\"Executor could not be forcibly terminated\");\n }\n }\n if (executor.isTerminated())\n log.info(\"Executor terminated\");\n }", "java.util.concurrent.Future<GetApplicationResult> getApplicationAsync(GetApplicationRequest getApplicationRequest);", "public interface IBugReportRpcAsync {\r\n\r\n /**\r\n * Submit a bug report.\r\n * @param bugReport Bug report to submit\r\n * @param callback Callback to be invoked after method call completes\r\n */\r\n void submitBugReport(BugReport bugReport, AsyncCallback<Void> callback);\r\n\r\n}", "private static void streamServerService(ManagedChannel channel) {\n CalculatorServiceGrpc.CalculatorServiceBlockingStub calculatorClient = newBlockingStub(channel);\n\n //Create a Greet Request\n Calculator.PrimeNumberDecompositionRequest primedDecompositionRequest = Calculator.PrimeNumberDecompositionRequest\n .newBuilder()\n .setNumber(567890 )\n .build();\n\n //Call the RPC and get back a GreetResponse\n calculatorClient.primeNumberDecomposition(primedDecompositionRequest)\n .forEachRemaining(primeNumberDecompositionResponse -> {\n System.out.println(primeNumberDecompositionResponse.getPrimeFactor());\n });\n\n }", "public interface RecipeService {\n\n @GET(\"recipes\")\n Call<List<Recipe>> getRecipes();\n}", "public interface AsynService {\n void asynMethod();\n}", "public abstract void await() throws InterruptedException;", "java.util.concurrent.Future<GetSolNetworkOperationResult> getSolNetworkOperationAsync(GetSolNetworkOperationRequest getSolNetworkOperationRequest);", "public interface RLatitudeServiceAsync {\r\n\r\n\tvoid sayHello(AsyncCallback<String> callback);\r\n\r\n\tvoid publishUser(String name, String firstName, String dateNaissance,\r\n\t\t\tAsyncCallback< String > callback );\r\n\t\r\n\tvoid checkPasswordLoginValidity( String login, String password, AsyncCallback< Boolean > callback );\r\n\t\r\n\tvoid publishAuthentication( String uid, String login, String password, AsyncCallback</*IUser*/Void> callback );\r\n\t\r\n\tvoid connect(String login, String password, AsyncCallback< String > callback);\r\n\t\r\n\tvoid disconnect(String uid, AsyncCallback< Boolean > callback);\r\n\t\r\n\tvoid changeMyVisibility(String uid, boolean visibility,\r\n\t\t\tAsyncCallback<Boolean> callback);\r\n\r\n\tvoid getVisibility(String uid, AsyncCallback<Boolean> callback);\r\n\t\r\n\tvoid setCurrentPostion(String uid, Position position,\r\n\t\t\tAsyncCallback<Void> callback);\r\n\t\r\n\tvoid addContact( String uidUser, String uidContact, AsyncCallback< Void > callback );\r\n\t\r\n\tvoid getContact( String uid,\r\n\t\t\tAsyncCallback< List< ResolvedContact > > callback );\r\n\t\r\n\tvoid getUser( String name, String lastName, AsyncCallback<ResolvedUser> callback );\r\n\t\r\n\tvoid getUser(String uid,AsyncCallback<ResolvedUser> callback);\r\n\r\n\tvoid getPosition( String uidUser, AsyncCallback< Position > callback );\r\n\r\n}", "public interface GenerateResourceServiceAsync {\n /**\n * {@link GenerateResourceServiceImpl#generateTSDPattern(long,boolean)}\n */\n void generateTSDPattern(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#generateBehaviorPattern(long,boolean)}\n */\n void generateBehaviorPattern(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#generateScenarioSet(long, boolean)}\n */\n void generateScenarioSet(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#generateConcreteScenarioSet(long, byte[])}\n */\n void generateConcreteScenarioSet(long settingFileId, byte[] pattern, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#getPartOfFileContent(long, long, long, long)}\n */\n void getPartOfFileContent(long projectId, long fileId, long startRecordOffset, long recordCount, AsyncCallback<byte[]> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#getPartOfFileContent(long, long, long, String)}\n */\n void getPartOfFileContent(long projectId, long fileId, long patternId, String generationHash, AsyncCallback<byte[]> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#getSettingFileJobStatusList(long, long)}\n */\n void getSettingFileJobStatusList(long fileId, long projectId, AsyncCallback<List<JobStatusInfo>> callback) throws IllegalArgumentException;\n\n}", "public interface GeneralService {\n\n /**\n * Returns general server data\n */\n Request getGeneralData(AsyncCallback<GeneralData> callback);\n\n}", "@ServiceMethod(returns = ReturnType.SINGLE)\n private PollerFlux<PollResult<Void>, Void> beginRestartAsync(\n String resourceGroupName, String vmScaleSetName, String instanceId, Context context) {\n context = this.client.mergeContext(context);\n Mono<Response<Flux<ByteBuffer>>> mono =\n restartWithResponseAsync(resourceGroupName, vmScaleSetName, instanceId, context);\n return this\n .client\n .<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);\n }", "default T await() {\n return await(0, TimeUnit.NANOSECONDS);\n }", "public CountDownLatch getProductAsync(String productCode, AsyncCallback<com.mozu.api.contracts.productadmin.Product> callback) throws Exception\r\n\t{\r\n\t\treturn getProductAsync( productCode, null, callback);\r\n\t}", "public interface AcnServiceAsync {\r\n\t\r\n\tvoid ordernarSequencia(Integer num1, Integer num2, AsyncCallback<Integer[]> callback) throws Exception;\r\n\t\r\n\tvoid recuperarListaPessoa(int quantidade, AsyncCallback<Map<String, List<Pessoa>>> callback);\r\n\t\r\n}", "java.util.concurrent.Future<StartApplicationResult> startApplicationAsync(StartApplicationRequest startApplicationRequest);", "private <T> CompletableFuture<T> receiveAsync(ClientRequestFuture pendingReq, PayloadReader<T> payloadReader) {\n return pendingReq.thenApplyAsync(payload -> {\n if (payload == null || payloadReader == null)\n return null;\n\n try (var in = new PayloadInputChannel(this, payload)) {\n return payloadReader.apply(in);\n } catch (Exception e) {\n throw new IgniteException(\"Failed to deserialize server response: \" + e.getMessage(), e);\n }\n }, asyncContinuationExecutor);\n }", "public interface EmailService {\n\n Boolean send(Greeting greeting);\n\n void sendAsync(Greeting greeting);\n\n CompletableFuture<Boolean> sendAsyncWithResults(Greeting greeting);\n}", "@GetMapping(\"/hello\")\n\tpublic String hello() throws IOException {\n\t\tlong startTime = new Date().getTime();\n\n\t\tString url = \"https://api.icndb.com/jokes/random?limitTo=[nerdy]\";\n\t\tCloseableHttpClient httpclient = HttpClients.createDefault();\n\t\tHttpGet httpget = new HttpGet(url);\n\t\tCloseableHttpResponse response = null;\n\n\t\ttry {\n\t\t\tresponse = httpclient.execute(httpget);\n\t\t\tSystem.out.println(EntityUtils.toString(response.getEntity(), \"UTF-8\"));\n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tresponse.close();\n\t\t\tlong endTime = new Date().getTime();\n\t\t\tlong delta = endTime - startTime;\n\t\t\tRemoteDependencyTelemetry dependencyTelemetry = new RemoteDependencyTelemetry(\"My Dependency\", \"myCall\",\n\t\t\t\t\tnew Duration(delta), true);\n\t\t\tdependencyTelemetry.setTimestamp(new Date(startTime));\n\t\t\t// telemetryClient.trackDependency(dependencyTelemetry);\n\t\t}\n\n\t\treturn \"hello\";\n\t}", "CompletableFuture<CalculationResult> goAsync(GoCommand goCommand);", "public static void main(String[] args) throws InterruptedException, ExecutionException {\n CompletableFuture<String> future = CompletableFuture.supplyAsync(new Supplier<String>() {\n @Override\n public String get() {\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n throw new IllegalStateException(e);\n }\n return \"Result of the asynchronous computation\";\n }\n });\n\n// Block and get the result of the Future\n String result = future.get();\n System.out.println(result);\n }", "@Override\n\tprotected void doAsyncExecute(VoiceMessage requestMessage) {\n\n\t}", "public static <U> void main(String[] args) {\n\t\t\n\t\tExecutorService service = Executors.newFixedThreadPool(10);\n\t\t//String orderValue = \"\";\n\t\tFuture<String> order1 = service.submit(()->{return \"GetOrders111\";});\n\t\ttry {\n\t\t\tString orders = order1.get();\n\t\t\t//orderValue = orders;\n\t\t\tFuture<String> orderEnrich = service.submit(()->{return \"enrichingOrders : \"+orders;});\n\t\t\tFuture<String> orderReconciliation = service.submit(()->{return \"orderReconciliation : \"+orders;});\n\t\t\tFuture<String> orderAutoCreate = service.submit(()->{return \"orderAutoCreate : \"+orders;});\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//In above code if too many heavy loaded tasks are there then its a big problem, for ex. get order is fetching millions of records and other services need to wait above code is going to fail.\n\t\t\n\t\tProcessOrder p = (String s)->{System.out.println(\"S \"+s); return 0;};\n\t\t//Solution\n\t\tCompletableFuture<String> cfuture = new CompletableFuture<>();\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tcfuture.supplyAsync(()->{return \"GetOrders111\";})\n\t\t\t\t\t\t.thenApply((x)->{return \"enrichingOrders\";})\n\t\t\t\t\t\t.thenApply((x)->{return \"orderReconciliation\";})\n\t\t\t\t\t\t.thenAccept((x)->{System.out.println(\"orderAutoCreate\");});\n\t\t}\n\t\t\n\t}", "@Override\n public void callSync() {\n\n }", "public void await() {\n tomcat.getServer().await();\n }", "public CountDownLatch getProductsAsync( AsyncCallback<com.mozu.api.contracts.productadmin.ProductCollection> callback) throws Exception\r\n\t{\r\n\t\treturn getProductsAsync( null, null, null, null, null, null, null, null, callback);\r\n\t}", "@Test\n // TODO: Fix this test\n @Disabled\n public void getActuatorPrometheusData() throws Exception {\n createABunchOfThings(10, true); // OK results\n createABunchOfThings(5, false); // Failed results\n\n // Now get Metrics\n LOGGER.info(RUNNING_CHAR + \"Getting prometheus data /actuator/prometheus GET\");\n CompletionStage<GetMetricsGrpcResponse> mockMetricsResponse = CompletableFuture.supplyAsync(() ->\n GetMetricsGrpcResponse.newBuilder()\n .setTotalmessagesreceived(20L)\n .setAveragemessageage(1000L)\n .setCount(42L)\n .build());\n Mockito.when(client.getMetrics(any())).thenReturn(mockMetricsResponse);\n MvcResult mvcResult = mockMvc.perform(get(\"/actuator/prometheus\").contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.ALL_VALUE))\n .andExpect(status().isOk())\n .andReturn();\n\n String responseData = mvcResult.getResponse().getContentAsString();\n System.out.println(responseData);\n assertTrue(responseData.contains(\"thingverse_active_thing_count\"), FAILURE_CHAR + \"Response did not contain expected string\");\n assertTrue(responseData.contains(\"thingverse_average_message_age\"), FAILURE_CHAR + \"Response did not contain expected string\");\n assertTrue(responseData.contains(\"thingverse_total_messages_received\"), FAILURE_CHAR + \"Response did not contain expected string\");\n assertTrue(responseData.contains(\"thingverse_http_server_request\"), FAILURE_CHAR + \"Response did not contain expected string\");\n\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n private PollerFlux<PollResult<Void>, Void> beginStartAsync(\n String resourceGroupName, String vmScaleSetName, String instanceId, Context context) {\n context = this.client.mergeContext(context);\n Mono<Response<Flux<ByteBuffer>>> mono =\n startWithResponseAsync(resourceGroupName, vmScaleSetName, instanceId, context);\n return this\n .client\n .<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);\n }", "java.util.concurrent.Future<GetDataIntegrationResult> getDataIntegrationAsync(GetDataIntegrationRequest getDataIntegrationRequest,\n com.amazonaws.handlers.AsyncHandler<GetDataIntegrationRequest, GetDataIntegrationResult> asyncHandler);", "private void supplyAsyncThenApply() {\n CompletableFuture<String> completableFuture\n = CompletableFuture.supplyAsync(() -> {\n sleep();\n return \"Hello from \" + Thread.currentThread().getName();\n });\n\n CompletableFuture<String> future = completableFuture\n .thenApply(s -> s + \" World from \" + Thread.currentThread().getName());\n\n try {\n String s = future.get();\n System.out.println(\"supplyAsyncThenApply : \" + s);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n }", "public interface HealthServiceClient extends ClientProxy {\n\n /**\n * Register a service with the health system\n *\n * @param name name of the service\n * @param ttl ttl on how long before the service timeout.\n * @param timeUnit time unit for the ttl.\n */\n default void register(String name, long ttl, TimeUnit timeUnit) {\n }\n\n\n /**\n * Check in the service so it passes it TTL\n *\n * @param name name of service.\n */\n default void checkInOk(String name) {\n }\n\n /**\n * Check in with a certain TTL.\n *\n * @param name name of service (PASS, WARN, FAIL, UNKNOWN)\n * @param status status\n */\n default void checkIn(String name, HealthStatus status) {\n }\n\n\n /**\n * Checks to see if all services registered with the health system are ok.\n *\n * @return ok\n */\n default Promise<Boolean> ok() {\n final Promise<Boolean> promise = Promises.promise();\n promise.resolve(true);\n return promise;\n }\n\n /**\n * Returns list of healthy nodes.\n *\n * @return promise\n */\n default Promise<List<String>> findHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Find all nodes\n *\n * @return promise\n */\n default Promise<List<String>> findAllNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Find all nodes with a certain status.\n *\n * @param queryStatus status you are looking for.\n * @return promise\n */\n default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }\n\n /**\n * Find all healthy nodes\n *\n * @return promise\n */\n default Promise<List<String>> findNotHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }\n\n\n /**\n * Load all nodes no matter the status.\n *\n * @return promise\n */\n default Promise<List<NodeHealthStat>> loadNodes() {\n final Promise<List<NodeHealthStat>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Unregister the service\n *\n * @param serviceName name of service\n */\n default void unregister(String serviceName) {\n }\n\n /**\n * Fail with a particular reason.\n *\n * @param name name\n * @param reason reason\n */\n default void failWithReason(final String name, final HealthFailReason reason) {\n }\n\n\n /**\n * Fail with error\n *\n * @param name name\n * @param error error\n */\n default void failWithError(final String name, final Throwable error) {\n }\n\n /**\n * warn with reason\n *\n * @param name name\n * @param reason reason\n */\n default void warnWithReason(final String name, final HealthFailReason reason) {\n }\n\n\n /**\n * warn with error\n *\n * @param name name\n * @param error error\n */\n default void warnWithError(final String name, final Throwable error) {\n }\n\n\n /**\n * Register a service but don't specify a check in TTL.\n *\n * @param name name\n */\n default void registerNoTtl(String name) {\n }\n\n}", "@Test\n public void shouldReturnTotalNumberOfRequestsAs5ForFailAsync() {\n AsyncHelloWorldService helloWorldService = mock(AsyncHelloWorldService.class);\n ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();\n\n CompletableFuture<String> failedFuture = new CompletableFuture<>();\n failedFuture.completeExceptionally(new HelloWorldException());\n given(helloWorldService.returnHelloWorld()).willReturn(failedFuture);\n\n Retry retry = Retry.of(\"metrics\", RetryConfig.<String>custom()\n .retryExceptions(Exception.class)\n .maxAttempts(5)\n .failAfterMaxAttempts(true)\n .build());\n\n Supplier<CompletionStage<String>> supplier = Retry.decorateCompletionStage(retry, scheduler, helloWorldService::returnHelloWorld);\n\n assertThat(supplier.get())\n .failsWithin(5, TimeUnit.SECONDS)\n .withThrowableOfType(ExecutionException.class)\n .havingCause();\n\n assertThat(retry.getMetrics().getNumberOfTotalCalls()).isEqualTo(5);\n }", "public interface RecipeRetroFit {\n @GET(\"baking.json\")\n Call<ArrayList<RecipeModel>> getRecipe();\n}", "public interface GreetingServiceAsync {\r\n\tvoid getAll( String type, AsyncCallback<HashMap<String, String>> callback );\r\n\tvoid delete(String id,AsyncCallback callback );\r\n\tvoid getById(String idData, AsyncCallback<PhotoClient> callback);\r\n\tvoid addProject(String proName,AsyncCallback callback);\r\n\tvoid getProjectList(AsyncCallback callback);\r\n\tvoid getFolderChildren(FileModel model, AsyncCallback<List<FileModel>> children);\r\n \r\n}", "public static void main(String[] args) throws InterruptedException, IOException {\n\n InputParamsParser parser = new InputParamsParser();\n if(!parser.parseArgs(args)){return;}\n\n\n AtomicInteger totalSuccessRequests = new AtomicInteger();\n AtomicInteger totalFailedRequests = new AtomicInteger();\n\n\n /*\n * create a thread for each store.\n * each store thread will send numPurchases POST request per hour to the server\n */\n\n\n ApiClient shop = new ApiClient();\n shop.setBasePath(parser.getUrl());\n PurchaseApi apiInstance = new PurchaseApi(shop);\n apiInstance.getApiClient().setConnectTimeout(6000);\n apiInstance.getApiClient().setReadTimeout(6000);\n ArrayList<ArrayList<ResponseResult>> responses = new ArrayList<>();\n\n /*\n * phase 1\n * Start the program with 3 countdown latches\n */\n CountDownLatch secondPhase = new CountDownLatch(1);\n CountDownLatch thirdPhase = new CountDownLatch(1);\n CountDownLatch completed = new CountDownLatch(parser.getMaxStore());\n\n long startTime = System.currentTimeMillis();\n int phaseOneStores = parser.getMaxStore() / 4;\n int nextStoreID = 1;\n for (; nextStoreID <= phaseOneStores; nextStoreID++) {\n int storeID = nextStoreID;\n Runnable store = () -> {\n StorePurchaseRequest storePurchase = new StorePurchaseRequest(storeID, parser.getNumCustPerStore(), parser.getMaxNumItems(), parser.getNumItemsPerPurchase());\n for (int j = 0; j < parser.getHOUR_OF_OPERATION(); j++) {\n responses.add(storePurchase.hourlyPurchase(apiInstance, parser.getNumPurchases(),parser.getDate()));\n if (j == 3) {\n secondPhase.countDown();\n }\n if (j == 5) {\n thirdPhase.countDown();\n }\n }\n totalSuccessRequests.addAndGet(storePurchase.successRequests);\n totalFailedRequests.addAndGet(storePurchase.failedRequests);\n completed.countDown();\n };\n\n new Thread(store).start();\n }\n //wait till any store operates three hours\n secondPhase.await();\n\n /*\n * phase 2\n */\n int phaseTwoStores = parser.getMaxStore()/ 2;\n for (; nextStoreID <= phaseTwoStores; nextStoreID++) {\n int storeID = nextStoreID;\n Runnable store = () -> {\n StorePurchaseRequest storePurchase = new StorePurchaseRequest(storeID, parser.getNumCustPerStore(), parser.getMaxNumItems(), parser.getNumItemsPerPurchase());\n for (int j = 0; j < parser.getHOUR_OF_OPERATION(); j++) {\n responses.add(storePurchase.hourlyPurchase(apiInstance, parser.getNumPurchases(),parser.getDate()));\n if (j == 5) {\n thirdPhase.countDown();\n }\n }\n totalSuccessRequests.addAndGet(storePurchase.successRequests);\n totalFailedRequests.addAndGet(storePurchase.failedRequests);\n completed.countDown();\n };\n new Thread(store).start();\n }\n //wait till any store operates 5 hours\n thirdPhase.await();\n\n /*\n * phase 3\n */\n for (; nextStoreID <= parser.getMaxStore(); nextStoreID++) {\n int storeID = nextStoreID;\n Runnable store = () -> {\n StorePurchaseRequest storePurchase = new StorePurchaseRequest(storeID, parser.getNumCustPerStore(), parser.getMaxNumItems(), parser.getNumItemsPerPurchase());\n for (int j = 0; j < parser.getHOUR_OF_OPERATION(); j++) {\n responses.add(storePurchase.hourlyPurchase(apiInstance, parser.getNumPurchases(),parser.getDate()));\n }\n totalSuccessRequests.addAndGet(storePurchase.successRequests);\n totalFailedRequests.addAndGet(storePurchase.failedRequests);\n completed.countDown();\n };\n new Thread(store).start();\n }\n completed.await();\n long endTime = System.currentTimeMillis();\n\n // Write the running result to csv file.\n CSVWriter csvWriter = new CSVWriter();\n csvWriter.writeFile(\"\", parser.getMaxStore() + \".cvs\", responses);\n\n\n // Print out all statistics\n long wallTime = endTime - startTime;\n DataProcessor dataProcessor=new DataProcessor(responses, wallTime/1000, totalSuccessRequests.intValue());\n System.out.println(\"Total time: \" + wallTime + \" milliseconds\");\n System.out.println(\"Successful request: \" + totalSuccessRequests);\n System.out.println(\"Failed requests: \" + totalFailedRequests);\n System.out.println(\"Throughput: \" + dataProcessor.getThroughput() + \" request/second\");\n System.out.println(\"Mean response time: \" + dataProcessor.getMean() + \" ms\");\n System.out.println(\"Median response time: \" + dataProcessor.getMedian() + \" ms\");\n System.out.println(\"99th percentile: \" + dataProcessor.getNintyninthPercentile() + \" ms\");\n System.out.println(\"Max response time: \" + dataProcessor.getMaxResponse() + \" ms\");\n }", "public interface SyncSpeakerService {\n @GET(\"/speakers\")\n void getSpeakers(Callback<List<Speaker>> speakers);\n}", "public void getResultsFromApi() {\n// if (! isGooglePlayServicesAvailable()) {\n// acquireGooglePlayServices();\n// } else if (mCredential.getSelectedAccountName() == null) {\n// chooseAccount();\n// } else if (! isDeviceOnline()) {\n//// mOutputText.setText(\"No network connection available.\");\n// } else {\n MakeRequestTask req = new MakeRequestTask(mCredential);\n AsyncTaskCompat.executeParallel(req);\n// }\n }", "@Override\n protected Void call() throws InterruptedException {\n _tempVr.SetTimeout(5);\n _tempVr.SetMicDistance(Protocol.Distance.FAR_MIC);\n\n updateMessage(String.format(\"Speak%s\", System.getProperty(\"line.separator\")));\n\n //instruct the module to listen for a built in word from the 1st wordset\n _tempVr.RecognizeWord(1);\n\n //need to wait until HasFinished has completed before collecting results\n while (!_tempVr.HasFinished()) {\n updateMessage(\".\");\n }\n\n // Once HasFinished has returned true, we can ask the module for the index of the word it recognised. If you're new to using the EasyVR module,\n // download the Easy VR Commander (http://www.veear.eu/downloads/) to interrogate the config of your module and see what the indexes correspond to\n // Here is a standard setup at time of writing for an EASYVR 3 module:\n // 0=Action,1=Move,2=Turn,3=Run,4=Look,5=Attack,6=Stop,7=Hello\n int indexOfRecognisedWord = _tempVr.GetWord();\n\n updateMessage(String.format(\"Response: %d%s\", indexOfRecognisedWord, System.getProperty(\"line.separator\")));\n // updateMessage(String.format(\"Recognition finished%s\", System.getProperty(\"line.separator\")));\n\n return null;\n }", "public interface PgStudioServiceAsync {\n\n\tvoid getConnectionInfoMessage(String connectionToken, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\t\n\tvoid getList(String connectionToken, DATABASE_OBJECT_TYPE type, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\n\tvoid getList(String connectionToken, int schema, ITEM_TYPE type, AsyncCallback<String> callback)\n \t\tthrows IllegalArgumentException;\n\n\tvoid getRangeDiffFunctionList(String connectionToken, String schema, String subType, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getTriggerFunctionList(String connectionToken, int schema, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid getItemObjectList(String connectionToken, int item, ITEM_TYPE type, ITEM_OBJECT_TYPE object, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getItemMetaData(String connectionToken, int item, ITEM_TYPE type, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getItemData(String connectionToken, int item, ITEM_TYPE type, int count, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getQueryMetaData(String connectionToken, String query, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid executeQuery(String connectionToken, String query, String queryType, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid dropItem(String connectionToken, int item, ITEM_TYPE type, boolean cascade, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid analyze(String connectionToken, int item, ITEM_TYPE type, boolean vacuum, boolean vacuumFull, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid renameItem(String connectionToken, int item, ITEM_TYPE type, String newName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid truncate(String connectionToken, int item, ITEM_TYPE type, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createIndex(String connectionToken, int item, String indexName, INDEX_TYPE indexType, boolean isUnique, boolean isConcurrently, ArrayList<String> columnList, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid dropItemObject(String connectionToken, int item, ITEM_TYPE type, String objectName, ITEM_OBJECT_TYPE objType, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid renameItemObject(String connectionToken, int item, ITEM_TYPE type, String objectName, ITEM_OBJECT_TYPE objType, String newObjectName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid renameSchema(String connectionToken, String oldSchema, String schema, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid dropSchema(String connectionToken, String schemaName, boolean cascade, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createSchema(String connectionToken, String schemaName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getExplainResult(String connectionToken, String query, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createView(String connectionToken, String schema, String viewName, String definition, String comment, boolean isMaterialized, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createColumn(String connectionToken, int item, String columnName, String datatype, String comment, boolean not_null, String defaultval, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createTable(String connectionToken, int schema, String tableName, boolean unlogged, boolean temporary, String fill, ArrayList<String> col_list, HashMap<Integer,String> commentLog, ArrayList<String> col_index, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createUniqueConstraint(String connectionToken, int item, String constraintName, boolean isPrimaryKey, ArrayList<String> columnList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createCheckConstraint(String connectionToken, int item, String constraintName, String definition, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createForeignKeyConstraint(String connectionToken, int item, String constraintName, ArrayList<String> columnList, String referenceTable, ArrayList<String> referenceList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\t\t\n\tvoid createSequence(String connectionToken, int schema, String sequenceName, boolean temporary, int increment, int minValue, int maxValue, int start, int cache, boolean cycle, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createFunction(String connectionToken, int schema, String functionName, String returns, String language, ArrayList<String> paramList, String definition, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createType(String connectionToken, String schema, String typeName, TYPE_FORM form, String baseType, String definition, ArrayList<String> attributeList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createForeignTable(String connectionToken, String schema, String tableName, String server, ArrayList<String> columns, HashMap<Integer, String> comments, ArrayList<String> options, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid refreshMaterializedView(String connectionToken, String schema, String viewName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createRule(String connectionToken, int item, ITEM_TYPE type, String ruleName, String event, String ruleType, String definition, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createTrigger(String connectionToken, int item, ITEM_TYPE type, String triggerName, String event, String triggerType, String forEach, String function, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid revoke(String connectionToken, int item, ITEM_TYPE type, String privilege, String grantee, boolean cascade, AsyncCallback<String> callback) \n\t\t\t\t\tthrows IllegalArgumentException;\n\t\t\t\n\tvoid grant(String connectionToken, int item, ITEM_TYPE type, ArrayList<String> privileges, String grantee, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid doLogout(String connectionToken, String source, AsyncCallback<Void> asyncCallback) throws IllegalArgumentException;\n\n\tvoid invalidateSession(AsyncCallback<Void> callback);\n\n}", "@GET @Path(\"/{id}\")\n @Produces({MediaType.APPLICATION_JSON})\n public void getCar(@Suspended final AsyncResponse asyncResponse, @PathParam(value = \"id\") final String id) {\n executorService.submit(() -> { asyncResponse.resume(service.getCar(id)); });\n }", "public interface PgStudioServiceAsync {\n\n\tvoid getConnectionInfoMessage(String connectionToken, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\t\n\tvoid getList(String connectionToken, DATABASE_OBJECT_TYPE type, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\n\tvoid getList(String connectionToken, int schema, ITEM_TYPE type, AsyncCallback<String> callback)\n \t\tthrows IllegalArgumentException;\n\n\tvoid getRangeDiffFunctionList(String connectionToken, String schema, String subType, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getTriggerFunctionList(String connectionToken, int schema, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid getItemObjectList(String connectionToken, long item, ITEM_TYPE type, ITEM_OBJECT_TYPE object, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getItemMetaData(String connectionToken, long item, ITEM_TYPE type, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getItemData(String connectionToken, long item, ITEM_TYPE type, int count, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getQueryMetaData(String connectionToken, String query, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid executeQuery(String connectionToken, String query, String queryType, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid dropItem(String connectionToken, long item, ITEM_TYPE type, boolean cascade, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid analyze(String connectionToken, long item, ITEM_TYPE type, boolean vacuum, boolean vacuumFull, boolean reindex, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid renameItem(String connectionToken, long item, ITEM_TYPE type, String newName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid truncate(String connectionToken, long item, ITEM_TYPE type, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createIndex(String connectionToken, long item, String indexName, INDEX_TYPE indexType, boolean isUnique, boolean isConcurrently, ArrayList<String> columnList, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid dropItemObject(String connectionToken, long item, ITEM_TYPE type, String objectName, ITEM_OBJECT_TYPE objType, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid renameItemObject(String connectionToken, long item, ITEM_TYPE type, String objectName, ITEM_OBJECT_TYPE objType, String newObjectName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid renameSchema(String connectionToken, String oldSchema, String schema, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid dropSchema(String connectionToken, String schemaName, boolean cascade, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createSchema(String connectionToken, String schemaName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getExplainResult(String connectionToken, String query, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createView(String connectionToken, String schema, String viewName, String definition, String comment, boolean isMaterialized, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createColumn(String connectionToken, long item, String columnName, String datatype, String comment, boolean not_null, String defaultval, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createTable(String connectionToken, int schema, String tableName, boolean unlogged, boolean temporary, String fill, ArrayList<String> col_list, HashMap<Integer,String> commentLog, ArrayList<String> col_index, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createTableLike(String connectionToken, int schema, String tableName, String source, boolean defaults, boolean constraints, boolean indexes, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid createUniqueConstraint(String connectionToken, long item, String constraintName, boolean isPrimaryKey, ArrayList<String> columnList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createCheckConstraint(String connectionToken, long item, String constraintName, String definition, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createForeignKeyConstraint(String connectionToken, long item, String constraintName, ArrayList<String> columnList, String referenceTable, ArrayList<String> referenceList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\t\t\n\tvoid createSequence(String connectionToken, int schema, String sequenceName, boolean temporary, String increment, String minValue, String maxValue, String start, int cache, boolean cycle, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createFunction(String connectionToken, AlterFunctionRequest funcRequest, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createType(String connectionToken, String schema, String typeName, TYPE_FORM form, String baseType, String definition, ArrayList<String> attributeList, AsyncCallback<String> callback)\n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createForeignTable(String connectionToken, String schema, String tableName, String server, ArrayList<String> columns, HashMap<Integer, String> comments, ArrayList<String> options, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid refreshMaterializedView(String connectionToken, String schema, String viewName, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid createRule(String connectionToken, long item, ITEM_TYPE type, String ruleName, String event, String ruleType, String definition, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid createTrigger(String connectionToken, long item, ITEM_TYPE type, String triggerName, String event, String triggerType, String forEach, String function, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid revoke(String connectionToken, long item, ITEM_TYPE type, String privilege, String grantee, boolean cascade, AsyncCallback<String> callback) \n\t\t\t\t\tthrows IllegalArgumentException;\n\t\t\t\n\tvoid grant(String connectionToken, long item, ITEM_TYPE type, ArrayList<String> privileges, String grantee, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\n\tvoid getActivity(String connectionToken, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\n\tvoid configureRowSecurity(String connectionToken, long item, boolean hasRowSecurity, boolean forceRowSecurity, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\n\tvoid createPolicy(String connectionToken, long item, String policyName, String cmd, String role, String using, String withCheck, AsyncCallback<String> callback)\n\t throws IllegalArgumentException;\n\t\n\tvoid doLogout(String connectionToken, String source, AsyncCallback<Void> asyncCallback) throws IllegalArgumentException;\n\n\tvoid invalidateSession(AsyncCallback<Void> callback);\n\t\n\tvoid alterFunction(String connectionToken, AlterFunctionRequest alterFunctionRequest, AsyncCallback<String> asyncCallback) throws Exception;\n\t\n\tvoid incrementValue(String connectionToken, int schema, String sequenceName, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\t\n\tvoid alterSequence(String connectionToken, int schema, String sequenceName, String increment, String minValue, String maxValue, String start, int cache, boolean cycle, AsyncCallback<String> callback) \n\t\t\tthrows IllegalArgumentException;\n\t\n\tvoid changeSequenceValue(String connectionToken, int schema, String sequenceName, String value, AsyncCallback<String> asyncCallback);\n\n\tvoid restartSequence(String connectionToken, int schema, String sequenceName, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid resetSequence(String connectionToken, int schema, String sequenceName, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getLanguageFullList(String connectionToken, DATABASE_OBJECT_TYPE type, AsyncCallback<String> callback) throws IllegalArgumentException;\n\t\n\tvoid getFunctionFullList(String connectionToken, int schema, ITEM_TYPE type, AsyncCallback<String> callback) throws IllegalArgumentException;\n\n\tvoid fetchDictionaryTemplates(String connectionToken, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\t\n\tvoid addDictionary(String connectionToken, int schema, String dictName, String template, String option, String comment, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid createFTSConfiguration(String connectionToken, String schemaName, String configurationName, String templateName, String parserName, String comments, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getFTSTemplatesList(String connectionToken, AsyncCallback<String> callback) throws Exception;\n\t\n\tvoid getFTSParsersList(String connectionToken, AsyncCallback<String> callback) throws Exception;\n\t\n\tvoid alterFTSConfiguration(String connectionToken, String schemaName, String configurationName, String comments, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid dropFTSConfiguration(String connectionToken, String schemaName, String configurationName, boolean cascade, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getFTSConfigurations(String connectionToken, String schemaName, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid fetchDictionaryDetails(String connectionToke, int schema, long id, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid alterDictionary(String connectionToken, int schema, String dictName, String newDictName, String options, String comments, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid createFTSMapping(String connectionToken, String schemaName, String configurationName, String tokenType, String dictionary, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getFTSTokensList(String connectionToken, AsyncCallback<String> callback) throws Exception;\n\n\tvoid getFTSDictionariesList(String connectionToken, AsyncCallback<String> callback) throws Exception;\n\n\tvoid alterFTSMapping(String connectionToken, String schemaName, String configurationName, String tokenType, String oldDict, String newDict, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid dropFTSMapping(String connectionToken, String schemaName, String configurationName, String token, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid getFTSConfigurationDetails(String connectionToken, String schemaName, String configName, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid importData(String connectionToken, List<String> columnList, List<ArrayList<String>> dataRows, int schema, String tableId, String tableName, AsyncCallback<String> callback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid dropItemData(String connectionToken, int schema, String tableName,AsyncCallback<String> callback) throws IllegalArgumentException, DatabaseConnectionException, PostgreSQLException;\n\n\tvoid connectToDatabase(String connectionToken, String databaseName , AsyncCallback<Void> asyncCallback) throws IllegalArgumentException;\n\n\tvoid fetchDomainDetails(String connectionToken, long item, AsyncCallback<DomainDetails> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid addCheck(String connectionToken, int schema, String domainName, String checkName, String expression, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid dropCheck(String connectionToken, int schema, String domainName, String checkName, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n\tvoid alterDomain(String connectionToken, int schema, AlterDomainRequest request, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\n void createItemData(String connectionToken, int schema, String tableName, ArrayList<String>colNames, ArrayList<String> values, AsyncCallback<String> callback) throws IllegalArgumentException, DatabaseConnectionException, PostgreSQLException;\n\t\n\tvoid alterColumn(String connectionToken, long item, AlterColumnRequest command, AsyncCallback<String> asyncCallback) throws DatabaseConnectionException, PostgreSQLException;\n\t}", "java.util.concurrent.Future<GetSolNetworkPackageResult> getSolNetworkPackageAsync(GetSolNetworkPackageRequest getSolNetworkPackageRequest);", "private void awaitT(){\n try {\n game.getBarrier().await(20, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (BrokenBarrierException e) {\n e.printStackTrace();\n } catch (TimeoutException e) {\n trimBarrier();\n synchronized (lock){\n if(!botSignal){\n bot = new BotClient();\n new Thread(bot).start();\n botSignal = true;\n }\n\n }\n }\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n private PollerFlux<PollResult<Void>, Void> beginPowerOffAsync(\n String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown, Context context) {\n context = this.client.mergeContext(context);\n Mono<Response<Flux<ByteBuffer>>> mono =\n powerOffWithResponseAsync(resourceGroupName, vmScaleSetName, instanceId, skipShutdown, context);\n return this\n .client\n .<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);\n }", "public interface InviteService extends Service, ActorService {\r\n\r\n @AsyncInvocation\r\n void save();\r\n @AsyncInvocation\r\n void insert(DbRow dbRow);\r\n @AsyncInvocation\r\n void update(DbRow dbRow);\r\n @AsyncInvocation\r\n void bindInviteCode(RoleInvitePo roleInvitePoFrom, RoleBeInvitePo roleBeInvitePo);\r\n\r\n}", "public static interface ApplicationManagerFutureClient {\n\n /**\n * <pre>\n * Applications should first be registered to the Handler with the `RegisterApplication` method\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> registerApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * GetApplication returns the application with the given identifier (app_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Application> getApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * SetApplication updates the settings for the application. All fields must be supplied.\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Application request);\n\n /**\n * <pre>\n * DeleteApplication deletes the application with the given identifier (app_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * GetDevice returns the device with the given identifier (app_id and dev_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Device> getDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);\n\n /**\n * <pre>\n * SetDevice creates or updates a device. All fields must be supplied.\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);\n\n /**\n * <pre>\n * DeleteDevice deletes the device with the given identifier (app_id and dev_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);\n\n /**\n * <pre>\n * GetDevicesForApplication returns all devices that belong to the application with the given identifier (app_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> getDevicesForApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * DryUplink simulates processing a downlink message and returns the result\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DryDownlinkResult> dryDownlink(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DryDownlinkMessage request);\n\n /**\n * <pre>\n * DryUplink simulates processing an uplink message and returns the result\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DryUplinkResult> dryUplink(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DryUplinkMessage request);\n\n /**\n * <pre>\n * SimulateUplink simulates an uplink message\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> simulateUplink(\n org.thethingsnetwork.management.proto.HandlerOuterClass.SimulatedUplinkMessage request);\n }", "public interface AsyncOperationHelper {\n\t\n\t/**\n\t * Inserisce l'operazione asincrona e restituisce il risultato dell'invocazione.\n\t * \n\t * @param account l'account relativo alla richiesta\n\t * @param azioneRichiesta l'azione richiesta\n\t * @param ente l'ente\n\t * @param richiedente il richiedente\n\t * \n\t * @return la response del servizio di {@link InserisciOperazioneAsinc}\n\t * \n\t * @throws WebServiceInvocationFailureException nel caso in cui l'invocazione del WebService restituisca un'eccezione\n\t */\n\tInserisciOperazioneAsincResponse inserisciOperazioneAsincrona(Account account, AzioneRichiesta azioneRichiesta, Ente ente, Richiedente richiedente)\n\t\tthrows WebServiceInvocationFailureException;\n\t\n\t/**\n\t * Effettua il polling dell'operazione asincrona.\n\t * \n\t * @param idAzioneAsync l'id dell'azione asincrona\n\t * @param richiedente il richiedente\n\t * \n\t * @return la response del servizio di {@link GetOperazioneAsincResponse}\n\t * \n\t * @throws WebServiceInvocationFailureException nel caso in cui l'invocazione del WebService restituisca un'eccezione\n\t */\n\tGetOperazioneAsincResponse getOperazioneAsinc(Integer idAzioneAsync, Richiedente richiedente) throws WebServiceInvocationFailureException;\n\t\n}", "@Test\n public void constructStartAndStop() {\n kit.setBlockingStartup(false);\n kit.startAsync();\n kit.awaitRunning();\n kit.stopAsync();\n kit.awaitTerminated();\n }", "void requestUpdate(UUIDBase uuid, OpResult opResult) {\n if (opResult.isComplete()) {\n requestComplete(uuid, opResult);\n } else {\n _requestInProgress(uuid);\n }\n }", "public interface AmazonConfigAsync extends AmazonConfig {\n /**\n * <p>\n * Returns the current status of the specified delivery channel. If a\n * delivery channel is not specified, this action returns the current\n * status of all delivery channels associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b>Currently, you can specify only one delivery channel per\n * account.\n * </p>\n *\n * @param describeDeliveryChannelStatusRequest Container for the\n * necessary parameters to execute the DescribeDeliveryChannelStatus\n * operation on AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * DescribeDeliveryChannelStatus service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeDeliveryChannelStatusResult> describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns the current status of the specified delivery channel. If a\n * delivery channel is not specified, this action returns the current\n * status of all delivery channels associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b>Currently, you can specify only one delivery channel per\n * account.\n * </p>\n *\n * @param describeDeliveryChannelStatusRequest Container for the\n * necessary parameters to execute the DescribeDeliveryChannelStatus\n * operation on AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * DescribeDeliveryChannelStatus service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeDeliveryChannelStatusResult> describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest,\n AsyncHandler<DescribeDeliveryChannelStatusRequest, DescribeDeliveryChannelStatusResult> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns the name of one or more specified configuration recorders.\n * If the recorder name is not specified, this action returns the names\n * of all the configuration recorders associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one configuration\n * recorder per account.\n * </p>\n *\n * @param describeConfigurationRecordersRequest Container for the\n * necessary parameters to execute the DescribeConfigurationRecorders\n * operation on AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * DescribeConfigurationRecorders service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeConfigurationRecordersResult> describeConfigurationRecordersAsync(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns the name of one or more specified configuration recorders.\n * If the recorder name is not specified, this action returns the names\n * of all the configuration recorders associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one configuration\n * recorder per account.\n * </p>\n *\n * @param describeConfigurationRecordersRequest Container for the\n * necessary parameters to execute the DescribeConfigurationRecorders\n * operation on AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * DescribeConfigurationRecorders service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeConfigurationRecordersResult> describeConfigurationRecordersAsync(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest,\n AsyncHandler<DescribeConfigurationRecordersRequest, DescribeConfigurationRecordersResult> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Starts recording configurations of all the resources associated with\n * the account.\n * </p>\n * <p>\n * You must have created at least one delivery channel to successfully\n * start the configuration recorder.\n * </p>\n *\n * @param startConfigurationRecorderRequest Container for the necessary\n * parameters to execute the StartConfigurationRecorder operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * StartConfigurationRecorder service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Starts recording configurations of all the resources associated with\n * the account.\n * </p>\n * <p>\n * You must have created at least one delivery channel to successfully\n * start the configuration recorder.\n * </p>\n *\n * @param startConfigurationRecorderRequest Container for the necessary\n * parameters to execute the StartConfigurationRecorder operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * StartConfigurationRecorder service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest,\n AsyncHandler<StartConfigurationRecorderRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Creates a new delivery channel object to deliver the configuration\n * information to an Amazon S3 bucket, and to an Amazon SNS topic.\n * </p>\n * <p>\n * You can use this action to change the Amazon S3 bucket or an Amazon\n * SNS topic of the existing delivery channel. To change the Amazon S3\n * bucket or an Amazon SNS topic, call this action and specify the\n * changed values for the S3 bucket and the SNS topic. If you specify a\n * different value for either the S3 bucket or the SNS topic, this action\n * will keep the existing value for the parameter that is not changed.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one delivery channel per\n * account.\n * </p>\n *\n * @param putDeliveryChannelRequest Container for the necessary\n * parameters to execute the PutDeliveryChannel operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * PutDeliveryChannel service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Creates a new delivery channel object to deliver the configuration\n * information to an Amazon S3 bucket, and to an Amazon SNS topic.\n * </p>\n * <p>\n * You can use this action to change the Amazon S3 bucket or an Amazon\n * SNS topic of the existing delivery channel. To change the Amazon S3\n * bucket or an Amazon SNS topic, call this action and specify the\n * changed values for the S3 bucket and the SNS topic. If you specify a\n * different value for either the S3 bucket or the SNS topic, this action\n * will keep the existing value for the parameter that is not changed.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one delivery channel per\n * account.\n * </p>\n *\n * @param putDeliveryChannelRequest Container for the necessary\n * parameters to execute the PutDeliveryChannel operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * PutDeliveryChannel service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest,\n AsyncHandler<PutDeliveryChannelRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Deletes the specified delivery channel.\n * </p>\n * <p>\n * The delivery channel cannot be deleted if it is the only delivery\n * channel and the configuration recorder is still running. To delete the\n * delivery channel, stop the running configuration recorder using the\n * StopConfigurationRecorder action.\n * </p>\n *\n * @param deleteDeliveryChannelRequest Container for the necessary\n * parameters to execute the DeleteDeliveryChannel operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * DeleteDeliveryChannel service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> deleteDeliveryChannelAsync(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Deletes the specified delivery channel.\n * </p>\n * <p>\n * The delivery channel cannot be deleted if it is the only delivery\n * channel and the configuration recorder is still running. To delete the\n * delivery channel, stop the running configuration recorder using the\n * StopConfigurationRecorder action.\n * </p>\n *\n * @param deleteDeliveryChannelRequest Container for the necessary\n * parameters to execute the DeleteDeliveryChannel operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * DeleteDeliveryChannel service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> deleteDeliveryChannelAsync(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest,\n AsyncHandler<DeleteDeliveryChannelRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Stops recording configurations of all the resources associated with\n * the account.\n * </p>\n *\n * @param stopConfigurationRecorderRequest Container for the necessary\n * parameters to execute the StopConfigurationRecorder operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * StopConfigurationRecorder service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> stopConfigurationRecorderAsync(StopConfigurationRecorderRequest stopConfigurationRecorderRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Stops recording configurations of all the resources associated with\n * the account.\n * </p>\n *\n * @param stopConfigurationRecorderRequest Container for the necessary\n * parameters to execute the StopConfigurationRecorder operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * StopConfigurationRecorder service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> stopConfigurationRecorderAsync(StopConfigurationRecorderRequest stopConfigurationRecorderRequest,\n AsyncHandler<StopConfigurationRecorderRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Schedules delivery of a configuration snapshot to the Amazon S3\n * bucket in the specified delivery channel. After the delivery has\n * started, AWS Config sends following notifications using an Amazon SNS\n * topic that you have specified.\n * </p>\n * \n * <ul>\n * <li>Notification of starting the delivery.</li>\n * <li>Notification of delivery completed, if the delivery was\n * successfully completed.</li>\n * <li>Notification of delivery failure, if the delivery failed to\n * complete.</li>\n * \n * </ul>\n *\n * @param deliverConfigSnapshotRequest Container for the necessary\n * parameters to execute the DeliverConfigSnapshot operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * DeliverConfigSnapshot service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DeliverConfigSnapshotResult> deliverConfigSnapshotAsync(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Schedules delivery of a configuration snapshot to the Amazon S3\n * bucket in the specified delivery channel. After the delivery has\n * started, AWS Config sends following notifications using an Amazon SNS\n * topic that you have specified.\n * </p>\n * \n * <ul>\n * <li>Notification of starting the delivery.</li>\n * <li>Notification of delivery completed, if the delivery was\n * successfully completed.</li>\n * <li>Notification of delivery failure, if the delivery failed to\n * complete.</li>\n * \n * </ul>\n *\n * @param deliverConfigSnapshotRequest Container for the necessary\n * parameters to execute the DeliverConfigSnapshot operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * DeliverConfigSnapshot service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DeliverConfigSnapshotResult> deliverConfigSnapshotAsync(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest,\n AsyncHandler<DeliverConfigSnapshotRequest, DeliverConfigSnapshotResult> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Creates a new configuration recorder to record the resource\n * configurations.\n * </p>\n * <p>\n * You can use this action to change the role ( <code>roleARN</code> )\n * of an existing recorder. To change the role, call the action on the\n * existing configuration recorder and specify a role.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one configuration\n * recorder per account.\n * </p>\n *\n * @param putConfigurationRecorderRequest Container for the necessary\n * parameters to execute the PutConfigurationRecorder operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * PutConfigurationRecorder service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> putConfigurationRecorderAsync(PutConfigurationRecorderRequest putConfigurationRecorderRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Creates a new configuration recorder to record the resource\n * configurations.\n * </p>\n * <p>\n * You can use this action to change the role ( <code>roleARN</code> )\n * of an existing recorder. To change the role, call the action on the\n * existing configuration recorder and specify a role.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one configuration\n * recorder per account.\n * </p>\n *\n * @param putConfigurationRecorderRequest Container for the necessary\n * parameters to execute the PutConfigurationRecorder operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * PutConfigurationRecorder service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<Void> putConfigurationRecorderAsync(PutConfigurationRecorderRequest putConfigurationRecorderRequest,\n AsyncHandler<PutConfigurationRecorderRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns a list of configuration items for the specified resource. The\n * list contains details about each state of the resource during the\n * specified time interval. You can specify a <code>limit</code> on the\n * number of results returned on the page. If a limit is specified, a\n * <code>nextToken</code> is returned as part of the result that you can\n * use to continue this request.\n * </p>\n * <p>\n * <b>NOTE:</b> Each call to the API is limited to span a duration of\n * seven days. It is likely that the number of records returned is\n * smaller than the specified limit. In such cases, you can make another\n * call, using the nextToken .\n * </p>\n *\n * @param getResourceConfigHistoryRequest Container for the necessary\n * parameters to execute the GetResourceConfigHistory operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * GetResourceConfigHistory service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<GetResourceConfigHistoryResult> getResourceConfigHistoryAsync(GetResourceConfigHistoryRequest getResourceConfigHistoryRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns a list of configuration items for the specified resource. The\n * list contains details about each state of the resource during the\n * specified time interval. You can specify a <code>limit</code> on the\n * number of results returned on the page. If a limit is specified, a\n * <code>nextToken</code> is returned as part of the result that you can\n * use to continue this request.\n * </p>\n * <p>\n * <b>NOTE:</b> Each call to the API is limited to span a duration of\n * seven days. It is likely that the number of records returned is\n * smaller than the specified limit. In such cases, you can make another\n * call, using the nextToken .\n * </p>\n *\n * @param getResourceConfigHistoryRequest Container for the necessary\n * parameters to execute the GetResourceConfigHistory operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * GetResourceConfigHistory service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<GetResourceConfigHistoryResult> getResourceConfigHistoryAsync(GetResourceConfigHistoryRequest getResourceConfigHistoryRequest,\n AsyncHandler<GetResourceConfigHistoryRequest, GetResourceConfigHistoryResult> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns details about the specified delivery channel. If a delivery\n * channel is not specified, this action returns the details of all\n * delivery channels associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one delivery channel per\n * account.\n * </p>\n *\n * @param describeDeliveryChannelsRequest Container for the necessary\n * parameters to execute the DescribeDeliveryChannels operation on\n * AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * DescribeDeliveryChannels service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeDeliveryChannelsResult> describeDeliveryChannelsAsync(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns details about the specified delivery channel. If a delivery\n * channel is not specified, this action returns the details of all\n * delivery channels associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b> Currently, you can specify only one delivery channel per\n * account.\n * </p>\n *\n * @param describeDeliveryChannelsRequest Container for the necessary\n * parameters to execute the DescribeDeliveryChannels operation on\n * AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * DescribeDeliveryChannels service method, as returned by AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeDeliveryChannelsResult> describeDeliveryChannelsAsync(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest,\n AsyncHandler<DescribeDeliveryChannelsRequest, DescribeDeliveryChannelsResult> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns the current status of the specified configuration recorder.\n * If a configuration recorder is not specified, this action returns the\n * status of all configuration recorder associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b>Currently, you can specify only one configuration\n * recorder per account.\n * </p>\n *\n * @param describeConfigurationRecorderStatusRequest Container for the\n * necessary parameters to execute the\n * DescribeConfigurationRecorderStatus operation on AmazonConfig.\n * \n * @return A Java Future object containing the response from the\n * DescribeConfigurationRecorderStatus service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeConfigurationRecorderStatusResult> describeConfigurationRecorderStatusAsync(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest) \n throws AmazonServiceException, AmazonClientException;\n\n /**\n * <p>\n * Returns the current status of the specified configuration recorder.\n * If a configuration recorder is not specified, this action returns the\n * status of all configuration recorder associated with the account.\n * </p>\n * <p>\n * <b>NOTE:</b>Currently, you can specify only one configuration\n * recorder per account.\n * </p>\n *\n * @param describeConfigurationRecorderStatusRequest Container for the\n * necessary parameters to execute the\n * DescribeConfigurationRecorderStatus operation on AmazonConfig.\n * @param asyncHandler Asynchronous callback handler for events in the\n * life-cycle of the request. Users could provide the implementation of\n * the four callback methods in this interface to process the operation\n * result or handle the exception.\n * \n * @return A Java Future object containing the response from the\n * DescribeConfigurationRecorderStatus service method, as returned by\n * AmazonConfig.\n * \n *\n * @throws AmazonClientException\n * If any internal errors are encountered inside the client while\n * attempting to make the request or handle the response. For example\n * if a network connection is not available.\n * @throws AmazonServiceException\n * If an error response is returned by AmazonConfig indicating\n * either a problem with the data in the request, or a server side issue.\n */\n public Future<DescribeConfigurationRecorderStatusResult> describeConfigurationRecorderStatusAsync(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest,\n AsyncHandler<DescribeConfigurationRecorderStatusRequest, DescribeConfigurationRecorderStatusResult> asyncHandler)\n throws AmazonServiceException, AmazonClientException;\n}", "java.util.concurrent.Future<GetJobRunResult> getJobRunAsync(GetJobRunRequest getJobRunRequest);", "public void callAsyncCallback(String text) {\n\n \n com.cdyne.ws.Check service = new com.cdyne.ws.Check();\n com.cdyne.ws.CheckSoap port = service.getCheckSoap();\n // initialize WS operation arguments here\n java.lang.String bodyText = text;\n\n javax.xml.ws.AsyncHandler<com.cdyne.ws.CheckTextBodyV2Response> asyncHandler = new javax.xml.ws.AsyncHandler<com.cdyne.ws.CheckTextBodyV2Response>() {\n\n public void handleResponse(final javax.xml.ws.Response<com.cdyne.ws.CheckTextBodyV2Response> response) {\n SwingUtilities.invokeLater(new Runnable() {\n\n public void run() {\n\n try {\n // Create a DocumentSummary object containing the response.\n // Note that getDocumentSummary() is called from the Response object\n // unlike the synchronous client, where it is called directly from\n // com.cdyne.ws.CheckTextBody\n\n com.cdyne.ws.DocumentSummary doc = response.get().getDocumentSummary();\n\n\n //From the retrieved DocumentSummary,\n //identify and display the number of wrongly spelled words:\n\n final int no_of_mistakes = doc.getMisspelledWordCount();\n String number_of_mistakes = Integer.toString(no_of_mistakes);\n tfNumberMistakes.setText(number_of_mistakes);\n\n\n // Check to see if there are any mistakes\n if (no_of_mistakes > 0) {\n\n //From the retrieved document summary,\n //identify the array of wrongly spelled words, if any:\n\n final List<com.cdyne.ws.Words> allwrongwords = doc.getMisspelledWord();\n\n\n //Get the first wrong word\n String firstwrongword = allwrongwords.get(0).getWord();\n\n //Build a string of all wrong words separated by commas, then display this in tfWrongWords\n\n StringBuilder wrongwordsbuilder = new StringBuilder(firstwrongword);\n\n for (int i = 1; i < allwrongwords.size(); i++) {\n String onewrongword = allwrongwords.get(i).getWord();\n wrongwordsbuilder.append(\", \");\n wrongwordsbuilder.append(onewrongword);\n }\n String wrongwords = wrongwordsbuilder.toString();\n tfWrongWords.setText(wrongwords);\n\n //Display the first wrong word\n tfWrongWord1.setText(firstwrongword);\n\n\n //See how many suggestions there are for the wrong word\n int onewordsuggestioncount = allwrongwords.get(0).getSuggestionCount();\n\n\n //Check to see if there are any suggestions.\n if (onewordsuggestioncount > 0) {\n\n //Make a list of all suggestions for correcting the first wrong word, and build them into a String.\n //Display the string of concactenated suggestions in the tfSuggestions1 text field\n\n\n List<String> allsuggestions = ((com.cdyne.ws.Words) allwrongwords.get(0)).getSuggestions();\n\n String firstsuggestion = allsuggestions.get(0);\n StringBuilder suggestionbuilder = new StringBuilder(firstsuggestion);\n for (int i = 1; i < onewordsuggestioncount; i++) {\n String onesuggestion = allsuggestions.get(i);\n suggestionbuilder.append(\", \");\n suggestionbuilder.append(onesuggestion);\n }\n String onewordsuggestions = suggestionbuilder.toString();\n tfSuggestions1.setText(onewordsuggestions);\n\n } else {\n // No suggestions for this mistake\n tfSuggestions1.setText(\"No suggestions\");\n }\n btNextWrongWord.setEnabled(true);\n\n // See if the ActionListener for getting the next wrong word and suggestions\n // has already been defined. Unregister it if it has, so only one action listener\n // will be registered at one time.\n\n if (nextWord != null) {\n btNextWrongWord.removeActionListener(nextWord);\n }\n\n // Define the ActionListener (already instantiated as a private field)\n nextWord = new ActionListener() {\n\n //Initialize a variable to track the index of the allwrongwords list\n\n int wordnumber = 1;\n\n public void actionPerformed(ActionEvent e) {\n if (wordnumber < no_of_mistakes) {\n\n // get wrong word in index position wordnumber in allwrongwords\n String onewrongword = allwrongwords.get(wordnumber).getWord();\n\n //next part is same as code for first wrong word\n\n tfWrongWord1.setText(onewrongword);\n int onewordsuggestioncount = allwrongwords.get(wordnumber).getSuggestionCount();\n if (onewordsuggestioncount > 0) {\n List<String> allsuggestions = allwrongwords.get(wordnumber).getSuggestions();\n String firstsuggestion = allsuggestions.get(0);\n StringBuilder suggestionbuilder = new StringBuilder(firstsuggestion);\n for (int j = 1; j < onewordsuggestioncount; j++) {\n String onesuggestion = allsuggestions.get(j);\n suggestionbuilder.append(\", \");\n suggestionbuilder.append(onesuggestion);\n }\n String onewordsuggestions = suggestionbuilder.toString();\n tfSuggestions1.setText(onewordsuggestions);\n } else {\n tfSuggestions1.setText(\"No suggestions\");\n }\n\n // increase i by 1\n wordnumber++;\n\n } else {\n // No more wrong words! Disable next word button\n // Enable Check button\n btNextWrongWord.setEnabled(false);\n btCheck.setEnabled(true);\n }\n }\n };\n\n // Register the ActionListener\n btNextWrongWord.addActionListener(nextWord);\n\n } else {\n // The text has no mistakes\n // Enable Check button\n tfWrongWords.setText(\"No wrong words\");\n tfSuggestions1.setText(\"No suggestions\");\n tfWrongWord1.setText(\"--\");\n btCheck.setEnabled(true);\n\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n // Clear the progress bar\n pbProgress.setIndeterminate(false);\n pbProgress.setString(\"\");\n }\n });\n\n }\n };\n\n java.util.concurrent.Future result = port.checkTextBodyV2Async(bodyText, asyncHandler);\n while (!result.isDone()) {\n try {\n\n\n //Display a message that the application is waiting for a response from the server\n tfWrongWords.setText(\"Waiting...\");\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n Logger.getLogger(MainForm.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n}", "private static void runClient() {\n long clientStartTime = System.currentTimeMillis();\n \n // Pick a random entry point\n int entryPointId = random.nextInt(entryPointAddresses.size());\n String[] ep = entryPointAddresses.get(entryPointId);\n String entryPointCode = ep[0];\n String entryPointAddress = ep[1];\n \n // User number and id\n int userCount = COUNT.incrementAndGet();\n String userToken = (clientLocation + userCount + \"-\" + Math.abs(random.nextInt(1000)));\n User u = USER_RESOLVER.resolve(userToken);\n \n // Point the client to the entry point\n WebTarget webTarget = entryPointTarget(entryPointAddress, userToken);\n EntryPointResponse response = new EntryPointResponse(null, null);\n try {\n String responseJson = webTarget.request(MediaType.APPLICATION_JSON).get(String.class);\n response = Jsons.fromJson(responseJson, EntryPointResponse.class);\n } catch (Exception e) {\n LOG.log(Level.SEVERE, String.format(\"Could not load responses from entry point %s: %s\", ep[0], ep[1]));\n LOG.log(Level.SEVERE, \"Attempted to connect with: \" + webTarget.getUri().toString());\n }\n \n // current time after the response\n long clientEndTime = System.currentTimeMillis(); \n \n Double latency = null;\n if (response.getRedirectAddress() != null) {\n latency = latencies.get(response.getRedirectAddress());\n }\n \n writer.writeCsv(LOG_LENS, \n sdf.format(new Date()),\n clientStartTime - Main.clientStartTime,\n userCount,\n Main.clientLocation,\n entryPointCode,\n response.getSelectedCloudSiteCode(),\n clientEndTime - clientStartTime,\n latency == null ? \"null\" : String.format(\"%.2f\", latency),\n userToken,\n Arrays.toString(u.getCitizenships().toArray()),\n Arrays.toString(u.getTags().toArray()),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getProviderCode(),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getLocationCode(),\n response.getDefinition() == null ? \"null\" : Arrays.toString(response.getDefinition().getTags().toArray()),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getCost()\n );\n //writer.flush();\n }", "private void await() {\n try {\n Thread.sleep(10 * 1000L);\n } catch (InterruptedException e) {\n // ignore\n }\n }", "public interface ClientServiceAsync {\n\t/**\n\t * Save a Client instance to the data store\n\t * @param c The client to be saved\n\t * @param cb The async callback\n\t */\n\tpublic void saveClient(Client c, AsyncCallback<Void> cb);\n\t\n\t/**\n\t * Load all the Client instances from the server\n\t * @param cb The async callback\n\t */\n\tpublic void getClients(AsyncCallback<List<Client>> cb);\n\t\n\t/**\n\t * Get a Client by id\n\t * @param id The client id\n\t * @param cb The async callback\n\t */\n\tpublic void getClient(String id, AsyncCallback<Client> cb);\n\n\t/**\n\t * Delete a list of clients from the data store\n\t * @param clients The list of clients to be deleted\n\t * @param cb The async callback\n\t */\n\tpublic void deleteClients(Collection<Client> clients, AsyncCallback<Void> cb);\n\t\n\tpublic void saveClients(Collection<Client> clients, AsyncCallback<Void> cb);\n}", "@RemoteServiceRelativePath(\"greet\")\npublic interface MyBitService extends RemoteService {\n OrderInfoList getOrderInfoList() throws IllegalArgumentException;\n\n CoinInfoList getCoinInfoList() throws IllegalArgumentException;\n\n ExchangeInfoList getExchangeInfoList() throws IllegalArgumentException;\n\n CompareInfoList getCompareInfoList() throws IllegalArgumentException;\n\n String toggleBot() throws IllegalArgumentException;\n\n String setThreshold(Double threshold) throws IllegalArgumentException;\n\n String getThreshold() throws IllegalArgumentException;\n\n public static class App {\n private static MyBitServiceAsync ourInstance = GWT.create(MyBitService.class);\n\n public static synchronized MyBitServiceAsync getInstance() {\n return ourInstance;\n }\n }\n}", "public RpcClient(ManagedChannelBuilder<?> channelBuilder) {\n channel = channelBuilder.build();\n blockingStub = PredictionServiceGrpc.newBlockingStub(channel);\n asyncStub = PredictionServiceGrpc.newStub(channel);\n modelServiceBlockingStub = ModelServiceGrpc.newBlockingStub(channel);\n modelServiceStub = ModelServiceGrpc.newStub(channel);\n channelzBlockingStub = ChannelzGrpc.newBlockingStub(channel);\n }", "public interface MeteringClient {\n\n void consume(Collection<ResourceSnapshot> resources);\n\n MeteringInfo getResourceSnapshots(TenantName tenantName, ApplicationName applicationName);\n\n}", "void await() throws InterruptedException;", "void await() throws InterruptedException;", "void await() throws InterruptedException;", "public interface AsyncConnection {\n \n /**\n * Return <tt>true</tt> is the current connection associated with \n * this event has been suspended.\n */\n public boolean isSuspended();\n \n \n /**\n * Suspend the current connection. Suspended connection are parked and\n * eventually used when the Grizzlet Container initiates pushes.\n */\n public void suspend() throws AlreadyPausedException;\n \n \n /**\n * Resume a suspended connection. The response will be completed and the \n * connection become synchronous (e.g. a normal http connection).\n */\n public void resume() throws NotYetPausedException;\n \n \n /**\n * Advises the Grizzlet Container to start intiating a push operation, using \n * the argument <code>message</code>. All asynchronous connection that has \n * been suspended will have a chance to push the data back to their \n * associated clients.\n *\n * @param message The data that will be pushed.\n */\n public void push(String message) throws IOException;\n \n \n /**\n * Return the GrizzletRequest associated with this AsynchConnection. \n */\n public GrizzletRequest getRequest();\n \n \n /**\n * Return the GrizzletResponse associated with this AsynchConnection. \n */\n public GrizzletResponse getResponse();\n \n \n /**\n * Is this AsyncConnection being in the process of being resumed?\n */\n public boolean isResuming();\n \n \n /**\n * Is this AsyncConnection has push events ready to push back data to \n * its associated client.\n */\n public boolean hasPushEvent();\n \n \n /**\n * Return the <code>message</code> that can be pushed back.\n */\n public String getPushEvent();\n \n \n /**\n * Is the current asynchronous connection defined as an HTTP Get.\n */\n public boolean isGet();\n \n \n /**\n * Is the current asynchronous connection defined as an HTTP Get. \n */\n public boolean isPost();\n \n \n /**\n * Return the number of suspended connections associated with the current\n * {@link Grizzlet}\n */\n public int getSuspendedCount();\n \n \n}", "@GET(Url.END_POINT)\n Call<ArrayList<Recipe>> getRecipes();", "public void process()\n {\n ClientRequest clientRequest = threadPool.remove();\n\n if (clientRequest == null)\n {\n return;\n }\n\n\n // Do the work\n // Create new Client\n ServiceLogger.LOGGER.info(\"Building client...\");\n Client client = ClientBuilder.newClient();\n client.register(JacksonFeature.class);\n\n // Get uri\n ServiceLogger.LOGGER.info(\"Getting URI...\");\n String URI = clientRequest.getURI();\n\n ServiceLogger.LOGGER.info(\"Getting endpoint...\");\n String endpointPath = clientRequest.getEndpoint();\n\n // Create WebTarget\n ServiceLogger.LOGGER.info(\"Building WebTarget...\");\n WebTarget webTarget = client.target(URI).path(endpointPath);\n\n // Send the request and save it to a Response\n ServiceLogger.LOGGER.info(\"Sending request...\");\n Response response = null;\n if (clientRequest.getHttpMethodType() == Constants.getRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n String pathParam = clientRequest.getPathParam();\n\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a GET request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .get();\n }\n else if (clientRequest.getHttpMethodType() == Constants.postRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n ServiceLogger.LOGGER.info(\"Got a POST request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .post(Entity.entity(clientRequest.getRequest(), MediaType.APPLICATION_JSON));\n }\n else if (clientRequest.getHttpMethodType() == Constants.deleteRequest)\n {\n String pathParam = clientRequest.getPathParam();\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a DELETE request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .delete();\n }\n else\n {\n ServiceLogger.LOGGER.warning(ANSI_YELLOW + \"Request was not sent successfully\");\n }\n ServiceLogger.LOGGER.info(ANSI_GREEN + \"Sent!\" + ANSI_RESET);\n\n // Check status code of request\n String jsonText = \"\";\n int httpstatus = response.getStatus();\n\n jsonText = response.readEntity(String.class);\n\n // Add response to database\n String email = clientRequest.getEmail();\n String sessionID = clientRequest.getSessionID();\n ResponseDatabase.insertResponseIntoDB(clientRequest.getTransactionID(), jsonText, email, sessionID, httpstatus);\n\n }", "@Override public void askTemperatureAsync() throws MeteoServiceException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tcomConnexion.askTemperatureAsync();\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new MeteoServiceException(\"[MeteoService] : askTemperatureAsync failure\", e);\n\t\t\t}\n\t\t}", "@NotNull\n/* */ public NextAction processRequest(@NotNull Packet request) {\n/* 66 */ T param = this.argsBuilder.getParameter(request);\n/* 67 */ NoSuspendResumer resumer = new NoSuspendResumer();\n/* */ \n/* 69 */ AsyncProviderCallbackImpl callback = new AsyncProviderCallbackImpl(request, resumer);\n/* 70 */ AsyncWebServiceContext ctxt = new AsyncWebServiceContext(getEndpoint(), request);\n/* */ \n/* 72 */ LOGGER.fine(\"Invoking AsyncProvider Endpoint\");\n/* */ try {\n/* 74 */ getInvoker(request).invokeAsyncProvider(request, param, callback, (WebServiceContext)ctxt);\n/* 75 */ } catch (Throwable e) {\n/* 76 */ LOGGER.log(Level.SEVERE, e.getMessage(), e);\n/* 77 */ return doThrow(e);\n/* */ } \n/* */ \n/* 80 */ synchronized (callback) {\n/* 81 */ if (resumer.response != null) {\n/* */ \n/* */ \n/* 84 */ ThrowableContainerPropertySet tc = (ThrowableContainerPropertySet)resumer.response.getSatellite(ThrowableContainerPropertySet.class);\n/* 85 */ Throwable t = (tc != null) ? tc.getThrowable() : null;\n/* */ \n/* 87 */ return (t != null) ? doThrow(resumer.response, t) : doReturnWith(resumer.response);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 92 */ callback.resumer = new FiberResumer();\n/* 93 */ return doSuspend();\n/* */ } \n/* */ }", "@Override public void askAltitudeAsync() throws MeteoServiceException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tcomConnexion.askAltitudeAsync();\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new MeteoServiceException(\"[MeteoService] askAltitudeAsync failure\", e);\n\t\t\t}\n\t\t}", "@GET(\"random.php\")\n Call<MealData> getRandomMeal();", "@Suspendable\n @Override\n public Void call() throws FlowException {\n\n\n\n try {\n Class<EconomicTerms> clazz = EconomicTerms.class;\n //String json = cdmContent != null ? JsonUtil.toJsonString(cdmContent) : JsonUtil.toJsonString(obj);\n ObjectMapper rosettaObjectMapper = RosettaObjectMapper.getDefaultRosettaObjectMapper();\n\n EconomicTerms economicTerms = rosettaObjectMapper.readValue(cdmContent, clazz);\n\n List<Function<? super EconomicTerms, QualifyResult>> qualifyFunctions = new EconomicTermsMeta().getQualifyFunctions();\n\n\n // Use the QualifyResultsExtractor helper to easily make use of qualification results\n //\n\n String result = new QualifyResultsExtractor<>(qualifyFunctions, economicTerms)\n .getOnlySuccessResult()\n .map(QualifyResult::getName)\n .orElse(\"Failed to qualify\");\n\n\n System.out.println(result);\n\n }catch(Exception Ex){\n\n throw new FlowException(\"Problem reading CDM.\");\n }\n\n\n\n // We retrieve the notary identity from the network map.\n Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0);\n UniqueIdentifier linearId = null;\n if(initFlag) {\n linearId = new UniqueIdentifier();\n }else{\n linearId = UniqueIdentifier.Companion.fromString(id);\n }\n\n\n // We create the transaction components.\n CDMState outputState = new CDMState(status,cdmContent,getOurIdentity(),otherParty,linearId);\n Command command = new Command<>(new CDMTemplateContract.Commands.Action(), getOurIdentity().getOwningKey());\n\n\n // We create a transaction builder and add the components.\n TransactionBuilder txBuilder = new TransactionBuilder(notary);\n\n if(!initFlag) {\n StateAndRef<CDMState> previousState = retrievePreviousState(linearId);\n if(previousState!=null) {\n txBuilder = txBuilder.addInputState(previousState);\n }\n }\n\n txBuilder = txBuilder.addOutputState(outputState, CDMTemplateContract.ID)\n .addCommand(command);\n\n // Signing the transaction.\n SignedTransaction signedTx = getServiceHub().signInitialTransaction(txBuilder);\n\n // Creating a session with the other party.\n FlowSession otherPartySession = initiateFlow(otherParty);\n\n // We finalise the transaction and then send it to the counterparty.\n subFlow(new FinalityFlow(signedTx, otherPartySession));\n\n return null;\n }" ]
[ "0.5987153", "0.5669678", "0.5616026", "0.5570775", "0.55555266", "0.55365306", "0.550266", "0.5381702", "0.53623", "0.5300156", "0.5256553", "0.52464503", "0.52384204", "0.5218848", "0.51773435", "0.5165453", "0.51452625", "0.5118528", "0.5107428", "0.50850695", "0.5081844", "0.5077009", "0.5060413", "0.50514054", "0.5042772", "0.50227493", "0.50209564", "0.49992234", "0.49890995", "0.4970556", "0.49695358", "0.4955406", "0.49461424", "0.49226066", "0.49033085", "0.49021086", "0.48865232", "0.48809597", "0.4880241", "0.4867931", "0.4862096", "0.48613635", "0.48568553", "0.4850451", "0.4849644", "0.48447794", "0.4843642", "0.48399642", "0.4839112", "0.4826708", "0.48253208", "0.48202175", "0.48190567", "0.48169374", "0.4802735", "0.47983477", "0.4796743", "0.47845724", "0.4773326", "0.47669283", "0.47653985", "0.47606334", "0.47551563", "0.47452724", "0.47379193", "0.4733139", "0.47274876", "0.47224262", "0.47136903", "0.47124395", "0.47107607", "0.47088656", "0.47030708", "0.46924642", "0.46910965", "0.46872583", "0.46735406", "0.46698105", "0.46679243", "0.46672913", "0.466705", "0.46664262", "0.4662396", "0.46600667", "0.46592158", "0.46532056", "0.46468154", "0.46456403", "0.46446", "0.4639085", "0.4639085", "0.4639085", "0.4636579", "0.46358582", "0.4634044", "0.4633875", "0.4630777", "0.46255893", "0.46112347", "0.46066076" ]
0.54602295
7
Creates new form ADD
public ADD() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/add\")\n\tpublic String showFormForAdd(Model model) {\n\t\tMemo memo = new Memo();\n\t\t\n\t\t// load categories for select options\n\t\tMap<String, String> mapCategories = generateMapCategories();\n\t\t\n\t\t// add to the model\n\t\tmodel.addAttribute(\"memo\", memo);\n\t\tmodel.addAttribute(\"categories\", mapCategories);\n\t\t\n\t\treturn \"add\";\n\t}", "@RequestMapping(value = \"/add\")\n public String addForm(Model model) {\n model.addAttribute(\"service\",fservice.findAllServices());\n model.addAttribute(\"customer\", mservice.findAllCustomer());\n model.addAttribute(\"customer\", new Customer());\n return \"customer-form\";\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\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 }", "@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}", "FORM createFORM();", "public Add() {\n initComponents();\n }", "public FormInserir() {\n initComponents();\n }", "@GetMapping(\"/list/showFormForAdd\")\n\tpublic String showFormForAdd(Model theModel) {\n\t\tPerson thePerson = new Person();\n\t\ttheModel.addAttribute(\"person\", thePerson);\n\n\t\treturn \"person-form\";\n\t}", "protected void add(HttpServletRequest request) throws ClassNotFoundException, SQLException{\n if(!request.getParameter(\"nome\").equals(\"\")){\n //Adiciona pessoa\n PessoaDAO dao = new PessoaDAO(); \n //String acao = request.getParameter(\"add\");\n int id = 0;\n for(Pessoa t:dao.findAll()){\n id =t.getId();\n }\n id++; \n Pessoa p = new Pessoa(new Integer((String)request.getParameter(\"id\")),request.getParameter(\"nome\"),request.getParameter(\"telefone\"),request.getParameter(\"email\"));\n dao.create(p);\n }\n }", "public void onClickAdd(View v) {\n Intent intent = new Intent(this, ItemFormActivity.class);\n startActivity(intent);\n }", "@GetMapping(\"/showFormForAdd\")\n\tpublic String showFormForAdd(Model theModel) {\n\t\tSkill theSkill = new Skill();\n\t\t\n\t\ttheModel.addAttribute(\"skill\", theSkill);\n\t\t\n\t\treturn \"skill-form\";\n\t}", "@GetMapping(\"/showAddFormUser\")\n\tpublic String showAddForm(Model model) {\n\t\tUser user = new User();\n\t\tmodel.addAttribute(\"user\", user);\n\t\t\n\t\t// add page title\n\t\tmodel.addAttribute(\"pageTitle\", \"Add User\");\n\t\treturn \"user-form\";\n\t}", "public String addNew() {\r\n\t\ttry {\r\n\t\t\tgetNavigationPanel(2);\r\n\t\t\treturn \"questData\";\r\n\t\t} catch(Exception e) {\r\n\t\t\tlogger.error(\"Exception in addNew in action:\" + e);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@GetMapping(\"/showFormForAdd\")\r\n\tpublic String showFormForAdd(Model theModel){\n\t\tCustomer theCustomer = new Customer();\r\n\t\t\r\n\t\ttheModel.addAttribute(\"customer\",theCustomer);\r\n\t\t\r\n\t\treturn \"customer-form\";\r\n\t}", "public abstract void addEditorForm();", "@RequestMapping(value = \"add\", method = RequestMethod.GET)\n public String displayAddPostForm(Model model) {\n\n model.addAttribute(\"title\", \"New Post\");\n model.addAttribute(\"post\", new Post());\n return \"post/add\";\n }", "@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "@GetMapping(\"/add\")\r\n\tpublic String newSave(Model model) {\r\n\t\tmodel.addAttribute(\"trainee\", new Trainee());\r\n\t\treturn \"add-trainee\";\r\n\t}", "Form addElement(Element element);", "public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}", "@GetMapping(\"/userAddForm\")\n\tpublic String userAddForm(Model theModel) {\n\t\tUser theUser = new User();\n\t\ttheModel.addAttribute(\"user\", theUser);\n\t\treturn \"registration-form\";\n\t}", "protected abstract void addFormComponents(final Form<T> form);", "@GetMapping(\"/showFormForAdd\")\n public String showFormForAdd(Model theModel) {\n Categories theCategories = new Categories();\n theModel.addAttribute(\"categories\", theCategories);\n //theModel.addAttribute(\"update\", false);\n return \"loaisanpham-form\"; }", "@RequestMapping(value = \"/add\",method = RequestMethod.GET)\n \tpublic String addPackageForm (@RequestParam(value=\"id\", required=true) Integer programId, Model model) {\n \t\tlogger.info (\"Generated new package form.\");\n\n \t\tmodel.addAttribute (\"pack\", new Package());\n \t\tmodel.addAttribute(\"programId\", programId);\n \t\t\n \t\treturn \"packageAddNew\";\n \t}", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "void add(String prompt, UIFormTest test);", "void onAddClicked();", "@RequestMapping(method = RequestMethod.POST, value = {\"\",\"/\"})\r\n\tpublic ResponseEntity<FormularioDTO> add(@RequestBody @Valid Formulario formulario) throws AuthenticationException {\r\n\t\tformulario.setInstituicao(new Instituicao(authService.getDados().getInstituicaoId()));\r\n\t\treturn new ResponseEntity<>(formularioService.create(formulario), HttpStatus.CREATED);\r\n\t}", "private void addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addActionPerformed\n add();\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}", "@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }", "void addButton_actionPerformed(ActionEvent e) {\n doAdd();\n }", "public void addButton()\n\t{\n\t\tdriver.findElement(By.xpath(\"//input[@name='Insert']\")).click();\n\t}", "@RequestMapping(value = \"add\", method = RequestMethod.GET)\r\n\tpublic ModelAndView add()\r\n\t{\r\n\t\treturn new ModelAndView(\"add\", \"person\", new Person());\r\n\t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "@RequestMapping(\"/recipe/new\")\n public String newRecipe(Model model){\n model.addAttribute(\"recipe\", new RecipeCommand());\n \n return \"recipe/recipeForm\";\n }", "public AddNewSpeciality() {\r\n\t\tsuper(\"Add New Speciality\");\r\n\t\tthis.setLayout(new MigLayout(new LC().fill(), new AC().grow(), new AC().grow()));\r\n\r\n\t\tthis.add(new JLabel(\"Add Speciality\"), new CC().grow().alignX(\"center\"));\r\n\r\n\t\tnewSpeciality = new JTextField(25);\r\n\t\tthis.add(newSpeciality);\r\n\r\n\t\taddNewSpecialityBtn = new JButton(\"Add!\");\r\n\t\taddNewSpecialityBtn.addActionListener(this);\r\n\t\tthis.add(addNewSpecialityBtn);\r\n\r\n\t\tthis.pack();\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setVisible(true);\r\n\t}", "@Override\r\n public void add() {\n String ID =id.getText();\r\n String Name =name.getText();\r\n String form_date =date_start.getText();\r\n String to_date =date_finish.getText();\r\n String Status =status.getText();\r\n String MemberID = MemberId.getText();\r\n ArrayList<String> arr = new ArrayList<String>();\r\n arr.add(ID);\r\n arr.add(Name);\r\n arr.add(form_date);\r\n arr.add(to_date);\r\n arr.add(Status);\r\n arr.add(MemberID);\r\n String PathFile = \"/home/yara/Documents/4year/OODP/Task.txt\";\r\n FileFacade facade = new FileFacade();\r\n facade.Add(PathFile, arr);\r\n }", "@GetMapping(value= \"/add\")\n public String add(Model model) {\n\n \tmodel.addAttribute(\"user\",new User());\n \tmodel.addAttribute(\"success\", true);\n\n \treturn \"addUser\";\n }", "public String handleAdd() \n throws HttpPresentationException, webschedulePresentationException\n { \n\t try {\n\t Project project = new Project();\n saveProject(project);\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n\t } catch(Exception ex) {\n return showAddPage(\"You must fill out all fields to add this project\");\n }\n }", "public void add(ActionEvent e) {\r\n Customer newCustomer = new Customer();\r\n newCustomer.setContactfirstname(tempcontactfirstname);\r\n newCustomer.setContactlastname(tempcontactlastname);\r\n save(newCustomer);\r\n addRecord = !addRecord;\r\n }", "public void addNewAnimalAction() {\n\t\tAnimalModel newAnimalModel = new AnimalModel(\"\", \"\");\n\n\t\teditAnimalDetail(newAnimalModel, AnimalDetailPanel.NEW_ANIMAL);\n\t}", "@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}", "@GetMapping(\"/add\")\n public String add(){\n\n return \"add\";\n }", "public void addButtonClicked(View view) {\n\n Products product = new Products(johnsInput.getText().toString());\n\n dbHandler.addProduct(product);\n printDatabase();\n }", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "@GetMapping(\"/showFormForAdd\") // @RequestMapping(path = \"/showFormForAdd\", method = RequestMethod.GET)\r\n\tpublic String showFormForAdd(Model theModel) {\n\t\tCustomer theCustomer = new Customer();\r\n\t\t\r\n\t\ttheModel.addAttribute(\"customer\", theCustomer);\r\n\t\t\r\n\t\treturn \"customer-form\";\r\n\t}", "@RequestMapping(value = \"/addNewUser.html\", method = RequestMethod.GET)\n\tpublic ModelAndView addNewUser() {\n\n\t\treturn new ModelAndView(\"newUser\", \"form\", new FbUser());\n\n\t}", "public void add() {\n preAdd();\n EntitySelect<T> entitySelect = getEntitySelect();\n entitySelect.setMultiSelect(true);\n getEntitySelect().open();\n }", "private void newTodo() {\r\n String myTodoName = \"Unknown\";\r\n for (Component component : panelSelectFile.getComponents()) {\r\n if (component instanceof JTextField) {\r\n if (component.getName().equals(\"Name\")) {\r\n JTextField textFieldName = (JTextField) component;\r\n myTodoName = textFieldName.getText();\r\n }\r\n }\r\n }\r\n if (myTodoName == null || myTodoName.isEmpty()) {\r\n JOptionPane.showMessageDialog(null, \"New Todo List name not entered!\");\r\n return;\r\n }\r\n myTodo = new MyTodoList(myTodoName);\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save this todoList?\",\r\n \"Save New Todolist\", JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTodo();\r\n }\r\n fileName = null;\r\n todoListGui();\r\n }", "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "public void actionPerformed(ActionEvent e){\n\t\t\topenAdd();\n\t\t}", "@GetMapping( value = {\"/add\"} )\n public String roleAddFrom(Model model) {\n model.addAttribute(\"addStatus\", true);\n model.addAttribute(\"role\", new Role());\n return \"role/addRole\";\n }", "public Add_E() {\n initComponents();\n this.setTitle(\"Add Engineer\");\n }", "@FXML\n private void add() {\n\n var firstName = firstNameTextField.getText();\n var lastName = lastNameTextField.getText();\n\n // validate params\n if (firstName.isBlank() ||\n lastName.isBlank()) {\n alertDialog.show(\"All Fields are Required!\");\n return;\n }\n\n loadingImageView.setVisible(true); // show the loading animation\n\n // make an http request to add new author\n AuthorRequest\n .getInstance()\n .add(firstName, lastName)\n .thenAcceptAsync(success -> Platform.runLater(() -> {\n loadingImageView.setVisible(false);\n String message;\n if (success) {\n message = \"Successful!\";\n // clear all form fields\n firstNameTextField.clear();\n lastNameTextField.clear();\n } else message = \"Something went wrong!\";\n alertDialog.show(message); // show response\n }));\n\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public void btnAddClicked(View view){\n List list = new List(input.getText().toString());\n dbHandler.addProduct(list);\n printDatabase();\n }", "public void addToList(View view) {\n Items newItem = new Items();\n EditText ETNew = (EditText) findViewById(R.id.ETNew);\n newItem.todo = ETNew.getText().toString();\n newItem.done = false;\n helper.create(newItem);\n Toast.makeText(this, \"Item added\", Toast.LENGTH_SHORT).show();\n adaptList2();\n ETNew.setText(\"\");\n ETNew.setHint(\"my new to-do\");\n }", "@RequestMapping(value = \"addQuestion\", method = RequestMethod.POST)\r\n\tpublic ModelAndView addQuestion(@ModelAttribute AdminFormBean formBean) {\r\n\t\tModelAndView modelAndView = new ModelAndView(\"questionPage\");\r\n\t\tquestionService.addQuestion(formBean.getQuestion());\r\n\t\tformBean.setQuestionList(questionService.getQuestionByCategoryId(formBean.getQuestion().getCategoryId()));\r\n\t\tmodelAndView.addObject(\"adminForm\", formBean);\r\n\t\treturn modelAndView;\r\n\t}", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "@GetMapping(\"/directorForm\")\n public String addDirectors(Model model) {\n\n model.addAttribute(\"newDirector\", new Director());\n return \"directorForm\";\n }", "public String createQuiz() {\n quiz = quizEJB.createQuiz(quiz);\n quizList = quizEJB.listQuiz();\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"New record added successfully\"));\n return \"quiz-list.xhtml\";\n }", "void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }", "@GetMapping(\"/service_requests/new\")\n public String newServiceRequest(Model model){\n String role = userService.getRole(userService.getCurrentUserName());\n model.addAttribute(\"role\", role);\n\n model.addAttribute(\"serviceRequest\", new ServiceRequest());\n\n return \"/forms/new_servicerequest.html\";\n }", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "@RequestMapping(\"/fotografo/{idPh}/addAlbum\")\n\tpublic String addAlbum(@PathVariable (\"idPh\") Long idPh, Model model) {\n\n\t\tmodel.addAttribute(\"album\", new Album());\n\t\tmodel.addAttribute(\"fotografo\", this.fotografoService.fotografoPerId(idPh).get());\n\n\t\treturn \"albumForm.html\";\n\t}", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "public abstract void addSelectorForm();", "public AddList() {\n setTitleText(\"Add new List\");\n addButton = new JButton(\"Add\");\n addButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n addButtonActionPerformed(actionEvent);\n }\n });\n addButton(addButton);\n }", "public static void add() {\n Application.currentUserCan( 1 );\n render();\n }", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "public String addNew() throws Exception {\r\n\t\tgetNavigationPanel(2);\r\n\t\tExpensesCategoryModel model = new ExpensesCategoryModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.getData(expenses, request);\r\n\t\texpenses.setLoadFlag(true);\r\n\t\treset();\r\n\t\t//\texpenses.setFlag(true);\r\n\r\n\t\texpenses.setPanelFlag(\"2\");\r\n\t\texpenses.setRetrnFlag(\"success\");\r\n\r\n\t\tmodel.terminate();\r\n\t\treturn \"success\";\r\n\r\n\t}", "@RequestMapping(value = \"/add\")\n\tpublic String addItem(Model model) {\n\t\tmodel.addAttribute(\"item\", new Item());\n\t\tmodel.addAttribute(\"shops\", srepository.findAll());\n\t\treturn \"additem\";\n\t}", "@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }", "@GetMapping(\"/new\")\n public ModelAndView addAttributesForm() {\n return new ModelAndView(\"/sessions/session-create.html\");\n }", "@GetMapping(\"/showForm\")\n public String showFormForAdd(Model theModel) {\n Customer theCustomer = new Customer();\n theModel.addAttribute(\"customer\", theCustomer);\n return \"customer-form\";\n }", "public FrmInsertar() {\n initComponents();\n }", "@RequestMapping(value = \"/pegawai/tambah\", method = RequestMethod.GET)\n\tprivate String add(Model model) {\n\t\tList<ProvinsiModel> provinsiList = provinsiService.getAllProvinsi();\n\t\tList<JabatanModel> jabatanList = jabatanService.getAllJabatan();\n\t\tList<InstansiModel> listInstansi = instansiService.getInstansiByProvinsi(provinsiList.get(0));\n\t\t\n\t\tPegawaiModel pegawai = new PegawaiModel();\n\t\tpegawai.setListJabatan(new ArrayList<JabatanModel>());\n\t\tpegawai.getListJabatan().add(new JabatanModel());\n\t\t\n\t\tmodel.addAttribute(\"pegawai\", pegawai);\n\t\tmodel.addAttribute(\"listInstansi\", listInstansi);\n\t\tmodel.addAttribute(\"listJabatan\", jabatanList);\n\t\tmodel.addAttribute(\"listProvinsi\", provinsiList);\n\t\treturn \"addPegawai\";\n\t}", "@GetMapping(\"/showFormForAdd\")\n public String showFormForAdd(Model theModel) {\n Associate a=new Associate();\n Skill b = new Skill();\n b.setAssociates(a);\n theModel.addAttribute(\"skill\", b);\n return \"skill-form\";\n }", "@RequestMapping(value = \"/add\", method = GET)\n public String addCategory(Model model) {\n model.addAttribute(\"action\", ADD_ACTION);\n model.addAttribute(\"category\", new Category());\n return FORM_VIEW;\n }", "public Student_ADD() {\n initComponents();\n }", "public AddExpensesForm() {\n initComponents();\n }", "@PostMapping(\"/addToDoItem\")\n\tpublic String addToDoItem(@ModelAttribute(\"toDoListForm\") ToDoList toDoListForm) {\n\n\t\tloggedUser = userService.findLoggedUser(); // Access the logged user.\n\n\t\ttoDoListForm.setUser(loggedUser);\n\n\t\ttoDoListForm.setLastUpdate(getDateTime());\n\n\t\ttoDoListService.save(toDoListForm); // Save a new to do list\n\n\t\treturn \"redirect:/welcome\";\n\t}", "public void addButtonClicked(){\n Products products = new Products(buckysInput.getText().toString());\n dbHandler.addProduct(products);\n printDatabase();\n }", "private DefaultListModel<String> addItem(DefaultListModel<String> listModel) {\r\n\t\tString newItem = JOptionPane.showInputDialog(null, \"Name of new exercise:\");\r\n\t\tlistModel.addElement(newItem);\r\n\t\treturn listModel;\r\n\t}", "@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}", "public AddItem() {\n initComponents();\n }", "public void addProj() {\n\t\tbtnAdd.click();\n\t}", "protected JButton createAddButton() {\n JButton butAdd = new JButton();\n butAdd.setIcon(new ImageIcon(getClass().getClassLoader().getResource(\"image/add.jpg\")));\n butAdd.setToolTipText(\"Add a new item\");\n butAdd.addActionListener(new AddItemListener());\n return butAdd;\n }", "@FXML\n\tpublic void add(ActionEvent event) {\n\t\tBrand brand = new Brand();\n\t\tbrand.setLabel(nameTF.getText());\n\t\t\n\n\t\t\n\t\tBrandDelegate.addBrand(brand);\n\t\tJOptionPane.showMessageDialog(null, \"Ajout effectué avec succés\");\n\t}", "private void onClickBtAdd() {\n\t\tDbAdapter db = new DbAdapter(this);\n\t\tdb.open();\n\n\t\tfloat amount = 0;\n\n\t\ttry {\n\t\t\tamount = Float.parseFloat(etAmount.getText().toString());\n\t\t} catch (Exception e) {\n\t\t\tamount = 0;\n\t\t}\n\n\t\t// create a medicine event\n\t\tdb.createMedicineEvent(amount,\n\t\t\t\tnew Functions().getDateAsStringFromCalendar(mCalendar),\n\t\t\t\tspMedicine.getSelectedItemId());\n\n\t\tdb.close();\n\n\t\tActivityGroupTracking.group.restartThisActivity();\n\n\t\t// clear the edittext\n\t\tetAmount.setText(\"\");\n\n\t\t// Go to tracking tab when clicked on add\n\t\tShowHomeTab parentActivity;\n\t\tparentActivity = (ShowHomeTab) this.getParent().getParent();\n\t\tparentActivity.goToTab(DataParser.activityIDTracking);\n\t}", "public abstract void add(Field.RadioData radioData);", "private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\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 }", "public Add_Lecture_Form() {\n initComponents();\n \n this.setVisible(true);\n this.pack();\n this.setLocationRelativeTo(null);\n }", "public void create(ActionEvent actionEvent) {\n String grName = groupName.getText();\n ObservableList memList = addList.getCheckModel().getCheckedItems();\n\n if (memList == null) return;\n\n String memName = \"\";\n for (Object obj : memList ) {\n memName += obj.toString() + \"\\n\";\n }\n if (memName != \"\") {\n sender.requestNewGroup(grName, memName);\n chatUIController.newGr(grName);\n }\n return;\n }" ]
[ "0.6857852", "0.6762898", "0.6679368", "0.6621077", "0.66158456", "0.65839964", "0.65444905", "0.6532181", "0.65221876", "0.6511052", "0.64451665", "0.63761556", "0.6367922", "0.6358682", "0.63578403", "0.6338885", "0.6282221", "0.62608147", "0.625924", "0.6243714", "0.62348074", "0.6206965", "0.62064415", "0.6206402", "0.62060386", "0.61952585", "0.6177744", "0.61687475", "0.61506337", "0.61487406", "0.61426723", "0.6132639", "0.613244", "0.61288565", "0.61132944", "0.6109465", "0.6108394", "0.6105284", "0.61008406", "0.6094283", "0.60926574", "0.6075912", "0.6069376", "0.6067685", "0.60617286", "0.60533065", "0.6026323", "0.60212284", "0.6018907", "0.60155034", "0.600607", "0.59972805", "0.5990329", "0.5977199", "0.59650666", "0.5957665", "0.59566826", "0.59379244", "0.5937335", "0.59337825", "0.59296316", "0.5929532", "0.59257495", "0.592389", "0.5923218", "0.59175473", "0.5907196", "0.5902007", "0.59000045", "0.589952", "0.5882794", "0.5879516", "0.58790565", "0.5878667", "0.58751047", "0.5870461", "0.5854787", "0.58537257", "0.58534884", "0.58497167", "0.5847875", "0.58329874", "0.5805454", "0.58014", "0.5794939", "0.57792616", "0.57673246", "0.5765584", "0.57647645", "0.576416", "0.57521343", "0.57480097", "0.5747032", "0.574679", "0.57435614", "0.5743244", "0.5742298", "0.57346576", "0.5732669", "0.57254714" ]
0.6732591
2
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox<>(); jComboBox2 = new javax.swing.JComboBox<>(); jTextField2 = new javax.swing.JTextField(); jLabel8 = new javax.swing.JLabel(); jTextField3 = new javax.swing.JTextField(); jTextField4 = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenuItem1 = new javax.swing.JMenuItem(); jMenuItem2 = new javax.swing.JMenuItem(); jMenu2 = new javax.swing.JMenu(); jMenuItem3 = new javax.swing.JMenuItem(); jMenuItem4 = new javax.swing.JMenuItem(); jMenuItem5 = new javax.swing.JMenuItem(); jMenuItem6 = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setText("姓名:"); jLabel2.setFont(new java.awt.Font("宋体", 0, 18)); // NOI18N jLabel2.setText("请按提示输入消费者信息:"); jTextField1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField1ActionPerformed(evt); } }); jTextField1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jTextField1KeyTyped(evt); } }); jLabel3.setText("购买商品:"); jLabel4.setText("购买日期:"); jLabel5.setText("年"); jLabel6.setText("月"); jLabel7.setText("日"); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "2016", "2017", "2018" })); jComboBox1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jComboBox1ActionPerformed(evt); } }); jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" })); jComboBox2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jComboBox2MouseClicked(evt); } }); jComboBox2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jComboBox2ActionPerformed(evt); } }); jTextField2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField2ActionPerformed(evt); } }); jTextField2.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jTextField2KeyPressed(evt); } public void keyTyped(java.awt.event.KeyEvent evt) { jTextField2KeyTyped(evt); } }); jLabel8.setText("价格:"); jTextField3.setHorizontalAlignment(javax.swing.JTextField.LEFT); jTextField3.setToolTipText(""); jTextField3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField3ActionPerformed(evt); } }); jTextField3.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jTextField3KeyTyped(evt); } }); jTextField4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField4ActionPerformed(evt); } }); jTextField4.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jTextField4KeyTyped(evt); } }); jButton1.setText("重置"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setText("提交"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jMenu1.setText("系统管理"); jMenuItem1.setText("登录系统"); jMenuItem1.setEnabled(false); jMenuItem1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem1ActionPerformed(evt); } }); jMenu1.add(jMenuItem1); jMenuItem2.setText("退出登录"); jMenuItem2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem2ActionPerformed(evt); } }); jMenu1.add(jMenuItem2); jMenuBar1.add(jMenu1); jMenu2.setText("消费者管理"); jMenu2.setEnabled(false); jMenuItem3.setText("增加消费者信息"); jMenuItem3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem3ActionPerformed(evt); } }); jMenu2.add(jMenuItem3); jMenuItem4.setText("删除消费者信息"); jMenu2.add(jMenuItem4); jMenuItem5.setText("查看消费者信息"); jMenu2.add(jMenuItem5); jMenuItem6.setText("更改消费者信息"); jMenu2.add(jMenuItem6); jMenuBar1.add(jMenu2); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(24, 24, 24))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextField1) .addComponent(jTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE))) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4) .addComponent(jLabel8)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jTextField4)))) .addContainerGap(30, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addGap(53, 53, 53) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(62, 62, 62)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(9, 9, 9) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextField1) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addGap(2, 2, 2) .addComponent(jTextField3)) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(10, 10, 10) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(35, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@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 kunde() {\n initComponents();\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 FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public 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.732017", "0.7291279", "0.7291279", "0.7291279", "0.7286003", "0.7249014", "0.721411", "0.720819", "0.7196242", "0.7190395", "0.71849346", "0.7159721", "0.7148069", "0.70934445", "0.7079763", "0.7056577", "0.6987638", "0.6978011", "0.69549644", "0.69530493", "0.6945049", "0.6942394", "0.6935541", "0.693223", "0.6928088", "0.6924428", "0.69241494", "0.691142", "0.69106644", "0.6893475", "0.68921363", "0.68898267", "0.6889822", "0.6888889", "0.68830574", "0.68813944", "0.6881165", "0.6877479", "0.68752235", "0.68747437", "0.6871299", "0.6859591", "0.6856115", "0.6855173", "0.6855125", "0.6854962", "0.68530196", "0.6852737", "0.6852737", "0.6843147", "0.68370813", "0.68366593", "0.68283623", "0.68281215", "0.6825811", "0.6823924", "0.6823443", "0.68169594", "0.68156785", "0.6809513", "0.68092215", "0.68091464", "0.68080777", "0.6806839", "0.6802871", "0.6795172", "0.67944115", "0.67920417", "0.6790103", "0.6789442", "0.67882615", "0.67874336", "0.6782333", "0.67663395", "0.67655057", "0.6765026", "0.6756117", "0.6755023", "0.67517287", "0.6751031", "0.6743606", "0.6738867", "0.6737393", "0.6735563", "0.67327684", "0.67275465", "0.67266476", "0.6719547", "0.67160183", "0.6713876", "0.6713717", "0.67084426", "0.6706528", "0.670407", "0.67005676", "0.670017", "0.66990566", "0.6697206", "0.6694092", "0.6691282", "0.6689802" ]
0.0
-1
2param constructor for initializing train fields
public Train(String name, Integer number) { super(); this.name = name; this.number = number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Train(){\n}", "public Training() {\n }", "public Training() {\n\n }", "public Instance(Instance inst){\r\n\t\tthis.isTrain = inst.isTrain;\r\n\t\tthis.numInputAttributes = inst.numInputAttributes;\r\n\t\tthis.numOutputAttributes = inst.numOutputAttributes;\r\n\t\tthis.numUndefinedAttributes = inst.numUndefinedAttributes;\r\n\r\n\t\tthis.anyMissingValue = Arrays.copyOf(inst.anyMissingValue, inst.anyMissingValue.length);\r\n\r\n\t\tthis.nominalValues = new String[inst.nominalValues.length][];\r\n\t\tfor(int i=0;i<nominalValues.length;i++){\r\n\t\t\tthis.nominalValues[i] = Arrays.copyOf(inst.nominalValues[i],inst.nominalValues[i].length);\r\n\t\t}\r\n\r\n\t\tthis.intNominalValues = new int[inst.intNominalValues.length][];\r\n\t\tfor(int i=0;i<nominalValues.length;i++){\r\n\t\t\tthis.intNominalValues[i] = Arrays.copyOf(inst.intNominalValues[i],inst.intNominalValues[i].length);\r\n\t\t}\r\n\r\n\t\tthis.realValues = new double[inst.realValues.length][];\r\n\t\tfor(int i=0;i<realValues.length;i++){\r\n\t\t\tthis.realValues[i] = Arrays.copyOf(inst.realValues[i],inst.realValues[i].length);\r\n\t\t}\r\n\r\n\t\tthis.missingValues = new boolean[inst.missingValues.length][];\r\n\t\tfor(int i=0;i<missingValues.length;i++){\r\n\t\t\tthis.missingValues[i] = Arrays.copyOf(inst.missingValues[i],inst.missingValues[i].length);\r\n\t\t}\r\n\t}", "public TrainAbstract() {\n\t\tthis.id = \"\";\n\t\tthis.departure = new Departure();\n\t\tthis.arrivalTerminus = new ArrivalTerminus();\n\t\tthis.location = new Location(\"\", \"\");\n\t\tthis.stopPoints = new ArrayList<ArrivalStopPoint>();\n\t}", "DataGenModel()\n {\n }", "@Test\n\tpublic void constructorTest() {\n\t\tCTRNN testCtrnn = new CTRNN(layout1, phenotype1, false);\n\t\tAssert.assertEquals(1.0, testCtrnn.inputWeights[0], 0.001);\n\t\tAssert.assertEquals(2.0, testCtrnn.hiddenWeights[0][0], 0.001);\n\t\tAssert.assertArrayEquals(new double[] {3.0, 4.0}, testCtrnn.biasWeights, 0.001);\n\t\tAssert.assertArrayEquals(new double[] {5.0, 6.0}, testCtrnn.gains, 0.001);\n\t\tAssert.assertArrayEquals(new double[] {7.0, 8.0}, testCtrnn.timeConstants, 0.001);\n\t\t\n\t}", "void setTrainData(DataModel trainData);", "public WekaLogitLearner() { super(new Logistic2()); }", "public Training(String name) {\n this.name = name;\n this.timestamp = System.currentTimeMillis() / 1000;\n }", "public DriveTrain()\n\t{\n\t\tleftMotor1 = new VictorSPX(DriveTrainConstants.leftFrontMotorChannel);\n\t\tleftMotor2 = new VictorSPX(DriveTrainConstants.leftRearMotorChannel);\n\t\trightMotor1 = new VictorSPX(DriveTrainConstants.rightFrontMotorChannel);\n\t\trightMotor2 = new VictorSPX(DriveTrainConstants.rightRearMotorChannel);\n\n\t\tleftMotor1.setInverted(DriveTrainConstants.leftMotorInverted);\n\t\trightMotor1.setInverted(DriveTrainConstants.rightMotorInverted);\n\n\t\tleftMotor2.setInverted(InvertType.FollowMaster);\n\t\trightMotor2.setInverted(InvertType.FollowMaster);\n\n\t\tleftMotor2.set(ControlMode.Follower, leftMotor1.getDeviceID());\n\t\trightMotor2.set(ControlMode.Follower, rightMotor1.getDeviceID());\n\t}", "public EnsembleLettre() {\n\t\t\n\t}", "public TRIP_Sensor () {\n super();\n }", "public WeightingModel(){}", "public DriveTrain() {\n for(int i = 0; i < 2; i++) {\n leftMotors[i] = new CANSparkMax(Constants.LEFT_DRIVE_CANS[i], MotorType.kBrushless);\n rightMotors[i] = new CANSparkMax(Constants.RIGHT_DRIVE_CANS[i], MotorType.kBrushless);\n rightMotors[i].setInverted(true);\n }\n }", "public MdnFeatures()\n {\n }", "private RegressionPrior() { \n /* empty constructor */\n }", "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Train(Location village1, Location village2) {\n this.start = village1;\n this.destination = village2;\n // when train is created, it is at the start location\n this.current = start;\n this.occupied = false;\n }", "public TwoClassConfusionMatrix() {\n\t}", "public Train(List<Car> tab)\n\t{\n\t\tthis.cars = new CopyOnWriteArrayList<Car>();\n\t\tfor (Car car : tab)\n\t\t{\n\t\t\tthis.cars.add(car);\n\t\t\tcar.setTrain(this);\n\t\t} \n\t}", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public ActuatorData()\n\t{\n\t\tsuper(); \n\t}", "public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }", "protected void initialize() { \n param1 = SmartDashboard.getNumber(\"param1\");\n param2 = SmartDashboard.getNumber(\"param2\");\n param3 = SmartDashboard.getNumber(\"param3\");\n param4 = SmartDashboard.getNumber(\"param4\");\n command = new C_DriveBasedOnEncoderWithTwist(param1, param2, param3);\n }", "public Drivetrain() {\n // Use inches as unit for encoder distances\n m_leftEncoder.setDistancePerPulse(initialDistancePerPulse);\n m_rightEncoder.setDistancePerPulse(initialDistancePerPulse);\n resetEncoders();\n }", "TDrawingConstructor (ArrayList interpretation){\r\n fInterpretation=interpretation;\r\n}", "public ConnectedComponentFromSeed()\r\n/* 25: */ {\r\n/* 26: 32 */ this.inputFields = \"input, seed\";\r\n/* 27: 33 */ this.outputFields = \"output\";\r\n/* 28: */ }", "public static void init() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n drivetrainSpeedController1 = new CANTalon(1);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 1\", (CANTalon) drivetrainSpeedController1);\n \n drivetrainSpeedController2 = new CANTalon(2);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController2);\n drivetrainSpeedController3 = new CANTalon(3);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController3);\n drivetrainSpeedController4 = new CANTalon(4);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController4);\n drivetrainSpeedController5 = new CANTalon(5);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController5);\n drivetrainSpeedController6 = new CANTalon(6);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController6);\n \n drivetrainRobotDrive21 = new RobotDrive(drivetrainSpeedController1, drivetrainSpeedController2, drivetrainSpeedController3, drivetrainSpeedController4, drivetrainSpeedController5, drivetrainSpeedController6);\n \n drivetrainRobotDrive21.setSafetyEnabled(true);\n drivetrainRobotDrive21.setExpiration(0.1);\n drivetrainRobotDrive21.setSensitivity(0.5);\n drivetrainRobotDrive21.setMaxOutput(1.0);\n\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public DriveTrain(int lf, int lr, int rf, int rr){\n this.left = new side(lf, lr);\n this.right = new side(rf, rr);\n }", "public Factory() {\n\t\tnb_rounds = 0; \n\t\tnb_to_train = 0; \n\t\ttraining_queue = new LinkedList<Pair<Soldier, Integer>>(); \n\t\tcurrent = null;\n\t}", "public BaseParameters(){\r\n\t}", "protected ParameterList(){\n //title = t;\n //cellWorld = cw;\n }", "public Student (String first, String last)\n {\n firstName = first;\n lastName = last;\n testScore1 = 0;\n testScore2 = 0;\n testScore3 = 0;\n }", "public AttributeDiscretization() {\n\n }", "public Train(Integer N){\n\t\tthis.seats = N;\n\t\tSystem.out.println(\"Created Train: \"+this.seats+\" seats\");\n\t}", "public InstanceGenerator(Instances training, Instances testing)\n {\n mTraining = training;\n mTesting = testing;\n }", "public AzureDataLakeStoreDataset() {\n }", "public SceneFurniRecord ()\n {\n }", "public DriveTrain (int motorChannelL1,int motorChannelL2,int motorChannelR1,int motorChannelR2 ){\n leftMotor1 = new Victor(motorChannelL1);\n leftMotor2 = new Victor(motorChannelL2);\n rightMotor1 = new Victor(motorChannelR1);\n rightMotor2 = new Victor(motorChannelR2);\n highDrive = new RobotDrive(motorChannelL1, motorChannelR1);\n lowDrive = new RobotDrive(motorChannelL2, motorChannelR2);\n \n }", "public Contructor(int year, String name) {\n // constructor name must match class name and cannot have return type\n // all classes have constructor by default\n // f you do not create a class constructor yourself, Java creates one for you.\n // However, then you are not able to set initial values for object attributes.\n // constructor can also take parameters\n batchYear = year;\n studentName = name;\n }", "protected BaseFeat()\n {\n super(TYPE);\n }", "public Identity()\n {\n super( Fields.ARGS );\n }", "public InitialData(){}", "public Drivetrain() {\n leftFrontMotor.getPIDController().setP(leftkP);\n leftFrontMotor.getPIDController().setI(leftkI);\n leftFrontMotor.getPIDController().setD(leftkD);\n leftFrontMotor.getPIDController().setFF(leftkFF);\n\n leftBackMotor.getPIDController().setP(leftkP);\n leftBackMotor.getPIDController().setI(leftkI);\n leftBackMotor.getPIDController().setD(leftkD);\n leftBackMotor.getPIDController().setFF(leftkFF);\n\n rightFrontMotor.getPIDController().setP(rightkP);\n rightFrontMotor.getPIDController().setI(rightkI);\n rightFrontMotor.getPIDController().setD(rightkD);\n rightFrontMotor.getPIDController().setFF(rightkFF);\n\n rightBackMotor.getPIDController().setP(rightkP);\n rightBackMotor.getPIDController().setI(rightkI);\n rightBackMotor.getPIDController().setD(rightkD);\n rightBackMotor.getPIDController().setFF(rightkFF);\n }", "public PajekNetReader(boolean unique_labels)\n {\n this(unique_labels, false);\n }", "public StudentCourse() {\n this(\"student_course\", null);\n }", "public DriveTrain(side left, side right){\n this.left = left;\n this.right = right;\n this.gear = new twoSpeed();\n }", "public SensorData() {\n\n\t}", "protected DirectProductNodeModel() {\n\t\tsuper(2, 1);\n\t}", "TrainingTest createTrainingTest();", "@Override\n protected void readConstructorParams( DataInput in ) throws\n\t\t\t\t\t\t\tIOException {\n vertexCount = in.readInt();\n vertexFormat = in.readInt();\n texCoordSetCount = in.readInt();\n texCoordSetMap = new int[in.readInt()];\n for(int i=0; i<texCoordSetMap.length; i++)\n texCoordSetMap[i] = in.readInt();\n\n super.readConstructorParams( in );\n }", "MotifLearner(){\n notes = new ArrayList<>();\n times = new ArrayList<>();\n }", "public StudentRecord(Student s, Department dep, Degree deg, Term tb, List<Professor> a, List<Professor> c,\r\n List<CourseTaken> ct, List<String> n){\r\n student = s;\r\n department = dep;\r\n degreeSought = deg;\r\n termBegan = tb;\r\n advisors = a;\r\n committee = c;\r\n coursesTaken = ct;\r\n notes = n;\r\n }", "@Override\n public void initialize() {\n drivetrain.resetEncoders();\n }", "public DatasetReader()\n\t{\n\t\treviews = new ArrayList<Review>();\n\t\tratings = new HashMap<Double,List<Double>>();\n\t\tproducts = new HashMap<String, Map<String,Double>>();\n\t\tproductRatings = new HashMap<String, List<Double>>();\n\t\treInstanceList = new ArrayList<ReviewInstance>();\n\t\treInstanceMap = new HashMap<String, ReviewInstance>();\n\t}", "public abstract void setTrainParams(ClassificationMethod method,URL model,Map<String,Object> args) throws ClassificationException;", "protected void initialize() {\r\n x = 0;\r\n y = 0;\r\n driveTrain.reInit();\r\n }", "public DriveTrain() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n leftFrontTalon = new WPI_TalonSRX(11);\n leftRearTalon = new WPI_TalonSRX(12);\n rightFrontTalon = new WPI_TalonSRX(13);\n rightRearTalon = new WPI_TalonSRX(14);\n victorTestController = new WPI_VictorSPX(4);\n robotDrive41 = new RobotDrive(leftRearTalon, leftFrontTalon,rightFrontTalon, rightRearTalon);\n \n robotDrive41.setSafetyEnabled(false);\n robotDrive41.setExpiration(0.1);\n robotDrive41.setSensitivity(0.5);\n robotDrive41.setMaxOutput(1.0);\n\n \n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\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}", "public StudentRecord() {}", "private void __sep__Constructors__() {}", "public TargetGeneratorModel()\n {\n }", "public Sample()\n {\n inputs = new ArrayList<>();\n outputs = new ArrayList<>();\n numberOfInputs = 0;\n numberOfOutputs = 0;\n comment = \"\";\n }", "public Building(String[] line){\n setId(Integer.parseInt(line[0]));\n setRank(Integer.parseInt(line[1]));\n setName(line[2]);\n setCity(line[3]);\n setCountry(line[4]);\n setHeight_m(Double.parseDouble(line[5]));\n setHeight_ft(Double.parseDouble(line[6]));\n setFloors(line[7]);\n setBuild(line[8]);\n setArchitect(line[9]);\n setArchitectual_style(line[10]);\n setCost(line[11]);\n setMaterial(line[12]);\n setLongitude(line[13]);\n setLatitude(line[14]);\n // setImage(line[15]);\n\n }", "public interface FmTrainParams<T> extends\n HasLabelCol<T>,\n HasVectorColDefaultAsNull<T>,\n HasWeightColDefaultAsNull<T>,\n HasEpsilonDv0000001<T>,\n HasFeatureColsDefaultAsNull<T>,\n FmCommonTrainParams<T> {\n\n /**\n * @cn-name 迭代数据batch size\n * @cn 数据batch size\n */\n ParamInfo<Integer> MINIBATCH_SIZE = ParamInfoFactory\n .createParamInfo(\"batchSize\", Integer.class)\n .setDescription(\"mini-batch size\")\n\t\t\t.setAlias(new String[]{\"minibatchSize\"})\n .setHasDefaultValue(-1)\n .build();\n\n default Integer getBatchSize() {\n return get(MINIBATCH_SIZE);\n }\n\n default T setBatchSize(Integer value) {\n return set(MINIBATCH_SIZE, value);\n }\n}", "public CompositeData()\r\n {\r\n }", "public LinearNeuron(int inputs)\n\t{\n\t\tsuper(inputs);\n\t}", "protected void initialize() {\n //drivetrain.initGyro();\n }", "@Override\n public void construct() {\n Metric metric =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom earthSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n @Override\n public String name() {\n return EARTH_KEY;\n }\n };\n Symptom moonSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return MOON_KEY;\n }\n };\n\n Metric skyLabCpu =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom skyLabsSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return SKY_LABS_KEY;\n }\n };\n\n addLeaf(metric);\n addLeaf(skyLabCpu);\n earthSymptom.addAllUpstreams(Collections.singletonList(metric));\n moonSymptom.addAllUpstreams(Collections.singletonList(earthSymptom));\n skyLabsSymptom.addAllUpstreams(\n new ArrayList<Node<?>>() {\n {\n add(earthSymptom);\n add(moonSymptom);\n add(skyLabCpu);\n }\n });\n\n metric.addTag(LOCUS_KEY, EARTH_KEY);\n earthSymptom.addTag(LOCUS_KEY, EARTH_KEY);\n moonSymptom.addTag(LOCUS_KEY, MOON_KEY);\n skyLabCpu.addTag(LOCUS_KEY, SKY_LABS_KEY);\n skyLabsSymptom.addTag(LOCUS_KEY, SKY_LABS_KEY);\n }", "public Test05() {\n this(0);\n n2 = \"n2\";\n n4 = \"n4\";\n }", "private TbusRoadGraph() {}", "public TradeData() {\r\n\r\n\t}", "public Train(int engineNumber,String companyName, int numberOfRailCars, String destinationCity) {\r\n\t\tthis.engineNumber = engineNumber;\r\n\t\tthis.companyName = companyName;\r\n\t\tthis.numberOfRailCars = numberOfRailCars;\r\n\t\tthis.destinationCity = destinationCity;\r\n\t}", "load initload(load iLoad)\n {\n iLoad.setSNo(\"SNo\");\n iLoad.setLength(\"Length\");\n iLoad.setGirth(\"Girth\");\n iLoad.setQuantity(\"Quantity\");\n iLoad.setClassA(\"ClassA\");\n iLoad.setClassB(\"ClassB\");\n iLoad.setClassC(\"ClassC\");\n iLoad.setClassD(\"ClassD\");\n iLoad.setTotalCFT(\"TotalCFT\");\n iLoad.setRate(\"Rate\");\n iLoad.setAmount(\"Amount\");\n \n return iLoad;\n }", "public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }", "public Student()\r\n {\r\n // initialise variables with defult values\r\n ID=-1;\r\n Name=null;\r\n University=null;\r\n Department=null;\r\n term=0;\r\n cgpa=0.0;\r\n Gpa=new double[10];\r\n Creditsandgrades=new double[10][10][10];\r\n }", "public LineData()\n\t{\n\t}", "public CustomEntitiesTaskParameters() {}", "public InterpolationModel() {\n\tUnigram = new UnigramModel();\n\tBigram = new BigramModel();\n\tTrigram = new TrigramModel();\n }", "public DriveTrain() {\n\n\t\tleft1 = new CANTalon(RobotMap.DMTOPleft);\n\t\tleft2 = new CANTalon(RobotMap.DMMIDDLEleft);\n\t\tleft3 = new CANTalon(RobotMap.DMBOTTOMleft);\n\t\tright1 = new CANTalon(RobotMap.DMTOPright);\n\t\tright2 = new CANTalon(RobotMap.DMMIDDLEright);\n\t\tright3 = new CANTalon(RobotMap.DMBOTTOMright);\n\t\tright = new Encoder(RobotMap.DRIVEencoderRA, RobotMap.DRIVEencoderRB, false, Encoder.EncodingType.k4X);\n\t\tleft = new Encoder(RobotMap.DRIVEencoderLA, RobotMap.DRIVEencoderLB, true, Encoder.EncodingType.k4X);\n\t\tspeedShifter = new DoubleSolenoid(RobotMap.PCM, RobotMap.SHIFTLOW, RobotMap.SHIFTHI);\n\t\tultrasonic = new AnalogInput(RobotMap.ULTRASONICDT);\n\t\tservo = new Servo(RobotMap.SERVO_drivetrain);\n\n\t\t// TODO: set left and right encoder distance per pulse here! :)\n\n\t\tspeedShifter.set(DoubleSolenoid.Value.kReverse);\n\t\tdouble dpp = 3 * ((6 * Math.PI) / 1024); // distance per pulse\n\t\t\t\t\t\t\t\t\t\t\t\t\t// (circumference/counts per\n\t\t\t\t\t\t\t\t\t\t\t\t\t// revolution)\n\t\tright.setDistancePerPulse(dpp); // must be changed for both right and\n\t\t\t\t\t\t\t\t\t\t// left\n\t\tleft.setDistancePerPulse(dpp);\n\n\t}", "@Override\n\tprotected void initializeFields() {\n\n\t}", "public TournamentAdaptativeModel()\n {\n this(0.10, 0.15, 0.20);\n }", "public FeatureExtraction() {\n\t}", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "@Generated\n public NewsModel() {\n }", "public Trainer(double[][] data, double[] attribute, int hiddenLayerNodeCount, int outputLayerNodeCount){\r\n this.data = data;\r\n this.attribute = attribute;\r\n hiddenLayer = new Node[hiddenLayerNodeCount];\r\n outputLayer = new Node[outputLayerNodeCount];\r\n activation = new double[hiddenLayerNodeCount];\r\n desireHiddenLayerActivation = new double[hiddenLayerNodeCount];\r\n for (int i = 0; i < hiddenLayerNodeCount; i++) {\r\n hiddenLayer[i] = new Node(0.5, data[0].length - 1);\r\n }\r\n for (int i = 0; i < outputLayerNodeCount; i++) {\r\n outputLayer[i] = new Node(0.5, activation.length);\r\n }\r\n }", "public YonetimliNesne() {\n }", "public PassCost() {\r\n\r\n }", "public Data() {\n \n }", "public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }", "public Pasien() {\r\n }", "public JTensor() {\n this(TH.THTensor_(new)());\n }", "public Data(int n) {\n this(n, 0.5);\n }", "public TestItem(Test var1, double var2) {\n this.test = var1;\n this.score = var2;\n }", "@Test\n public void testConstructor(){\n new RowGen(ROW_INDEX, spaces);\n }", "public PointRecord(){\n \n }", "public Parameters() {\n\t}" ]
[ "0.6935027", "0.66980374", "0.6652157", "0.62076783", "0.6163971", "0.6134098", "0.6109879", "0.6046071", "0.6041546", "0.5935233", "0.59049207", "0.58645797", "0.58422", "0.58375037", "0.5829307", "0.5814853", "0.58099884", "0.5800058", "0.57881856", "0.57780904", "0.5775827", "0.5718199", "0.57057333", "0.5705106", "0.57027996", "0.56793964", "0.5678363", "0.56692183", "0.5661292", "0.5661114", "0.5647354", "0.5639652", "0.56392765", "0.56324714", "0.56258416", "0.56246626", "0.5618157", "0.5617884", "0.5611366", "0.5611123", "0.56108713", "0.5608125", "0.5607894", "0.55916846", "0.5589452", "0.5588263", "0.55825335", "0.5577226", "0.5571218", "0.55648875", "0.5563885", "0.5558269", "0.55524415", "0.55441815", "0.55420035", "0.5538651", "0.5537883", "0.55377686", "0.5537384", "0.5537285", "0.5534149", "0.5531969", "0.5519821", "0.55147064", "0.5512626", "0.55090404", "0.55089295", "0.5505728", "0.5502197", "0.55012184", "0.54988104", "0.54889923", "0.5485879", "0.5473787", "0.54714763", "0.54680926", "0.546282", "0.5452172", "0.5451625", "0.5448845", "0.5447491", "0.5445005", "0.5444648", "0.5443686", "0.54369926", "0.5436505", "0.54353786", "0.5434006", "0.54335105", "0.54329884", "0.54316175", "0.5428596", "0.54273975", "0.5421779", "0.54169065", "0.5413083", "0.5411896", "0.5410719", "0.5404174", "0.5396787" ]
0.5985992
9
Main method for invoking a command. Must be overwritten by the specific implementation. When this method gets called by the framework, both hasValidArgumentValues() and hasValidNumberOfArguments() have already been called.
@NotNull @Override protected Optional<Value> execute(@NotNull ImmutableList<Parameter> arguments) { double rowIndex = arguments.get(0).value().realPart(); double columnIndex = arguments.get(1).value().realPart(); Value printValue = arguments.get(2).value(); getEnvironment().getHomeScreen().printAt(printValue, (int) columnIndex, (int) rowIndex); return Optional.empty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean commandExecution(CommandSender sender, String label, String[] args);", "@Override\n public ValidationResults validArguments(String[] arguments) {\n final int MANDATORY_NUM_OF_ARGUMENTS = 1;\n if (arguments.length == MANDATORY_NUM_OF_ARGUMENTS) {\n // Check if CommandMAN was called on itself (Checker doesn't need to\n // validate CommandMAN twice).\n if (arguments[0].equals(this.getCommandName())) {\n this.toDocument = this; // man will document itself.\n } else {\n // Man will document this command object.\n try {\n this.toDocument = Checker.getCommand(arguments[0], true);\n } catch (Exception ex) {\n return new ValidationResults(false, \"No manual entry for \"\n + arguments[0]); // CMD does not exist.\n }\n }\n return new ValidationResults(true, null);\n }\n return new ValidationResults(false, \"Requires \"\n + MANDATORY_NUM_OF_ARGUMENTS + \" argument.\");\n }", "@Test(expectedExceptions=InvalidArgumentValueException.class)\n public void argumentValidationTest() {\n String[] commandLine = new String[] {\"--value\",\"521\"};\n\n parsingEngine.addArgumentSource( ValidatingArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n ValidatingArgProvider argProvider = new ValidatingArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 521, \"Argument is not correctly initialized\");\n\n // Try some invalid arguments\n commandLine = new String[] {\"--value\",\"foo\"};\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n }", "public static void main(String[] args) {\r\n\t\tCommandLine top = new CommandLine(new Main());\r\n\t\tif (args.length == 0) {\r\n\t\t\ttop.usage(System.out);\r\n\t\t}\r\n\t\t\r\n\t\tList<CommandLine> parsedCommands;\r\n\t\ttry {\r\n\t\t parsedCommands = top.parse(args);\r\n\t\t} catch (ParameterException ex) { // incorrect user input for one of the subcommands\r\n\t\t LOG.severe(\"Error parsing command line: \" + ex.getMessage());\r\n\t\t ex.getCommandLine().usage(System.out); // get the offended subcommand from the exception\r\n\t\t return;\r\n\t\t}\r\n\t\t\r\n\t\tfor (CommandLine parsed : parsedCommands) {\r\n\t\t if (parsed.isUsageHelpRequested()) {\r\n\t\t parsed.usage(System.out);\r\n\t\t return;\r\n\t\t } else if (parsed.isVersionHelpRequested()) {\r\n\t\t parsed.printVersionHelp(System.out);\r\n\t\t return;\r\n\t\t }\r\n\t\t}\r\n\t\tObject last = parsedCommands.get(parsedCommands.size() - 1).getCommand();\r\n\t\tif (last instanceof Runnable) {\r\n\t\t ((Runnable) last).run();\r\n\t\t return;\r\n\t\t}\r\n\t}", "@Test\r\n public void testCheckInput() throws Exception {\r\n System.out.println(\"checkInput\");\r\n System.out.println(\"test1\");\r\n String[] arguments = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"};\r\n CommandLineArgumentParser instance =new CommandLineArgumentParser(arguments);\r\n String expResult = \"correct\";\r\n String result = instance.checkInput(arguments);\r\n assertEquals(expResult, result);\r\n \r\n System.out.println(\"test 2\");\r\n String[] arguments2 = {\"1k\",\"test.txt\",\"1\"};\r\n String expResult2 = \"correct\";\r\n String result2 = instance.checkInput(arguments2);\r\n assertEquals(expResult2, result2);\r\n \r\n System.out.println(\"test 3\");\r\n String[] arguments3 = {\"chat.txt\"};\r\n String expResult3 = \"correct\";\r\n String result3 = instance.checkInput(arguments3);\r\n assertEquals(expResult3, result3);\r\n \r\n System.out.println(\"test 4\");\r\n String[] arguments4 = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\"};\r\n String expResult4 = \"Incorrect number of arguments\";\r\n String result4 = instance.checkInput(arguments4);\r\n assertEquals(expResult4, result4);\r\n \r\n System.out.println(\"test 5\");\r\n String[] arguments5 = {};\r\n String expResult5 = \"Need at least one argument with input file path\";\r\n String result5 = instance.checkInput(arguments5);\r\n assertEquals(expResult5, result5);\r\n }", "public void execute() throws MissingDescriptionException, InvalidCommandException {\n }", "@Override\n public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {\n\n // If the sender is a PLAYER\n if (sender instanceof Player) {\n final Player p = (Player) sender;\n\n // If there are arguments and not the main command alone\n if (args.length > 0) {\n boolean cont = false;\n CmdProperties cmdClass = null;\n\n // Assign all commands to their name in the hashmap\n for (final Map.Entry<String, CmdProperties> entry : commandClasses.entrySet()) {\n if (!cont) {\n if (entry.getKey().equalsIgnoreCase(args[0])) {\n cont = true;\n cmdClass = entry.getValue();\n }\n }\n }\n\n // check for permission i think? idk whats entirely going on here, review later\n if (cont) {\n final int argsNeeded = cmdClass.getLength();\n if (args.length - 1 >= argsNeeded) {\n if (p.hasPermission(cmdClass.getPermission())) {\n if (args[argsNeeded] == null) {\n args[argsNeeded] = \"Nothing\";\n }\n final StringBuilder sb = new StringBuilder();\n for (int i = argsNeeded; i < args.length; i++) {\n sb.append(args[i]).append(\" \");\n }\n\n final String allArgs = sb.toString().trim();\n if (cmdClass.isAlias())\n cmdClass.getAlias().perform(p, allArgs, args);\n else\n cmdClass.perform(p, allArgs, args);\n return true;\n } else {\n // D: no permission!\n MsgUtils.error (sender, \"(no permission)\");\n return true;\n }\n } else {\n // Not the right amount of arguments for the command. Maybe put something like cmdClass.getUsage() here to show the player how to use the command\n MsgUtils.error (sender, cmdClass.getUsage());\n return true;\n }\n } else {\n // The argument doesn't exist.\n MsgUtils.error (sender, \"/ca \" + MsgUtils.Colors.VARIABLE + args[0] + MsgUtils.Colors.ERROR + \" is not a command\");\n return true;\n }\n } else {\n // Not enough arguments (show help here)\n MsgUtils.raw(p, \"&e-=-=-=- &7Availible &bClanArena &7Commands: &e-=-=-=-\");\n for (final Map.Entry<String, CmdProperties> entry : commandClasses.entrySet()) {\n if (p.hasPermission(entry.getValue().getPermission())) {\n MsgUtils.sendMessage(p, \"/ca \" + MsgUtils.Colors.VARIABLE + entry.getKey() + MsgUtils.Colors.INFO + \": \" + entry.getValue().getHelpMessage());\n }\n }\n return true;\n }\n } else {\n // Sender isn't a player\n MsgUtils.error (sender, \"Sorry! No console commands are available yet :(\");\n return true;\n }\n }", "private static void validateCommandLineArguments(AutomationContext context, String extendedCommandLineArgs[])\r\n\t{\r\n\t\t//fetch the argument configuration types required\r\n\t\tCollection<IPlugin<?, ?>> plugins = PluginManager.getInstance().getPlugins();\r\n \t\tList<Class<?>> argBeanTypes = plugins.stream()\r\n\t\t\t\t.map(config -> config.getArgumentBeanType())\r\n\t\t\t\t.filter(type -> (type != null))\r\n\t\t\t\t.collect(Collectors.toList());\r\n\t\t\r\n\t\targBeanTypes = new ArrayList<>(argBeanTypes);\r\n\t\t\r\n\t\t//Add basic arguments type, so that on error its properties are not skipped in error message\r\n\t\targBeanTypes.add(AutoxCliArguments.class);\r\n\r\n\t\t//if any type is required creation command line options and parse command line arguments\r\n\t\tCommandLineOptions commandLineOptions = OptionsFactory.buildCommandLineOptions(argBeanTypes.toArray(new Class<?>[0]));\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tcommandLineOptions.parseBeans(extendedCommandLineArgs);\r\n\t\t} catch(MissingArgumentException e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\r\n\t\t\tSystem.err.println(commandLineOptions.fetchHelpInfo(COMMAND_SYNTAX));\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch(Exception ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t\tSystem.err.println(commandLineOptions.fetchHelpInfo(COMMAND_SYNTAX));\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "public interface Command {\n int run(String[] args) throws IllegalArgumentException;\n}", "public CommandArguments parse(String[] args) {\n ErrorSupport command = new ErrorSupport();\n command.checkLength(args);\n\n //parsing arguments\n CommandArguments arguments = new CommandArguments();\n for (int i = 0; i < args.length; i++) {\n if ((i == args.length - 1) && !args[i].equals(\"--help\")) {\n throw new IllegalArgumentException(\"Incorrect argument, --help for more information about app syntax\");\n }\n switch (args[i]) {\n case (\"--help\"):\n System.out.println(\"\\nHELP MENU \\nAvailable options and arguments: \\n \\t--latitude x \\t-enter latitude coordinate \\n \\t--longitude x\\t-enter longitude coordinate \\n \\t--sensorid x \\t-enter sensor's Id \\n \\t--apikey x \\t\\t-enter API key \\n \\t--history x \\t-enter number of hours to display from history data\\n\");\n System.exit(0);\n case (\"--latitude\"):\n i++;\n arguments.setLatitude(command.checkIsDouble(args[i]));\n break;\n case (\"--longitude\"):\n i++;\n arguments.setLongitude(command.checkIsDouble(args[i]));\n break;\n case (\"--sensorid\"):\n i++;\n arguments.setSensorId(command.checkIsInt(args[i]));\n break;\n case (\"--apikey\"):\n i++;\n arguments.setApiKey(command.checkApiKey(args[i]));\n break;\n case (\"--history\"):\n i++;\n arguments.setHistory(command.checkIsInt(args[i]));\n break;\n default:\n throw new IllegalArgumentException(\"Incorrect option, --help for more information about app syntax\");\n }\n }\n\n //checking environment API_KEY if there was no apikey in command line entered\n if (!arguments.hasApiKey() && System.getenv(\"API_KEY\") == null) {\n throw new IllegalArgumentException(\"No API Key found, check if you have entered the correct key or if there is a suitable environment variable ( API_KEY ), --help for more information about app syntax\");\n } else if (!arguments.hasApiKey()) {\n arguments.setApiKey(command.checkApiKey(System.getenv(\"API_KEY\")));\n }\n return arguments;\n }", "public Command() {\n this.arguments = new String[0];\n }", "public void execute() {\n\t\ttry {\n\t\t\tMethod method = this.getClass().getMethod(parseMethod(), new Class[0]);\n\t\t\tmethod.invoke(this, new Object[0]);\n\t\t} catch (NoSuchMethodException | SecurityException e) {\n\t\t\tSystem.out.println(\"Unknown option: \" + command);\n\t\t} catch (IllegalAccessException | IllegalArgumentException e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Invalid usage of: \" + command + \", the following error \" + \"was given: \" + e.getMessage());\n\t\t} catch (InvocationTargetException e) {\n\t\t\tSystem.out.println(\"An error occurred while executing '\" + command + \"'. The \"\n\t\t\t\t\t+ \"following error was given: \" + e.getCause());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void exec(CommandSender sender, String[] args);", "public static boolean handle(String arguments) {\n String[] args = arguments.split(\" \");\n if (args.length == 0 || arguments.length() == 0) {\n System.out.println(\"No commands are given.\");\n return false;\n }\n switch (args[0]) {\n case \"C\":\n if (args.length != 2) {\n System.out.println(\"Wrong usage for C <Name>.\");\n return false;\n }\n CCommand(args[1]);\n return true;\n case \"S\":\n if (args.length <= 2) {\n System.out.println(\"Wrong usage for S <Name> <Song>.\");\n return false;\n }\n SCommand(args[1], arguments.replace(args[0] + \" \" + args[1] + \" \", \"\"));\n return true;\n case \"E\":\n if (args.length <= 2) {\n System.out.println(\"Wrong usage for E <Name> <Song>.\");\n return false;\n }\n ECommand(args[1], arguments.replace(args[0] + \" \" + args[1] + \" \", \"\"));\n return true;\n case \"L\":\n if (args.length != 2) {\n System.out.println(\"Wrong usage for L <Name>.\");\n return false;\n }\n LCommand(args[1]);\n return true;\n case \"N\":\n if (args.length != 1) {\n System.out.println(\"Wrong usage for N.\");\n return false;\n }\n NCommand();\n return true;\n case \"M\":\n if (args.length != 1) {\n System.out.println(\"Wrong usage for M.\");\n return false;\n }\n MCommand();\n return true;\n case \"R\":\n if (args.length != 1) {\n System.out.println(\"Wrong usage for R.\");\n return false;\n }\n RCommand();\n return true;\n default:\n System.out.println(\"Given argument is not suitable.\");\n return false;\n }\n }", "public void _run() {\n String[] args = (String[])tEnv.getObjRelation(\"ARGS\");\n\n log.println(\"Running with arguments:\");\n for (int i=0; i< args.length; i++)\n log.println(\"#\" + i + \": \" + args[i]);\n\n oObj.run(args);\n\n tRes.tested(\"run()\", true);\n }", "public abstract void execute(CommandSender sender, String[] args);", "public static void commandHelper(String[] args) {\n String command = args[0];\n int numOperands = args.length - 1;\n if (numOperands == 0) {\n switch (command) {\n case \"log\":\n Gitlet.log();\n break;\n case \"global-log\":\n Gitlet.globalLog();\n break;\n case \"status\":\n Gitlet.status();\n break;\n default:\n System.out.print(\"Incorrect operands.\");\n System.exit(0);\n }\n } else if (numOperands == 1) {\n String operand = args[1];\n if (operand == null) {\n System.out.print(\"Incorrect operands.\");\n System.exit(0);\n }\n if (_oneArgCommands.keySet().contains(command)) {\n try {\n _oneArgCommands.get(command).doCommand(operand);\n } catch (GitletException e) {\n System.out.print(e.getMessage());\n }\n } else {\n System.out.print(\"Incorrect operands.\");\n System.exit(0);\n }\n } else if (numOperands == 2) {\n String operand = args[2];\n if (command.equals(\"checkout\") && args[1].equals(\"--\")) {\n try {\n Gitlet.checkoutFile(operand);\n } catch (GitletException e) {\n System.out.print(e.getMessage());\n }\n } else {\n System.out.print(\"Incorrect operands.\");\n System.exit(0);\n }\n } else if (numOperands == 3) {\n String commitID = args[1];\n String fileName = args[3];\n if (args[0].equals(\"checkout\") && args[2].equals(\"--\")) {\n try {\n Gitlet.checkoutFileFromCommit(commitID, fileName);\n } catch (GitletException e) {\n System.out.print(e.getMessage());\n }\n } else {\n System.out.print(\"Incorrect operands.\");\n System.exit(0);\n }\n }\n }", "public abstract ValidationResults validArguments(String[] arguments);", "@Override\r\n\tpublic String execute(File workingDir, String stdin) {\r\n\t\tboolean checkCase = true;\r\n\t\tint skippedFieldCount = 0;\r\n\t\tArrayList<String> operands = new ArrayList<String>();\r\n\r\n\t\tif (args == null) {\r\n\t\t\treturn getUnique(checkCase, stdin);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < args.length; i++) {\r\n\t\t\tString arg = args[i];\r\n\r\n\t\t\t// Check for extra operands\r\n\t\t\tif (operands.size() >= 2) {\r\n\t\t\t\tsetStatusCode(ERR_CODE_EXTRA_OPERAND);\r\n\t\t\t\treturn String.format(ERR_MSG_EXTRA_OPERAND, arg);\r\n\t\t\t}\r\n\r\n\t\t\t// Check for valid file\r\n\t\t\tif (!arg.startsWith(\"-\")) {\r\n\t\t\t\tFile file = new File(arg);\r\n\r\n\t\t\t\t// Check if filePath is relative to working dir (i.e. not absolute path)\r\n\t\t\t\t// If it is we make the file relative to working dir.\r\n\t\t\t\tif (!file.isAbsolute() && workingDir.exists()) {\r\n\t\t\t\t\tfile = new File(workingDir, arg);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (operands.size() == 0 && !file.exists()) {\r\n\t\t\t\t\tsetStatusCode(ERR_CODE_FILE_NOT_FOUND);\r\n\t\t\t\t\treturn String.format(ERR_MSG_FILE_NOT_FOUND, arg);\r\n\t\t\t\t}\r\n\t\t\t\toperands.add(file.toString());\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// Check for stdin argument\r\n\t\t\tif (arg.equals(\"-\")) {\r\n\t\t\t\toperands.add(arg);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// Option argument\r\n\t\t\tswitch (arg) {\r\n\t\t\tcase \"-i\":\r\n\t\t\t\tcheckCase = true;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"-f\":\r\n\t\t\t\tif (i + 1 >= args.length) {\r\n\t\t\t\t\tsetStatusCode(ERR_CODE_MISSING_OPTION_ARG);\r\n\t\t\t\t\treturn String.format(ERR_MSG_MISSING_OPTION_ARG, arg);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ti += 1;\r\n\t\t\t\targ = args[i];\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tskippedFieldCount = Integer.parseInt(arg);\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\tsetStatusCode(ERR_CODE_INVALID_NUM_OF_FIELDS);\r\n\t\t\t\t\treturn String.format(ERR_MSG_INVALID_NUM_OF_FIELDS, arg);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"-help\":\r\n\t\t\t\treturn getHelp();\r\n\t\t\tdefault:\r\n\t\t\t\tsetStatusCode(ERR_CODE_INVALID_OPTION);\r\n\t\t\t\treturn String.format(ERR_MSG_INVALID_OPTION, arg);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString input;\r\n\t\tif (operands.size() == 0 || operands.get(0).equals(\"-\")) {\r\n\t\t\tinput = stdin;\r\n\t\t} else {\r\n\t\t\tinput = readFile(operands.get(0), Charset.forName(\"UTF8\"));\r\n\t\t}\r\n\r\n\t\tString output;\r\n\t\tif (skippedFieldCount == 0) {\r\n\t\t\toutput = getUnique(checkCase, input);\r\n\t\t} else {\r\n\t\t\toutput = getUniqueSkipNum(skippedFieldCount, checkCase, input);\r\n\t\t}\r\n\r\n\t\t// Check if the user specify an output file\r\n\t\tif (operands.size() > 1) {\r\n\t\t\tString outputFilePath = operands.get(1);\r\n\r\n\t\t\tif (!outputFilePath.equals(\"-\")) {\r\n\t\t\t\t// Output is redirected to file\r\n\t\t\t\twriteToFile(outputFilePath, output);\r\n\t\t\t\treturn \"\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}", "@Override\n public void execute(ArrayList<String> arguments, ErrorHandler handler,\n Validator validator, Resource resource) {\n\n Output out = resource.getOutput();\n\n try {\n int numberOfCommands =\n validator.validateHistoryAndReturnNumberOfCommands(arguments);\n out.appendToStdOutput(getLastCommands(numberOfCommands, resource));\n return;\n } catch (InvalidNumberOfArgumentsException e) {\n out.appendToStdError(e.getMessage());\n return;\n } catch (NumberFormatException e) {\n out.appendToStdError(e.getMessage());\n return;\n } catch (InvalidArgumentException e) {\n out.appendToStdError(e.getMessage());\n return;\n }\n\n }", "void legalCommand();", "public void runCommand() \n throws CommandException, CommandValidationException\n { \n String domainName = null;\n try { \n setLoggerLevel();\n domainName = getDomainName();\n changeMasterPassword(domainName);\n CLILogger.getInstance().printDetailMessage(getLocalizedString(\"DomainPasswordChanged\",\n new Object[] {domainName})); \n } catch (Exception e) {\n displayExceptionMessage(e);\n }\n }", "public abstract boolean doCommand() throws Exception;", "public interface Command {\n\n /**\n * Executes given command, returns the results.\n *\n * <p><b>Note:</b> Command only executes by a player.</p>\n *\n * @param player Player executed command\n * @param params Passed command parameters\n * @return Command's result was executed\n */\n @NotNull\n CommandResult onCommand(@NotNull Player player, @NotNull String[] params);\n\n /**\n * Executes given command, returns the results.\n *\n * <p><b>Note:</b> Command only executes in the console.</p>\n *\n * @param console Console sender executed command\n * @param params Passed command parameters\n * @return Command's result was executed\n */\n @NotNull\n CommandResult onConsoleCommand(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);\n\n /**\n * Requests a list of possible completions for a command parameters.\n *\n * <p><b>Note:</b> Request will be executed if command were executed by a player.</p>\n *\n * @param player Player executed command\n * @param params The parameters pass to the to the command, including final partial parameter to\n * be completed and command label\n * @return A result contains a list of possible completions for the final argument, or an empty\n * list to default to the command executor and string to search for.\n */\n @NotNull\n TabResult onTab(@NotNull Player player, @NotNull String[] params);\n\n /**\n * Requests a list of possible completions for a command parameters.\n *\n * <p><b>Note:</b> Request will be executed if command was executed in the console.</p>\n *\n * @param console Console sender executed command\n * @param params The parameters pass to the to the command, including final partial parameter to\n * be completed and command label\n * @return A result contains a list of possible completions for the final argument, or an empty\n * list to default to the command executor and string to search for.\n */\n @NotNull\n TabResult onConsoleTab(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);\n\n /**\n * Returns parent {@link Command} of this command.\n *\n * @return Parent of this command\n * @deprecated Rename to {@link #getRoot()}\n */\n @Deprecated\n @Nullable\n Command getParent();\n\n /**\n * Returns root {@link Command} of this command.\n *\n * @return Root of this command\n */\n @Nullable\n Command getRoot();\n\n /**\n * Returns the name of this command.\n *\n * @return Name of this command\n */\n @NotNull\n String getName();\n\n /**\n * Returns the {@link PermissionWrapper} of this command\n *\n * @return The permission wrapper of this command\n */\n @NotNull\n PermissionWrapper getPermission();\n\n /**\n * Get the syntax or example usage of this command.\n *\n * @return Syntax of this command\n */\n @NotNull\n String getSyntax();\n\n /**\n * Gets a brief description of this command\n *\n * @return Description of this command\n */\n @NotNull\n String getDescription();\n\n /**\n * Returns a list of active aliases of this command, include value of {@link #getName()} method.\n *\n * @return List of aliases\n */\n @NotNull\n List<String> getAliases();\n\n String toString();\n}", "public boolean execute(String[] args);", "Result command(@NotNull CommandSender sender, List<String> args);", "@AutoGUIAnnotation(\r\n DescriptionForUser = \"<html>A reference implementation of<br>a Instrument Command.</html>\",\r\n ParameterNames = {\"Value 1\", \"Value 2\", \"Value 3\"},\r\n DefaultValues = {\"1.1\", \"true\", \"\\\"Command-Line in double quotes\\\"\"},\r\n ToolTips = {\"TT1\", \"TT2\", \"The command to execute\"})\r\n @iC_Annotation( MethodChecksSyntax = true )\r\n public void ReferenceImplementation(float Param1,\r\n boolean Param2,\r\n String CommandLine)\r\n throws ScriptException, IOException, DataFormatException {\r\n\r\n // local variables\r\n float dummy = 0;\r\n\r\n\r\n // remove double-quotes from the beginning and end of the CommandLine\r\n CommandLine = CommandLine.replaceFirst(\"^\\\"\", \"\").replaceFirst(\"\\\"$\", \"\");\r\n\r\n\r\n //////////////////////////////////////\r\n // Syntax-Check + Execute Command Line\r\n\r\n // Execute the Command Line:\r\n // in Syntax-Check mode the returned object is null\r\n // when not in Syntax-Check mode, the object should be valid\r\n if ( !CommandLine.isEmpty() ) {\r\n\r\n // make a new Device object to call it's DispatchCommand method\r\n // see Remark in javadoc (How to write new Instrument-Classes)\r\n Device dev = new Device();\r\n\r\n // perform the Syntax check\r\n Object obj = dev.DispatchCommand(CommandLine);\r\n\r\n // convert to float if returned object is valid\r\n if (obj != null) {\r\n\r\n try {\r\n // convert the Instrument's answer to a float\r\n dummy = getFloat(obj.toString());\r\n \r\n } catch (ScriptException ex) {\r\n // returned object is no convertible into a float, so throw an Exception\r\n String str = \"Executing the Command Line\\n\" + CommandLine + \"\\n\"\r\n + \"did not return an object that can be converted into a float value.\\n\"\r\n + \"Please check the Command Line.\\n\";\r\n throw new ScriptException(str);\r\n }\r\n }\r\n // the returned object is not valid, so throw an Exception when\r\n // not in Syntax-Check mode\r\n else if ( !inSyntaxCheckMode() ) {\r\n\r\n // returned object is null, so throw an Exception\r\n String str = \"Executing the Command Line\\n\" + CommandLine + \"\\n\";\r\n str += \"did not return a valid object. Please check the Command Line.\\n\";\r\n\r\n throw new ScriptException(str);\r\n }\r\n }\r\n\r\n\r\n // perform Syntax-Checks here\r\n if (inSyntaxCheckMode()) {\r\n \r\n // these commands are only executed during Syntax-Check mode\r\n \r\n /* if (...) {\r\n String str = \"Descriptive Text.\\n\";\r\n\r\n throw new DataFormatException(str);\r\n }*/\r\n \r\n // Syntax check for a String value defined in a List\r\n // consider if it makes sense to define the list in iC.properties\r\n // see LakeshoreTC.checkInputChannel for an example\r\n /*final List<String> NEW_LIST =\r\n Arrays.asList(\"A\", \"B\", \"C\"); // the entries need to be in uppercase letters!\r\n if ( !NEW_LIST.contains(YourVariableToCheck.toUpperCase()) ) {\r\n String str = \"YourVariableToCheck '\" + YourVariableToCheck + \"' is not valid.\";\r\n str += \"Please select a value from:\\n \" + NEW_LIST.toString() + \".\\n\";\r\n throw new DataFormatException(str);\r\n }*/\r\n\r\n // Range check for a Float value defined in a List\r\n // consider if it makes sense to define the list in iC.properties\r\n /* final List<Float> YOUR_RANGE = Arrays.asList(-100f, 100f);\r\n\r\n if (YourVariableToCheck < YOUR_RANGE.get(0) || YourVariableToCheck > YOUR_RANGE.get(1)) {\r\n String str = \"The zyx value is out of range.\\n\"\r\n + \"Please select a value between \" + YOUR_RANGE.toString() + \".\\n\";\r\n throw new DataFormatException(str);\r\n }*/\r\n \r\n // return if in Syntax-Check mode\r\n return;\r\n }\r\n \r\n\r\n \r\n // exit if in No-Communication-Mode\r\n if (inNoCommunicationMode())\r\n return;\r\n\r\n\r\n\r\n // insert code to perform the desired task\r\n // for instance open files, calculate intermediate values, etc.\r\n\r\n\r\n\r\n //////////////////\r\n // query a command\r\n\r\n // build the GPIB command\r\n String cmd = String.format(Locale.US, \"COMMAND 1, %.3f\", Param1);\r\n\r\n // add the boolean value\r\n cmd += (Param2 ? \"ON\" : \"OFF\");\r\n\r\n\r\n\r\n // if new code requires to wait until a certain criteria is met, the\r\n // following while-loop can be used\r\n boolean Done = false;\r\n while ( !Done && !m_StopScripting) {\r\n\r\n // check for pause button\r\n isPaused(true);\r\n\r\n\r\n // query the command\r\n String ans = QueryInstrument(cmd);\r\n\r\n\r\n /* Convert to float\r\n * Using the predefined conversion routine is useful, because\r\n * it throws a ScriptException when the conversion fails.\r\n */\r\n dummy = getFloat(ans);\r\n\r\n\r\n // do something useful with dummy\r\n\r\n\r\n // check if the Instrument's answer is what we want it to be\r\n // to exit the method\r\n if (dummy == Param1) {\r\n Done = true;\r\n }\r\n }\r\n\r\n\r\n // if new code requires to start a new task, the following anonymous\r\n // inner class can be used. Ensure that the task terminates itself\r\n // upon the Stop signal.\r\n // See iC_Instrument.MonitorChart() for a working example displaying\r\n // data in a chart.\r\n\r\n /**\r\n * Implement a new class from an anonymous inner class that extends\r\n * Thread and implements run(), in which the actual job is done.<p>\r\n *\r\n * The thread pauses, respectively, stops when <code>m_Paused</code>, respectively,\r\n * <code>m_StopScripting</code> is true.\r\n */\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"myThread as anonymous inner class\">\r\n class myThread extends Thread {\r\n\r\n // member variables\r\n public String m_dummy;\r\n\r\n /** Constructor */\r\n public myThread(String dummy) {\r\n // assign the passed values\r\n m_dummy = dummy;\r\n }\r\n\r\n\r\n @Override\r\n public void run() {\r\n // local variables\r\n float dummy = 0.0f;\r\n\r\n // Display a status message\r\n m_GUI.DisplayStatusMessage(\"Starting the thread.\\n\");\r\n\r\n // do until the thread should be stopped\r\n while ( m_StopScripting == false) {\r\n\r\n // check for pause button\r\n isPaused(true);\r\n\r\n // do something useful here\r\n\r\n\r\n // wait the desired time\r\n try { Thread.sleep( 500 ); } catch (InterruptedException ignore) {}\r\n }\r\n\r\n // clean up the thread\r\n\r\n\r\n // Display a status message\r\n m_GUI.DisplayStatusMessage(\"Thread stopped.\\n\");\r\n }\r\n }//</editor-fold>\r\n\r\n\r\n // make a new thread object\r\n myThread myT = new myThread(\"Love All, Serve All\");\r\n\r\n // start the thread and return\r\n myT.start();\r\n }", "void main(CommandLine cmd);", "private boolean runCommand( String command ) throws SQLException, NoDatabaseConnectionException, InputValidationException{\r\n\t\t\r\n\t\tif(command.length() == 0)\r\n\t\t\treturn true;\r\n\t\t\r\n\t\tboolean syntaxProblems = false;\r\n\t\t//String[] input = StringUtils.split(command);\r\n\t\tString[] input;\r\n\t\t\r\n\t\ttry{\r\n\t\t\tinput = parseCommand( command );\r\n\t\t}catch( QuoteSequenceException e){\r\n\t\t\tSystem.out.println( e.getDescription() );\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t// 1 -- Try to execute the desired command\r\n\t\t\r\n\t\tfor( int c = 0; c < consoleCommands.length; c++){\r\n\t\t\t\r\n\t\t\tif( consoleCommands[c].matchesName( input[0] )){\r\n\t\t\t\tSystem.out.println();//Inserts a space before the command to make easier for the user to parse the output\r\n\t\t\t\tCommandResult result = consoleCommands[c].run(input);\r\n\t\t\t\tsyntaxProblems = (result == CommandResult.ERROR);\r\n\t\t\t\t\r\n\t\t\t\tif( result == CommandResult.TERMINATE_CONSOLE )\r\n\t\t\t\t\treturn false;\r\n\t\t\t\telse\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// 2 -- Show a message if the command was not recognized (execution will not get to this point unless the command failed). \r\n\t\tSystem.out.println(\"Command not recognized\");\r\n\t\tsyntaxProblems = true;\r\n\t\t\r\n\t\t// 3 -- Show the help if the syntax used was incorrect\r\n\t\tif( syntaxProblems ){\r\n\t\t\tdefaultCommand.run(input);\r\n\t\t\t/*System.out.println(\"Type \\\"help\\\" to see the available commands\");\r\n\t\t\t//boolean firstPrinted = false;\r\n\t\t\tVector<String[]> commands = new Vector<String[]>();\r\n\t\t\tcommands.add(new String[]{\"Similar Command\", \"Usage\"});\r\n\t\t\t\r\n\t\t\tfor( int c = 0; c < consoleCommands.length; c++){\r\n\t\t\t\t\r\n\t\t\t\tif( consoleCommands[c].getName().toLowerCase().startsWith( input[0].toLowerCase() ) ){\r\n\t\t\t\t\tcommands.add(new String[]{consoleCommands[c].getName(), consoleCommands[c].description});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif( commands.size() > 1 ){\r\n\t\t\t\tString[][] commandsArray = new String[commands.size()][];\r\n\t\t\t\tcommands.toArray(commandsArray);\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(ConsoleCommand.getTableFromString(commandsArray, true));\r\n\t\t\t}*/\r\n\t\t}\r\n\t\t\r\n\t\t// 4 -- Return true, noting that the console listener should not shutdown\r\n\t\treturn true;\r\n\t\t\r\n\t}", "public boolean parseCommand(String[] args) {\n boolean retVal = false;\n // Set the defaults.\n this.help = false;\n this.debug = false;\n this.roleFile = null;\n // Parse the command line.\n CmdLineParser parser = new CmdLineParser(this);\n try {\n parser.parseArgument(args);\n if (this.help) {\n parser.printUsage(System.err);\n } else {\n // Create the role map.\n if (this.roleFile == null) {\n this.roleMap = null;\n if (debug) System.err.println(\"Functional assignments will be output.\");\n } else {\n this.roleMap = RoleMap.load(this.roleFile);\n if (debug) System.err.format(\"%d roles loaded from %s%n\", this.roleMap.fullSize(),\n this.roleFile);\n }\n // Load the genome.\n this.genome = new Genome(this.genomeFile);\n if (debug) System.err.format(\"%s loaded from file %s%n\", this.genome,\n this.genomeFile);\n // Load the stop prediction file.\n this.orfTrackerMap = ContigOrfTracker.readPredictionFile(this.startStopFile);\n if (debug) System.err.println(\"ORF predictions loaded from \" +\n this.startStopFile + \".\");\n // Load the role maps.\n this.startRoleMap = ContigStarts.contigStartsMap(this.genome, '+', this.roleMap);\n if (debug) System.err.println(\"Start roles computed.\");\n // We made it this far, we can run the application.\n retVal = true;\n }\n } catch (CmdLineException e) {\n System.err.println(e.getMessage());\n // For parameter errors, we display the command usage.\n parser.printUsage(System.err);\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n return retVal;\n }", "@Override\n public void execute(AbstractVFSApplication application)\n throws CommandException\n {\n switch (args.length)\n {\n case 1:\n {\n application.setCurrent((VDirectory) resolve(application, VDisk.PATH_SEPARATOR));\n break;\n }\n case 2:\n {\n int expr = args.length - 1;\n\n for (int i = 1; i < args.length; i++)\n {\n if (args[i].equals(AbstractVFSCommand.OPTION_H) || args[i].equals(AbstractVFSCommand.OPTION_HELP))\n {\n help();\n break;\n } else\n {\n expr = Math.min(i, expr);\n }\n }\n\n VObject destination = resolve(application, args[expr]);\n if (destination != null && destination instanceof VDirectory)\n {\n application.setCurrent((VDirectory) destination);\n break;\n }\n }\n default:\n {\n usage();\n break;\n }\n }\n }", "@Test(expected = MissingArgumentException.class)\n\tpublic void testMainEmptyParameters() throws Exception {\n\t\tString[] arguments = new String[0];\n\t\tAutomaticMowerMain.main(arguments);\n\t}", "interface OneArgCommand {\n void doCommand(String a);\n }", "@Test\n\tpublic void execute() throws Exception {\n\t\tassertTrue(argumentAnalyzer.getFlags().contains(Context.CHECK.getSyntax()));\n\t}", "public abstract String run(String args);", "boolean executeCommand(ICommand _command) throws Exception;", "void excuteCommand(Command commandToExecute, String [] params);", "private void loadFromMethod() {\n // The first parameter is the command sender, so we skip it\n argumentTypes = Arrays.copyOfRange(method.getParameterTypes(), 1, method.getParameterCount());\n\n boolean commandAnnotationFound = false;\n for (Annotation annotation : method.getAnnotations()) {\n if (annotation instanceof Command) {\n commandAnnotationFound = true;\n } else if (annotation instanceof RequiresPlayer) {\n requiresPlayer = true;\n } else if (annotation instanceof RequiresPermissions) {\n requiredPermissions = ((RequiresPermissions) annotation).value();\n } else if (annotation instanceof Arguments) { // Otherwise, multiple arguments are wrapped in here\n arguments = ((Arguments) annotation).value();\n } else if(annotation instanceof Argument) { // If there is one argument then it isn't wrapped\n arguments = new Argument[]{(Argument) annotation};\n } else if (annotation instanceof Description) {\n description = ((Description) annotation).value();\n }\n }\n\n // Sanity checking\n if (!commandAnnotationFound) {\n throw new InvalidCommandException(\"Command methods require the command annotation\");\n }\n }", "protected void doExecute(String[] arguments, ContextStatus contextStatus) {\n // no action to do\n }", "@Override\n public void do_command(String option) throws IllegalArgumentException {\n if (!option.equals(\"Me\")) {\n throw new IllegalArgumentException(\"Invalid command. Try again!\");\n }\n }", "public Command parse(String fullCommand) throws InvalidInputException, UnknownException {\n checkDelimiters(fullCommand);\n String[] tokens = fullCommand.split(\"\\\\s+\");\n\n // If tokenized command returns an empty array (entered a string with only white spaces),\n // raise an exception\n if (tokens.length == 0) {\n throw new InvalidInputException(InvalidInputException.Type.EMPTY_STRING);\n }\n // If first token (command) is empty, there are empty spaces typed in at the front - so we remove it\n if (tokens[0].isEmpty()) {\n tokens = Arrays.copyOfRange(tokens, 1, tokens.length);\n // Check again to make sure it is not empty after removing first element\n if (tokens.length == 0) {\n throw new InvalidInputException(InvalidInputException.Type.EMPTY_STRING);\n }\n }\n\n HashMap<String, String> arguments = new HashMap<>();\n // Conver input command to lowercase to make it case insensitive\n String command = tokens[0].toLowerCase();\n arguments.put(\"command\", command);\n\n // Default key is \"payload\"\n String key = \"payload\";\n ArrayList<String> values = new ArrayList<>();\n for (int i = 1; i < tokens.length; ++i) {\n String token = tokens[i];\n // Check whether this token is a new key\n if (!token.isEmpty() && token.charAt(0) == '/') {\n // If it is, save current value into the map and start a new k-v pair\n arguments.put(key, String.join(DELIMITER, values));\n key = token.substring(1);\n values.clear();\n } else {\n // If not, append this token to the end of the value\n values.add(token);\n }\n }\n\n // Store the last k-v pair\n // Store even when `values` is empty, as that indicates an empty string\n arguments.put(key, String.join(DELIMITER, values));\n\n // Initialize a respective class from the command (by capitalize first character)\n String className = command + \"Command\";\n className = className.substring(0, 1).toUpperCase() + className.substring(1);\n className = Constants.COMMAND_CLASS_PREFIX + className;\n try {\n Class<?> cls = Class.forName(className);\n Constructor<?> constructor = cls.getDeclaredConstructor(Ui.class, Data.class, HashMap.class);\n Object obj = constructor.newInstance(ui, data, arguments);\n return (Command) obj;\n } catch (ClassNotFoundException classNotFoundException) {\n // *Command class cannot be found!\n throw new InvalidInputException(InvalidInputException.Type.UNKNOWN_COMMAND, classNotFoundException);\n } catch (Exception exception) {\n // Some other weird error occurred here (e.g. dev bugs)\n // We should NEVER reach this block, if we do, log under the highest level\n throw new UnknownException(exception);\n }\n }", "Optional<String> validate(String command, List<String> args);", "public void doCommandLine(){\n\t\t//parse arguments\n\t\tString help = System.getProperty(\"help\");\n\t\tif (help!=null){\n\t\t\tdoHelp();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tboolean doAutomation = false;\n\t\tString numRuns = System.getProperty(\"runs\");\n\t\tString outputDir = System.getProperty(\"out\");\n\t\tString filePref = System.getProperty(\"prefix\");\n\t\tString numIters = System.getProperty(\"iters\");\n\t\tString params = System.getProperty(\"params\");\n\t\tString inFasta = System.getProperty(\"in\");\n\t\tString inCustomMatrix = System.getProperty(\"inCustom\");\n\t\tString distanceName = System.getProperty(\"distanceName\");\n\t\tString doPdf = System.getProperty(\"pdf\");\n\t\tString zoom = System.getProperty(\"zoom\");\n\t\tString UIScaling = System.getProperty(\"UIScaling\");\n\t\tString width = System.getProperty(\"width\");\n\t\tString height = System.getProperty(\"height\");\n\t\tString reference = System.getProperty(\"reference\");\n\t\tdoAutomation |= numRuns!=null;\n\t\tdoAutomation |= outputDir!=null;\n\t\tdoAutomation |= filePref!=null;\n\t\tdoAutomation |= numIters!=null;\n\t\tdoAutomation |= inFasta!=null;\n\t\tdoAutomation |= inCustomMatrix!=null;\n\t\tif (doAutomation){\n\t\t\t//Necessary params:\n\t\t\tif (outputDir==null){\n\t\t\t\tbatchError(\"-Dout must be specified.\");\n\t\t\t}\n\t\t\tif (inFasta==null){\n\t\t\t\tbatchError(\"-Din must be specified.\");\n\t\t\t}\n\t\t\t//Necessary, if not doing PDF\n\t\t\tif (doPdf==null){ //Pdf render doesn't require all this stuff.\n\t\t\t\tif (numRuns==null){\n\t\t\t\t\tbatchError(\"-Druns must be specified.\");\n\t\t\t\t}\n\t\t\t\tif (params==null){\n\t\t\t\t\tbatchError(\"-Dparams must be specified.\");\n\t\t\t\t}\n\t\t\t\tif (numIters==null){\n\t\t\t\t\tbatchError(\"-Diters must be specified.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnumRuns = \"0\";\n\t\t\t\tnumIters = \"0\";\n\t\t\t\tparams = null; //Use defaults\n\t\t\t}\n\t\t\t//Has a default / Optional:\n\t\t\tif (filePref==null){\n\t\t\t\tfilePref=\"dGbatch\";\n\t\t\t}\n\t\t\tif (zoom!=null){\n\t\t\t\tVIEW_SCALE_USER=max(1,new Float(zoom));\n\t\t\t}\n\t\t\tif (UIScaling != null) {\n\t\t\t\tthis.UIScaling = max(1, new Float(UIScaling));\n\t\t\t}\n\t\t\tif (width != null) {\n\t\t\t\tVIEW_WIDTH = max(1,new Integer(width));\n\t\t\t}\n\t\t\tif (height != null) {\n\t\t\t\tVIEW_HEIGHT = max(1,new Integer(height));\n\t\t\t}\n\t\t\tif (inCustomMatrix != null) {\n\t\t\t\tif (distanceName == null) {\n\t\t\t\t\tbatchError(\"-DdistanceName must be specified if -DinCustom used.\");\n\t\t\t\t}\n\t\t\t\tthis.distanceName = distanceName;\n\t\t\t}\n\t\t\t//Ok, do it.\n\t\t\trunScript(new Integer(numRuns),new Integer(numIters),params,outputDir,filePref,inFasta,inCustomMatrix,doPdf!=null,reference);\n\t\t} else {\n\t\t\t//If we get here, we didn't input any command line arguments.\n\t\t\tSystem.out.println(\"Dgraph can be automated: try adding -Dhelp to the arguments when running the program.\");\n\t\t}\n\t}", "private static void checkCmdArgs(int numberOfArgs, String[] args) {\n\t\tif (args.length != numberOfArgs) {\n\t\t\tSystem.out.println(\"Wrong number of command line arguments!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}", "private CommandResult executeCommand(String commandText) throws CommandException,\n ParseException, InvalidTaskListOperationException, IllegalArgumentException {\n try {\n CommandResult commandResult = logic.execute(commandText);\n logger.info(\"Result: \" + commandResult.getFeedbackToUser());\n feedbackBox.setFeedbackToUser(commandResult.getFeedbackToUser());\n refreshTitle();\n\n // categoryPanel.setFeedbackToUser(commandResult.getFeedbackToUser());\n if (commandResult.isExit()) {\n handleExit();\n }\n\n return commandResult;\n } catch (CommandException | ParseException | InvalidTaskListOperationException | IllegalArgumentException e) {\n logger.info(\"Invalid command: \" + commandText);\n feedbackBox.setFeedbackToUser(e.getMessage());\n throw e;\n }\n }", "@Override\r\n public void execute()\r\n {\r\n printInvalidCommandMessage();\r\n }", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "@Override\n\tpublic int execute(String args) {\n\t\treturn 0;\n\t}", "private void checkArgTypes() {\n Parameter[] methodParams = method.getParameters();\n if(methodParams.length != arguments.length + 1) {\n throw new InvalidCommandException(\"Incorrect number of arguments on command method. Commands must have 1 argument for the sender and one argument per annotated argument\");\n }\n\n Class<?> firstParamType = methodParams[0].getType();\n\n boolean isFirstArgValid = true;\n if(requiresPlayer) {\n if(firstParamType.isAssignableFrom(IPlayerData.class)) {\n usePlayerData = true; // Command methods annotated with a player requirement can also use IPlayerData as their first argument\n } else if(!firstParamType.isAssignableFrom(Player.class)) {\n isFirstArgValid = false; // Otherwise, set it to invalid if we can't assign it from a player\n }\n } else if(!firstParamType.isAssignableFrom(CommandSender.class)) { // Non player requirement annotated commands must just take a CommandSender\n isFirstArgValid = false;\n }\n\n if(!isFirstArgValid) {\n throw new InvalidCommandException(\"The first argument for a command must be a CommandSender. (or a Player/IPlayerData if annotated with a player requirement)\");\n }\n }", "Command(String[] commandArgs) {\n this.commandArgs = commandArgs;\n assert this.commandArgs != null : \"Command with null arguments constructed\";\n }", "void exec(ICommandConsole console, List<String> options);", "public Main(String[] commandLineArgs) {\n\t\tint claLength = commandLineArgs.length;\n\t\tif (claLength == 0) {\n\t\t\thelp();\n\t\t} else {\n\t\t\tcommand = commandLineArgs[0];\n\t\t\tif (claLength >= 2) {\n\t\t\t\targuments = Arrays.asList(commandLineArgs).subList(1, commandLineArgs.length - 1);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void execute(String[] args) {\n\n }", "public static void mainInternal(String[] args) throws Exception {\n\n Options options = new Options();\n CmdLineParser parser = new CmdLineParser(options);\n try {\n parser.parseArgument(args);\n } catch (CmdLineException ex) {\n helpScreen(parser);\n throw ex;\n }\n\n try {\n \trun(parser, options);\n } catch (PatchException ex) {\n LOG.error(\"ERROR {}\", ex.getMessage());\n LOG.debug(\"Patch Exception\", ex);\n throw ex;\n } catch (Throwable th) {\n LOG.error(\"Error executing command\", th);\n throw th;\n }\n }", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Test\n public void testConstructor() {\n interpreterInstance.interpret(\"cd \");\n Command testCommand = interpreterInstance.getCommand();\n List<String> testArguments = interpreterInstance.getArguments();\n assertEquals(\"driver.ChangeDirectory\", testCommand.getClass().getName());\n assertTrue(testArguments.isEmpty());\n }", "@SuppressWarnings(\"unchecked\")\r\n public void testParseCommands_Accuracy2() throws Exception {\r\n InputStream input = new FileInputStream(\"test_files/scripts/test/dotnet.txt\");\r\n DistributionScript script = new DistributionScript();\r\n target = new DistributionScriptParserImpl();\r\n target.parseCommands(input, script, LOG);\r\n\r\n // Test the dotnet command was parsed correctly as we are not able to test the execution\r\n // of this command.\r\n assertEquals(\"The number of parsed commands shoule be equal.\", 2, script.getCommands().size());\r\n assertTrue(\"The command should be a ExecuteProcessCommand.\",\r\n script.getCommands().get(0) instanceof ExecuteProcessCommand);\r\n\r\n ExecuteProcessCommand con = (ExecuteProcessCommand) script.getCommands().get(0);\r\n String cmd = (String) getPrivateField(ExecuteProcessCommand.class, con, \"command\");\r\n String workingPath = (String) getPrivateField(ExecuteProcessCommand.class, con, \"workingPath\");\r\n assertEquals(\"The value should match.\", \"MSBuild \\\"Component Sources.csproj\\\" /t:DesignDist\", cmd);\r\n assertEquals(\"The value should match.\", \"%{comp_dir}\", workingPath);\r\n\r\n // the parsed command should have two conditions\r\n DefineVariableCommand con1 = (DefineVariableCommand) script.getCommands().get(1);\r\n List<CommandExecutionCondition> conditions = (List<CommandExecutionCondition>) getPrivateField(\r\n BaseDistributionScriptCommand.class, con1, \"conditions\");\r\n assertEquals(\"The DefineVariableCommand should have two conditions.\", 2, conditions.size());\r\n assertTrue(\"The first should VariableDefinedCondition.\",\r\n conditions.get(0) instanceof VariableDefinedCondition);\r\n assertTrue(\"The first should VariableNotDefinedCondition.\",\r\n conditions.get(1) instanceof VariableNotDefinedCondition);\r\n }", "@Override\n\tpublic boolean execute(RPGEssentials plugin, CommandSender sender, String... args) {\n String base = (args.length > 0 ? args[0] : \"\");\n String last = (args.length > 0 ? args[args.length - 1] : \"\");\n \n // If there's no base argument, show a helpful message.\n if (base.equals(\"\")) {\n Messenger.sendMessage(sender, \"/karma help|?\");\n return true;\n }\n \n // The help command is a little special\n if (base.equals(\"?\") || base.equalsIgnoreCase(\"help\")) {\n showHelp(sender);\n return true;\n }\n \n // Get all commands that match the base.\n List<Command> matches = getMatchingCommands(base);\n \n // If there's more than one match, display them.\n if (matches.size() > 1) {\n Messenger.sendMessage(sender, \"Multiple command matches\");\n for (Command cmd : matches) {\n showUsage(cmd, sender, false);\n }\n return true;\n }\n \n // If there are no matches at all, notify.\n if (matches.size() == 0 && args.length > 0) {\n \tif(sender instanceof Player) {\n \t\tplugin.getKarma();\n\t\t\t\tMessenger.sendMessage(sender, ChatColor.GRAY+\"Karma von \"+sender.getName()+\": \"+ChatColor.WHITE+Karma.getPlayerHandler().getKarma(sender.getName()));\n \t} else\n \t\tMessenger.sendMessage(sender, \"Command not found\");\n \treturn true;\n }\n \n // Grab the only match.\n Command command = matches.get(0);\n CommandInfo info = command.getClass().getAnnotation(CommandInfo.class);\n \n // First check if the sender has permission.\n if (!PermHandler.hasPerm(sender, info.permission())) {\n \tMessenger.sendMessage(sender, \"No Permission\");\n return true;\n }\n \n // Check if the last argument is a ?, in which case, display usage and description\n if (last.equals(\"?\") || last.equals(\"help\")) {\n showUsage(command, sender, true);\n return true;\n }\n \n // Otherwise, execute the command!\n String[] params = trimFirstArg(args);\n if (!command.execute(plugin, sender, params)) {\n showUsage(command, sender, true);\n }\n return true;\n }", "public static void main( String[] args ) {\n \tclArgs = new CommandLineArgs();\n \tJCommander jc = new JCommander(clArgs);\n \tfinal IDefaultProvider DEFAULT_PROVIDER = new DefaultCommandLineArgsProvider();\n \t\n \t// Set provider for default values of command line arguments \n \tjc.setDefaultProvider(DEFAULT_PROVIDER);\n \tjc.setColumnSize(100);\n \t\n \ttry {\n \t\t// Try to parse the arguments\n \t\tjc.parse(args);\n \t} catch (ParameterException e) {\n \t\t// Print error message, jc.usage() is called automatically\n \t\tLOG.error(\"{}. Refer to the available options and their explanation below.\", e.getMessage());\n \t}\n \t\n \tif (clArgs.preprocess) {\n \t\t// Go into the preprocessing phase\n \t\tpreprocess();\n \t}\n \telse if (clArgs.spDetection) {\n \t\t// Go into the detection of stay points\n \t\tdetectStayPoints();\n \t}\n \telse if (clArgs.clustering) {\n \t\t// Go into the clustering task\n \t\tclustering();\n \t}\n \telse if (clArgs.buildFramework) {\n \t\t// Create shared framework based on clustering results\n \t\tbuildFramework();\n \t}\n \telse if (clArgs.buildUserGraphs) {\n \t\t// Create hierarchical graph for each user\n \t\tbuildHierarchicalGraphs();\n \t}\n \telse if (clArgs.calcSimilarity) {\n \t\t// Calculate spatial similarity between users\n \t\tcalculateSimilarity();\n \t}\n \telse if (clArgs.evaluation && !clArgs.automation) {\n \t\t// Evaluation only works with a run of similarity measurement beforehand\n \t\tLOG.info(\"The evaluation can only be performed in connection with the similarity measurement. Run this program with the command line switch {} or {} to get more information on how to run the similarity measurement.\",\n \t\t\t\tCommandLineArgs.HELP, CommandLineArgs.HELP_LONG);\n \t\treturn;\n \t}\n \telse if (clArgs.automation) {\n \t\tif (clArgs.evaluation) {\n \t\t\t// Start the automation\n \t\t\tautomate();\n \t\t} else {\n \t\t\t// The automation task needs the evaluation switch\n \t\tLOG.info(\"The automation requires the evaluation. The evaluation can be enabled with the {} or {} command line switch. Run this program with the command line switch {} or {} to get more information on how to run the automation.\",\n \t\t\t\tnew Object[] { CommandLineArgs.EVALUATION, CommandLineArgs.EVALUATION_LONG, CommandLineArgs.HELP, CommandLineArgs.HELP_LONG });\n \t\t\n \t\t// Ask the user if the evaluation should be enabled and the automation should run\n \t System.out.print(\"Do you want the system to enable the evaluation (y/n)? \");\n\n \t // Open standard input stream\n \t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \t\t\n \t\tString runAutomationWithEvaluation = null;\n \t\ttry {\n \t\t\trunAutomationWithEvaluation = br.readLine();\n \t\t} catch (IOException ioe) {\n \t\t\tLOG.error(\"An error occurred while reading your input: {}\", ioe);\n \t\t}\n \t\t\n \t\t// User decided to start automation with evaluation\n \t\tif (runAutomationWithEvaluation.equals(\"y\") || runAutomationWithEvaluation.equals(\"Y\")) {\n \t\t\tLOG.debug(\"The evaluation is enabled by the system. Starting automation task.\");\n \t\t\tautomate();\n \t\t}\n \t\t// User decided to end the program\n \t\telse {\n \t\t\tLOG.debug(\"Automation aborted by the user.\");\n \t\t\treturn;\n \t\t}\n \t\t}\n \t}\n \telse {\n \t\t// Print a help text\n \t\tjc.usage();\n \t}\n }", "@Test\n public void testArguments() {\n System.out.println(\"arguments\");\n assertThat(Arguments.valueOf(\"d\"), is(notNullValue()));\n assertThat(Arguments.valueOf(\"i\"), is(notNullValue()));\n assertThat(Arguments.valueOf(\"num\"), is(notNullValue()));\n }", "public static void main(String[] args) {\n Receiver receiver = new Receiver();\n\n // Calling the concrete commands\n UndoCommand undoCommand = new UndoCommand(receiver);\n RedoCommand redoCommand = new RedoCommand(receiver);\n\n // Initiates the invoker class\n Invoker invoker = new Invoker();\n\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n\n invoker.redoComamnd(redoCommand); // Redo\n invoker.redoComamnd(redoCommand); // Redo\n\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n\n invoker.redoComamnd(redoCommand); // Redo\n invoker.redoComamnd(redoCommand); // Redo\n invoker.redoComamnd(redoCommand); // Redo\n\n //invoker.addCommand(undoCommand); // undo -> can still undo even if the is nothing to undo :(\n //invoker.addCommand(undoCommand); // undo\n //invoker.addCommand(undoCommand); // undo\n\n invoker.executeUndoCommand(); // Execute undo actions\n invoker.executeRedoCommand(); // Execute redo actions\n }", "@Test(expected = InvalidCommandException.class)\n public void testInvalidCommand() {\n interpreterInstance.interpret(\"notacommand argumentshere\");\n }", "public boolean execute(Player player) throws NoArgumentException,pkg_exceptions.IllegalArgumentException {\n\t\tsetMessage(\"\");\n\t\tif(hasParameter()) {\n\t\t\ttry {\n\t\t\t\tScanner s = new Scanner(new File(getParameter() + \".test\"));\n\t\t\t\twhile (s.hasNextLine()) {\n\n\t\t\t\t\tString commandLine = s.nextLine();\n\t\t\t\t\tCommand testedCommand = Parser.getCommand(commandLine);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\ttestedCommand.execute(player);\n\t\t\t\t\t\tif(testedCommand.hasMessage())\n\t\t\t\t\t\t\tsetMessage(getMessage() + \"\\n\" + \"Command: \" + commandLine + \"\\n\"\n\t\t\t\t\t\t\t\t\t+ testedCommand.getMessage());\n\n\t\t\t\t\t} catch (NoArgumentException e) {\n\t\t\t\t\t\tsetMessage(getMessage() + \"\\n\" + \"Command: \" + commandLine + \"\\n\"\n\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t} catch (pkg_exceptions.IllegalArgumentException e) {\n\t\t\t\t\t\tsetMessage(getMessage() + \"\\n\" + \"Command: \" + commandLine + \"\\n\"\n\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t} catch(UnauthorizedException e) {\n\t\t\t\t\t\tsetMessage(getMessage() + \"\\n\" + \"Command: \" + commandLine + \"\\n\"\n\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ts.close();\n\t\t\t} catch(FileNotFoundException e) {\n\t\t\t\tthrow new pkg_exceptions.IllegalArgumentException(\"No such test\");\n\t\t\t}\n\t\t} else\n\t\t\tthrow new NoArgumentException(\"What do you want to test?\");\n\t\treturn false;\n\t}", "@Override\n protected void processShellCommandLine() throws IllegalArgumentException {\n final Map<String, String> argValues = getCommandLineArguments();\n logger.debug(\"processShellCommandLine: {}\", argValues);\n\n // note: open file is NOT done in background ...\n final String fileArgument = argValues.get(CommandLineUtils.CLI_OPEN_KEY);\n\n // required open file check:\n if (fileArgument == null) {\n throw new IllegalArgumentException(\"Missing file argument !\");\n }\n final File fileOpen = new File(fileArgument);\n\n // same checks than LoadOIDataCollectionAction:\n if (!fileOpen.exists() || !fileOpen.isFile()) {\n throw new IllegalArgumentException(\"Could not load the file: \" + fileOpen.getAbsolutePath());\n }\n\n logger.debug(\"processShellCommandLine: done.\");\n }", "public Command(String[] arguments) {\n this.setArguments(arguments);\n }", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "public abstract Menu execute(String commandKey);", "CommandResult execute(String commandText) throws CommandException, ParseException, UnmappedPanelException;", "public CommandMAN(String[] arguments) {\n super(arguments);\n }", "private void run(String [] args) throws Exception {\n if (args.length == 0) {\n usageError(\"No command given\");\n }\n\n command = args[0];\n\n try {\n if (command.equals(\"-addjarsig\")) {\n performAddJarSigCommand(args);\n return;\n }\n\n if (command.equals(\"-addcert\")) {\n performAddCertCommand(args);\n return;\n }\n\n if (command.equals(\"-showcert\")) {\n performShowCertCommand(args);\n return;\n }\n\n if (command.equals(\"-help\")) {\n for (int i = 1; i < args.length; i++) {\n usageError(\"Illegal option for \" + command + \": \" +\n args[i]);\n }\n\n // help exits\n help();\n }\n\n usageError(\"Illegal command: \" + command);\n } finally {\n // zero-out passwords\n if (storepass != null) {\n Arrays.fill(storepass, ' ');\n storepass = null;\n }\n\n if (keypass != null) {\n Arrays.fill(keypass, ' ');\n keypass = null;\n }\n\n try {\n if (outstream != null) {\n outstream.close();\n }\n } catch (IOException ioe) {\n // do nothing. \n }\n }\n }", "public static void main(String[] args) {\n EquationManipulator manipulator = new EquationManipulator();\n \n if (args.length == 3) {\n // arguments were passed in from the command line\n System.out.println(\"It looks like you passed in some arguments. Let me fetch those for you.\");\n checkPassedInArguments(args, manipulator);\n } else if (args.length != 0) {\n // User passed in an incorrect number of arguments\n printErrorMessage();\n handleUserInput(manipulator);\n } else { \n // User did not pass in any arguments\n handleUserInput(manipulator);\n }\n\n }", "private boolean argumentsEquals(Command other) {\n return Arrays.equals(this.arguments, other.arguments);\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "@Override\r\n public boolean isValidCommandLine(String inputLine) {\r\n String strippedLine = inputLine.strip();\r\n String[] tokens = strippedLine.split(\" \", -1);\r\n int flagIndex = findFlagIndex(tokens);\r\n\r\n if (flagIndex == NOT_FOUND) {\r\n return false;\r\n }\r\n\r\n String[] argumentTokens = Arrays.copyOfRange(tokens, 1, flagIndex);\r\n String[] flagTokens = Arrays.copyOfRange(tokens, flagIndex + 1, tokens.length);\r\n\r\n String argumentValue = String.join(\" \", argumentTokens);\r\n String flagValue = String.join(\" \", flagTokens);\r\n\r\n boolean isStartWithCommand = strippedLine.startsWith(super.getCommand() + \" \");\r\n boolean isNonEmptyArgument = argumentValue.length() > 0;\r\n boolean isNonEmptyFlag = flagValue.length() > 0;\r\n\r\n return isStartWithCommand && isNonEmptyArgument && isNonEmptyFlag;\r\n }", "public interface CommandExecutor {\n /**\n * This method parse a commands from string and call it\n *\n * @param sender ource of the commands\n * @param connectionCommand commands\n * @return true if a valid commands, otherwise false\n */\n default boolean onCommand(CommandSender sender, ConnectionCommand connectionCommand) {\n String[] split = connectionCommand.getCommand().split(\" \");\n\n return onCommand(sender, split[0], Arrays.copyOfRange(split, 1, split.length), connectionCommand.getArgs());\n }\n\n /**\n * Executes the given commands, returning its success\n *\n * @param sender ource of the commands\n * @param command Command which was executed\n * @param args Passed commands arguments\n * @param objects Objects\n * @return true if a valid commands, otherwise false\n */\n boolean onCommand(CommandSender sender, String command, String[] args, Object... objects);\n\n}", "public abstract void doCommand(String command);", "private static void checkPassedInArguments(String[] args, EquationManipulator manipulator) {\n // Convert arguments to a String\n StringBuilder builder = new StringBuilder();\n for (String argument: args) {\n builder.append(argument + \" \");\n }\n \n // check if equation is valid\n String[] equation = manipulator.getEquation(builder.toString());\n if (equation.length == 0) {\n // unable to parse passed in arguments\n printErrorMessage();\n handleUserInput(manipulator);\n } else {\n // arguments were passed in correctly\n System.out.println(\"Wohoo! It looks like everything was passed in correctly!\"\n + \"\\nYour equation is: \" + builder.toString() + \"\\n\");\n handleArguments(equation, manipulator);\n }\n }", "private CommandResult executeCommand(String commandText) throws CommandException, ParseException {\n try {\n runningCommand = true;\n if (DateCustom.isValidDate(commandText.trim())) {\n commandText = \"taskcal \" + commandText;\n }\n CommandResult commandResult = logic.execute(commandText);\n logger.info(\"Result: \" + commandResult.getFeedbackToUser());\n resultDisplay.setFeedbackToUser(commandResult.getFeedbackToUser());\n runningCommand = false;\n\n if (commandResult.isExit()) {\n handleExit();\n }\n\n if (commandResult.isShowHelp()) {\n handleHelp();\n }\n return commandResult;\n } catch (CommandException | ParseException e) {\n runningCommand = false;\n logger.info(\"Invalid command: \" + commandText);\n resultDisplay.setFeedbackToUser(e.getMessage());\n throw e;\n }\n }", "public String executeCommand(String arguments) {\r\n\t\ttry {\r\n\t\tString[] text = arguments.split(\" \");\r\n\t\tif (getEnteredCommand(text[0]) == null) {\r\n\t\t\treturn \"This is not possible.\";\r\n\t\t}\r\n\t\telse if(this.inBattle()) {\r\n\t\t\tswitch(text[0]) {\r\n\t\t\tcase \"attack\": return this.attack(); \t\t\t// ALSO TRIGGERS ENEMY ATTACK\r\n\t\t\tcase \"escape\": return this.exit();\r\n\t\t\tcase \"help\": return this.help();\r\n\t\t\tdefault: return \"You cannot do that.\";\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(this.isLooting()) {\r\n\t\t\tswitch(text[0]) {\r\n\t\t\tcase \"take\": return this.takeChestItem(text[1]);\r\n\t\t\tcase \"place\": return this.placeItemInChest(text[1]);\r\n\t\t\tcase \"look\": return this.look();\r\n\t\t\tcase \"equip\": return this.equipItem(text[1]);\r\n\t\t\tcase \"unequip\": return this.unequipItem(text[1]);\r\n\t\t\tcase \"inventory\": return this.printPlayerInventory();\r\n\t\t\tcase \"equipment\": return this.printPlayerEquipment();\r\n\t\t\tcase \"drink\": return this.drink(text[1]);\r\n\t\t\tcase \"exit\": return this.exit();\r\n\t\t\tcase \"help\": return this.help();\r\n\t\t\tdefault: return \"You cannot do that.\";\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(this.isTrading()) {\r\n\t\t\tswitch(text[0]) {\r\n\t\t\tcase \"look\": return this.look();\r\n\t\t\tcase \"exit\": return this.exit();\r\n\t\t\tcase \"buy\": return this.buy(text[1]);\r\n\t\t\tcase \"sell\": return this.sell(text[1]);\r\n\t\t\tcase \"inventory\": return this.printPlayerInventory();\r\n\t\t\tdefault: return \"You cannot do that\";\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tswitch(text[0]) {\r\n\t\t\tcase \"move\": return this.moveTo(text[1]);\t\t// 20% PROBABILITY OF SPAWNING A BANDIT AT NEW LOCATION\r\n\t\t\tcase \"drink\": return this.drink(text[1]);\r\n\t\t\tcase \"take\": return this.takeItem(text[1]);\r\n\t\t\tcase \"drop\": return this.dropItem(text[1]);\r\n\t\t\tcase \"equip\": return this.equipItem(text[1]);\r\n\t\t\tcase \"unequip\": return this.unequipItem(text[1]);\r\n\t\t\tcase \"read\": return this.read(text[1]);\r\n\t\t\tcase \"trade\": return this.trade(text[1]);\r\n\t\t\tcase \"look\": return this.look();\r\n\t\t\tcase \"quest\": return this.printQuestStatus();\r\n\t\t\tcase \"inventory\": return this.printPlayerInventory();\r\n\t\t\tcase \"equipment\": return this.printPlayerEquipment();\r\n\t\t\tcase \"help\": return this.help();\r\n\t\t\tcase \"loot\": return this.loot(text[1]);\r\n\t\t\tcase \"attack\": return this.engageEnemy(text[1]);\r\n\t\t\tcase \"talk\": return this.talk(text[1]);\r\n\t\t\tdefault: return \"You cannot do that.\";\r\n\t\t}\r\n\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\treturn \"Specify a valid command or an argument.\";\r\n\r\n\t\t}}", "@Override\n public void executeCommand() {\n this.setJCLIOptions();\n String args[] = this.convertToArray();\n try {\n CommandLine jcCmd = this.jcParser.parse(this.jcOptions, args);\n if (jcCmd.hasOption(\"h\")) {\n this.printHelp();\n }\n if (jcCmd.hasOption(\"ttb\")) {\n this.texttobinary = true;\n }\n if (jcCmd.hasOption(\"btt\")) {\n this.binarytotext = true;\n }\n if (jcCmd.hasOption(\"f\")) {\n if ((this.done == false) && (this.jcError == false)) {\n this.filePath = jcCmd.getOptionValue(\"f\");\n }\n }\n if ((this.done == false) && (this.jcError == false) && (this.texttobinary == true)) {\n if ((this.filePath == null) || (this.filePath.length() == 0)) {\n this.jcError = true;\n this.addErrorMessages(\"Error : No File defined.\");\n }\n if (this.jcError == false) {\n if (isFileCanRead(this.filePath) == false) {\n this.jcError = true;\n this.addErrorMessages(\"Error : File does not exsist / File Unreadable.\");\n }\n }\n\n if (this.jcError == false) {\n String txt = this.getFileContents(this.filePath);\n this.resultString.append(this.convertTextToBinary(txt));\n this.done = true;\n }\n }\n if ((this.done == false) && (this.jcError == false) && (this.binarytotext == true)) {\n String txt = this.getFileContents(this.filePath);\n this.resultString.append(this.convertBinaryToText(txt));\n this.done = true;\n }\n\n\n if (this.done == true) {\n System.out.println(this.resultString);\n }\n\n\n } catch (org.apache.commons.cli.ParseException ex) {\n this.setJcError(true);\n this.addErrorMessages(\"Error :\" + ex.getMessage());\n }\n }", "protected abstract void go(CommandLine line) throws Exception;", "public void runCommand(CommandSender sender, SubCommand command, List<String> argsList) {\n if (!(sender instanceof Player) && !command.isConsoleAllowed()) {\n MessageUtil.colour(sender, LangUtil.formatErrorKey(\"error.noConsole\"));\n return;\n }\n\n // No permission\n if (!sender.hasPermission(command.getPermission())) {\n MessageUtil.colour(sender, LangUtil.formatErrorKey(\"error.noPermission\"));\n return;\n }\n\n // Remove first argument from the list before calling run.\n argsList.remove(0);\n command.run(sender, argsList);\n }", "protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);", "@Test\n public void testgetArgumentsWithNoArguments() {\n interpreterInstance.interpret(\"cd \");\n List<String> testList = interpreterInstance.getArguments();\n assertTrue(testList.isEmpty());\n }", "public static void main(String... args) {\n if (args.length == 0) {\n System.out.println(\"Please enter a command.\");\n System.exit(0);\n }\n String command = args[0];\n if (!_commands.contains(command)) {\n System.out.println(\"No command with that name exists.\");\n System.exit(0);\n } else if (command.equals(\"init\")) {\n if (args.length != 1) {\n System.out.println(\"Incorrect operands.\");\n System.exit(0);\n } else {\n try {\n new Gitlet().init();\n } catch (GitletException e) {\n System.out.print(e.getMessage());\n }\n }\n } else {\n File gitlet = (new File(\".gitlet\"));\n if (!gitlet.exists()) {\n System.out.println(\"Not in an initialized gitlet directory.\");\n return;\n } else {\n commandHelper(args);\n }\n }\n }", "private void isCommandInstance() throws SystemException {\r\n\t\tif (commandInstance != null) return;\r\n\t\tif (commandResponder != null) SystemException.softwareProblem(\"This was not a command instance. There is a bug. Either the super for the command is not well formed or it called a method it shouldn't.\");\r\n\t\tinstantiateCommand();\r\n\t}", "@Override\n \tpublic boolean execute(ScriptEntry theCommand) throws CommandException {\n \n \t\t/* Initialize variables */ \n \n \t\tInteger duration = null;\n \t\tDirection direction = null;\n \t\tLocation theLocation = null;\n \t\tLivingEntity theEntity = null;\n \n \t\tDenizenNPC theDenizen = theCommand.getDenizen();\n \n \t\t/* Get arguments */\n \t\tif (theCommand.arguments() != null) {\n \t\t\tfor (String thisArgument : theCommand.arguments()) {\n \n \t\t\t\tif (plugin.debugMode) \n \t\t\t\t\tplugin.getLogger().log(Level.INFO, \"Processing command \" + theCommand.getCommand() + \" argument: \" + thisArgument);\n \n \t\t\t\t/* If argument is a NPCID: modifier */\n \t\t\t\tif (thisArgument.matches(\"(?:NPCID|npcid)(:)(\\\\d+)\")) {\n \t\t\t\t\tif (plugin.debugMode) \n \t\t\t\t\t\tplugin.getLogger().log(Level.INFO, \"...argument matched to 'specify NPC ID'.\");\n \t\t\t\t\ttry {\n \t\t\t\t\t\tif (CitizensAPI.getNPCRegistry().getById(Integer.valueOf(thisArgument.split(\":\")[1])) != null) {\n \t\t\t\t\t\t\ttheDenizen = plugin.getDenizenNPCRegistry().getDenizen(CitizensAPI.getNPCRegistry().getById(Integer.valueOf(thisArgument.split(\":\")[1])));\n \t\t\t\t\t\t\tif (plugin.debugMode) plugin.getLogger().log(Level.INFO, \"...NPCID specified.\");\n \t\t\t\t\t\t}\n \t\t\t\t\t} catch (Throwable e) {\n \t\t\t\t\t\tthrow new CommandException(\"NPCID specified could not be matched to a Denizen.\");\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\t/* If argument is a DURATION: modifier */\n \t\t\t\telse if (thisArgument.matches(\"(?:DURATION|duration)(:)(\\\\d+)\")) {\n \t\t\t\t\tif (plugin.debugMode) \n \t\t\t\t\t\tplugin.getLogger().log(Level.INFO, \"...argument matched to 'specify duration'.\");\n \t\t\t\t\tduration = Integer.valueOf(thisArgument.split(\":\")[1]);\n \t\t\t\t}\n \n \t\t\t\t/* If argument is a BOOKMARK modifier */\n \t\t\t\telse if (thisArgument.matches(\"(?:bookmark|BOOKMARK)(:)(\\\\w+)(:)(\\\\w+)\") \n \t\t\t\t\t\t&& plugin.bookmarks.exists(thisArgument.split(\":\")[1], thisArgument.split(\":\")[2])) {\n \t\t\t\t\ttheLocation = plugin.bookmarks.get(thisArgument.split(\":\")[1], thisArgument.split(\":\")[2], BookmarkType.LOCATION);\n \t\t\t\t\tif (plugin.debugMode) \n \t\t\t\t\t\tplugin.getLogger().log(Level.INFO, \"...argument matched to 'valid bookmark location'.\");\n \t\t\t\t} else if (thisArgument.matches(\"(?:bookmark|BOOKMARK)(:)(\\\\w+)\") &&\n \t\t\t\t\t\tplugin.bookmarks.exists(theCommand.getDenizen(), thisArgument.split(\":\")[1])) {\n \t\t\t\t\ttheLocation = plugin.bookmarks.get(theCommand.getDenizen(), thisArgument, BookmarkType.LOCATION);\n \t\t\t\t\tif (plugin.debugMode) \n \t\t\t\t\t\tplugin.getLogger().log(Level.INFO, \"...argument matched to 'valid bookmark location'.\");\n \t\t\t\t}\n \n \t\t\t\telse {\n \t\t\t\t\t/* If argument is a Direction */\n \t\t\t\t\tfor (Direction thisDirection : Direction.values()) {\n \t\t\t\t\t\tif (thisArgument.toUpperCase().equals(thisDirection.name())) {\n \t\t\t\t\t\t\tdirection = Direction.valueOf(thisArgument);\n \t\t\t\t\t\t\tif (plugin.debugMode) plugin.getLogger().log(Level.INFO, \"...argument matched to 'specify direction'.\");\n \t\t\t\t\t\t}\n \t\t\t\t\t}\t\t\t\n \t\t\t\t}\n \n \t\t\t}\t\n \t\t}\n \n \t\tif (theEntity == null && direction.equals(Direction.AT)) theEntity = (LivingEntity) theCommand.getPlayer();\n \t\tif (direction != null || theLocation != null) look(theEntity, theDenizen, direction, duration, theLocation);\n \n \t\treturn true;\n \t}", "private void executeCommand() {\n Command command = null;\n\n switch (commandType) {\n case LIST:\n command = new ListCommand(taskManager, parameterData.getDescription());\n break;\n case DONE:\n command = new DoneCommand(taskManager, parameterData.getTaskNumber());\n break;\n case TODO:\n command = new AddCommand(taskManager, TaskType.TODO, parameterData.getDescription());\n break;\n case DEADLINE:\n command = new AddCommand(taskManager,\n TaskType.DEADLINE, parameterData.getDescription(),\n parameterData.getDateTime());\n break;\n case EVENT:\n command = new AddCommand(taskManager,\n TaskType.EVENT, parameterData.getDescription(),\n parameterData.getDateTime());\n break;\n case DELETE:\n command = new DeleteCommand(taskManager, parameterData.getTaskNumber());\n break;\n case BYE:\n command = new ByeCommand(taskManager);\n break;\n case FIND:\n command = new FindCommand(taskManager,\n parameterData.getFilterString(),\n parameterData.getMatchDate(),\n parameterData.getTimeSearch());\n break;\n case HELP:\n command = new HelpCommand(taskManager);\n break;\n default:\n commandUi.printNoCommandRan();\n }\n\n try {\n command.execute();\n } catch (IndexOutOfBoundsException e) {\n commandUi.printTaskDoneNotInRange();\n } catch (IllegalStateException e) {\n commandUi.printInvalidParameters();\n }\n }", "private CommandResult executeCommand(String commandText) throws CommandException, ParseException {\n try {\n CommandResult commandResult = logic.execute(commandText);\n logger.info(\"Result: \" + commandResult.getFeedbackToUser());\n resultDisplay.setFeedbackToUser(commandResult.getFeedbackToUser());\n if (commandResult.isToExit()) {\n handleExit();\n }\n if (commandResult.isToShowHelp()) {\n handleHelp();\n }\n if (commandResult.isToUpdateLeftPanel()) {\n updateLeftPanel();\n }\n if (commandResult.isToUpdateRightPanel()) {\n updateRightPanel();\n }\n if (commandResult.getIndexToShow() != null) {\n listPanel.selectDisplayable(commandResult.getIndexToShow());\n }\n if (commandResult.getNewPlaceholderText() != null) {\n commandBox.updatePlaceholder(commandResult.getNewPlaceholderText());\n } else if (!commandBox.getPlaceholder().equals(CommandBox.DEFAULT_PLACEHOLDER_TEXT)) {\n commandBox.updatePlaceholder(CommandBox.DEFAULT_PLACEHOLDER_TEXT);\n }\n return commandResult;\n } catch (CommandException | ParseException e) {\n logger.info(\"Invalid command: \" + commandText);\n resultDisplay.setFeedbackToUser(e.getMessage());\n throw e;\n }\n }", "public static void main(String[] args) throws ExecutionException {\n CommandDelegator.getINSTANCE().subscribe(new ExampleExecutor(), ExampleCommand.class);\n\n\n //Publish a new ExampleCommand\n //The CommandDelegator will then call the execute() method in the ExampleExecutor\n CommandDelegator.getINSTANCE().publish(new ExampleCommand());\n\n CommandDelegator.getINSTANCE().undo();\n CommandDelegator.getINSTANCE().redo();\n }", "Command(String command, int parameterCount) {\n this.command = command;\n this.parameterCount = parameterCount;\n }", "public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n\t\tPlayer player = (Player) sender;\n\t\t// if console\n\t\tif (!(sender instanceof Player)) {\n\t\t\tsender.sendMessage(\"You Cant Use This In Here DUDE!\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// first argument specified\n\t\tString argumentOne;\n\t\t// try this out instead of 100% doing it, because it could give an error if it doesnt exist\n\t\ttry {\n\t\t\t// String[] args are the arguments that were provided after the command\n\t\t\t// like \"/dab mystats\" has one argument, \"mystats\"\n\t\t\t// arrays start at 0, so the first argument is args[0]\n\t\t\targumentOne = args[0];\n\t\t} catch (Exception e) {\n\t\t\t// if the argument does not exist, scream and return\n\t\t\tplayer.sendMessage(ChatColor.GRAY + \"No You need To Specify An Argument! \" + ChatColor.RED + \">:-(\");\n\t\t\treturn false;\n\t\t}\n\t\t// now that we have secured that argumentOne is the first argument\n\t\t// if the first argument is \"buy\" (/zuccbucc buy), do stuff\n\t\tif (argumentOne.equalsIgnoreCase(\"buy\")) {\n\t\t\t// you'll need to specify an amount, like \"/zuccbucc buy 5\"\n\t\t\t// so we need to do the same thing with that amount\n\t\t\t// argumentTwo is what is typed\n\t\t\tString argumentTwo;\n\t\t\t// amountOfZuccBuccs is the integer that represents this value\n\t\t\tint amountOfZuccBuccs;\n\t\t\ttry {\n\t\t\t\targumentTwo = args[1];\n\t\t\t\t// you can't use a string as a number, so you have to turn the number given into an integer\n\t\t\t\t// parseInt(string) turns a string into an integer\n\t\t\t\tamountOfZuccBuccs = Integer.parseInt(argumentTwo);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// scream and return if doesnt work\n\t\t\t\tplayer.sendMessage(ChatColor.GRAY + \"No You need To Specify How Many ZuccBuccs! \" + ChatColor.RED + \">:-(\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// if the amount given is too much to buy at one time, tell them to stop\n\t\t\tif (amountOfZuccBuccs > 50) {\n\t\t\t\tplayer.sendMessage(ChatColor.DARK_RED + \"No! You Cant Buy This menay. Grrr...\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// string name of the player\n\t\t\tString owner = player.getName();\n\t\t\t// add the amount of ZuccBuccs specified to the BuccHandler\n\t\t\t// loop through and create a new ZuccBucc each number between 0 and amountOfZuccBuccs\n\t\t\tfor (int i = 0; i < amountOfZuccBuccs; i++) {\n\t\t\t\tZuccBucc zuccBucc = new ZuccBucc(owner);\n\t\t\t\tZuccBuccPlugin.getHandler().addZuccBucc(zuccBucc);\n\t\t\t}\n\t\t\t// congrats\n\t\t\tplayer.sendMessage(ChatColor.GREEN + \"You just bought \" + amountOfZuccBuccs + \" ZuccBuccs! Nice!\");\n\t\t\treturn true;\n\t\t}\n\t\t// check the amount of ZuccBuccs you have, and the value of them\n\t\tif (argumentOne.equalsIgnoreCase(\"amount\")) { \n\t\t\t// get the list of ZuccBuccs that the player owns (method created in BuccHandler)\n\t\t\tList<ZuccBucc> zuccBuccs = ZuccBuccPlugin.getHandler().getZuccBuccs(player);\n\t\t\t// you got that amount of ZuccBuccs total\n\t\t\tplayer.sendMessage(ChatColor.GRAY + String.valueOf(zuccBuccs.size()) + \" ZuccBuccs total!\");\n\t\t\t// value of each ZuccBucc is added to this double\n\t\t\tdouble value = 0;\n\t\t\t// loop through each ZuccBucc you own and add it to the total value\n\t\t\tfor (ZuccBucc zuccBucc : zuccBuccs) {\n\t\t\t\tvalue = value + zuccBucc.getValue();\n\t\t\t}\n\t\t\t// now that you have the total value, send it to them\n\t\t\tplayer.sendMessage(ChatColor.GRAY + \"Your ZuccBuccs are valued at \" + String.valueOf(value) + \"!\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public interface Command {\n\t\t\n\t/**\n\t * Executes the command.\n\t * @param (TurtleModel) t the turtle executing the command\n\t * @return the value the command evaluates to\n\t * @throws InvalidCommandException\n\t */\n\tabstract public double execute(TurtleModel t) throws InvalidCommandException;\n\t\n\t/**\n\t * Executes the command and replaces it with a constant command if the command is not a turtle command\n\t * @param (TurtleModel) t the turtle executing the command\n\t * @throws InvalidCommandException\n\t */\n\tabstract public void execNonTurtle(TurtleModel t) throws InvalidCommandException;\n\t\n\t/**\n\t * Checks if the command is a turtle command\n\t * @return true iff the command is a turtle command\n\t */\n\tabstract public boolean isTurtleCommand();\n\t\n\t/**\n\t * Checks if the command is a variable command\n\t * @return true iff the command is a variable command\n\t */\n\tabstract public boolean isVariableCommand();\n\t\n\t/**\n\t * Adds a command to this commands list of children/arguments\n\t * @param cmd\n\t */\n\tabstract public void addChild(Command cmd);\n\t\n\t/**\n\t * Replaces this command with another, by making the replacement the parent's child instead of this.\n\t * @param replacement\n\t */\n\tabstract public void selfReplace(Command replacement);\n\t\n\t/**\n\t * Checks if the command needs more arguments\n\t * @return true iff command can hold more arguments\n\t */\n\tabstract public boolean argsNotFull();\n\t\n\t/**\n\t * Gets the maximum arguments the command can hold\n\t * @return maximum arguments\n\t */\n\tabstract public int maxArgs();\n\t\n\t/**\n\t * Gets string representation of the command. Mostly used for debugging.\n\t * @return string representation\n\t */\n\tabstract public String toString();\n\t\n\t/**\n\t * Gets the command's name \n\t * @return the command's name\n\t */\n\tabstract public String getName();\n\t\n\t/**\n\t * Gets the commands children\n\t * @return the list of children\n\t */\n\tabstract public List<Command> getChildren();\n\t\n\t/**\n\t * Gets child index\n\t * @param index\n\t * @return the child at index index\n\t */\n\tabstract public Command getChild(int index);\n\t\n\t/**\n\t * Gets the command's parent\n\t * @return parent\n\t */\n\tabstract public Command getParent();\n\t\n\t/**\n\t * Sets the command's parent to cmd\n\t * @param cmd\n\t */\n\tabstract public void setParent(Command cmd);\n\t\n\t/**\n\t * Sets the TurtleModel used for execution to t\n\t * @param t\n\t */\n\tabstract public void setTurtle(TurtleModel t);\n\t\n\t/**\n\t * Gets the TurtleModel used for execution\n\t * @return the TurtleModel used for execution\n\t */\n\tabstract public TurtleModel getTurtle();\n\t\n\t/**\n\t * Sets the TurtleModel used for execution to value, and calls setTurtleRecursive(value)\n\t * on this turtle's parent\n\t * @param value\n\t */\n\tpublic abstract void setTurtleRecursive(TurtleModel value);\n}", "public interface SuperCommand {\n\n /**\n * Setups anything that is needed for this command.\n * <br/><br/>\n * It is recommended you do the following in this method:\n * <ul>\n * <li>Register any of the sub-commands of this command;</li>\n * <li>Define the permission required to use this command using {@link CompositeCommand#setPermission(String)};</li>\n * <li>Define whether this command can only be run by players or not using {@link CompositeCommand#setOnlyPlayer(boolean)};</li>\n * </ul>\n */\n void setup();\n\n /**\n * Returns whether the command can be executed by this user or not.\n * It is recommended to send messages to let this user know why they could not execute the command.\n * Note that this is run previous to {@link #execute(User, String, List)}.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if this command can be executed, {@code false} otherwise.\n * @since 1.3.0\n */\n default boolean canExecute(User user, String label, List<String> args) {\n return true;\n }\n\n /**\n * Defines what will be executed when this command is run.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if the command executed successfully, {@code false} otherwise.\n */\n boolean execute(User user, String label, List<String> args);\n\n /**\n * Tab Completer for CompositeCommands.\n * Note that any registered sub-commands will be automatically added to the list.\n * Use this to add tab-complete for things like names.\n * @param user the {@link User} who is executing this command.\n * @param alias alias for command\n * @param args command arguments\n * @return List of strings that could be used to complete this command.\n */\n default Optional<List<String>> tabComplete(User user, String alias, List<String> args) {\n return Optional.empty();\n }\n\n}", "public boolean hasValidArgs() {\r\n // if it has has zero argument, it is valid\r\n boolean zeroArgs = this.getCmd().getArguments().size() == 0;\r\n // return the boolean value\r\n return zeroArgs;\r\n }", "public static void main(String[] args) {\n /*if (args.length < 1)\n error(\"No output method given\");\n else if (args.length > 1)\n error(\"Expected 1 argument, received \" + args.length);\n else if (args[0].toLowerCase().equals(\"cli\"))*/\n new CLI().main();\n /*else if (args[0].toLowerCase().equals(\"gui\"))\n new GUI().main();*/\n /*else\n error(args[0] + \" is not a valid argument\");*/\n }", "private int executeCommands(BufferedReader reader)\n throws CommandException, CommandValidationException, IOException {\n String line = null;\n int rc = 0;\n\n /*\n * Any program options we start with are copied to the environment\n * to serve as defaults for commands we run, and then we give each\n * command an empty program options.\n */\n programOpts.toEnvironment(env);\n for (;;) {\n if (printPrompt) {\n System.out.print(\"asadmin> \");\n System.out.flush();\n }\n if ((line = reader.readLine()) == null) {\n if (printPrompt)\n System.out.println();\n break;\n }\n\n if (line.trim().startsWith(\"#\")) // ignore comment lines\n continue;\n\n String[] args = null;\n try {\n args = getArgs(line);\n } catch (ArgumentTokenizer.ArgumentException ex) {\n logger.printMessage(ex.getMessage());\n continue;\n }\n\n if (args.length == 0)\n continue;\n\n String command = args[0];\n if (command.length() == 0)\n continue;\n\n // handle built-in exit and quit commands\n // XXX - care about their arguments?\n if (command.equals(\"exit\") || command.equals(\"quit\"))\n break;\n\n CLICommand cmd = null;\n ProgramOptions po = null;\n try {\n /*\n * Every command gets its own copy of program options\n * so that any program options specified in its\n * command line options don't effect other commands.\n * But all commands share the same environment.\n */\n po = new ProgramOptions(env);\n // copy over AsadminMain info\n po.setProgramArguments(programOpts.getProgramArguments());\n po.setClassPath(programOpts.getClassPath());\n po.setClassName(programOpts.getClassName());\n // remote the old one and replace it\n habitat.remove(\n habitat.getInhabitantByType(ProgramOptions.class));\n habitat.addComponent(\"program-options\", po);\n cmd = CLICommand.getCommand(habitat, command);\n rc = cmd.execute(args);\n } catch (CommandValidationException cve) {\n logger.printError(cve.getMessage());\n logger.printError(cmd.getUsage());\n rc = ERROR;\n } catch (CommandException ce) {\n if (ce.getCause() instanceof InvalidCommandException) {\n // find closest match with local or remote commands\n logger.printError(ce.getMessage());\n try {\n CLIUtil.displayClosestMatch(command,\n CLIUtil.getAllCommands(habitat, po, env),\n strings.get(\"ClosestMatchedLocalAndRemoteCommands\"));\n } catch (InvalidCommandException e) {\n // not a big deal if we cannot help\n }\n } else if (ce.getCause() instanceof java.net.ConnectException) {\n // find closest match with local commands\n logger.printError(ce.getMessage());\n try {\n CLIUtil.displayClosestMatch(command,\n CLIUtil.getLocalCommands(habitat),\n strings.get(\"ClosestMatchedLocalCommands\"));\n } catch (InvalidCommandException e) {\n logger.printMessage(\n strings.get(\"InvalidRemoteCommand\", command));\n }\n } else\n logger.printError(ce.getMessage());\n rc = ERROR;\n } finally {\n // restore the original program options\n // XXX - is this necessary?\n habitat.remove(\n habitat.getInhabitantByType(ProgramOptions.class));\n habitat.addComponent(\"program-options\", programOpts);\n }\n\n // XXX - this duplicates code in AsadminMain, refactor it\n switch (rc) {\n case SUCCESS:\n if (!programOpts.isTerse())\n logger.printDetailMessage(\n strings.get(\"CommandSuccessful\", command));\n break;\n\n case ERROR:\n logger.printDetailMessage(\n strings.get(\"CommandUnSuccessful\", command));\n break;\n\n case INVALID_COMMAND_ERROR:\n logger.printDetailMessage(\n strings.get(\"CommandUnSuccessful\", command));\n break;\n\n case CONNECTION_ERROR:\n logger.printDetailMessage(\n strings.get(\"CommandUnSuccessful\", command));\n break;\n }\n CLIUtil.writeCommandToDebugLog(args, rc);\n }\n return rc;\n }", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "protected abstract String executeCommandAndModifyOutput(List<String> args, String originalInput);", "public void testParseCommands_Fail1() throws Exception {\r\n target = new DistributionScriptParserImpl();\r\n try {\r\n target.parseCommands(null, new DistributionScript(), LogManager.getLog(\"test_parse_commands\"));\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "Optional<String> execute(String command, List<String> args);" ]
[ "0.6632404", "0.6583757", "0.6259667", "0.60327303", "0.6025447", "0.6016219", "0.6001671", "0.59779364", "0.5958461", "0.5925061", "0.59197617", "0.59163696", "0.5853315", "0.58469486", "0.5820689", "0.58161306", "0.58025366", "0.57566607", "0.5755298", "0.5734235", "0.57286334", "0.5714015", "0.57108843", "0.56998444", "0.56944036", "0.5689799", "0.5668845", "0.56574005", "0.5651919", "0.56472236", "0.5645025", "0.56425405", "0.5641311", "0.5638332", "0.5629159", "0.5629101", "0.56289196", "0.56275195", "0.5621634", "0.5616579", "0.5609429", "0.55964714", "0.55959207", "0.5581057", "0.5572956", "0.55422366", "0.5539534", "0.55293965", "0.5523913", "0.5519004", "0.5517593", "0.5508098", "0.5502854", "0.5502289", "0.5497892", "0.54843795", "0.5479928", "0.54688317", "0.54685414", "0.5464333", "0.54527724", "0.54483765", "0.54482824", "0.54421", "0.543587", "0.5417423", "0.54058826", "0.53945166", "0.53935444", "0.539275", "0.53836584", "0.5382076", "0.53705144", "0.53695595", "0.53678507", "0.5366158", "0.53660536", "0.5364805", "0.5364614", "0.5361457", "0.53536785", "0.5347225", "0.53414327", "0.534094", "0.53364694", "0.5328933", "0.53288186", "0.53237814", "0.5322015", "0.5306044", "0.5306021", "0.53030574", "0.53017795", "0.53010917", "0.5298762", "0.5296302", "0.52883524", "0.52844244", "0.52806234", "0.52801657", "0.5279697" ]
0.0
-1
Can be overwritten by the concrete commands if at least the value of one parameter must be checked. Checks all values of all passed parameters. An explaining error message must be output by the concrete command.
@Override protected boolean hasValidArgumentValues(@NotNull ImmutableList<Parameter> arguments) { boolean valid = true; Value rowIndex = arguments.get(0).value(); Value columnIndex = arguments.get(1).value(); Preconditions.checkValueType(rowIndex, ValueType.NUMBER); Preconditions.checkValueType(columnIndex, ValueType.NUMBER); checkArgument(!rowIndex.hasImaginaryValue(), "Row index may not be imaginary"); checkArgument(!columnIndex.hasImaginaryValue(), "Column index may not be imaginary"); // Check for value bounds on row index if (!NumberUtil.isInteger(rowIndex.realPart()) || rowIndex.realPart() < 0 || rowIndex.realPart() > getEnvironment().getHomeScreen().getMaxRows()) { valid = false; } // Check for value bounds on column index if (!NumberUtil.isInteger(columnIndex.realPart()) || columnIndex.realPart() < 0 || columnIndex.realPart() > getEnvironment().getHomeScreen().getMaxColumns()) { valid = false; } return valid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkParameters() {\n }", "@Override\n\tpublic void check(String arguments, Map<String, String> defValue, Set<String> errors) {\n\n\t}", "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 abstract Error errorCheck(Model m, String command);", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify a configuration\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "private void validateInputParameters(){\n\n }", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "private void validateOptionalParams(StringBuilder errors) throws Exception {\n // Validate RECON_PARTIAL_TRIGGER Option configuration.\n String paramValue = inputParams.getProperty(\"RECON_PARTIAL_TRIGGER\");\n if(paramValue!=null && !paramValue.trim().isEmpty()){\n StringTokenizer tokens = new StringTokenizer(paramValue, Constants.TOKEN_SEPARATOR);\n while(tokens.hasMoreElements()){\n try{\n PartialTriggerOptions.valueOf(tokens.nextToken());\n }catch(Exception ex){\n errors.append(\"Invalid Parameter Configuration for RECON_PARTIAL_TRIGGER. Please correct.\"\n + System.getProperty(\"line.separator\"));\n }\n }\n }\n // Validate TARGET_SHARED_IDSTORE_SEARCHBASE\n paramValue = inputParams.getProperty(\"TARGET_SHARED_IDSTORE_SEARCHBASE\");\n if(paramValue==null || paramValue.trim().isEmpty()){\n Logger.getLogger(IdentityReconciliationProcessor.class.getName()).log(Level.INFO, \n \"Parameter [Optional] TARGET_SHARED_IDSTORE_SEARCHBASE not configured. \" +\n \"Highly recommended to configure this parameter. Note that - This may result in performance issue.\");\n }\n paramValue = inputParams.getProperty(Constants.BATCH_SIZE_ATTR);\n if(paramValue!=null && !paramValue.trim().isEmpty()){\n try{\n getBatchSize(paramValue);\n }catch(Exception ex){\n errors.append(\"Invalid Parameter Configuration for Batch Size. Please correct.\"\n + System.getProperty(\"line.separator\"));\n }\n }\n }", "private void checkMandatoryArguments() throws ArgBoxException {\n\t\tfinal List<String> errors = registeredArguments.stream()\n\t\t\t\t.filter(arg -> arg.isMandatory())\n\t\t\t\t.filter(arg -> !parsedArguments.containsKey(arg))\n\t\t\t\t.map(arg -> String.format(\"The argument %1s is required !\", arg.getLongCall()))\n\t\t\t\t.collect(Collectors.toList());\n\t\tthrowException(() -> !errors.isEmpty(), getArgBoxExceptionSupplier(\"Some arguments are missing !\", errors));\n\t}", "public void helpByParamsError() {\n System.err.println(\"The command syntax is wrong.\");\n System.err.println(\"You can write the command in the following way:\");\n System.err.println(\"java -jar portScanner-1.5.jar ipOrElseDomain minPortRange maxPortRange [file-to-save-open-ports.txt]\");\n System.err.println(\"java -jar PortScanner-1.5.jar 127.0.0.1 0 65535 file.txt\");\n System.err.println(\"or else\");\n System.err.println(\"java -jar PortScanner-1.5.jar ipOrElseDomain [file-to-save-open-ports.txt]\");\n System.err.println(\"java -jar PortScanner-1.5.jar cloudflare.com file.txt\");\n System.err.println(\"The file is not obligatory option.\");\n System.exit(1);\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 }", "private void checkParams() throws InvalidParamException{\r\n String error = svm.svm_check_parameter(this.problem, this.param);\r\n if(error != null){\r\n throw new InvalidParamException(\"Invalid parameter setting!\" + error);\r\n }\r\n }", "private ErrorCode checkParameters() {\n\t\t\n\t\t// Check Batch Size\n\t\ttry {\n\t\t\tInteger.parseInt(batchSizeField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.BatchSize;\n\t\t}\n\t\t\n\t\t// Check confidenceFactor\n\t\ttry {\n\t\t\tDouble.parseDouble(confidenceFactorField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.ConfidenceFactor;\n\t\t}\n\t\t\n\t\t// Check minNumObj\n\t\ttry {\n\t\t\tInteger.parseInt(minNumObjField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.MinNumObj;\n\t\t}\n\t\t\n\t\t// Check numDecimalPlaces\n\t\ttry {\n\t\t\tInteger.parseInt(numDecimalPlacesField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumDecimalPlaces;\n\t\t}\n\t\t\n\t\t// Check numFolds\n\t\ttry {\n\t\t\tInteger.parseInt(numFoldsField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumFolds;\n\t\t}\n\t\t\n\t\t// Check seed\n\t\ttry {\n\t\t\tInteger.parseInt(seedField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.Seed;\n\t\t}\n\t\t\n\t\treturn ErrorCode.Fine;\n\t\t\n\t}", "@Test\n\tpublic void execute() throws Exception {\n\t\tassertTrue(argumentAnalyzer.getFlags().contains(Context.CHECK.getSyntax()));\n\t}", "@Override\n\tprotected void check() throws SiDCException, Exception {\n\t\tif (entity == null) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of request.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getStatus())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of status.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getLangcode())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of lang code.\");\n\t\t}\n\t}", "private static void verifyArgs()\r\n\t{\r\n\t\tif(goFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GO file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(annotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input annotation file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(goSlimFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GOslim file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(slimAnnotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an output file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t}", "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 static void printErrorMessage() {\n System.out.println(\"Oh no! It looks like I wasn't able to understand the arguments you passed in :(\"\n + \"\\nI can only handle arguments passed in a format like the following: 1/2 * 3/4\\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 }", "Optional<String> validate(String command, List<String> args);", "@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}", "public abstract void validateCommand(FORM target, Errors errors);", "@Override\n\tprotected boolean validateRequiredParameters() throws Exception {\n\t\treturn true;\n\t}", "private static void checkPassedInArguments(String[] args, EquationManipulator manipulator) {\n // Convert arguments to a String\n StringBuilder builder = new StringBuilder();\n for (String argument: args) {\n builder.append(argument + \" \");\n }\n \n // check if equation is valid\n String[] equation = manipulator.getEquation(builder.toString());\n if (equation.length == 0) {\n // unable to parse passed in arguments\n printErrorMessage();\n handleUserInput(manipulator);\n } else {\n // arguments were passed in correctly\n System.out.println(\"Wohoo! It looks like everything was passed in correctly!\"\n + \"\\nYour equation is: \" + builder.toString() + \"\\n\");\n handleArguments(equation, manipulator);\n }\n }", "public abstract ValidationResults validArguments(String[] arguments);", "@Override\n public ValidationResults validArguments(String[] arguments) {\n final int MANDATORY_NUM_OF_ARGUMENTS = 1;\n if (arguments.length == MANDATORY_NUM_OF_ARGUMENTS) {\n // Check if CommandMAN was called on itself (Checker doesn't need to\n // validate CommandMAN twice).\n if (arguments[0].equals(this.getCommandName())) {\n this.toDocument = this; // man will document itself.\n } else {\n // Man will document this command object.\n try {\n this.toDocument = Checker.getCommand(arguments[0], true);\n } catch (Exception ex) {\n return new ValidationResults(false, \"No manual entry for \"\n + arguments[0]); // CMD does not exist.\n }\n }\n return new ValidationResults(true, null);\n }\n return new ValidationResults(false, \"Requires \"\n + MANDATORY_NUM_OF_ARGUMENTS + \" argument.\");\n }", "public void correctErrors();", "private void validateArgumentValues() throws ArgBoxException {\n\t\tfinal List<String> errorMessages = new ArrayList<>();\n\t\tparsedArguments.values().stream()\n\t\t\t\t.filter(parsedArg -> parsedArg.isValueRequired())\n\t\t\t\t.filter(parsedArg -> {\n\t\t\t\t\tfinal boolean emptyValue = null == parsedArg.getValue();\n\t\t\t\t\tif (emptyValue) {\n\t\t\t\t\t\terrorMessages.add(String.format(\"The argument %1s has no value !\", parsedArg.getCommandArg()));\n\t\t\t\t\t}\n\t\t\t\t\treturn !emptyValue;\n\t\t\t\t})\n\t\t\t\t.peek(parsedArg -> {\n\t\t\t\t\tif (parsedArg.getValidator().negate().test(parsedArg.getValue())) {\n\t\t\t\t\t\terrorMessages.add(String.format(\"The value %1s for the argument %2s is not valid !\",\n\t\t\t\t\t\t\t\tparsedArg.getValue(), parsedArg.getCommandArg()));\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.close();\n\t\tthrowException(() -> CollectionUtils.isNotEmpty(errorMessages),\n\t\t\t\tgetArgBoxExceptionSupplier(\"One or more arguments have errors with their values !\", errorMessages));\n\t}", "private void cmdCheck(String line) throws NoSystemException {\n boolean verbose = false;\n boolean details = false;\n boolean all = false;\n boolean noGenInv = true;\n ArrayList<String> invNames = new ArrayList<String>();\n StringTokenizer tokenizer = new StringTokenizer(line);\n // skip command\n tokenizer.nextToken();\n while (tokenizer.hasMoreTokens()) {\n String token = tokenizer.nextToken();\n if (token.equals(\"-v\")) {\n verbose = true;\n } else if (token.equals(\"-d\")) {\n details = true;\n } else if (token.equals(\"-a\")) {\n all = true;\n } else {\n MClassInvariant inv = system().model().getClassInvariant(token);\n if (system().generator() != null && inv == null) {\n GFlaggedInvariant gInv = system().generator()\n .flaggedInvariant(token);\n if (gInv != null) {\n inv = gInv.classInvariant();\n noGenInv = false;\n }\n }\n if (!noGenInv) {\n if (inv == null)\n Log.error(\"Model has no invariant named `\" + token\n + \"'.\");\n else\n invNames.add(token);\n }\n }\n }\n\n PrintWriter out;\n if (Options.quiet && !Options.quietAndVerboseConstraintCheck) {\n out = new PrintWriter(new NullWriter());\n } else {\n out = new PrintWriter(Log.out());\n }\n fLastCheckResult = system().state().check(out, verbose, details, all,\n invNames);\n }", "private void argumentChecker(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tif (args.length != 2) {\n\t\t\tSystem.out.println(\"Invalid arguments. \\nExpected:\\tDriver inputFile.txt outputFile.txt\");\n\t\t}\n\t}", "private void checkForEmptyLine() throws OutmatchingParametersToMethodCall {\n if (this.params.isEmpty() && method.getParamAmount() != 0) {\n throw new OutmatchingParametersToMethodCall();\n } else if (method.getParamAmount() == 0 && !this.params.isEmpty()) {\n throw new OutmatchingParametersToMethodCall();\n }\n }", "@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}", "@Override\n protected void checkValidity() throws DukeException {\n\n if (this.descriptionOfTask.isEmpty()) {\n throw new DukeException(\" ☹ OOPS!!! The description of a done cannot be empty.\");\n }\n\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify the path to the RhapsodyCL.exe file\");\n else if(!value.contains(\"RhapsodyCL.exe\")) {\n \terror(\"didn't find RhapsodyCL.exe in the path !\");\n }else{\n \tok(); \t\n }\n }", "private static void checkParameters(MultipleCategorySeries dataset, DefaultRenderer renderer) {\n if (dataset == null || renderer == null\n || !checkMultipleSeriesItems(dataset, renderer.getSeriesRendererCount())) {\n throw new IllegalArgumentException(\n \"Titles and values should be not null and the dataset number of items should be equal to the number of series renderers\");\n }\n }", "public abstract void checkingCommand(String nameOfCommand, ArrayList<Unit> units);", "public abstract String check() throws Exception;", "public void validate() throws ParameterValuesException {\n\t\tif (txtTenTaiSan.getText().isEmpty())\n\t\t\tthrow new ParameterValuesException(\"Bạn cần nhập tên tài sản\", null);\n\t}", "void check() throws YangException;", "@Override\r\n public boolean isValidParameterCount(int parameterCount) {\n return parameterCount> 0;\r\n }", "public void check(List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev, String[] input, String[] output, RowMetaInterface info) {\n\t\t// TODO: Do something here?\n\t}", "@Override\r\n public void execute()\r\n {\r\n printInvalidCommandMessage();\r\n }", "protected abstract boolean checkInput();", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please type in the License Server\");\n else {\n \t//TODO add more checks\n \tok();\n }\n }", "protected abstract String insufficientParameterExceptionMessage(TransactionCommand transactionCommand);", "@Override\r\n\tpublic final void showCommandError(String command, String message) {\n\t}", "static void check(String msg, boolean value) {\n\t\tif (!value) throw new RuntimeException(msg);\n\t}", "private void validate(WikiMacroParameters parameters, String macroContent) throws MacroExecutionException\n {\n // First verify that all mandatory parameters are provided.\n // Note that we currently verify automatically mandatory parameters in Macro Transformation but for the moment\n // this is only checked for Java-based macros. Hence why we need to check here too.\n Map<String, ParameterDescriptor> parameterDescriptors = getDescriptor().getParameterDescriptorMap();\n for (String parameterName : parameterDescriptors.keySet()) {\n ParameterDescriptor parameterDescriptor = parameterDescriptors.get(parameterName);\n Object parameterValue = parameters.get(parameterName);\n if (parameterDescriptor.isMandatory() && (null == parameterValue)) {\n throw new MacroParameterException(String.format(\"Parameter [%s] is mandatory\", parameterName));\n }\n\n // Set default parameter value if applicable.\n Object parameterDefaultValue = parameterDescriptor.getDefaultValue();\n if (parameterValue == null && parameterDefaultValue != null) {\n parameters.set(parameterName, parameterDefaultValue);\n }\n }\n\n // Verify the a macro content is not empty if it was declared mandatory.\n if (getDescriptor().getContentDescriptor() != null && getDescriptor().getContentDescriptor().isMandatory()) {\n if (macroContent == null || macroContent.length() == 0) {\n throw new MacroExecutionException(\"Missing macro content: this macro requires content (a body)\");\n }\n }\n }", "boolean hasParameterValue();", "boolean isValid(final Parameter... parameters);", "boolean hasErrormessage();", "protected abstract boolean checkedParametersAppend();", "private boolean validateParams(int amount) {\n\t\tString paramArray[] = {param1,param2,param3,param4,param5,param6};\r\n\t\tfor(int i = 0; i < amount; i++) {\r\n\t\t\tif(paramArray[i] == null) {\r\n\t\t\t\t//Error\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private static void check(boolean bedingung, String msg) throws IllegalArgumentException\n {\n if (!bedingung)\n throw new IllegalArgumentException(msg);\n }", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "private void checkParameters(List actualParameters)\n throws AbnormalTerminationException {\n if (actualParameters.size() != this._formalParameters.size()) {\n throw new AbnormalTerminationException(\"Ongeldig aantal parameters in \" + this.getName() + \"!\");\n }\n }", "public void printValidateInformation() {\n\n if(!validateFirstName()){\n System.out.println(\"The first name must be filled in\");\n }\n if(!validateFirstNameLength()){\n System.out.println(\"The first name must be at least 2 characters long.\");\n }\n if(!validateLastName()){\n System.out.println(\"The last name must be filled in\");\n }\n if(!validateLastNameLength()){\n System.out.println(\"The last name must be at least 2 characters long.\");\n }\n if(!validateZipcode()){\n System.out.println(\"The zipcode must be a 5 digit number.\");\n }\n if (!validateEmployeeID()){\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n }\n\n if(validateFirstName() && validateFirstNameLength() && validateLastName() && validateLastNameLength()\n && validateZipcode() && validateEmployeeID()){\n System.out.println(\"There were no errors found.\");\n }\n }", "@Test(priority=5)\n\tpublic void validatePleaseEnterTheValueErrorMsg1()\n\t{\n\t\tc.addButton.click();\n\t\tAssert.assertTrue(c.msg.getText().equalsIgnoreCase(\"Please Enter A Value.\"));\n\t}", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "@Override\n protected boolean hasValidNumberOfArguments(int numberOfParametersEntered) {\n return numberOfParametersEntered == 3;\n }", "private boolean checkingAllArguments() {\n\t\t\n\t\t// test if the four player types have been selected\n\t\tfor(int i=0;i<allButtons.size();i++) {\n\t\t\tif(allButtons.get(i)==null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// test if the seed is in the correct format\n\t\tif(!(seed.textProperty().get().isEmpty())){\n\t\t\ttry {\n\t\t\t\tgameSeed = Long.parseLong(seed.getText());\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tmenuMessage.setText(\"Given seed is not a valid number\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t// test if for each of the players the given arguments are correct\n\t\tfor(int i = 0; i < allButtons.size(); ++i) {\n\t\t\tchar playerType = allButtons.get(i).getText().charAt(0);\n\t\t\tString argument = texts.get(2 * i + 1).getText();\n\t\t\t\n\t\t\tif(!argument.isEmpty()) {\n\t\t\t\tswitch(playerType) {\n\t\t\t\t\n\t\t\t\tcase 'S' : \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlong l = Long.parseLong(texts.get(2 * i + 1).getText());\n\t\t\t\t\t\tif(l < 9) {\n\t\t\t\t\t\t\tmenuMessage.setText(\"The iteration value must be at least 9\");\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tmenuMessage.setText(\"One of the iteration number is not a valid number\");\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'R' :\n\t\t\t\t\t\n\t\t\t\t\tString[] parts = StringSerializer.split(\"\\\\.\", argument); \n\t\t\t\t\t\n\t\t\t\t\tif (parts.length != 4) { \n\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\treturn false; \n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tfor (String str : parts) { \n\t\t\t\t\t\tint j = Integer.parseInt(str); \n\t\t\t\t\t\tif ((j < 0) || (j > 255)) { \n\t\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\t\treturn false; \n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic void validate(Object arg0, Errors arg1) {\n\n\t}", "@DefaultMessage(\"Please correct the errors indicated, then press Commit\")\n @Key(\"gen.correctErrors\")\n String gen_correctErrors();", "void checkValid();", "public ParameterSetupDialog(boolean valueCheckRequired, ParameterSet parameters, String message) {\n this(valueCheckRequired, parameters, true, true, message);\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 static void handleInvalidCommandException() {\n System.out.println(\"\\tSorry sir, I do not recognise this command.\");\n Help.execute();\n Duke.jarvis.printDivider();\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void setWrongError() {\n\t\t\n\t}", "protected void validateParameter(String... param) throws NavigationException {\r\n\t\tif (param.length > 0){\r\n\t\t\tfor(int i = 0; i < param.length; i++){\r\n\t\t\t\tif (param[i] != null && param[i].isEmpty()) {\r\n\t\t\t\t\tthrow new NavigationException(\"parametro no enviado\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "abstract public boolean argsNotFull();", "public static String checkFormatCommandLine(String[] cmdStrings) {\n String result = \"\";\n String checkFormat = cmdStrings.length != 0 ? cmdStrings[0] : \"\";\n if (cmdStrings.length == 0 || checkFormat.equalsIgnoreCase(\"-h\")) {\n result = HELP;\n } else {\n if (find(cmdStrings, \"-r\") == -1) {\n result = \"Error: Not input file.\";\n } else if (find(cmdStrings, \"-1\") + 1 >= cmdStrings.length) {\n result = \"Error: Not found file.\";\n }\n }\n return result;\n }", "private void canCreateBuildErrorSet(List<String> errorSet, List<String> naSet, String name, int max, int used, int required)\n {\n if(max == 0 && used < 0)\n {\n naSet.add(name + \" ::: Resource information not available.\");\n }\n else if(max == 0 && required > 0)\n {\n naSet.add(name + \" ::: not possible to validate. Information about the resource was not received from the API. \" +\n \"Received ::: Quota: \" + max + \", Available: \" + (max - used) + \", Required: \" + required + \".\");\n }\n //else if(used > max)\n //{\n // naSet.add(name + \" ::: API seems to work incorrectly: used resources cannot be bigger than quota.\");\n //}\n //else if((max - used) <= required)\n else if(!canCreateCheck(max, used, required))\n {\n errorSet.add(name + \" ::: Quota: \" + max + \", Available: \" + (max - used) + \", Required: \" + required + \".\");\n }\n }", "@Override\n protected void runHandler() {\n checkContainsAny(MSG_PARAM_DEFINITIONS_WITH_CHECK,\n NullnessAnnotation.CHECK_FOR_NULL, NullnessAnnotation.CHECK_RETURN_VALUE);\n checkContainsAny(MSG_PARAM_DEFINITION_WITH_OVERRIDE,\n NullnessAnnotation.OVERRIDE);\n checkContainsAny(MSG_PARAM_DEFINITION_WITH_NONNULL_BY_DEFAULT,\n NullnessAnnotation.PARAMETERS_ARE_NONNULL_BY_DEFAULT);\n checkContainsAny(MSG_PARAM_DEFINITION_WITH_NULLABLE_BY_DEFAULT,\n NullnessAnnotation.PARAMETERS_ARE_NULLABLE_BY_DEFAULT);\n checkContainsAny(MSG_PARAM_DEFINITION_WITH_RETURN_DEFAULT,\n NullnessAnnotation.RETURN_VALUES_ARE_NONNULL_BY_DEFAULT);\n checkContainsAll(MSG_PARAM_NONNULL_AND_NULLABLE,\n NullnessAnnotation.NONNULL, NullnessAnnotation.NULLABLE);\n\n final DetailAST ast = getAst();\n if (isPrimitiveType(ast)) {\n checkContainsAny(MSG_PRIMITIVES_WITH_NULLNESS_ANNOTATION,\n NullnessAnnotation.CHECK_FOR_NULL, NullnessAnnotation.NONNULL,\n NullnessAnnotation.NULLABLE);\n }\n else {\n final NullnessAnnotation firstAncestorAnnotation =\n getParentMethodOrClassAnnotation(\n NullnessAnnotation.PARAMETERS_ARE_NONNULL_BY_DEFAULT,\n NullnessAnnotation.PARAMETERS_ARE_NULLABLE_BY_DEFAULT);\n final boolean isMethodOverridden = isMethodOverridden();\n final boolean parametersAreNonnullByDefault = firstAncestorAnnotation\n == NullnessAnnotation.PARAMETERS_ARE_NONNULL_BY_DEFAULT;\n final boolean parametersAreNullableByDefault = firstAncestorAnnotation\n == NullnessAnnotation.PARAMETERS_ARE_NULLABLE_BY_DEFAULT;\n\n if (isMethodOverridden && !allowOverridingParameter) {\n checkContainsAny(MSG_OVERRIDDEN_WITH_INCREASED_CONSTRAINT,\n NullnessAnnotation.NONNULL);\n }\n if (parametersAreNonnullByDefault) {\n checkContainsAny(MSG_REDUNDANT_NONNULL_PARAM_ANNOTATION,\n NullnessAnnotation.NONNULL);\n }\n if (parametersAreNullableByDefault) {\n checkContainsAny(MSG_REDUNDANT_NULLABLE_PARAM_ANNOTATION,\n NullnessAnnotation.NULLABLE);\n }\n\n if (!isMethodOverridden && !parametersAreNonnullByDefault\n && !parametersAreNullableByDefault) {\n checkContainsNone(MSG_PARAMETER_WITHOUT_NULLNESS_ANNOTATION,\n NullnessAnnotation.NONNULL, NullnessAnnotation.NULLABLE);\n }\n }\n }", "private void performSanityCheckForInput(NumericChoice[] correctNumericChoices)\n throws IllegalArgumentException {\n\n if (correctNumericChoices.length != 1) {\n throw new IllegalArgumentException(\"cannot have more than 1 correct option\");\n }\n }", "void printError(String errorMsg, boolean displayHelp);", "protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }", "boolean hasErrors();", "public boolean hasErrors();", "private boolean checkInputFields(){\r\n\t\tString allertMsg = \"Invalid input: \" + System.getProperty(\"line.separator\");\r\n\t\t\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MCSTf.getText());\r\n\t\t\tif(testValue < 0 || testValue > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a MCS score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for relevance score weight and coherence score weight text fields\r\n\t\ttry{\r\n\t\t\tFloat relScoreW = Float.parseFloat(m_RelScoreTf.getText());\r\n\t\t\tFloat cohScoreW = Float.parseFloat(m_CohScoreTf.getText());\r\n\t\t\tif(relScoreW < 0 || relScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif(cohScoreW < 0 || cohScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif((relScoreW + cohScoreW) != 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a weight for relevance and coherence score.\" + System.getProperty(\"line.separator\");\r\n\t\t\tallertMsg += \"Sum of the weights for relevance and coherence score must be 1.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_KeyTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as multiplier for keyword concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for category confidence weight\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_CatConfTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for the weight of the category confidence of concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for weight of repeated concepts\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_RepeatTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for repeated concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for number of output categories\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MaxCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the maximum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MinCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the minimum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MinCatScoreTf.getText());\r\n\t\t\tif(testValue < 0.0f || testValue > 1.0f)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number between 0 and 1 as minimum category score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\tif(allertMsg.length() > 18){\r\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\talert.setContentText(allertMsg);\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public String validate() {\n\n // validate input source\n int inputCounts = 0;\n if (!inputFiles.isEmpty())\n inputCounts++;\n if (inputDescriptor != null)\n inputCounts++;\n if (stdin)\n inputCounts++;\n if (stdinDescriptor)\n inputCounts++;\n if (customInputStream != null)\n inputCounts++;\n\n if (inputCounts == 0)\n return \"Must specify at least one input source.\";\n if (inputCounts > 1)\n return \"Please specify only one type of input source.\";\n\n\n // validate output target\n int outputCounts = 0;\n if (outputDir != null)\n outputCounts++;\n if (outputFile != null)\n outputCounts++;\n if (stdout)\n outputCounts++;\n\n if (outputCounts == 0)\n return \"Must specify an output target.\";\n if (outputCounts > 1)\n return \"Please specify only one output target.\";\n\n if (outputLang != null) {\n if (outputFile != null)\n return \"Native java/python compilation cannot be used with the --outputFile option\";\n if (stdout)\n return \"Native java/python compilation cannot be used with the --stdout option\";\n }\n\n return null;\n }", "public final void testValidate() {\r\n\r\n Errors errors;\r\n\r\n // Validate a command. Validate with errors.\r\n errors = new BindException(sampleValidatableCommand,\r\n \"sampleValidatableCommand\");\r\n commandValidator.validate(sampleValidatableCommand, errors);\r\n assertEquals(1, errors.getErrorCount());\r\n\r\n // Validate without errors.\r\n errors = new BindException(\r\n sampleValidatableCommand, \"sampleValidatableCommand\");\r\n sampleValidatableCommand.setField(\"Not empty field\");\r\n commandValidator.validate(sampleValidatableCommand, errors);\r\n assertEquals(0, errors.getErrorCount());\r\n\r\n // Validate a validatable. Validate with errors.\r\n errors = new BindException(sampleValidatable, \"sampleValidatable\");\r\n commandValidator.validate(sampleValidatable, errors);\r\n assertEquals(1, errors.getErrorCount());\r\n\r\n // Validate without errors.\r\n errors = new BindException(sampleValidatable, \"sampleValidatable\");\r\n sampleValidatable.setField(\"Not empty field\");\r\n commandValidator.validate(sampleValidatable, errors);\r\n assertEquals(0, errors.getErrorCount());\r\n }", "private void checkUserInput() {\n }", "@Test(expectedExceptions=InvalidArgumentValueException.class)\n public void argumentValidationTest() {\n String[] commandLine = new String[] {\"--value\",\"521\"};\n\n parsingEngine.addArgumentSource( ValidatingArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n ValidatingArgProvider argProvider = new ValidatingArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 521, \"Argument is not correctly initialized\");\n\n // Try some invalid arguments\n commandLine = new String[] {\"--value\",\"foo\"};\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n }", "private void checkArgTypes() {\n Parameter[] methodParams = method.getParameters();\n if(methodParams.length != arguments.length + 1) {\n throw new InvalidCommandException(\"Incorrect number of arguments on command method. Commands must have 1 argument for the sender and one argument per annotated argument\");\n }\n\n Class<?> firstParamType = methodParams[0].getType();\n\n boolean isFirstArgValid = true;\n if(requiresPlayer) {\n if(firstParamType.isAssignableFrom(IPlayerData.class)) {\n usePlayerData = true; // Command methods annotated with a player requirement can also use IPlayerData as their first argument\n } else if(!firstParamType.isAssignableFrom(Player.class)) {\n isFirstArgValid = false; // Otherwise, set it to invalid if we can't assign it from a player\n }\n } else if(!firstParamType.isAssignableFrom(CommandSender.class)) { // Non player requirement annotated commands must just take a CommandSender\n isFirstArgValid = false;\n }\n\n if(!isFirstArgValid) {\n throw new InvalidCommandException(\"The first argument for a command must be a CommandSender. (or a Player/IPlayerData if annotated with a player requirement)\");\n }\n }", "private void validateParameters(CustomMap<String, CustomList<String>> parameters) {\n /* Verify if the parameters are the students number. */\n if(parameters == null || parameters.size() > 3){\n errorValidator.addError(\"name\", \"This parameter must exist.\");\n errorValidator.addError(\"num\", \"This parameter must exist.\");\n errorValidator.addError(\"email\", \"This parameter must exist.\");\n return;\n }\n\n /* Verify if the parameters are correct. */\n CustomList nameAux = parameters.get(\"name\"), numAux = parameters.get(\"num\"), emailAux = parameters.get(\"email\");\n\n if(nameAux == null)\n errorValidator.addError(\"name\", \"This parameter must exist.\");\n\n if(numAux == null)\n errorValidator.addError(\"num\", \"This parameter must exist.\");\n\n if(emailAux == null)\n errorValidator.addError(\"email\", \"This parameter must exist.\");\n\n if(errorValidator.hasError())\n return;\n\n /* Verify num, pid email and name parameters type. */\n num = numAux.getVerifiedInt(0, errorValidator, \"num\");\n email = emailAux.getVerifiedString(0, errorValidator, \"email\");\n name = nameAux.getVerifiedString(0, errorValidator, \"name\");\n }", "public ArgumentChecker(String[] titles, String[] wordsRequired, String[] wordsExcluded) {\n for (String word : wordsRequired) {\n if (word.isEmpty() || word == null) {\n throw new IllegalArgumentException();\n }\n }\n for (String word : wordsExcluded) {\n if (word.isEmpty() || word == null) {\n throw new IllegalArgumentException();\n }\n }\n for (String title: titles) {\n if (title.length() < 1 || title == null) {\n throw new IllegalArgumentException();\n }\n }\n }", "public static void checkArgument(boolean b) {\n if (!b) {\n throw new IllegalArgumentException();\n }\n }", "public void validate() {\n transportStats.validate(this);\n\n for (String unitName : produces) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit name \" + unitName + \" in build unit stats\");\n }\n\n for (Map.Entry<String, String> entry : buildCities.entrySet()) {\n String terrainName = entry.getKey();\n String cityName = entry.getValue();\n Args.validate(!TerrainFactory.hasTerrainForName(terrainName), \"Illegal terrain \" + terrainName + \" in build cities stats\");\n Args.validate(!CityFactory.hasCityForName(cityName), \"Illegal city \" + cityName + \" in build cities stats\");\n }\n\n for (String unitName : supplyUnits) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units stats\");\n }\n\n for (String unitName : supplyUnitsInTransport) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units in transport stats\");\n }\n\n Args.validate(StringUtil.hasContent(primaryWeaponName) && !WeaponFactory.hasWeapon(primaryWeaponName),\n \"Illegal primary weapon \" + primaryWeaponName + \" for unit \" + name);\n Args.validate(StringUtil.hasContent(secondaryWeaponName) && !WeaponFactory.hasWeapon(secondaryWeaponName),\n \"Illegal secondary weapon \" + secondaryWeaponName + \" for unit \" + name);\n }", "@Test\n public void wrongArgumentsReturnsNullAndPrintsMessage() {\n String[] inputArgs = new String[] {\"-i\", \"/path/\"};\n ArgumentReader sut = new ArgumentReader(inputArgs);\n\n Arguments args = sut.read();\n\n assertThat(args, nullValue());\n assertThat(errContent.toString(), containsString(\"must be provided!\"));\n assertThat(errContent.toString(), containsString(\"Usage:\"));\n }", "private boolean isValidQuestionsArgument(ArrayList<String> argArray) {\n boolean isValid = true;\n if (argArray.size() != ADD_NOTE_ARGUMENTS) {\n TerminusLogger.warning(String.format(\"Failed to find %d arguments: %d arguments found\",\n ADD_NOTE_ARGUMENTS, argArray.size()));\n isValid = false;\n } else if (CommonUtils.hasEmptyString(argArray)) {\n TerminusLogger.warning(\"Failed to parse arguments: some arguments found is empty\");\n isValid = false;\n }\n return isValid;\n }", "protected int checkParam(Object o, String name)\n {\n if (o == null) {\n System.err.println(format(\"Parameter %s is not set\", name));\n return 1;\n }\n return 0;\n }", "private void checkParams(String[] params) throws MethodCallWithNonexistentParameter,\n OutmatchingParametersToMethodCall, OutmatchingParameterType, InconvertibleTypeAssignment {\n ArrayList<Variable> methodParams = this.method.getMethodParameters();\n if (params.length != methodParams.size()) {\n // not enough params somewhere, or more than enough.\n throw new OutmatchingParametersToMethodCall();\n }\n int i = 0;\n for (String toBeParam : params) {\n toBeParam = toBeParam.trim();\n Variable toBeVariable = findParamByName(toBeParam);\n VariableVerifier.VerifiedTypes type = methodParams.get(i).getType();\n if (toBeVariable == null) {\n VariableVerifier.VerifiedTypes typeOfString = VariableVerifier.VerifiedTypes.getTypeOfString(toBeParam);\n if (!type.getConvertibles().contains(typeOfString)) {\n throw new MethodCallWithNonexistentParameter();\n }\n } else {\n checkTypes(toBeVariable, methodParams.get(i));\n checkValue(toBeVariable);\n }\n i++;\n }\n }", "@Test\n public void parse_invalidValues_failure() {\n assertParseFailure(parser, \"1 2 3\", String.format(MESSAGE_INVALID_COMMAND_FORMAT,\n String.format(MESSAGE_TOO_MANY_ARGUMENTS,\n VendorCommand.COMMAND_WORD, 1, SwitchVendorCommand.MESSAGE_USAGE)));\n\n // Index passed is not a non-zero integer\n assertParseFailure(parser, \"1.4\", String.format(MESSAGE_INVALID_INDEX, \"Vendor Index\"));\n }", "int validate(ValidationContext ctx) {\n\t\tint count = 0;\n\t\tif (this.name == null) {\n\t\t\tctx.addError(\n\t\t\t\t\t\"Parameter has to have a name. This need not be the same as the one in the db though.\");\n\t\t\tcount++;\n\t\t}\n\t\tcount += ctx.checkDtExistence(this.dataType, \"dataType\", false);\n\t\tcount += ctx.checkRecordExistence(this.recordName, \"recordName\", false);\n\n\t\tif (this.defaultValue != null) {\n\t\t\tif (this.dataType == null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" is non-primitive but a default value is specified.\");\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tDataType dt = ComponentManager.getDataTypeOrNull(this.dataType);\n\t\t\t\tif (dt != null && dt.parseValue(this.defaultValue) == null) {\n\t\t\t\t\tthis.addError(ctx, \" default value of \" + this.defaultValue\n\t\t\t\t\t\t\t+ \" is invalid as per dataType \" + this.dataType);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (this.recordName != null) {\n\t\t\tif (this.dataType != null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" Both dataType and recordName specified. Use dataType if this is primitive type, or record if it as array or a structure.\");\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (this.sqlObjectType == null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" recordName is specified which means that it is a data-structure. Please specify sqlObjectType as the type of this parameter in the stored procedure\");\n\t\t\t}\n\t\t} else {\n\t\t\tif (this.dataType == null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" No data type or recordName specified. Use dataType if this is primitive type, or record if it as an array or a data-structure.\");\n\t\t\t\tcount++;\n\t\t\t} else if (this.sqlObjectType != null) {\n\t\t\t\tctx.addError(\n\t\t\t\t\t\t\"sqlObjectType is relevant only if this parameter is non-primitive.\");\n\t\t\t}\n\n\t\t}\n\n\t\tif (this.isArray) {\n\t\t\tif (this.sqlArrayType == null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" is an array, and hence sqlArrayType must be specified as the type with which this parameter is defined in the stored procedure\");\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\treturn count;\n\t}", "public boolean checkInput();", "public final boolean isNeedParseeErrorMsg() {\r\n return getCommand() == 10;\r\n }", "boolean hasParameters();", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "protected void validate_return(java.lang.String[] param){\r\n \r\n }" ]
[ "0.6905641", "0.66581714", "0.661855", "0.6559198", "0.6482945", "0.6354176", "0.63471663", "0.62672204", "0.62389445", "0.6233448", "0.61831", "0.6121701", "0.61197376", "0.60486484", "0.5995206", "0.59828955", "0.59694195", "0.59467155", "0.59186673", "0.5844083", "0.5832333", "0.5826851", "0.57974476", "0.5796382", "0.57924813", "0.577288", "0.5758277", "0.5753197", "0.57416797", "0.571817", "0.5686957", "0.567246", "0.5671543", "0.5658932", "0.56521314", "0.5638349", "0.56383103", "0.56365544", "0.5616861", "0.5615754", "0.55913234", "0.55901486", "0.55636036", "0.55548847", "0.55418646", "0.552621", "0.552559", "0.55244166", "0.5524365", "0.55205846", "0.55172306", "0.55146474", "0.55093867", "0.5506645", "0.54981387", "0.5496056", "0.5483969", "0.5470159", "0.54618996", "0.54580075", "0.54561806", "0.5440057", "0.5439645", "0.54370344", "0.5432185", "0.5422911", "0.539721", "0.5394294", "0.5394294", "0.53897506", "0.5389608", "0.5387638", "0.53806996", "0.5380008", "0.53749037", "0.53703886", "0.53644544", "0.5361574", "0.5359773", "0.5359123", "0.53579074", "0.53436303", "0.53392744", "0.5336683", "0.5334171", "0.53301436", "0.5323274", "0.532323", "0.5317218", "0.5314065", "0.53099614", "0.5307638", "0.52946854", "0.5293053", "0.52919817", "0.5290651", "0.52843696", "0.52842045", "0.52794766", "0.5277093", "0.52729774" ]
0.0
-1
Can be overwritten by the concrete commands if something must be checked. Checks if the number of parameters is in range.
@Override protected boolean hasValidNumberOfArguments(int numberOfParametersEntered) { return numberOfParametersEntered == 3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkParameters() {\n }", "@Override\r\n public boolean isValidParameterCount(int parameterCount) {\n return parameterCount> 0;\r\n }", "@Override\n\tprotected void checkNumberOfInputs(int length) {\n\n\t}", "private void validateInputParameters(){\n\n }", "abstract public boolean argsNotFull();", "protected static boolean ensureNumArgs( String param[], int n ) {\n\t\tif ( n >= 0 && param.length != n || n < 0 && param.length < -n ) {\n\t\t\tSystem.err.println( \"Wrong number (\" + param.length + \") of arguments.\" );\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void checkNumberArgs(int argNum) throws WrongNumberArgsException {\n/* 79 */ if (argNum < 2) {\n/* 80 */ reportWrongNumberArgs();\n/* */ }\n/* */ }", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "private void checkArgTypes() {\n Parameter[] methodParams = method.getParameters();\n if(methodParams.length != arguments.length + 1) {\n throw new InvalidCommandException(\"Incorrect number of arguments on command method. Commands must have 1 argument for the sender and one argument per annotated argument\");\n }\n\n Class<?> firstParamType = methodParams[0].getType();\n\n boolean isFirstArgValid = true;\n if(requiresPlayer) {\n if(firstParamType.isAssignableFrom(IPlayerData.class)) {\n usePlayerData = true; // Command methods annotated with a player requirement can also use IPlayerData as their first argument\n } else if(!firstParamType.isAssignableFrom(Player.class)) {\n isFirstArgValid = false; // Otherwise, set it to invalid if we can't assign it from a player\n }\n } else if(!firstParamType.isAssignableFrom(CommandSender.class)) { // Non player requirement annotated commands must just take a CommandSender\n isFirstArgValid = false;\n }\n\n if(!isFirstArgValid) {\n throw new InvalidCommandException(\"The first argument for a command must be a CommandSender. (or a Player/IPlayerData if annotated with a player requirement)\");\n }\n }", "private static void checkCmdArgs(int numberOfArgs, String[] args) {\n\t\tif (args.length != numberOfArgs) {\n\t\t\tSystem.out.println(\"Wrong number of command line arguments!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}", "private void validateParameter(){\n\t\tif(hrNum > upperBound){\n\t\t\thrNum = upperBound;\n\t\t}\n\t\telse if(hrNum < lowerBound){\n\t\t\thrNum = lowerBound;\n\t\t}\n\t}", "private static void checkNumOfArguments(String[] args) throws IllegalArgumentException{\n\t\ttry{\n\t\t\tif(args.length != App.numberOfExpectedArguments ) {\t\n\t\t\t\tthrow new IllegalArgumentException(\"Expected \" + App.numberOfExpectedArguments + \" arguments but received \" + args.length);\n\t\t\t}\n }\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\texitArgumentError();\n\t\t}\n\t\t\n\t}", "private boolean validateParams(int amount) {\n\t\tString paramArray[] = {param1,param2,param3,param4,param5,param6};\r\n\t\tfor(int i = 0; i < amount; i++) {\r\n\t\t\tif(paramArray[i] == null) {\r\n\t\t\t\t//Error\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isExpectedNumberOfParameters(long numberOfParameters);", "private void checkForEmptyLine() throws OutmatchingParametersToMethodCall {\n if (this.params.isEmpty() && method.getParamAmount() != 0) {\n throw new OutmatchingParametersToMethodCall();\n } else if (method.getParamAmount() == 0 && !this.params.isEmpty()) {\n throw new OutmatchingParametersToMethodCall();\n }\n }", "private void checkMandatoryArguments() throws ArgBoxException {\n\t\tfinal List<String> errors = registeredArguments.stream()\n\t\t\t\t.filter(arg -> arg.isMandatory())\n\t\t\t\t.filter(arg -> !parsedArguments.containsKey(arg))\n\t\t\t\t.map(arg -> String.format(\"The argument %1s is required !\", arg.getLongCall()))\n\t\t\t\t.collect(Collectors.toList());\n\t\tthrowException(() -> !errors.isEmpty(), getArgBoxExceptionSupplier(\"Some arguments are missing !\", errors));\n\t}", "public static void checkNumArgs(String[] args, int n) {\r\n if (args.length != n) {\r\n throw new GitletException(\"Incorrect operands.\");\r\n }\r\n return;\r\n }", "@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}", "@Override\n\tprotected boolean validateRequiredParameters() throws Exception {\n\t\treturn true;\n\t}", "public abstract ValidationResults validArguments(String[] arguments);", "@Override\n\tpublic void CheckBounds() {\n\t\t\n\t}", "protected void checkCommand(String com) throws IllegalArgumentException {\n if (com.length() != PushCacheProtocol.COMMAND_LEN) {\n throw new IllegalArgumentException(\"Command \\\"\" + com + \"\\\" is wrong length\");\n }\n if (com.charAt(3) != '\\0') {\n throw new IllegalArgumentException(\"Command \\\"\" + com + \"\\\" is not null terminated\");\n }\n }", "protected void validateAttenuator(int[] param) {\n }", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "protected abstract boolean checkedParametersAppend();", "public abstract void checkingCommand(String nameOfCommand, ArrayList<Unit> units);", "public final void invalidArgLength(Player player, String name) {\n \t\tplugin.sendWarning(player, \"Invalid Argument Length\");\n \t\t\n \t\tMethod method = plugin.getCommandManager().getCommandExecutor(name).getMethod();\n \t\t\n \t\tif (method.getAnnotation(CommandInfo.class) != null)\n \t\t\tplugin.sendInfo(player, \"Usage: /titanchat \" + method.getAnnotation(CommandInfo.class).usage());\n \t}", "public abstract int getMinimumArguments();", "static Boolean verifyArguments(String[] args)\n {\n if (args.length < 2)\n {\n return false;\n }\n \n return true;\n }", "private void checkParams() throws InvalidParamException{\r\n String error = svm.svm_check_parameter(this.problem, this.param);\r\n if(error != null){\r\n throw new InvalidParamException(\"Invalid parameter setting!\" + error);\r\n }\r\n }", "private static void checkFromToBounds(int paramInt1, int paramInt2, int paramInt3) {\n/* 386 */ if (paramInt2 > paramInt3) {\n/* 387 */ throw new ArrayIndexOutOfBoundsException(\"origin(\" + paramInt2 + \") > fence(\" + paramInt3 + \")\");\n/* */ }\n/* */ \n/* 390 */ if (paramInt2 < 0) {\n/* 391 */ throw new ArrayIndexOutOfBoundsException(paramInt2);\n/* */ }\n/* 393 */ if (paramInt3 > paramInt1) {\n/* 394 */ throw new ArrayIndexOutOfBoundsException(paramInt3);\n/* */ }\n/* */ }", "private boolean checkingAllArguments() {\n\t\t\n\t\t// test if the four player types have been selected\n\t\tfor(int i=0;i<allButtons.size();i++) {\n\t\t\tif(allButtons.get(i)==null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// test if the seed is in the correct format\n\t\tif(!(seed.textProperty().get().isEmpty())){\n\t\t\ttry {\n\t\t\t\tgameSeed = Long.parseLong(seed.getText());\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tmenuMessage.setText(\"Given seed is not a valid number\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t// test if for each of the players the given arguments are correct\n\t\tfor(int i = 0; i < allButtons.size(); ++i) {\n\t\t\tchar playerType = allButtons.get(i).getText().charAt(0);\n\t\t\tString argument = texts.get(2 * i + 1).getText();\n\t\t\t\n\t\t\tif(!argument.isEmpty()) {\n\t\t\t\tswitch(playerType) {\n\t\t\t\t\n\t\t\t\tcase 'S' : \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlong l = Long.parseLong(texts.get(2 * i + 1).getText());\n\t\t\t\t\t\tif(l < 9) {\n\t\t\t\t\t\t\tmenuMessage.setText(\"The iteration value must be at least 9\");\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tmenuMessage.setText(\"One of the iteration number is not a valid number\");\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'R' :\n\t\t\t\t\t\n\t\t\t\t\tString[] parts = StringSerializer.split(\"\\\\.\", argument); \n\t\t\t\t\t\n\t\t\t\t\tif (parts.length != 4) { \n\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\treturn false; \n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tfor (String str : parts) { \n\t\t\t\t\t\tint j = Integer.parseInt(str); \n\t\t\t\t\t\tif ((j < 0) || (j > 255)) { \n\t\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\t\treturn false; \n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t}", "private ErrorCode checkParameters() {\n\t\t\n\t\t// Check Batch Size\n\t\ttry {\n\t\t\tInteger.parseInt(batchSizeField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.BatchSize;\n\t\t}\n\t\t\n\t\t// Check confidenceFactor\n\t\ttry {\n\t\t\tDouble.parseDouble(confidenceFactorField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.ConfidenceFactor;\n\t\t}\n\t\t\n\t\t// Check minNumObj\n\t\ttry {\n\t\t\tInteger.parseInt(minNumObjField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.MinNumObj;\n\t\t}\n\t\t\n\t\t// Check numDecimalPlaces\n\t\ttry {\n\t\t\tInteger.parseInt(numDecimalPlacesField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumDecimalPlaces;\n\t\t}\n\t\t\n\t\t// Check numFolds\n\t\ttry {\n\t\t\tInteger.parseInt(numFoldsField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumFolds;\n\t\t}\n\t\t\n\t\t// Check seed\n\t\ttry {\n\t\t\tInteger.parseInt(seedField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.Seed;\n\t\t}\n\t\t\n\t\treturn ErrorCode.Fine;\n\t\t\n\t}", "@Override\n public ValidationResults validArguments(String[] arguments) {\n final int MANDATORY_NUM_OF_ARGUMENTS = 1;\n if (arguments.length == MANDATORY_NUM_OF_ARGUMENTS) {\n // Check if CommandMAN was called on itself (Checker doesn't need to\n // validate CommandMAN twice).\n if (arguments[0].equals(this.getCommandName())) {\n this.toDocument = this; // man will document itself.\n } else {\n // Man will document this command object.\n try {\n this.toDocument = Checker.getCommand(arguments[0], true);\n } catch (Exception ex) {\n return new ValidationResults(false, \"No manual entry for \"\n + arguments[0]); // CMD does not exist.\n }\n }\n return new ValidationResults(true, null);\n }\n return new ValidationResults(false, \"Requires \"\n + MANDATORY_NUM_OF_ARGUMENTS + \" argument.\");\n }", "public static void CheckIfParametersAreValid(String args[]) {\n if (args.length != 4) {\n System.err.printf(\"usage: %s server_name port\\n\", args[1]);\n System.exit(1);\n }\n\n IP = args[0];\n PORT = Integer.parseInt(args[1]);\n BUFFER_SIZE = Integer.parseInt(args[2]);\n MSG_RATE = Integer.parseInt(args[3]);\n\n\n String[] ipSeparated = args[0].split(\"\\\\.\");\n\n if(ipSeparated.length<4){\n System.out.println(\"Invalid IP format.\");\n System.exit(1);\n }\n if (ipSeparated.length == 4) {\n\n for (int i = 0; i < ipSeparated.length; i++) {\n if (Integer.valueOf(ipSeparated[i]) < 0 || Integer.valueOf(ipSeparated[i]) > 255 ) {//if ip is not complete i get error\n System.out.println(\"Invalid IP format.\");\n System.exit(1);\n }else {\n IP = args[0];\n }\n }\n }\n\n if (Integer.parseInt(args[1])>= 0 && Integer.parseInt(args[1]) < 65535) {\n PORT = Integer.parseInt((args[1]));\n }\n else {\n System.out.println(\"Invalid PORT Number.\");\n System.exit(1);\n }\n if (Integer.parseInt(args[2]) > 0 || Integer.parseInt(args[2]) < 2048) {\n BUFFER_SIZE = Integer.parseInt((args[2]));\n }\n\n else {\n System.out.println(\"Invalid Buffer Size.\");\n System.exit(1);\n }\n if (Integer.parseInt(args[3]) >= 0) {\n MSG_RATE = Integer.parseInt(args[3]);\n } else {\n System.out.println(\"Message RATE Invalid.\");\n System.exit(1);\n }\n\n }", "private void inRange(String[] arguments) {\n\t\ttry { \n\t int IDLow = Integer.parseInt(arguments[1]);\n\t int IDHigh = Integer.parseInt(arguments[2]);\n\t totalInRangeCount = 0;\n\t countInRange(root, IDLow, IDHigh);\n\t System.out.printf(\"%d\\n\",totalInRangeCount);\n\t } catch(NumberFormatException e) { \n\t System.out.println(\"Argument not an Integer\");; \n\t }\n\t\t\n\t}", "@Test(expected = InvalidInputLineException.class)\n\tpublic void testValidateTypeCCommandTooManyParameters() throws InvalidInputLineException {\n\t\t\n\t\tString[] expWords = new String[]{\"Q\", \"4\", \"5\"};\n\t\tinputValidator.validate(expWords);\n\t}", "public boolean accepts(int numberOfArguments) {\n\t\treturn this.minimumNumberOfParameters <= numberOfArguments &&\n\t\t\tnumberOfArguments <= this.maximumNumberOfParameters;\n\t}", "protected void validatePreamp(int[] param) {\n }", "public boolean hasValidArgs() {\r\n // if it has has zero argument, it is valid\r\n boolean zeroArgs = this.getCmd().getArguments().size() == 0;\r\n // return the boolean value\r\n return zeroArgs;\r\n }", "@Override\n protected boolean hasValidArgumentValues(@NotNull ImmutableList<Parameter> arguments) {\n boolean valid = true;\n Value rowIndex = arguments.get(0).value();\n Value columnIndex = arguments.get(1).value();\n\n Preconditions.checkValueType(rowIndex, ValueType.NUMBER);\n Preconditions.checkValueType(columnIndex, ValueType.NUMBER);\n\n checkArgument(!rowIndex.hasImaginaryValue(), \"Row index may not be imaginary\");\n checkArgument(!columnIndex.hasImaginaryValue(), \"Column index may not be imaginary\");\n\n // Check for value bounds on row index\n if (!NumberUtil.isInteger(rowIndex.realPart()) || rowIndex.realPart() < 0 || rowIndex.realPart() > getEnvironment().getHomeScreen().getMaxRows()) {\n valid = false;\n }\n\n // Check for value bounds on column index\n if (!NumberUtil.isInteger(columnIndex.realPart()) || columnIndex.realPart() < 0 || columnIndex.realPart() > getEnvironment().getHomeScreen().getMaxColumns()) {\n valid = false;\n }\n\n return valid;\n }", "private boolean checkRange(final int index) {\n if ((index > size) || (index < 0)) {\n return false;\n }\n return true;\n }", "protected boolean correctLength(final CommandSender sender, final int size, final int min, final int max) {\n\t\tif (size < min || size > max) {\n\t\t\tthis.help(sender, false);\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n\tpublic void check(String arguments, Map<String, String> defValue, Set<String> errors) {\n\n\t}", "public static void CheckIfParametersAreValid(String args[]) {\n\t\tif (args.length != 4) {\n\t\t\tSystem.err.printf(\"usage: %s server_name port\\n\", args[1]);\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tIP = args[0];\n\t\tPORT = Integer.parseInt(args[1]);\n\t\tBUFFER_SIZE = Integer.parseInt(args[2]);\n\t\tMSG_RATE = Integer.parseInt(args[3]);\n\n\t\t//Validating Ip - Splitting the ip in 4 numbers because they are dividied by \". \" when we get from input\n\t\tString[] ipSeparated = args[0].split(\"\\\\.\");\n\n\t\tif(ipSeparated.length<4 ){\n\t\t\tSystem.out.println(\"Invalid IP format.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tif (ipSeparated.length == 4) {\n\n\t\t\tfor (int i = 0; i < ipSeparated.length; i++) {\n\t\t\t\tif (Integer.valueOf(ipSeparated[i]) < 0 || Integer.valueOf(ipSeparated[i]) > 255 ) {//if ip is not complete i get error\n\t\t\t\t\tSystem.out.println(\"Invalid IP format.\");\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}else {\n\t\t\t\t\tIP = args[0];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Validating Port - The Port number has to be between 0 adn 65535\n\t\tif (Integer.parseInt(args[1])>= 0 && Integer.parseInt(args[1]) < 65535) {\n\t\t\tPORT = Integer.parseInt((args[1]));\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Invalid PORT Number.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//Validating Buffer - The Buffer Size ahs to be between 0 and 2048\n\t\tif (Integer.parseInt(args[2]) > 0 || Integer.parseInt(args[2]) < 2048) {\n\t\t\tBUFFER_SIZE = Integer.parseInt((args[2]));\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"Invalid Buffer Size.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//Checking the parameter order of the deserved place for message rate\n\t\tif (Integer.parseInt(args[3]) >= 0) {\n\t\t\tMSG_RATE = Integer.parseInt(args[3]);\n\t\t} else {\n\t\t\tSystem.out.println(\"Message RATE Invalid.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}", "public boolean validateOptions() throws CommandValidationException\n {\n super.validateOptions();\n\n //verify adminpassword is greater than 8 characters\t\n if (!isPasswordValid(newMasterPassword)) {\n throw new CommandValidationException(getLocalizedString(\"PasswordLimit\",\n new Object[]{NEW_MASTER_PASSWORD}));\n }\n \n return true;\n }", "private void checkArguments(ArrayList<String> applicationArguments) throws JshException {\n if (applicationArguments.size() > 1) {\n throw new JshException(\"history: too many arguments\");\n }\n }", "boolean hasParameters();", "public static boolean validateInputLength(String[] args) {\n return args.length == 3;\n }", "private void checkParameters(List actualParameters)\n throws AbnormalTerminationException {\n if (actualParameters.size() != this._formalParameters.size()) {\n throw new AbnormalTerminationException(\"Ongeldig aantal parameters in \" + this.getName() + \"!\");\n }\n }", "private void argumentChecker(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tif (args.length != 2) {\n\t\t\tSystem.out.println(\"Invalid arguments. \\nExpected:\\tDriver inputFile.txt outputFile.txt\");\n\t\t}\n\t}", "private void checkBounds(int n) throws ParseException\n {\n if (pos + n > s.length())\n {\n throw new ParseException(format(\"Requested: %s, Available: %s\", n, remaining()));\n }\n }", "protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }", "private boolean isValidOption(int option){\n return (option >= 0) && (option < this.count());\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify at least one component\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "@Test(expectedExceptions=InvalidArgumentValueException.class)\n public void argumentValidationTest() {\n String[] commandLine = new String[] {\"--value\",\"521\"};\n\n parsingEngine.addArgumentSource( ValidatingArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n ValidatingArgProvider argProvider = new ValidatingArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 521, \"Argument is not correctly initialized\");\n\n // Try some invalid arguments\n commandLine = new String[] {\"--value\",\"foo\"};\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n }", "boolean isValid(final Parameter... parameters);", "@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}", "private void validateOptionalParams(StringBuilder errors) throws Exception {\n // Validate RECON_PARTIAL_TRIGGER Option configuration.\n String paramValue = inputParams.getProperty(\"RECON_PARTIAL_TRIGGER\");\n if(paramValue!=null && !paramValue.trim().isEmpty()){\n StringTokenizer tokens = new StringTokenizer(paramValue, Constants.TOKEN_SEPARATOR);\n while(tokens.hasMoreElements()){\n try{\n PartialTriggerOptions.valueOf(tokens.nextToken());\n }catch(Exception ex){\n errors.append(\"Invalid Parameter Configuration for RECON_PARTIAL_TRIGGER. Please correct.\"\n + System.getProperty(\"line.separator\"));\n }\n }\n }\n // Validate TARGET_SHARED_IDSTORE_SEARCHBASE\n paramValue = inputParams.getProperty(\"TARGET_SHARED_IDSTORE_SEARCHBASE\");\n if(paramValue==null || paramValue.trim().isEmpty()){\n Logger.getLogger(IdentityReconciliationProcessor.class.getName()).log(Level.INFO, \n \"Parameter [Optional] TARGET_SHARED_IDSTORE_SEARCHBASE not configured. \" +\n \"Highly recommended to configure this parameter. Note that - This may result in performance issue.\");\n }\n paramValue = inputParams.getProperty(Constants.BATCH_SIZE_ATTR);\n if(paramValue!=null && !paramValue.trim().isEmpty()){\n try{\n getBatchSize(paramValue);\n }catch(Exception ex){\n errors.append(\"Invalid Parameter Configuration for Batch Size. Please correct.\"\n + System.getProperty(\"line.separator\"));\n }\n }\n }", "private void checkAnnotation() {\n if (annotMin != -1)\n Assert.condition(annotMin >= 0, \"min isn't >= 0: '\" + annotMin + \"'\");\n if (annotMax != -1)\n Assert.condition(annotMax >= 0, \"max isn't >= 0: '\" + annotMax + \"'\");\n if ((annotMin != -1) && (annotMax != -1))\n Assert.condition(annotMin <= annotMax,\n \"min isn't <= max: '\" + annotMin + \"', '\" + annotMax + \"'\");\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "private void checkStartLimit(int start, int limit) {\r\n if (start > limit) {\r\n throw new IllegalArgumentException(\r\n \"Start is greater than limit. start:\" + start + \"; limit:\" + limit);\r\n }\r\n if (start < 0) {\r\n throw new IllegalArgumentException(\"Start is negative. start:\" + start);\r\n }\r\n if (limit > length()) {\r\n throw new IllegalArgumentException(\"Limit is greater than length. limit:\" + limit);\r\n }\r\n }", "boolean hasParameterValue();", "@Override\n public int getArgLength() {\n return 4;\n }", "protected abstract boolean isValidParameter(String parameter);", "private static void checkPassedInArguments(String[] args, EquationManipulator manipulator) {\n // Convert arguments to a String\n StringBuilder builder = new StringBuilder();\n for (String argument: args) {\n builder.append(argument + \" \");\n }\n \n // check if equation is valid\n String[] equation = manipulator.getEquation(builder.toString());\n if (equation.length == 0) {\n // unable to parse passed in arguments\n printErrorMessage();\n handleUserInput(manipulator);\n } else {\n // arguments were passed in correctly\n System.out.println(\"Wohoo! It looks like everything was passed in correctly!\"\n + \"\\nYour equation is: \" + builder.toString() + \"\\n\");\n handleArguments(equation, manipulator);\n }\n }", "private boolean rangeCheck(int i){\n return i >= 0 && i < size;\n }", "private Arguments validateAndReturnType(String[] arguments) {\n\t\tif(arguments == null || arguments.length == 0 || arguments.length > 3)\n \t\treturn Arguments.INVALID;\n\t\tString arg1 = arguments[0].toLowerCase();\n\t\tif(arg1.equals(\"increase\") || arg1.equals(\"reduce\") || arg1.equals(\"inrange\")){\n\t\t\tif(arguments.length != 3)\n\t\t\t\treturn Arguments.INVALID;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(arg1.equals(\"increase\"))\n\t\t\t\t\treturn Arguments.INCREASE;\n\t\t\t\telse if(arg1.equals(\"reduce\"))\n\t\t\t\t\treturn Arguments.REDUCE;\n\t\t\t\telse if(arg1.equals(\"inrange\"))\n\t\t\t\t\treturn Arguments.INRANGE;\n\t\t\t}\n\t\t} else if(arg1.equals(\"next\") || arg1.equals(\"previous\") || arg1.equals(\"count\")) {\n\t\t\tif(arguments.length != 2)\n\t\t\t\treturn Arguments.INVALID;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(arg1.equals(\"next\"))\n\t\t\t\t\treturn Arguments.NEXT;\n\t\t\t\telse if(arg1.equals(\"previous\"))\n\t\t\t\t\treturn Arguments.PREVIOUS;\n\t\t\t\telse if(arg1.equals(\"count\"))\n\t\t\t\t\treturn Arguments.COUNT;\n\t\t\t}\n\t\t} else if(arg1.equals(\"quit\")) {\n\t\t\treturn Arguments.QUIT;\n\t\t} else\n\t\t\treturn Arguments.INVALID;\n\t\t\t\n\t\treturn null;\n\t}", "private void RangeCheck(int index) {\r\n if (index >= size || index < 0)\r\n throw new IndexOutOfBoundsException(\"Index: \"+index+\", Size: \"+size);\r\n }", "@Override\r\n\tpublic boolean validCommand(CommandStack stack) {\r\n\t\treturn true;\r\n\t}", "protected abstract int isValidInput();", "private boolean checkPosition(int position) {\r\n\t\treturn position>size||position < 0;\r\n\t}", "public void checkBounds(Scope scope) {\n}", "protected int checkParam(Object o, String name)\n {\n if (o == null) {\n System.err.println(format(\"Parameter %s is not set\", name));\n return 1;\n }\n return 0;\n }", "protected boolean hasArgument(Node node, int idx)\n {\n return idx < node.jjtGetNumChildren();\n }", "private boolean validateData() {\r\n TASKAggInfo agg = null;\r\n int index = aggList.getSelectedIndex();\r\n if (index != 0) {\r\n agg = (TASKAggInfo)aggregators.elementAt(aggList.getSelectedIndex()-1);\r\n }\r\n\r\n if (getArgument1() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 1 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getArgument2() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 2 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getOperand() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Filter value must be of type integer\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }", "private static void validateCommandLineArguments(AutomationContext context, String extendedCommandLineArgs[])\r\n\t{\r\n\t\t//fetch the argument configuration types required\r\n\t\tCollection<IPlugin<?, ?>> plugins = PluginManager.getInstance().getPlugins();\r\n \t\tList<Class<?>> argBeanTypes = plugins.stream()\r\n\t\t\t\t.map(config -> config.getArgumentBeanType())\r\n\t\t\t\t.filter(type -> (type != null))\r\n\t\t\t\t.collect(Collectors.toList());\r\n\t\t\r\n\t\targBeanTypes = new ArrayList<>(argBeanTypes);\r\n\t\t\r\n\t\t//Add basic arguments type, so that on error its properties are not skipped in error message\r\n\t\targBeanTypes.add(AutoxCliArguments.class);\r\n\r\n\t\t//if any type is required creation command line options and parse command line arguments\r\n\t\tCommandLineOptions commandLineOptions = OptionsFactory.buildCommandLineOptions(argBeanTypes.toArray(new Class<?>[0]));\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tcommandLineOptions.parseBeans(extendedCommandLineArgs);\r\n\t\t} catch(MissingArgumentException e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\r\n\t\t\tSystem.err.println(commandLineOptions.fetchHelpInfo(COMMAND_SYNTAX));\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch(Exception ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t\tSystem.err.println(commandLineOptions.fetchHelpInfo(COMMAND_SYNTAX));\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "private void checkSendOption(SendOptions options) {\n if(options.getFrom() == null || !Utils.isAddress(options.getFrom())) {\n throw new IllegalArgumentException(\"Invalid 'from' parameter : \" + options.getFrom());\n }\n\n if(options.getGas() == null || !Utils.isNumber(options.getGas())) {\n throw new IllegalArgumentException(\"Invalid 'gas' parameter : \" + options.getGas());\n }\n\n if(options.getValue() == null || !Utils.isNumber(options.getValue())) {\n throw new IllegalArgumentException(\"Invalid 'value' parameter : \" + options.getValue());\n }\n }", "public abstract int getMaximumArguments();", "@Test\n\tpublic void execute() throws Exception {\n\t\tassertTrue(argumentAnalyzer.getFlags().contains(Context.CHECK.getSyntax()));\n\t}", "@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }", "private void checkRange(int index) {\n if ((index < 0 || index >= curSize))\n throw new IndexOutOfBoundsException(\"Index: \" + index + \" is out of bounds. Size = \" + size());\n }", "@Override\n\tpublic boolean hasParameterGuard() {\n\t\treturn true;\n\t}", "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 }", "@Override\n public void validateArgs(String[] args, ArgsValidation check) throws ArgsException\n {\n try\n {\n check.validateTwoArgs(args);\n }\n catch(ArgsException exception)\n {\n throw exception;\n }\n }", "private void checkRange(int i) throws IndexOutOfBoundsException {\n if (i < 0 || i >= size) {\n throw new IndexOutOfBoundsException();\n }\n }", "public static boolean isValid(String args[]){\n \n if(args.length < 2){\n System.out.println(\"Not enough arguments detected. Please enter two\"\n + \" integer arguments.\");\n return false;\n }\n \n Scanner scanin = new Scanner(args[0]);\n Scanner scanin2 = new Scanner(args[1]);\n\t \n if(!scanin.hasNextInt() || !scanin2.hasNextInt()){\n System.out.println(\"Invalid argument type detected. Please enter two\"\n + \" integer arguments.\");\n return false;\n }\n\t else\n return true;\n }", "private boolean outOfBounds(long n) {\n return n < 0 || n >= getSize();\n }", "protected void validateTuningSteps(cwterm.service.rigctl.xsd.TuningStep[] param) {\n }", "public void tensionRangeCheck(){\n if(motor.get() < 0){\n if(Bottom_Limit_Switch.get() | tenPot.pidGet()> tenPotMAX ){\n motor.set(0.0);\n }\n }else if(motor.get() > 0){\n if(Top_Limit_Switch.get() | tenPot.pidGet()< tenPotMIN){\n motor.set(0.0);\n }\n }\n }", "protected abstract Object validateParameter(Object constraintParameter);", "public void checkNumberOfArguments3() {\n logger.info(\"Hello {}, {}, {}, {}, {}, {}, {}\", \"world\", 2, \"third argument\", 4, 5, 6, new String(\"last arg\"));\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify a configuration\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "@Test(dataProvider = \"NumericRangeWithoutConstraintViolationDataProvider\")\n public void testNumericRangeWithoutConstraintViolation( final String[] commandLine ) {\n runNumericArgumentRangeTest(commandLine);\n }", "public boolean isParameterProvided();", "private void checkRange(int index) {\n\t\tif (index < 0 || index >= array.length()) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Index \" + index + \" is out of bouds [0, \" + array.length() + \"]\");\n\t\t}\n\t}", "private static boolean valid(String arg) {\n\n /* check if valid option */\n if ( arg.equals(\"-v\") || arg.equals(\"-i\") || arg.equals(\"-p\") || arg.equals(\"-h\") )\n return true;\n\n /* check if valid port */\n try {\n int port = Integer.parseInt(arg);\n if ( ( 0 < port ) && ( port < 65354 ) )\n return true;\n } catch (NumberFormatException ignored) {}\n\n /* check if valid ip address */\n String[] ips = arg.split(\"\\\\.\");\n if ( ips.length != 4 )\n return false;\n try{\n for (int i=0; i<4; i++){\n int ip = Integer.parseInt(ips[i]);\n if ( ( ip < 0) || (255 < ip ) )\n return false;\n }\n } catch (NumberFormatException ignored) {return false;}\n\n return true;\n }", "void checkRange(Long value) throws TdtTranslationException {\r\n\t\tif (hasRange) {\r\n\t\t\tif ((value.compareTo(minimum) < 0)\r\n\t\t\t\t\t|| (value.compareTo(maximum) > 0)) {\r\n\t\t\t\tthrow new TdtTranslationException(\"Value {\" + value\r\n\t\t\t\t\t\t+ \"} out of range [{\" + minimum + \"},{\" + maximum\r\n\t\t\t\t\t\t+ \"}] in field \" + getId());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void checkMinimumLength(String[] value, String argName, int minLength) {\n\t\t//Arguments.notNullOrEmpty(value, argName);\n\t\tif(value.length < minLength) {\n\t\t\tthrow new IllegalArgumentException (\"The string '\" + argName + \"' does not have minimum length of '\" + minLength + \"'\");\n\t\t}\n\t}" ]
[ "0.6984814", "0.69204384", "0.6680715", "0.66270864", "0.65638065", "0.64598614", "0.6402883", "0.63979924", "0.63364434", "0.62824804", "0.62519157", "0.62508225", "0.6156257", "0.6150928", "0.6107935", "0.6012264", "0.59789157", "0.5976156", "0.5937832", "0.59307814", "0.5927539", "0.5926194", "0.59065926", "0.58842736", "0.5870963", "0.5870921", "0.5858359", "0.5851405", "0.58447427", "0.5842081", "0.5841898", "0.5836888", "0.583427", "0.5829274", "0.57971317", "0.5796114", "0.57785594", "0.57784927", "0.57713157", "0.5745128", "0.57410836", "0.5720923", "0.5707597", "0.56870204", "0.5680843", "0.5677931", "0.56702113", "0.5663042", "0.5660633", "0.56579465", "0.56531656", "0.56527084", "0.56480896", "0.56476706", "0.5646102", "0.5642364", "0.56339556", "0.563016", "0.55984914", "0.5594841", "0.55703914", "0.5569314", "0.5557137", "0.55540705", "0.5553186", "0.55485255", "0.5537535", "0.553459", "0.5507739", "0.5505038", "0.5498964", "0.54979426", "0.5497529", "0.5493468", "0.5470772", "0.54691106", "0.5465443", "0.5464374", "0.5456963", "0.54450226", "0.5440136", "0.54294705", "0.5425526", "0.54246086", "0.5421904", "0.5417808", "0.5415844", "0.54108787", "0.5397162", "0.5394443", "0.53924584", "0.5388764", "0.53871804", "0.53806925", "0.5380038", "0.53696984", "0.5368431", "0.53654504", "0.53515637", "0.53424406" ]
0.7160194
0
/ access modifiers changed from: packageprivate
public void drawAlpha(ItemListener item) { if (this.mFocus != null) { AlphaParams alphaParams = this.mFocus.getParams().getAlphaParams(); float dstAlpha = alphaParams.getFromAlpha(); float diffAlpha = alphaParams.getToAlpha() - alphaParams.getFromAlpha(); float coef = ((float) this.mFrame) / ((float) alphaParams.getAlphaFrameRate()); Interpolator alphaInterpolator = this.mFocus.getParams().getAlphaParams().getAlphaInteroplator(); if (alphaInterpolator == null) { alphaInterpolator = new LinearInterpolator(); } float dstAlpha2 = dstAlpha + (diffAlpha * alphaInterpolator.getInterpolation(coef)); if (this.mLastItem == item) { dstAlpha2 = alphaParams.getToAlpha(); } if (this.mConvertSelector != null) { this.mConvertSelector.setAlpha(dstAlpha2); if (this.mSelector != null) { this.mSelector.setAlpha(0.0f); } } else if (this.mSelector != null) { this.mSelector.setAlpha(dstAlpha2); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
/ access modifiers changed from: packageprivate
public void drawScale(Canvas canvas, ItemListener item) { if (this.mFocus != null) { ScaleParams scaleParams = this.mFocus.getParams().getScaleParams(); float itemDiffScaleXValue = scaleParams.getScaleX() - 1.0f; float itemDiffScaleYValue = scaleParams.getScaleY() - 1.0f; float coef = ((float) this.mFrame) / ((float) scaleParams.getScaleFrameRate()); Interpolator scaleInterpolator = this.mFocus.getParams().getScaleParams().getScaleInterpolator(); if (scaleInterpolator == null) { scaleInterpolator = new LinearInterpolator(); } float coef2 = scaleInterpolator.getInterpolation(coef); float dstScaleXValue = 1.0f + (itemDiffScaleXValue * coef2); float dstScaleYValue = 1.0f + (itemDiffScaleYValue * coef2); if (this.mLastItem == item) { dstScaleXValue = scaleParams.getScaleX(); dstScaleYValue = scaleParams.getScaleY(); } item.setScaleX(dstScaleXValue); item.setScaleY(dstScaleYValue); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
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.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n 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\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\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 {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, 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 getMenuInflater().inflate(R.menu.menu, 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_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.home_action_bar, 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\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 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.swag_list_activity_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, 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}", "public void onCreateOptionsMenu(Menu menu, MenuInflater 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}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\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\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 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\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\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.724751", "0.72030395", "0.71962166", "0.71781456", "0.71080285", "0.70414597", "0.7039569", "0.70127094", "0.7010955", "0.69814765", "0.69462436", "0.6940127", "0.69346195", "0.6918375", "0.6918375", "0.6892324", "0.688513", "0.687655", "0.68764484", "0.68626994", "0.68626994", "0.68626994", "0.68626994", "0.68531716", "0.6847756", "0.6820322", "0.6818192", "0.681425", "0.6813992", "0.6813992", "0.6806584", "0.6802118", "0.6798768", "0.6792076", "0.6790815", "0.6788957", "0.67845553", "0.6760727", "0.6757938", "0.67486775", "0.67448324", "0.67448324", "0.67419744", "0.67410266", "0.6726707", "0.6725051", "0.6723549", "0.6723549", "0.67216015", "0.67128026", "0.6707661", "0.6705006", "0.67003757", "0.66994125", "0.66971844", "0.66958284", "0.6687689", "0.6684435", "0.6684133", "0.6684133", "0.66815567", "0.66802305", "0.66780573", "0.6669353", "0.6668267", "0.6663578", "0.6658522", "0.6658522", "0.6658522", "0.6657747", "0.66549784", "0.66549784", "0.66549784", "0.665318", "0.66531265", "0.6650882", "0.66492873", "0.6648079", "0.66475856", "0.6647323", "0.66472346", "0.66454357", "0.6645319", "0.6644537", "0.66437393", "0.6642691", "0.6639628", "0.6635565", "0.6634992", "0.6633512", "0.6632719", "0.6632719", "0.6632719", "0.6630145", "0.6629052", "0.6628285", "0.66269", "0.662501", "0.66210324", "0.66198343", "0.66198343" ]
0.0
-1
Constructor is a method to initialize the attribute
public OwnerList() { ownerList = new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public IRAttribute ( ) {\n\t\tsuper();\n\t}", "public Attr() {\n\t\t\tsuper();\n\t\t}", "public Constructor(){\n\t\t\n\t}", "public AttributeContainer() {\n super();\n }", "DefaultAttribute()\n {\n }", "public AttributeMap()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }", "public InitialData(){}", "public Attribute(String title) {\n \t\tthis.title = title;\n \t\tconflictMagnitude = 0;\n \t}", "public Property() {\n this(0, 0, 0, 0);\n }", "public AttributeDiscretization() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public RequestAttribute() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "Attribute createAttribute();", "Attribute createAttribute();", "public J3DAttribute () {}", "public ModuleObjectAttributeItem() {}", "@Override public void init()\n\t\t{\n\t\t}", "public void init() {\n \n }", "@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }", "public void constructor() {\n setEdibleAnimals();\n }", "protected LPDMODOMAttribute() {\n }", "public DefaultAttribute( byte[] upId )\n {\n setUpId( upId );\n }", "@Override\r\n\tpublic void init() {}", "public void initialize()\n {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public void init(){\n \n }", "private void init() throws Exception{\n mapper = new ObjectMapper();\n\n // Create the linkRequest\n attribute = AttributeFixture.standardAttribute();\n\n\n }", "public void init() {\r\n\t\t// to override\r\n\t}", "public AttributeBornMchMother() {\n }", "public Data() {\n \n }", "@Override\n public void init() {}", "public void init() {\n\t\t}", "public void init(){}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "@Override\n\t\tprotected void initialise() {\n\n\t\t}", "public AttributeDescriptorDTO()\n\t{\n\t\tsuper();\n\t}", "public Property()\r\n {\r\n }", "@Override\n public void init() {\n }", "private AttributeTypeHome( )\n {\n }", "public AttrObject(){\t\r\n\tvalue = null;\r\n }", "public Identity()\n {\n super( Fields.ARGS );\n }", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public EncodingAlgorithmAttributesImpl() {\n this(null, null);\n }", "private Value() {\n\t}", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "@Override\r\n public void initialize()\r\n {\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n public void initialize() {\n \n }", "public Model() {\n\t}", "public Model() {\n\t}", "public void init() { }", "public void init() { }", "private TesteeAttributeIdentity() {\n }", "protected void initialize() {\n \t\n }", "public Data() {\n }", "public Data() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public Attribute(String name, int metricFactor, int priority){\n this.name = name;\n this.maxOccurance = 0;\n this.metric = 0.0;\n subGrps = new Vector<SubGroup>();\n this.maxSubGroups = new Vector<SubGroup>();\n this.metricFactor = metricFactor;\n this.priority = priority;\n this.isDominating = true;\n}", "public AttributeRanges() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public Lanceur() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public AirField() {\n\n\t}", "@Override\n void init() {\n }", "public Annotation(String className) {\n\t//\tthis.id = newId();\n\t\tthis.annotatonClassName = className;\n\t\tattributes = new HashSetValuedHashMap<String, String>();\n\t}", "@Override\n protected void init() {\n }", "public void init() {\r\n\r\n\t}", "public Value() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "protected void initialize() {}", "protected void initialize() {}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n\tpublic void init() {\n\t}", "public ActuatorData()\n\t{\n\t\tsuper(); \n\t}", "public void init() {}", "public void init() {}", "public void init() {\n\t\t\n\t}" ]
[ "0.7328828", "0.73096794", "0.7207906", "0.7122325", "0.703714", "0.6950194", "0.6850434", "0.6789691", "0.67565954", "0.67303944", "0.67237777", "0.6718851", "0.6711017", "0.67070335", "0.6683993", "0.66254133", "0.66254133", "0.6624776", "0.6623587", "0.660957", "0.6595584", "0.6562122", "0.6522839", "0.6509109", "0.64719814", "0.64713997", "0.6461694", "0.6420606", "0.6420606", "0.6420606", "0.64049184", "0.64007187", "0.6400091", "0.63969946", "0.6395533", "0.63789743", "0.6368739", "0.6368106", "0.6367694", "0.63655907", "0.63600844", "0.63577664", "0.63563687", "0.6352329", "0.63439095", "0.6331611", "0.63312757", "0.6329901", "0.6329901", "0.6329901", "0.63187563", "0.6291223", "0.62891716", "0.62827593", "0.62827593", "0.62827593", "0.62812257", "0.6271577", "0.62690395", "0.626466", "0.6264557", "0.62643135", "0.6264093", "0.6264093", "0.6255726", "0.6255726", "0.625453", "0.62529933", "0.6252465", "0.6252465", "0.6239323", "0.6238196", "0.62369066", "0.62367475", "0.6236505", "0.6236505", "0.6236505", "0.6236505", "0.6236505", "0.6233752", "0.623375", "0.6228212", "0.6224088", "0.62219906", "0.62145364", "0.62098986", "0.6208978", "0.62056637", "0.62056637", "0.62056637", "0.62056637", "0.6202314", "0.6202314", "0.6198727", "0.6198727", "0.6198727", "0.61966896", "0.619288", "0.61915094", "0.61915094", "0.6178469" ]
0.0
-1
Creates new form PesquisarGrupoOperador
public PesquisarGrupoOperador(Window parent, boolean modal, PesquisarGrupoOperador.Callback callBack) { super(parent, modal, ModuloSistema.SISTEMA_OPERADORES, NivelAcessoModulo.LEITURA_GRAVACAO); initComponents(); this.grupoOperadorDao = new TipoOperadorDao(); this.callback = callBack; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Operacion createOperacion();", "@PostMapping(\"/creargrupo\")\n public String create(@ModelAttribute (\"grupo\") Grupo grupo) throws Exception {\n try {\n grupoService.create(grupo);\n return \"redirect:/pertenezco\";\n }catch (Exception e){\n LOG.log(Level.WARNING,\"grupos/creargrupo\" + e.getMessage());\n return \"redirect:/error\";\n }\n }", "OperacionColeccion createOperacionColeccion();", "public String insertarGrupo() {\n\n\t\tthis.log.info(\"inicio insertarPersoa\");\n\t\ttry {\n\t\t\tthis.bean.insertarUserGroup(this.dto);\n\t\t\tString msg = TablaValores.getValor(TABLA_PARAMETROS, \"msgCrearEditar\", \"okInserta\");\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(msg));\n\t\t\tthis.log.info(\"termino insertarGrupo\");\n\t\t} catch (Exception e) {\n\t\t\tthis.log.error(\"Error \" + e.getMessage());\n\t\t\tthis.log.error(\"Error \" + e.getClass());\n\t\t\tString msg = TablaValores.getValor(TABLA_PARAMETROS, \"msgCrearEditar\", \"nokInserta\");\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, e.getMessage()));\n\t\t\treturn \"error\";\n\t\t}\n\t\treturn \"success\";\n\t}", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "public void insertarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setIdSeccion(38);\n \tgrado.setNumGrado(2);\n \tgrado.setUltimoGrado(0);\n \tString respuesta = negocio.insertarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }", "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "private void gestionarCategoria(OperacionForm opForm, Operacion op){\r\n\t\r\n\t\t//MODIFICACION DE OPERACION\r\n\t\tif (opForm.getId()!=null){\r\n\t\t\t//Obtengo el usuario logado\r\n\t\t\tUser userLogado = userService.getUserById(((User) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getIdUser());\r\n\r\n\t\t\t//Obtengo la operacion a modificar con todas las categorizaciones\r\n\t\t\tOperacion opAntAllCat=operacionDao.findById(opForm.getId());\r\n\t\t\t\r\n\t\t\t//Obtengo la categorizacion anterior del usuario\r\n\t\t\tCategoria catAntUser=categoriaDao.findCategorizacionUsuarioByIdOperacion(opForm.getId(), userLogado.getIdUser());\r\n\r\n\t\t\t\r\n\t\t\t//Si antes no tenia y ahora si tiene\r\n\t\t\tif (catAntUser==null){\r\n\t\t\t\tif (opForm.getIdCategoria()!=null)\r\n\t\t\t\t\tcrearCategorizacion(opForm.getIdCategoria(), op);\r\n\t\t\t}\r\n\t\t\t//Si antes tenia categoria\r\n\t\t\telse{\r\n\t\t\t\t//Si ahora no tiene categoria\r\n\t\t\t\tif (opForm.getIdCategoria()==null)\r\n\t\t\t\t\tborrarCategorizacionAnterior(catAntUser, opAntAllCat);\t\t\t\t\r\n\t\t\t\t//Si ahora tiene una categoria diferente que antes\r\n\t\t\t\telse if(opForm.getIdCategoria().compareTo(catAntUser.getIdCategoria())!=0){\r\n\t\t\t\t\tborrarCategorizacionAnterior(catAntUser, opAntAllCat);\r\n\t\t\t\t\tcrearCategorizacion(opForm.getIdCategoria(), op);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//CREAR NUEVA OPERACION\r\n\t\telse{\r\n\t\t\t//Si el usuario ha seleccionado una categoria para la operacion \r\n\t\t\tif (opForm.getIdCategoria()!=null)\r\n\t\t\t\tcrearCategorizacion(opForm.getIdCategoria(), op);\r\n\t\t}\r\n\t}", "public CrearGrupos() throws SQLException {\n initComponents();\n setTitle(\"Crear Grupos\");\n setSize(643, 450);\n setLocationRelativeTo(this);\n cargarModelo();\n }", "public CrearProductos() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n grup1 = new javax.swing.ButtonGroup();\n labInstruccion = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n txtDescripcion = new javax.swing.JTextField();\n txtColor = new javax.swing.JTextField();\n txtPrecioCosto = new javax.swing.JTextField();\n txtCodigo = new javax.swing.JTextField();\n txtMarca = new javax.swing.JTextField();\n txtPrecioVenta = new javax.swing.JTextField();\n txtImpuesto = new javax.swing.JTextField();\n txtEmpresa = new javax.swing.JTextField();\n btnAtras = new javax.swing.JButton();\n btnAgregar = new javax.swing.JButton();\n txtFechaIngreso = new com.toedter.calendar.JDateChooser();\n rdbBolso = new javax.swing.JRadioButton();\n rdbZapato = new javax.swing.JRadioButton();\n jLabel1 = new javax.swing.JLabel();\n cmbGenero = new javax.swing.JComboBox();\n jLabel11 = new javax.swing.JLabel();\n cmbCategoria = new javax.swing.JComboBox();\n jLabel12 = new javax.swing.JLabel();\n txtTalla = new javax.swing.JTextField();\n txtCantidad = new javax.swing.JSpinner();\n jLabel13 = new javax.swing.JLabel();\n btnGenerarCodigo = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Agregar Producto\");\n setMinimumSize(new java.awt.Dimension(590, 430));\n setPreferredSize(new java.awt.Dimension(590, 430));\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n labInstruccion.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 16)); // NOI18N\n labInstruccion.setForeground(new java.awt.Color(102, 102, 102));\n labInstruccion.setText(\"Ingrese los datos del nuevo producto:\");\n getContentPane().add(labInstruccion, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 11, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(102, 102, 102));\n jLabel3.setText(\"Descripción:\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 96, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(102, 102, 102));\n jLabel4.setText(\"Fecha de Ingreso:\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 60, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(102, 102, 102));\n jLabel5.setText(\"Color:\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 180, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(102, 102, 102));\n jLabel6.setText(\"Marca:\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 180, -1, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(102, 102, 102));\n jLabel7.setText(\"Precio a costo:\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 260, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(102, 102, 102));\n jLabel8.setText(\"Precio de venta:\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 260, -1, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(102, 102, 102));\n jLabel9.setText(\"Empresa:\");\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 220, -1, -1));\n\n jLabel10.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(102, 102, 102));\n jLabel10.setText(\"Impuesto:\");\n getContentPane().add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 220, -1, -1));\n\n txtDescripcion.setBackground(new java.awt.Color(237, 237, 237));\n txtDescripcion.setFont(new java.awt.Font(\"Yu Gothic UI\", 0, 11)); // NOI18N\n getContentPane().add(txtDescripcion, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 93, 480, -1));\n\n txtColor.setBackground(new java.awt.Color(237, 237, 237));\n txtColor.setFont(new java.awt.Font(\"Yu Gothic UI\", 0, 11)); // NOI18N\n txtColor.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtColorActionPerformed(evt);\n }\n });\n getContentPane().add(txtColor, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 180, 80, -1));\n\n txtPrecioCosto.setBackground(new java.awt.Color(237, 237, 237));\n txtPrecioCosto.setFont(new java.awt.Font(\"Yu Gothic UI\", 0, 11)); // NOI18N\n txtPrecioCosto.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtPrecioCostoKeyTyped(evt);\n }\n });\n getContentPane().add(txtPrecioCosto, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 260, 109, -1));\n\n txtCodigo.setEditable(false);\n txtCodigo.setBackground(new java.awt.Color(237, 237, 237));\n txtCodigo.setFont(new java.awt.Font(\"Yu Gothic UI\", 0, 11)); // NOI18N\n txtCodigo.setEnabled(false);\n getContentPane().add(txtCodigo, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 45, 220, 30));\n\n txtMarca.setBackground(new java.awt.Color(237, 237, 237));\n txtMarca.setFont(new java.awt.Font(\"Yu Gothic UI\", 0, 11)); // NOI18N\n getContentPane().add(txtMarca, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 180, 130, -1));\n\n txtPrecioVenta.setBackground(new java.awt.Color(237, 237, 237));\n txtPrecioVenta.setFont(new java.awt.Font(\"Yu Gothic UI\", 0, 11)); // NOI18N\n txtPrecioVenta.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtPrecioVentaKeyTyped(evt);\n }\n });\n getContentPane().add(txtPrecioVenta, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 260, 130, -1));\n\n txtImpuesto.setBackground(new java.awt.Color(237, 237, 237));\n txtImpuesto.setFont(new java.awt.Font(\"Yu Gothic UI\", 0, 11)); // NOI18N\n txtImpuesto.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtImpuestoKeyTyped(evt);\n }\n });\n getContentPane().add(txtImpuesto, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 220, 80, -1));\n\n txtEmpresa.setBackground(new java.awt.Color(237, 237, 237));\n txtEmpresa.setFont(new java.awt.Font(\"Yu Gothic UI\", 0, 11)); // NOI18N\n getContentPane().add(txtEmpresa, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 220, 346, -1));\n\n btnAtras.setBackground(new java.awt.Color(177, 177, 177));\n btnAtras.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n btnAtras.setForeground(new java.awt.Color(51, 51, 51));\n btnAtras.setText(\"Atrás\");\n btnAtras.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAtrasActionPerformed(evt);\n }\n });\n getContentPane().add(btnAtras, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 329, -1, 40));\n\n btnAgregar.setBackground(new java.awt.Color(177, 177, 177));\n btnAgregar.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n btnAgregar.setForeground(new java.awt.Color(51, 51, 51));\n btnAgregar.setText(\"Agregar\");\n btnAgregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarActionPerformed(evt);\n }\n });\n getContentPane().add(btnAgregar, new org.netbeans.lib.awtextra.AbsoluteConstraints(481, 328, -1, 40));\n\n txtFechaIngreso.setBackground(new java.awt.Color(237, 237, 237));\n getContentPane().add(txtFechaIngreso, new org.netbeans.lib.awtextra.AbsoluteConstraints(386, 45, 170, 30));\n\n rdbBolso.setBackground(new java.awt.Color(175, 201, 201));\n grup1.add(rdbBolso);\n rdbBolso.setFont(new java.awt.Font(\"Yu Gothic UI\", 0, 11)); // NOI18N\n rdbBolso.setText(\"Bolso\");\n rdbBolso.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rdbBolsoActionPerformed(evt);\n }\n });\n getContentPane().add(rdbBolso, new org.netbeans.lib.awtextra.AbsoluteConstraints(505, 11, -1, -1));\n\n rdbZapato.setBackground(new java.awt.Color(175, 201, 201));\n grup1.add(rdbZapato);\n rdbZapato.setFont(new java.awt.Font(\"Yu Gothic UI\", 0, 11)); // NOI18N\n rdbZapato.setText(\"Zapato\");\n rdbZapato.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rdbZapatoActionPerformed(evt);\n }\n });\n getContentPane().add(rdbZapato, new org.netbeans.lib.awtextra.AbsoluteConstraints(445, 11, -1, -1));\n\n jLabel1.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(102, 102, 102));\n jLabel1.setText(\"Género:\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 135, -1, -1));\n\n cmbGenero.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"M\", \"F\" }));\n getContentPane().add(cmbGenero, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 132, -1, -1));\n\n jLabel11.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(102, 102, 102));\n jLabel11.setText(\"Categoría:\");\n getContentPane().add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 130, -1, -1));\n\n cmbCategoria.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Ninos\", \"Jovenes\", \"Adulto\" }));\n getContentPane().add(cmbCategoria, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 130, 115, -1));\n\n jLabel12.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(102, 102, 102));\n jLabel12.setText(\"Talla:\");\n getContentPane().add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 130, -1, -1));\n\n txtTalla.setBackground(new java.awt.Color(237, 237, 237));\n txtTalla.setFont(new java.awt.Font(\"Yu Gothic UI\", 0, 11)); // NOI18N\n txtTalla.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtTallaKeyTyped(evt);\n }\n });\n getContentPane().add(txtTalla, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 130, 80, -1));\n\n txtCantidad.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(1), Integer.valueOf(1), null, Integer.valueOf(1)));\n getContentPane().add(txtCantidad, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 180, 70, -1));\n\n jLabel13.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(102, 102, 102));\n jLabel13.setText(\"Cantidad:\");\n getContentPane().add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 179, -1, -1));\n\n btnGenerarCodigo.setBackground(new java.awt.Color(177, 177, 177));\n btnGenerarCodigo.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n btnGenerarCodigo.setForeground(new java.awt.Color(51, 51, 51));\n btnGenerarCodigo.setText(\"Generear código\");\n btnGenerarCodigo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGenerarCodigoActionPerformed(evt);\n }\n });\n getContentPane().add(btnGenerarCodigo, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 290, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Yu Gothic UI\", 1, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(102, 102, 102));\n jLabel2.setText(\"Código:\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 56, -1, -1));\n\n jPanel1.setBackground(new java.awt.Color(175, 201, 201));\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 600, 390));\n\n getAccessibleContext().setAccessibleDescription(\"\");\n\n pack();\n setLocationRelativeTo(null);\n }", "public CrearPedidos() {\n initComponents();\n }", "@SuppressWarnings(\"empty-statement\")\n private void registrarBActionPerformed(java.awt.event.ActionEvent evt) {\n procesos.clear();\n numeroProcesos=Integer.parseInt(numeroProcesosT.getText());\n int op1,op2,op,tiempoMaximo,lote;\n int id=0;\n String [] operadores= {\"+\",\"/\",\"*\",\"%\",\"potencia\",\"sqrt\",\"-\"};\n \n \n lote=numeroProcesos/4;\n \n if(numeroProcesos%4!=0){\n lote++;\n }\n \n lotesL.setText(Integer.toString(lote));\n procesosL.setText(Integer.toString(numeroProcesos));\n \n \n for(int i=0; i<numeroProcesos; i++){\n \n op1=(int) (Math.random()*25+1);\n op=(int) (Math.random()*6+0);\n op2=(int) (Math.random()*25+1);\n tiempoMaximo=(int) (Math.random()*20+1);\n \n procesos.add(new Procesos(\"\",\n Integer.toString(op1),\n operadores[op],\n Integer.toString(op2),\n \"\",\n Integer.toString(id),\n Integer.toString(tiempoMaximo),\n \"\",\"0\"\n ));\n \n \n id++;\n }\n \n numeroProcesosT.setText(\"\");\n \n \n \n \n \n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "@RequestMapping(method = RequestMethod.POST, value = \"/gdaAltaProyecto.do\")\n public String gdaAltaProyecto(@Valid Proyectos proyecto, BindingResult result, Model model, String nActividades, String nPerfiles, String cadenaActividades, String selectto, String codigo_postal, String otra_colonia, String existeCP, String estado, String municipio, String ciudad, HttpSession session, HttpServletRequest request)\n {\n if (new ValidaSesion().validaOrganizacion(session, request))\n {\n System.out.println(\"hola gda alta organizacion\");\n\n //Validaciones\n System.out.println(\"Validar\");\n new ValidacionesOrganizaciones().valAltaAdminProy(proyecto, result, model, codigo_postal, existeCP, otra_colonia);\n\n //Desglose de Actividades\n ActividadesModel actividadesModel = new ActividadesModel(cadenaActividades);\n\n //Valida Actividades\n if (!actividadesModel.validarInsercionActividades().isSuccess())\n {\n result.addError(new ObjectError(\"actividades\", actividadesModel.validarInsercionActividades().getMensaje()));\n }\n model.addAttribute(\"validacion_actividades\", actividadesModel.validarInsercionActividades().getMensaje());\n\n if (result.hasErrors())\n {\n System.out.print(\"hubo errores\");\n System.out.println(proyecto.toString());\n System.out.println(\"Error:\" + result.toString());\n\n //Estados\n LinkedHashMap<String, String> ordenamiento = new LinkedHashMap<String, String>();\n ordenamiento.put(\"nombre\", \"asc\");\n model.addAttribute(\"estados\", daoEstadosSia.findAll(ordenamiento));\n //TipoProyecto\n model.addAttribute(\"tipoProyecto\", daoTipoProyecto.findBySpecificField(\"status\", \"1\", \"equal\", null, null));\n //Perfil\n model.addAttribute(\"perfiles\", daoPerfil.findBySpecificField(\"estatus\", \"1\", \"equal\", null, null));\n //Programa\n model.addAttribute(\"programas\", daoPrograma.findBySpecificField(\"status\", \"1\", \"equal\", null, null));\n //Regresar codigo postal\n model.addAttribute(\"cp\", codigo_postal);\n try\n {\n model.addAttribute(\"idColonia\", proyecto.getIdColonia().getIdColonia());\n } catch (Exception e)\n {\n }\n //Regresar codigo postal\n model.addAttribute(\"otra_colonia\", otra_colonia);\n\n //Regresa las Organizaciones\n List<Instancia> listaInstancias = daoInstancia.findBySpecificField(\"validacionAdmin\", \"1\", \"equal\", null, null);\n ArrayList<Instancia> filtroInstancias = new ArrayList<Instancia>();\n\n for (int i = 0; i < listaInstancias.size(); i++)\n {\n// int estatus = Integer.parseInt(listaInstancias.get(i).getEstatus().toString());//.....................................................................................................Corrección Status conversión .............................................................................................\n int estatus = (int) listaInstancias.get(i).getStatus();\n if (estatus == 1 || estatus == 2)\n {\n filtroInstancias.add(listaInstancias.get(i));\n }\n }\n model.addAttribute(\"instancias\", filtroInstancias);\n\n //Regresar actividades\n model.addAttribute(\"nActividades\", nActividades.substring(0, 1));\n System.out.println(\"nActividades:\" + nActividades.substring(0, 1));\n\n for (int i = 0; i < actividadesModel.actividades.size(); i++)\n {\n model.addAttribute(\"actividad\" + i, actividadesModel.actividades.get(i));\n System.out.println(\"Regresando Actividad:\" + actividadesModel.actividades.get(i));\n }\n model.addAttribute(\"proyecto\", proyecto);\n\n return \"/Organizaciones/altaProyecto\";\n } else\n {\n\n System.out.print(\"no hubo errores\");\n\n //Checa codigo postal\n CodigosPostalesModel codigosPostales = new CodigosPostalesModel(daoColonia, daoCodigosPostales, daoEstadosSia,\n daoMunicipiosSia, daoCiudades, daoTipoLocalidad);\n if (existeCP.equals(\"true\"))\n {\n if (proyecto.getIdColonia().getIdColonia().toString().equals(\"0\"))\n {\n //Agregar colonia \n proyecto.setIdColonia(codigosPostales.agregaColonia(codigo_postal, otra_colonia));\n }\n } else\n {\n //Agregar codigo postal + colonia\n proyecto.setIdColonia(codigosPostales.agregarCodigoPostal(codigo_postal, otra_colonia, estado, municipio, ciudad));\n }\n\n proyecto.setValidacionAdmin(BigInteger.ZERO);\n proyecto.setEstatus(BigInteger.ONE);\n proyecto.setFechaAlta(new Date());\n proyecto.setVacantesDisponibles(proyecto.getVacantes());\n System.out.println(\"idInstancia:\" + proyecto.getIdInstancia().getIdInstancia());\n //Convertir a mayuscular\n proyecto.setDomicilio(limpiar.tuneaStringParaBD(proyecto.getDomicilio()));\n proyecto.setNombre(limpiar.tuneaStringParaBD(proyecto.getNombre()));\n proyecto.setNombreResponsable(limpiar.tuneaStringParaBD(proyecto.getNombreResponsable()));\n proyecto.setResponsablePuesto(limpiar.tuneaStringParaBD(proyecto.getResponsablePuesto()));\n //Imprimir todo\n System.out.println(\"Datos del alumno\");\n System.out.println(\"Nombre:\" + proyecto.getNombre() + \" len:\" + proyecto.getNombre().length());\n System.out.println(\"Vacantes:\" + proyecto.getVacantes() + \" len:\" + proyecto.getVacantes().toString().length());\n System.out.println(\"Vacantes disponibles:\" + proyecto.getVacantesDisponibles() + \" len:\" + proyecto.getVacantesDisponibles().toString().length());\n System.out.println(\"Responsable puesto:\" + proyecto.getResponsablePuesto() + \" len:\" + proyecto.getResponsablePuesto().length());\n System.out.println(\"Nombre Responsable:\" + proyecto.getNombreResponsable() + \" len:\" + proyecto.getNombreResponsable().length());\n System.out.println(\"Telefono responsable:\" + proyecto.getTelefonoResponsable() + \" len:\" + (proyecto.getTelefonoResponsable() + \"\").length());\n System.out.println(\"Domicilio:\" + proyecto.getDomicilio() + \" len:\" + proyecto.getDomicilio().length());\n System.out.println(\"Id colonia:\" + proyecto.getIdColonia().getIdColonia() + \" len:\" + proyecto.getIdColonia().getIdColonia().toString().length());\n System.out.println(\"Id tipo proyecto:\" + proyecto.getIdTipoProyecto().getIdTipoProyecto() + \" len:\" + proyecto.getIdTipoProyecto().getIdTipoProyecto().toString().length());\n System.out.println(\"Id programa:\" + proyecto.getIdPrograma().getIdPrograma() + \" len:\" + proyecto.getIdPrograma().getIdPrograma().toString().length());\n System.out.println(\"Modalidad:\" + proyecto.getModalidad() + \" len:\" + proyecto.getModalidad().length());\n System.out.println(\"fin\");\n //\n daoProyectos.create(proyecto);\n System.out.println(\"Insercion correcta!\");\n\n //Obtenemos el proyecto creado\n LinkedHashMap<String, String> ordenamiento = new LinkedHashMap<String, String>();\n ordenamiento.put(\"idProyecto\", \"desc\");\n Proyectos newProyecto = (Proyectos) daoProyectos.findAll(ordenamiento).get(0);\n\n //Insercion de Actividades\n for (int i = 0; i < actividadesModel.actividades.size(); i++)\n {\n Actividades actividad = new Actividades();\n actividad.setDetalle(limpiar.tuneaStringParaBD(actividadesModel.actividades.get(i)));\n actividad.setEstatus(BigInteger.ONE);\n actividad.setIdProyecto(newProyecto);\n daoActividades.create(actividad);\n System.out.println(\"Se inserto la actividad: \" + actividad.getDetalle() + \" en el proyecto: \" + actividad.getIdProyecto().getNombre());\n }\n //Insercion de Perfiles\n //ProyectoPerfilModel proyectoPerfilModel;\n if (selectto != null)\n {\n //proyectoPerfilModel = new ProyectoPerfilModel(selectto); \n //Analisis de la cadena\n StringTokenizer token = new StringTokenizer(selectto, \",\");\n ArrayList<Perfil> perfiles = new ArrayList<Perfil>();\n\n System.out.println(\"Analizar cadena:\" + selectto);\n System.out.println(\"No de tokens:\" + token.countTokens());\n while (token.hasMoreTokens())\n {\n String perfil = token.nextToken();\n System.out.println(\"Token:\" + perfil);\n if (perfil != null && !perfil.equals(\"\"))\n {\n perfiles.add((Perfil) daoPerfil.find(BigDecimal.valueOf(Double.parseDouble(perfil))));\n }\n }\n for (int i = 0; i < perfiles.size(); i++)\n {\n ProyectoPerfil proyectoPerfil = new ProyectoPerfil();\n proyectoPerfil.setIdPerfil(perfiles.get(i));\n proyectoPerfil.setIdProyecto(newProyecto);\n daoProyectoPerfil.create(proyectoPerfil);\n System.out.println(\"Perfil insertado: \" + proyectoPerfil.getIdPerfil().getNombre() + \" En proyecto :\" + proyectoPerfil.getIdProyecto().getNombre());\n }\n } else\n {\n System.out.println(\"No se agregaran perfiles\");\n }\n\n return \"/Organizaciones/confirmaAltaProyectos\";\n }\n } else\n {\n model.addAttribute(\"error\", \"<div class='alert alert-danger'>Debes iniciar sesió para acceder a esta sección.</div>\");\n return \"redirect:login.do\";\n }\n\n }", "private void iniciarGrilla(int iOps) throws Exception {\n deleteRows();\n regcontribuyenteBean oregcontribuyenteBean = new regcontribuyenteBean();\n oregcontribuyenteBean.setIOps(iOps);\n oregcontribuyenteBean.setBEstado(true);\n oregcontribuyenteBean.setNvObservacion(busquedanombre.getText());\n List lista = Generic.getInstance(regcontribuyenteBL.class).fnGridregcontribuyenteBean(oregcontribuyenteBean);\n\n lista.stream().forEach((list) -> {\n modeloTabla.addRow((Object[]) list);\n });\n }", "public GUI_Tipo_Cadastro() {\n initComponents();\n \n buttonGroup1.add(jRadioButton_Cliente);\n buttonGroup1.add(jRadioButton_Profissional);\n buttonGroup1.add(jRadioButton_Admin);\n \n // Centraliza o JFrame na tela\n this.setLocationRelativeTo(null);\n }", "public CtrlEditGrupos() {\n edEsc = EditEscenario.getInstance();\n try {\n cd = CtrlDomain.getInstance();\n } catch (Exception e) {\n System.out.println(\"ERROR EN LA CARGA DEL CONTROLADOR DE DOMINIO\");\n }\n planEstudiosFinal = edEsc.getPlanEstudiosFinal();\n asignaturasFinal = edEsc.getAsignaturasFinal();\n restriccionesFinal = edEsc.getRestriccionesFinal();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n grupo = new javax.swing.ButtonGroup();\n jPanel2 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n txtTipo = new javax.swing.JTextField();\n txtDescricao = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n txtNome = new javax.swing.JTextField();\n btnSalvar = new javax.swing.JButton();\n btnVoltar = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n txtLucro = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n txtEstoque = new javax.swing.JTextField();\n txtCusto = new javax.swing.JSpinner();\n txtVenda = new javax.swing.JSpinner();\n jPanel4 = new javax.swing.JPanel();\n jRadioButton1 = new javax.swing.JRadioButton();\n jRadioButton2 = new javax.swing.JRadioButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"PRODUTOS\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 1, 18))); // NOI18N\n\n jLabel9.setText(\"Tipo:\");\n\n jLabel8.setText(\"Descrição:\");\n\n jLabel1.setText(\"Nome : \");\n\n txtNome.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNomeActionPerformed(evt);\n }\n });\n\n btnSalvar.setText(\"Salvar\");\n btnSalvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSalvarActionPerformed(evt);\n }\n });\n\n btnVoltar.setText(\"Voltar\");\n btnVoltar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnVoltarActionPerformed(evt);\n }\n });\n\n btnCancelar.setText(\"Cancelar\");\n btnCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarActionPerformed(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel2.setText(\"Valor de Custo:\");\n\n jLabel3.setText(\"Lucro(%):\");\n\n jLabel4.setText(\"Valor de Venda:\");\n\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(\"ESTOQUE\"));\n\n txtEstoque.setEditable(false);\n txtEstoque.setFont(new java.awt.Font(\"Dialog\", 0, 36)); // NOI18N\n txtEstoque.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(txtEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(txtEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n txtCusto.setModel(new javax.swing.SpinnerNumberModel(0.0f, 0.0f, null, 1.0f));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtVenda))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtLucro, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCusto, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, Short.MAX_VALUE))))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtCusto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtLucro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtVenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(20, 20, 20))\n );\n\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(\"FORNECEDOR\"));\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 508, Short.MAX_VALUE)\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 69, Short.MAX_VALUE)\n );\n\n jRadioButton1.setText(\"jRadioButton1\");\n jRadioButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioButton1ActionPerformed(evt);\n }\n });\n\n jRadioButton2.setText(\"jRadioButton2\");\n jRadioButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 468, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtDescricao))\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(21, 21, 21)\n .addComponent(txtNome)))\n .addGap(18, 18, 18)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnSalvar)\n .addGap(18, 18, 18)\n .addComponent(btnVoltar)\n .addGap(18, 18, 18)\n .addComponent(btnCancelar)))\n .addContainerGap())\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(130, 130, 130)\n .addComponent(jRadioButton1)\n .addGap(38, 38, 38)\n .addComponent(jRadioButton2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton1)\n .addComponent(jRadioButton2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnVoltar)\n .addComponent(btnCancelar)\n .addComponent(btnSalvar)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(txtDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(txtTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "public RegistroCompra() {\n initComponents();\n buscarProveedor();\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "public registrarConsumo() throws DAOException {\n initComponents();\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n String fechaformateada = formato.format(new Date());\n anio = Integer.parseInt(fechaformateada.substring(0, 4));\n mes = Integer.parseInt(fechaformateada.substring(5, 7));\n conn = conecionBD.conexion();\n CoutaDAO couta= new CoutaDAOImpl(conn);\n Couta couata= couta.buscarCuota();\n precio=couata.getPRECIO();\n \n if(mes == 12 || mes == 1){\n p = 1;\n comboPeriodo.setSelectedIndex(0);\n }else if(mes == 2 || mes == 3){\n p = 2;\n comboPeriodo.setSelectedIndex(1);\n }else if(mes == 4 || mes == 5){\n p = 3;\n comboPeriodo.setSelectedIndex(2);\n }else if(mes == 6 || mes == 7){\n p = 4;\n comboPeriodo.setSelectedIndex(3);\n }else if(mes == 8 || mes == 9){\n p = 5;\n comboPeriodo.setSelectedIndex(4); \n }else if(mes == 10 || mes == 11){\n p = 6;\n comboPeriodo.setSelectedIndex(5); \n }\n periodo = p;\n }", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jcombocateg = new javax.swing.JComboBox();\n txtcodigo = new javax.swing.JTextField();\n txtproduto = new javax.swing.JTextField();\n txtpreco = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jRadioButton1 = new javax.swing.JRadioButton();\n jRadioButton2 = new javax.swing.JRadioButton();\n jLabel5 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Adicionar Produtos\");\n setResizable(false);\n\n jLabel1.setText(\"Codigo\");\n\n jLabel2.setText(\"Produto\");\n\n jLabel3.setText(\"Categoria\");\n\n jLabel4.setText(\"Preço\");\n\n jcombocateg.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Medicamento\", \"Perfumaria\" }));\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton1.setText(\"Adicionar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Status\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 13))); // NOI18N\n\n buttonGroup1.add(jRadioButton1);\n jRadioButton1.setText(\"Disponivel\");\n\n buttonGroup1.add(jRadioButton2);\n jRadioButton2.setText(\"Em Falta\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jRadioButton1)\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jRadioButton2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jRadioButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 3, Short.MAX_VALUE)\n .addComponent(jRadioButton2))\n );\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel5.setText(\"Adicionar Produtos\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(121, 121, 121)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(137, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(txtpreco, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jcombocateg, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(43, 43, 43)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtcodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtproduto, javax.swing.GroupLayout.PREFERRED_SIZE, 252, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(26, 26, 26))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtcodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(15, 15, 15)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtproduto, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(43, 43, 43)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jcombocateg, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtpreco, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(31, 31, 31)))\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(22, 22, 22))\n );\n\n setSize(new java.awt.Dimension(416, 415));\n setLocationRelativeTo(null);\n }", "@Override\n\tpublic boolean agregarGrupo(Grupo grupo) {\n\t\t\n\t\tSystem.out.println(\"Agregando grupo service\"+ grupo);\n\t\tgrupo.setNombre(grupo.getNombre().toUpperCase());\n\t\tgrupo.setNombreCorto(grupo.getNombreCorto().toUpperCase());\n\t\tint valor=this.grupoDao.agregarGrupo(grupo); \n\t\treturn true;\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n grpGenero = new javax.swing.ButtonGroup();\n pnlPesquisa = new javax.swing.JPanel();\n lblNome = new javax.swing.JLabel();\n txtNome = new javax.swing.JTextField();\n rdbUnissex = new javax.swing.JRadioButton();\n rdbMasculino = new javax.swing.JRadioButton();\n rdbFeminino = new javax.swing.JRadioButton();\n lblGenero = new javax.swing.JLabel();\n jcbTipo = new javax.swing.JComboBox<>();\n lblTipo = new javax.swing.JLabel();\n txtSobrenome1 = new javax.swing.JTextField();\n lblCor1 = new javax.swing.JLabel();\n jcbCor = new javax.swing.JComboBox<>();\n lblCor = new javax.swing.JLabel();\n jspMarca = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList<>();\n lblMarca = new javax.swing.JLabel();\n rdbTodos = new javax.swing.JRadioButton();\n btcPesquisa = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n tblProduto = new javax.swing.JTable();\n lblCarrinho = new javax.swing.JLabel();\n lblQuantidade = new javax.swing.JLabel();\n jspQuantidade = new javax.swing.JSpinner();\n btnAdicionar = new javax.swing.JToggleButton();\n btnCancelar = new javax.swing.JToggleButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"CARRINHO\");\n\n pnlPesquisa.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), \"Pesquisa Produto\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Trebuchet MS\", 1, 12))); // NOI18N\n\n lblNome.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n lblNome.setText(\"* Nome\");\n\n txtNome.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNomeActionPerformed(evt);\n }\n });\n\n grpGenero.add(rdbUnissex);\n rdbUnissex.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n rdbUnissex.setText(\"Unissex\");\n\n grpGenero.add(rdbMasculino);\n rdbMasculino.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n rdbMasculino.setText(\"Maculino\");\n\n grpGenero.add(rdbFeminino);\n rdbFeminino.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n rdbFeminino.setText(\"Feminino\");\n\n lblGenero.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n lblGenero.setText(\"* Genero\");\n\n jcbTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Todos\", \"Bota\", \"Chinelo\", \"Chuteira\", \"Sandália\", \"Sapato\", \"Tênis\", \" \" }));\n\n lblTipo.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n lblTipo.setText(\"* Tipo\");\n\n lblCor1.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n lblCor1.setText(\"* Tamanho\");\n\n jcbCor.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Todos\", \"Amarelo\", \"Azul\", \"Celeste\", \"Laranja\", \"Oliva\", \"Rosa\", \"Roxo\", \"Turquesa\", \"Verde\", \"Vermelho\", \"Violeta\" }));\n\n lblCor.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n lblCor.setText(\"* Cor\");\n\n jList1.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n jList1.setModel(new javax.swing.AbstractListModel<String>() {\n String[] strings = { \"TODOS\", \"ADIDAS\", \"NIKE\", \"PUMA\", \"HAVAIANA\", \"VANS\", \"LACOSTE\", \"FILA\" };\n public int getSize() { return strings.length; }\n public String getElementAt(int i) { return strings[i]; }\n });\n jList1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jList1.setSelectedIndex(0);\n jspMarca.setViewportView(jList1);\n\n lblMarca.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n lblMarca.setText(\"* Marca\");\n\n grpGenero.add(rdbTodos);\n rdbTodos.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n rdbTodos.setSelected(true);\n rdbTodos.setText(\"Todos\");\n\n btcPesquisa.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/pesquisa.png\"))); // NOI18N\n\n javax.swing.GroupLayout pnlPesquisaLayout = new javax.swing.GroupLayout(pnlPesquisa);\n pnlPesquisa.setLayout(pnlPesquisaLayout);\n pnlPesquisaLayout.setHorizontalGroup(\n pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addComponent(rdbTodos)\n .addGap(111, 111, 111)\n .addComponent(btcPesquisa, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addGroup(pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rdbFeminino)\n .addComponent(rdbMasculino)\n .addComponent(rdbUnissex)\n .addComponent(lblGenero))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlPesquisaLayout.createSequentialGroup()\n .addComponent(lblCor)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblMarca)\n .addGap(51, 51, 51))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlPesquisaLayout.createSequentialGroup()\n .addGroup(pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jcbCor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblCor1)\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(txtSobrenome1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(68, 68, 68)\n .addComponent(jspMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(55, 55, 55))\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addGroup(pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jcbTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblTipo))\n .addGap(18, 18, 18)\n .addGroup(pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblNome)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 306, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n );\n pnlPesquisaLayout.setVerticalGroup(\n pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addComponent(lblTipo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jcbTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addComponent(lblNome)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addComponent(lblMarca)\n .addGap(5, 5, 5)\n .addComponent(jspMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addGroup(pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblGenero)\n .addComponent(lblCor))\n .addGap(5, 5, 5)\n .addGroup(pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rdbFeminino)\n .addComponent(jcbCor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addComponent(rdbMasculino)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(rdbUnissex))\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addComponent(lblCor1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtSobrenome1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(pnlPesquisaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(rdbTodos)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(pnlPesquisaLayout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(btcPesquisa, javax.swing.GroupLayout.DEFAULT_SIZE, 53, Short.MAX_VALUE)\n .addContainerGap())))\n );\n\n tblProduto.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"Codigo\", \"Nome\", \"Tipo\", \"Quantidade Estoque\", \"Preço\"\n }\n ));\n jScrollPane2.setViewportView(tblProduto);\n\n lblCarrinho.setFont(new java.awt.Font(\"Trebuchet MS\", 1, 24)); // NOI18N\n lblCarrinho.setText(\"Carrinho Produto\");\n\n lblQuantidade.setFont(new java.awt.Font(\"Trebuchet MS\", 1, 12)); // NOI18N\n lblQuantidade.setText(\"Quantidade\");\n\n jspQuantidade.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n\n btnAdicionar.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 12)); // NOI18N\n btnAdicionar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/carrinho.png\"))); // NOI18N\n btnAdicionar.setText(\"Adicionar\");\n btnAdicionar.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n btnAdicionar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAdicionarActionPerformed(evt);\n }\n });\n\n btnCancelar.setFont(new java.awt.Font(\"Trebuchet MS\", 1, 14)); // NOI18N\n btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/cancelar.png\"))); // NOI18N\n btnCancelar.setText(\"Cancelar\");\n btnCancelar.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n btnCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(pnlPesquisa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(54, 54, 54))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(lblCarrinho)\n .addGap(186, 186, 186))))\n .addGroup(layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 549, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(18, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(208, 208, 208)\n .addComponent(lblQuantidade)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jspQuantidade, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(115, 115, 115)\n .addComponent(btnAdicionar, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(111, 111, 111))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblCarrinho)\n .addGap(18, 18, 18)\n .addComponent(pnlPesquisa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblQuantidade)\n .addComponent(jspQuantidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnAdicionar, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(30, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n txt_nombre = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txt_monto = new javax.swing.JTextField();\n btn_aceptar = new javax.swing.JButton();\n btn_cancelar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n cmb_tipo_pago = new javax.swing.JComboBox();\n jPanel2 = new javax.swing.JPanel();\n lbl_quincena = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Insertar Rubro al Presupuesto\");\n\n jLabel2.setText(\"Rubro\");\n\n jLabel3.setText(\"Monto\");\n\n txt_monto.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txt_montoKeyReleased(evt);\n }\n });\n\n btn_aceptar.setText(\"ACEPTAR\");\n btn_aceptar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_aceptarActionPerformed(evt);\n }\n });\n\n btn_cancelar.setText(\"CANCELAR\");\n btn_cancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_cancelarActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Pagar a\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(9, 9, 9))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txt_monto, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(btn_aceptar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btn_cancelar))\n .addComponent(txt_nombre, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cmb_tipo_pago, 0, 262, Short.MAX_VALUE))\n .addContainerGap(45, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txt_nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txt_monto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(13, 13, 13)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmb_tipo_pago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btn_aceptar)\n .addComponent(btn_cancelar))\n .addGap(27, 27, 27))\n );\n\n jPanel2.setBackground(new java.awt.Color(255, 204, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n lbl_quincena.setFont(new java.awt.Font(\"Arial Unicode MS\", 1, 18)); // NOI18N\n lbl_quincena.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lbl_quincena.setText(\"Insertar Rubro\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(lbl_quincena, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)\n .addGap(120, 120, 120))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(23, Short.MAX_VALUE)\n .addComponent(lbl_quincena)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n envio = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n nombreEmpleado = new javax.swing.JTextField();\n jLabel19 = new javax.swing.JLabel();\n cedulaEmpleado = new javax.swing.JTextField();\n nombre1 = new javax.swing.JTextField();\n jPanel4 = new javax.swing.JPanel();\n jLabel5 = new javax.swing.JLabel();\n tipoBusquedaCliente = new javax.swing.JComboBox();\n txtIngresoDatoCliente = new javax.swing.JTextField();\n buscar = new javax.swing.JButton();\n newCliente = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n nombreCliente = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n cedulaCliente = new javax.swing.JTextField();\n jLabel17 = new javax.swing.JLabel();\n telefonoCliente = new javax.swing.JTextField();\n jLabel18 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n apellidoCliente = new javax.swing.JTextField();\n celularCliente = new javax.swing.JTextField();\n jPanel5 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n txtIngresoDatosPro = new javax.swing.JTextField();\n buscar1 = new javax.swing.JButton();\n tipoBusquedaProducto = new javax.swing.JComboBox();\n jLabel10 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n cantidadCompraPro = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n nombrePro = new javax.swing.JTextField();\n jLabel23 = new javax.swing.JLabel();\n precioUnitarioPro = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n ivaPro = new javax.swing.JTextField();\n jLabel25 = new javax.swing.JLabel();\n stockPro = new javax.swing.JTextField();\n jLabel26 = new javax.swing.JLabel();\n codBarrasPro = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n pct_descuentoPro = new javax.swing.JTextField();\n jLabel28 = new javax.swing.JLabel();\n uniCompraPro = new javax.swing.JTextField();\n jLabel29 = new javax.swing.JLabel();\n uniVentaPro = new javax.swing.JTextField();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n tablaDetalles = new javax.swing.JTable();\n jPanel7 = new javax.swing.JPanel();\n btnQuitar = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n subtotalTotal = new javax.swing.JTextField();\n descuentoTotal = new javax.swing.JTextField();\n totalFac = new javax.swing.JTextField();\n jPanel9 = new javax.swing.JPanel();\n rbtnSi = new javax.swing.JRadioButton();\n jLabel14 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n direccionEnvio = new javax.swing.JButton();\n rtbnNo = new javax.swing.JRadioButton();\n jPanel8 = new javax.swing.JPanel();\n jLabel15 = new javax.swing.JLabel();\n txttotalPagar = new javax.swing.JTextField();\n btnRecetaMedica = new javax.swing.JButton();\n jPanel10 = new javax.swing.JPanel();\n jButton6 = new javax.swing.JButton();\n\n setClosable(true);\n setMaximizable(true);\n setResizable(true);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Datos de la Factura\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 13), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Datos de Factura\"));\n\n jLabel2.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"Número de Factura\");\n\n jTextField2.setEditable(false);\n jTextField2.setBackground(new java.awt.Color(255, 255, 255));\n jTextField2.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jTextField2.setForeground(new java.awt.Color(51, 51, 51));\n jTextField2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jTextField2.setEnabled(false);\n\n jLabel3.setBackground(new java.awt.Color(255, 255, 255));\n jLabel3.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(\"Fecha de Venta\");\n\n jLabel7.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Nombre del Empleado: \");\n\n nombreEmpleado.setEditable(false);\n nombreEmpleado.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombreEmpleado.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombreEmpleado.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombreEmpleado.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreEmpleadoActionPerformed(evt);\n }\n });\n\n jLabel19.setBackground(new java.awt.Color(0, 102, 204));\n jLabel19.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel19.setText(\"Cedula del Empleado:\");\n\n cedulaEmpleado.setEditable(false);\n cedulaEmpleado.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n cedulaEmpleado.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cedulaEmpleado.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n nombre1.setEditable(false);\n nombre1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombre1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombre1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombre1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombre1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGap(37, 37, 37)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField2)\n .addComponent(nombreEmpleado)\n .addComponent(cedulaEmpleado)\n .addComponent(nombre1))\n .addGap(18, 18, 18))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(nombre1, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombreEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cedulaEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 255));\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Cliente\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jLabel5.setBackground(new java.awt.Color(255, 255, 255));\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"Buscar por: \");\n\n tipoBusquedaCliente.setForeground(new java.awt.Color(0, 102, 204));\n tipoBusquedaCliente.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Cedula\", \"Nombre\" }));\n tipoBusquedaCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n tipoBusquedaCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoBusquedaClienteActionPerformed(evt);\n }\n });\n\n txtIngresoDatoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txtIngresoDatoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtIngresoDatoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n buscar.setBackground(new java.awt.Color(255, 255, 255));\n buscar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n buscar.setForeground(new java.awt.Color(0, 102, 204));\n buscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/lupa.png\"))); // NOI18N\n buscar.setText(\"Buscar\");\n buscar.setBorder(null);\n buscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buscarActionPerformed(evt);\n }\n });\n\n newCliente.setBackground(new java.awt.Color(255, 255, 255));\n newCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n newCliente.setForeground(new java.awt.Color(0, 102, 204));\n newCliente.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n newCliente.setText(\"¿Desea almacenar un nuevo cliente? click aqui\");\n newCliente.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n newCliente.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n newClienteMouseClicked(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"Nombre: \");\n\n nombreCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombreCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombreCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombreCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreClienteActionPerformed(evt);\n }\n });\n\n jLabel16.setBackground(new java.awt.Color(0, 102, 204));\n jLabel16.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel16.setText(\"Cedula:\");\n\n cedulaCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n cedulaCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cedulaCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel17.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel17.setText(\" Telefono \");\n\n telefonoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n telefonoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n telefonoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel18.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"Apellido:\");\n\n jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel20.setText(\"Celular:\");\n\n apellidoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n apellidoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n apellidoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n celularCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n celularCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n celularCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n celularCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n celularClienteActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tipoBusquedaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17)\n .addComponent(txtIngresoDatoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)\n .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(telefonoCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)\n .addComponent(cedulaCliente, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nombreCliente, javax.swing.GroupLayout.Alignment.LEADING))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(newCliente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(109, 109, 109))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel18, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)\n .addComponent(jLabel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(apellidoCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)\n .addComponent(celularCliente))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtIngresoDatoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tipoBusquedaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(buscar))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombreCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addGap(0, 1, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(apellidoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cedulaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(celularCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(telefonoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(newCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(1, 1, 1))\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 255, 255));\n jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Buscar Producto\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 13), new java.awt.Color(102, 102, 102))); // NOI18N\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setFont(new java.awt.Font(\"Calibri\", 0, 16)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(51, 51, 51));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Buscar\");\n\n txtIngresoDatosPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txtIngresoDatosPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtIngresoDatosPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n buscar1.setBackground(new java.awt.Color(255, 255, 255));\n buscar1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n buscar1.setForeground(new java.awt.Color(0, 102, 204));\n buscar1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/lupa.png\"))); // NOI18N\n buscar1.setText(\"Buscar\");\n buscar1.setBorder(null);\n buscar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buscar1ActionPerformed(evt);\n }\n });\n\n tipoBusquedaProducto.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n tipoBusquedaProducto.setForeground(new java.awt.Color(0, 102, 204));\n tipoBusquedaProducto.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Codigo de Barras\", \"Nombre\" }));\n tipoBusquedaProducto.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));\n tipoBusquedaProducto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoBusquedaProductoActionPerformed(evt);\n }\n });\n\n jLabel10.setBackground(new java.awt.Color(255, 255, 255));\n jLabel10.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(0, 102, 204));\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"Ingresar Cantidad a Comprar\");\n\n jButton1.setBackground(new java.awt.Color(255, 255, 255));\n jButton1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jButton1.setForeground(new java.awt.Color(0, 102, 204));\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/compra.png\"))); // NOI18N\n jButton1.setText(\"Añadir\");\n jButton1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n cantidadCompraPro.setEditable(false);\n cantidadCompraPro.setFont(new java.awt.Font(\"Calibri\", 0, 12)); // NOI18N\n cantidadCompraPro.setForeground(new java.awt.Color(0, 102, 204));\n cantidadCompraPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cantidadCompraPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(102, 102, 102)));\n\n jLabel22.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel22.setText(\"Nombre: \");\n\n nombrePro.setEditable(false);\n nombrePro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombrePro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombrePro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel23.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel23.setText(\"Código de Barras:\");\n\n precioUnitarioPro.setEditable(false);\n precioUnitarioPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n precioUnitarioPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n precioUnitarioPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel24.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel24.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel24.setText(\"IVA: \");\n\n ivaPro.setEditable(false);\n ivaPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n ivaPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ivaPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel25.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"Stock:\");\n\n stockPro.setEditable(false);\n stockPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n stockPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n stockPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel26.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel26.setText(\"Precio Unitario:\");\n\n codBarrasPro.setEditable(false);\n codBarrasPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n codBarrasPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n codBarrasPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel27.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"Porcentaje de Descuento\");\n\n pct_descuentoPro.setEditable(false);\n pct_descuentoPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n pct_descuentoPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pct_descuentoPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n pct_descuentoPro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pct_descuentoProActionPerformed(evt);\n }\n });\n\n jLabel28.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"Unidad de Compra\");\n\n uniCompraPro.setEditable(false);\n uniCompraPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n uniCompraPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n uniCompraPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel29.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel29.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel29.setText(\"Unidad de Venta\");\n\n uniVentaPro.setEditable(false);\n uniVentaPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n uniVentaPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n uniVentaPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nombrePro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniVentaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(7, 7, 7)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ivaPro, javax.swing.GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)\n .addComponent(precioUnitarioPro)\n .addComponent(stockPro))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(tipoBusquedaProducto, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtIngresoDatosPro, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(buscar1, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(codBarrasPro)\n .addComponent(pct_descuentoPro)\n .addComponent(cantidadCompraPro, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE))))\n .addGap(22, 22, 22))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(tipoBusquedaProducto, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(precioUnitarioPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombrePro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(17, 17, 17)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ivaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(8, 8, 8)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(stockPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniVentaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtIngresoDatosPro, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(buscar1)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(codBarrasPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pct_descuentoPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cantidadCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n\n jPanel6.setBackground(new java.awt.Color(255, 255, 255));\n jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Detalle de la Factura\"));\n\n jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));\n jScrollPane3.setBorder(null);\n\n tablaDetalles.setBackground(new java.awt.Color(0, 102, 204));\n tablaDetalles.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n tablaDetalles.setForeground(new java.awt.Color(255, 255, 255));\n tablaDetalles.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"Cantidad\", \"Producto\", \"Precio Unitario\", \"Subtotal\", \"Descuento por Producto\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.Integer.class, java.lang.String.class, java.lang.Double.class, java.lang.Double.class, java.lang.Double.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, true, true\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tablaDetalles.setRowHeight(25);\n tablaDetalles.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tablaDetallesMouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(tablaDetalles);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 845, Short.MAX_VALUE)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 845, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 25, Short.MAX_VALUE)))\n );\n\n jPanel7.setBackground(new java.awt.Color(255, 255, 255));\n jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Opciones\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n btnQuitar.setBackground(new java.awt.Color(255, 255, 255));\n btnQuitar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n btnQuitar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/eliminar.png\"))); // NOI18N\n btnQuitar.setText(\"Quitar\");\n btnQuitar.setEnabled(false);\n btnQuitar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnQuitarActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Subtotal:\");\n\n jLabel12.setText(\"Descuento Total:\");\n\n jLabel13.setText(\"Total:\");\n\n subtotalTotal.setEditable(false);\n subtotalTotal.setBackground(new java.awt.Color(255, 255, 255));\n subtotalTotal.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n descuentoTotal.setEditable(false);\n descuentoTotal.setBackground(new java.awt.Color(255, 255, 255));\n descuentoTotal.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n totalFac.setEditable(false);\n totalFac.setBackground(new java.awt.Color(255, 255, 255));\n totalFac.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnQuitar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(subtotalTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(descuentoTotal)\n .addComponent(totalFac))))\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnQuitar, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(subtotalTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(descuentoTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(totalFac, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(32, Short.MAX_VALUE))\n );\n\n jPanel9.setBackground(new java.awt.Color(255, 255, 255));\n jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Envio\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 12), new java.awt.Color(51, 51, 51))); // NOI18N\n\n envio.add(rbtnSi);\n rbtnSi.setText(\"Si\");\n rbtnSi.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n rbtnSiMouseClicked(evt);\n }\n });\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/dinero.png\"))); // NOI18N\n jLabel14.setText(\"Precio de envio\");\n\n jTextField7.setEditable(false);\n jTextField7.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n jTextField7.setText(\"$ 2.00\");\n\n direccionEnvio.setBackground(new java.awt.Color(255, 255, 255));\n direccionEnvio.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n direccionEnvio.setForeground(new java.awt.Color(0, 102, 204));\n direccionEnvio.setText(\"Añadir direccion de Envio del cliente\");\n direccionEnvio.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n direccionEnvio.setEnabled(false);\n direccionEnvio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n direccionEnvioActionPerformed(evt);\n }\n });\n\n envio.add(rtbnNo);\n rtbnNo.setSelected(true);\n rtbnNo.setText(\"No\");\n rtbnNo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n rtbnNoMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(rbtnSi)\n .addComponent(rtbnNo))\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(58, 58, 58)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(direccionEnvio, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(14, 14, 14)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rbtnSi)\n .addComponent(jLabel14)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rtbnNo)\n .addComponent(direccionEnvio, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21))\n );\n\n jPanel8.setBackground(new java.awt.Color(255, 255, 255));\n jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Servicios\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jLabel15.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/cobro.png\"))); // NOI18N\n jLabel15.setText(\"Total a Pagar:\");\n\n txttotalPagar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txttotalPagar.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txttotalPagar.setEnabled(false);\n txttotalPagar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txttotalPagarActionPerformed(evt);\n }\n });\n\n btnRecetaMedica.setBackground(new java.awt.Color(255, 255, 255));\n btnRecetaMedica.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n btnRecetaMedica.setForeground(new java.awt.Color(0, 102, 204));\n btnRecetaMedica.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/receta.png\"))); // NOI18N\n btnRecetaMedica.setText(\"Agregar Receta Medica\");\n btnRecetaMedica.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRecetaMedicaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(txttotalPagar)\n .addGap(23, 23, 23))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(btnRecetaMedica, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txttotalPagar, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnRecetaMedica, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21))\n );\n\n jPanel10.setBackground(new java.awt.Color(255, 255, 255));\n jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Generar Factura\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jButton6.setBackground(new java.awt.Color(255, 255, 255));\n jButton6.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jButton6.setForeground(new java.awt.Color(0, 102, 204));\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/impresora.png\"))); // NOI18N\n jButton6.setText(\"Imprimir Factura\");\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton6MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, 361, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(23, 23, 23))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public ConsultaPNporproducto() {\n initComponents();\n ListarPro();\n }", "public FormInserir() {\n initComponents();\n }", "public void criaGrupo() {\n\t\tThread threadMain = Thread.currentThread(); // determina grupo raiz\n\t\tThreadGroup grupoRaiz = threadMain.getThreadGroup().getParent();\n\t\tThreadGroup newGroup = new ThreadGroup(grupoRaiz, \"Extra-\"\n\t\t\t\t+ gruposCriados++);\n\t\tnewGroup.setDaemon(true); // ajusta auto-remocao do grupo\n\t\tint quant = (int) (Math.random() * 10);\n\t\tfor (int i = 0; i < quant; i++) { // adiciona EmptyThreads ao grupo\n\t\t\tnew EmptyThread(newGroup, \"EmptyThread-\" + i).start();\n\t\t}\n\t\tbRefresh.doClick();\n\t}", "public FrmNuevoProveedor() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n btnPesquisar = new javax.swing.JButton();\n edtPesquisa = new javax.swing.JTextField();\n btnExcluir = new javax.swing.JButton();\n btnVisualizar = new javax.swing.JButton();\n btnAlterar = new javax.swing.JButton();\n btnNovo = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n btnSelecionar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Pesquisar grupo\");\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setName(\"Consulta\"); // NOI18N\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n jScrollPane1.setViewportView(jTable1);\n\n btnPesquisar.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnPesquisar.setText(\"pesquisar\");\n btnPesquisar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPesquisarActionPerformed(evt);\n }\n });\n\n edtPesquisa.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n btnExcluir.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnExcluir.setText(\"Excluir\");\n btnExcluir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnExcluirActionPerformed(evt);\n }\n });\n\n btnVisualizar.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnVisualizar.setText(\"visualizar\");\n btnVisualizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnVisualizarActionPerformed(evt);\n }\n });\n\n btnAlterar.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnAlterar.setText(\"alterar\");\n btnAlterar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAlterarActionPerformed(evt);\n }\n });\n\n btnNovo.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnNovo.setText(\"Novo\");\n btnNovo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNovoActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"Nome/código\");\n\n btnSelecionar.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnSelecionar.setText(\"Selecionar\");\n btnSelecionar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSelecionarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 881, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(edtPesquisa)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnPesquisar))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnNovo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnAlterar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnVisualizar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnExcluir)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnSelecionar))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnPesquisar)\n .addComponent(edtPesquisa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 362, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnExcluir)\n .addComponent(btnVisualizar)\n .addComponent(btnAlterar)\n .addComponent(btnNovo)\n .addComponent(btnSelecionar))\n .addGap(23, 23, 23))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 901, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 481, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public void nuevo(){\n switch(tipoDeOperaciones){\n case NINGUNO:\n activarControles();\n btnNuevo.setText(\"Guardar\");\n btnEliminar.setDisable(false);\n btnEliminar.setText(\"Cancelar\");\n btnEditar.setDisable(true);\n btnReporte.setDisable(true);\n tipoDeOperaciones = operaciones.GUARDAR;\n break;\n case GUARDAR:\n guardar();\n \n desactivarControles();\n limpiarControles();\n btnNuevo.setText(\"Nuevo\");\n btnEliminar.setText(\"Eliminar\");\n btnEliminar.setDisable(true);\n btnEditar.setDisable(true);\n btnReporte.setDisable(true);\n tipoDeOperaciones = operaciones.NINGUNO;\n break;\n } \n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jtbl_genero = new javax.swing.JTable();\n jtf_consulta = new javax.swing.JTextField();\n jb_buscar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jb_ok = new javax.swing.JButton();\n jb_cancelar = new javax.swing.JButton();\n jb_novo1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Consulta Gênero\");\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n public void windowClosed(java.awt.event.WindowEvent evt) {\n formWindowClosed(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Consulta Gênero\"));\n jPanel1.setName(\"jPanel1\"); // NOI18N\n\n jScrollPane1.setName(\"jScrollPane1\"); // NOI18N\n\n jtbl_genero.setFont(new java.awt.Font(\"Helvetica Neue\", 0, 13)); // NOI18N\n jtbl_genero.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Código\", \"Descrição\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.Integer.class, java.lang.Object.class\n };\n boolean[] canEdit = new boolean [] {\n false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jtbl_genero.setName(\"jtbl_genero\"); // NOI18N\n jtbl_genero.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jtbl_generoMouseClicked(evt);\n }\n });\n jtbl_genero.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jtbl_generoKeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(jtbl_genero);\n if (jtbl_genero.getColumnModel().getColumnCount() > 0) {\n jtbl_genero.getColumnModel().getColumn(0).setResizable(false);\n jtbl_genero.getColumnModel().getColumn(0).setPreferredWidth(15);\n jtbl_genero.getColumnModel().getColumn(1).setResizable(false);\n jtbl_genero.getColumnModel().getColumn(1).setPreferredWidth(150);\n }\n\n jtf_consulta.setFont(new java.awt.Font(\"Helvetica Neue\", 0, 13)); // NOI18N\n jtf_consulta.setName(\"jtf_consulta\"); // NOI18N\n jtf_consulta.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jtf_consultaKeyPressed(evt);\n }\n });\n\n jb_buscar.setFont(new java.awt.Font(\"Helvetica Neue\", 0, 13)); // NOI18N\n jb_buscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/locadora/image/pesquisar.png\"))); // NOI18N\n jb_buscar.setName(\"jb_buscar\"); // NOI18N\n jb_buscar.setPreferredSize(new java.awt.Dimension(24, 24));\n jb_buscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jb_buscarActionPerformed1(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Helvetica Neue\", 0, 13)); // NOI18N\n jLabel1.setText(\"Parâmetro\");\n jLabel1.setName(\"jLabel1\"); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jtf_consulta, javax.swing.GroupLayout.PREFERRED_SIZE, 270, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jb_buscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(0, 0, 0))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jLabel1)\n .addGap(0, 0, 0)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtf_consulta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jb_buscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE))\n );\n\n jPanel2.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(204, 204, 204)));\n jPanel2.setName(\"jPanel2\"); // NOI18N\n\n jb_ok.setFont(new java.awt.Font(\"Helvetica Neue\", 0, 13)); // NOI18N\n jb_ok.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/locadora/image/finalizar.png\"))); // NOI18N\n jb_ok.setText(\"OK\");\n jb_ok.setName(\"jb_ok\"); // NOI18N\n jb_ok.setPreferredSize(new java.awt.Dimension(100, 40));\n jb_ok.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jb_okActionPerformed(evt);\n }\n });\n\n jb_cancelar.setFont(new java.awt.Font(\"Helvetica Neue\", 0, 13)); // NOI18N\n jb_cancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/locadora/image/sair.png\"))); // NOI18N\n jb_cancelar.setText(\"Sair\");\n jb_cancelar.setName(\"jb_cancelar\"); // NOI18N\n jb_cancelar.setPreferredSize(new java.awt.Dimension(100, 40));\n jb_cancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jb_cancelarActionPerformed(evt);\n }\n });\n\n jb_novo1.setFont(new java.awt.Font(\"Helvetica Neue\", 0, 13)); // NOI18N\n jb_novo1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/locadora/image/novo_registro.png\"))); // NOI18N\n jb_novo1.setText(\"Novo\");\n jb_novo1.setName(\"jb_novo1\"); // NOI18N\n jb_novo1.setPreferredSize(new java.awt.Dimension(100, 40));\n jb_novo1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jb_novo1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addComponent(jb_novo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jb_ok, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(5, 5, 5)\n .addComponent(jb_cancelar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(15, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jb_novo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jb_ok, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jb_cancelar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(4, 4, 4))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(10, 10, 10))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10))\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public void seleccionarTipoComprobante() {\r\n if (com_tipo_comprobante.getValue() != null) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n } else {\r\n tab_tabla1.limpiar();\r\n tab_tabla2.limpiar();\r\n }\r\n tex_num_transaccion.setValue(null);\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales,tex_num_transaccion\");\r\n }", "public RegistrarPagoCXC() {\n initComponents();\n HoraFecha ob2 = new HoraFecha();\n jdfecha.setDate(ob2.obtenerFechamascienanos());\n Buscar_cxc.restropagocxcCxpexitoso = false;\n Buscar_cxp.restropagocxpCxpexitoso = false;\n\n//// spinerDiasCredito.setValue(30);\n//// HoraFecha ob2 = new HoraFecha();\n//// fecha = ob2.obtenerFecha();\n//// jDateChooser1.setDate(fecha);\n//// \n//// jDateChooser1.setDate(sumarRestarDiasFecha(fecha, Integer.valueOf(spinerDiasCredito.getValue().toString())));\n//// txt_entrada.grabFocus(); \n//// txt_entrada.selectAll();\n//// \n ////formas de pago\n fp = OperacionesForms.FormasPagoCXC_seExceptualaformadePago_Credito(jComboBox1);\n\n//OperacionesForms.getAllComponents(this)\n// jComboBox1.setSelectedItem(Principal.formadepagopredeterminada);\n /// HoraFecha.fecha(fecha)\n }", "public FrmIntProveedor() {\n initComponents();\n muestraProveedor();\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n botonCancelarProveedor = new javax.swing.JButton();\n bGuardar = new javax.swing.JButton();\n jLabel14 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n campoId = new javax.swing.JTextField();\n campoMarca = new javax.swing.JTextField();\n campoNombre = new javax.swing.JTextField();\n campoApellidos = new javax.swing.JTextField();\n campoTelefono = new javax.swing.JTextField();\n campoDireccion = new javax.swing.JTextField();\n campoEmail = new javax.swing.JTextField();\n campoIdZapato = new javax.swing.JTextField();\n campoCantidad = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"ANDREA S.A. DE C.V.\");\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setMaximumSize(new java.awt.Dimension(421, 437));\n jPanel1.setPreferredSize(new java.awt.Dimension(421, 437));\n\n jLabel1.setBackground(new java.awt.Color(255, 0, 0));\n jLabel1.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n jLabel1.setText(\"AGREGAR PROVEEDOR\");\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 0, 0));\n jLabel2.setText(\"ID:\");\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 0, 0));\n jLabel3.setText(\"NOMBRE (S):\");\n\n jLabel4.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 0, 0));\n jLabel4.setText(\"MARCA:\");\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 0, 0));\n jLabel5.setText(\"APELLIDOS:\");\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 0, 0));\n jLabel6.setText(\"TELEFONO FIJO:\");\n\n botonCancelarProveedor.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n botonCancelarProveedor.setForeground(new java.awt.Color(255, 0, 0));\n botonCancelarProveedor.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/zapateria/vista/tachee.png\"))); // NOI18N\n botonCancelarProveedor.setText(\"CANCELAR\");\n botonCancelarProveedor.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonCancelarProveedorActionPerformed(evt);\n }\n });\n\n bGuardar.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n bGuardar.setForeground(new java.awt.Color(255, 0, 0));\n bGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/zapateria/vista/iconoGuardar.png\"))); // NOI18N\n bGuardar.setText(\"GUARDAR\");\n bGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bGuardarActionPerformed(evt);\n }\n });\n\n jLabel14.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/zapateria/vista/iconoAgregar.png\"))); // NOI18N\n\n jLabel8.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 0, 0));\n jLabel8.setText(\"DIRECCION:\");\n\n jLabel9.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 0, 0));\n jLabel9.setText(\"E-MAIL:\");\n\n jLabel10.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(255, 0, 0));\n jLabel10.setText(\"ID ZAPATO:\");\n\n jLabel11.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(255, 0, 0));\n jLabel11.setText(\"CANTIDAD:\");\n\n campoId.setBackground(java.awt.Color.white);\n campoId.setEditable(false);\n campoId.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campoIdActionPerformed(evt);\n }\n });\n\n campoMarca.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n campoMarcaKeyTyped(evt);\n }\n });\n\n campoNombre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n campoNombreKeyTyped(evt);\n }\n });\n\n campoApellidos.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n campoApellidosKeyTyped(evt);\n }\n });\n\n campoTelefono.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n campoTelefonoKeyTyped(evt);\n }\n });\n\n campoIdZapato.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n campoIdZapatoKeyTyped(evt);\n }\n });\n\n campoCantidad.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n campoCantidadKeyTyped(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(18, 18, 18)\n .addComponent(campoEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoTelefono)\n .addGap(205, 205, 205))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoIdZapato, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(53, 53, 53)\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoId, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(63, 63, 63)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoNombre))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoApellidos, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap())))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(101, 101, 101)\n .addComponent(jLabel1)\n .addGap(38, 38, 38)\n .addComponent(jLabel14)\n .addContainerGap(37, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(botonCancelarProveedor)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(45, 45, 45))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(21, 21, 21)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoApellidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jLabel14)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoIdZapato, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(botonCancelarProveedor)\n .addComponent(bGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SkipValidation\n\tpublic String agregarColaborador() {\n\t\talumnoProyectoBs.registrarAlumnoProyecto(idColaboradorSel, idProyecto);\n\t\tSesionController.put(\"action-messages\", \"Se agregó el colaborador exitosamente.\");\n\t\taddActionMessage(\"Se agregó el colaborador exitosamente.\");\n\t\treturn \"success\";\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n cboIdProveedor = new javax.swing.JComboBox<>();\n txtTotal = new javax.swing.JTextField();\n txtProducto = new javax.swing.JTextField();\n btnRegistrar = new javax.swing.JButton();\n txtFecha = new javax.swing.JTextField();\n\n jLabel1.setText(\"ID proveedor\");\n\n jLabel2.setText(\"Fecha\");\n\n jLabel3.setText(\"Total\");\n\n jLabel4.setText(\"Producto\");\n\n btnRegistrar.setText(\"Registrar\");\n btnRegistrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRegistrarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(66, 66, 66)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtProducto))\n .addComponent(btnRegistrar)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(cboIdProveedor, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(24, 24, 24)\n .addComponent(txtFecha))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(29, 29, 29)\n .addComponent(txtTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(72, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(cboIdProveedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtProducto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addComponent(btnRegistrar)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "private ProcesoDTO registrarProcesoCoactivo() {\n RegistraProcesoDTO registra = new RegistraProcesoDTO();\n registra.setObservacion(EnumTipoProceso.COACTIVO.name());\n registra.setTipoProceso(EnumTipoProceso.COACTIVO);\n registra.setEstado(EnumEstadoProceso.ECUADOR_COACTIVO_RADICACION);\n registra.setConsecutivo(EnumConsecutivo.NUMERO_COACTIVO_ECUADOR);\n return iRFachadaProceso.crearProceso(registra);\n }", "public CadastrarProduto() {\n initComponents();\n }", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "public RegistrarCompra() {\n initComponents();\n tabelaFornecedor.setModel(modelFornecedor);\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jToggleButton1 = new javax.swing.JToggleButton();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n PanelProdutoPes = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n TextPesquisaProd = new javax.swing.JTextField();\n ButtonPesquisar = new javax.swing.JButton();\n ButtonAdicionar = new javax.swing.JButton();\n ButtonListar = new javax.swing.JButton();\n ComboFiltro = new javax.swing.JComboBox();\n PanelCadastro = new javax.swing.JPanel();\n PanelDados = new javax.swing.JPanel();\n ComboStatus = new javax.swing.JComboBox();\n ButtonNewSub = new javax.swing.JButton();\n LabelDataCad = new javax.swing.JLabel();\n TextCodigo = new javax.swing.JTextField();\n ComboSubGrupo = new javax.swing.JComboBox();\n LabelDescricao = new javax.swing.JLabel();\n ComboGrupo = new javax.swing.JComboBox();\n LabelCodigo = new javax.swing.JLabel();\n LabelStatus = new javax.swing.JLabel();\n LabelGrupo = new javax.swing.JLabel();\n ButtonNewGrupo = new javax.swing.JButton();\n TextDescricao = new javax.swing.JTextField();\n LabelSubgrupo = new javax.swing.JLabel();\n LabelFornecedor = new javax.swing.JLabel();\n ButtonNewForn = new javax.swing.JButton();\n LabelDescriçaoECF = new javax.swing.JLabel();\n TextDescricaoECF = new javax.swing.JTextField();\n LabelUnidade = new javax.swing.JLabel();\n ComboUnidade = new javax.swing.JComboBox();\n ButtonNewUni = new javax.swing.JButton();\n LabelCodBarras = new javax.swing.JLabel();\n TextCodBarras = new javax.swing.JTextField();\n LabelModelo = new javax.swing.JLabel();\n TextModelo = new javax.swing.JTextField();\n LabelMarca = new javax.swing.JLabel();\n TextMarca = new javax.swing.JTextField();\n ButtonNovo = new javax.swing.JButton();\n ButtonExcluir = new javax.swing.JButton();\n ButtonEditar = new javax.swing.JButton();\n ButtonSalvar = new javax.swing.JButton();\n ButtonCancelar = new javax.swing.JButton();\n DateCadastro = new com.toedter.calendar.JDateChooser();\n TextCodigo2 = new javax.swing.JTextField();\n LabelGrupo1 = new javax.swing.JLabel();\n TextCodigo3 = new javax.swing.JTextField();\n ButtonNewForn1 = new javax.swing.JButton();\n ButtonNewForn2 = new javax.swing.JButton();\n TextCodigo11 = new javax.swing.JTextField();\n ButtonNewUni1 = new javax.swing.JButton();\n jTabbedPane8 = new javax.swing.JTabbedPane();\n PanelFinanceiro4 = new javax.swing.JPanel();\n LabelModelo12 = new javax.swing.JLabel();\n TextModelo12 = new javax.swing.JTextField();\n TextModelo13 = new javax.swing.JTextField();\n LabelModelo13 = new javax.swing.JLabel();\n LabelModelo14 = new javax.swing.JLabel();\n TextModelo14 = new javax.swing.JTextField();\n TextModelo15 = new javax.swing.JTextField();\n LabelModelo15 = new javax.swing.JLabel();\n TextModelo16 = new javax.swing.JTextField();\n LabelModelo16 = new javax.swing.JLabel();\n LabelModelo17 = new javax.swing.JLabel();\n TextModelo17 = new javax.swing.JTextField();\n TextModelo18 = new javax.swing.JTextField();\n LabelModelo18 = new javax.swing.JLabel();\n TextModelo19 = new javax.swing.JTextField();\n LabelModelo19 = new javax.swing.JLabel();\n TextModelo20 = new javax.swing.JTextField();\n LabelModelo20 = new javax.swing.JLabel();\n LabelModelo21 = new javax.swing.JLabel();\n TextModelo21 = new javax.swing.JTextField();\n jPanel13 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n AreaObs2 = new javax.swing.JTextArea();\n LabelObservacao2 = new javax.swing.JLabel();\n PanelImagem2 = new javax.swing.JPanel();\n LabelImagem2 = new javax.swing.JLabel();\n jPanel14 = new javax.swing.JPanel();\n ButtonNewPromo13 = new javax.swing.JButton();\n jPanel15 = new javax.swing.JPanel();\n TextValorCusto28 = new javax.swing.JTextField();\n LabelValorCus22 = new javax.swing.JLabel();\n TextValorCusto29 = new javax.swing.JTextField();\n LabelValorCus23 = new javax.swing.JLabel();\n TextValorCusto30 = new javax.swing.JTextField();\n LabelValorCus24 = new javax.swing.JLabel();\n TextValorCusto31 = new javax.swing.JTextField();\n LabelValorCus25 = new javax.swing.JLabel();\n TextValorCusto32 = new javax.swing.JTextField();\n LabelValorCus26 = new javax.swing.JLabel();\n PanelEstoque = new javax.swing.JPanel();\n LabelImEstoque = new javax.swing.JLabel();\n PanelTextEstoq = new javax.swing.JPanel();\n LabelEstoque = new javax.swing.JLabel();\n LabelAtual = new javax.swing.JLabel();\n LabelMax = new javax.swing.JLabel();\n CheckBoxLimite = new javax.swing.JCheckBox();\n TextAtual = new javax.swing.JTextField();\n TextMax = new javax.swing.JTextField();\n LabelMax1 = new javax.swing.JLabel();\n TextMax1 = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n LabelCodigo1 = new javax.swing.JLabel();\n TextCodigo1 = new javax.swing.JTextField();\n ButtonNewUni2 = new javax.swing.JButton();\n jPanel21 = new javax.swing.JPanel();\n jScrollPane6 = new javax.swing.JScrollPane();\n jTableSubGrupo1 = new javax.swing.JTable();\n ButtonCancelar2 = new javax.swing.JButton();\n ButtonCancelar3 = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JSeparator();\n jTabbedPane7 = new javax.swing.JTabbedPane();\n jPanel11 = new javax.swing.JPanel();\n ButtonNewPromo10 = new javax.swing.JButton();\n LabelValorCus16 = new javax.swing.JLabel();\n TextValorCusto20 = new javax.swing.JTextField();\n TextValorCusto21 = new javax.swing.JTextField();\n LabelValorCus17 = new javax.swing.JLabel();\n TextValorCusto22 = new javax.swing.JTextField();\n ButtonNewPromo11 = new javax.swing.JButton();\n TextValorCusto23 = new javax.swing.JTextField();\n ButtonNewPromo12 = new javax.swing.JButton();\n jSeparator7 = new javax.swing.JSeparator();\n jPanel8 = new javax.swing.JPanel();\n TextValorCusto24 = new javax.swing.JTextField();\n LabelValorCus18 = new javax.swing.JLabel();\n TextValorCusto25 = new javax.swing.JTextField();\n LabelValorCus19 = new javax.swing.JLabel();\n ComboUnidade6 = new javax.swing.JComboBox();\n LabelUnidade6 = new javax.swing.JLabel();\n ComboUnidade7 = new javax.swing.JComboBox();\n LabelUnidade7 = new javax.swing.JLabel();\n ComboUnidade8 = new javax.swing.JComboBox();\n LabelUnidade8 = new javax.swing.JLabel();\n ComboUnidade9 = new javax.swing.JComboBox();\n LabelUnidade9 = new javax.swing.JLabel();\n jPanel12 = new javax.swing.JPanel();\n TextValorCusto26 = new javax.swing.JTextField();\n LabelValorCus20 = new javax.swing.JLabel();\n TextValorCusto27 = new javax.swing.JTextField();\n LabelValorCus21 = new javax.swing.JLabel();\n\n jToggleButton1.setText(\"jToggleButton1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"3D - Soluções Tecnológicas - Produto\");\n\n jTabbedPane1.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n\n jTable1.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {\"0000010102\", null, \"Desktop\", null, \"Pauta\", \"100\", \"ATIVO\"}\n },\n new String [] {\n \"Código\", \"Código de Barras\", \"Descrição Completa\", \"Grupo\", \"Fornecedor\", \"Estoque\", \"Status\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jTable1.setMaximumSize(new java.awt.Dimension(2147483647, 200));\n jTable1.setMinimumSize(new java.awt.Dimension(770, 800));\n jTable1.setRowHeight(20);\n jTable1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jTable1.getTableHeader().setReorderingAllowed(false);\n jScrollPane1.setViewportView(jTable1);\n if (jTable1.getColumnModel().getColumnCount() > 0) {\n jTable1.getColumnModel().getColumn(0).setMinWidth(100);\n jTable1.getColumnModel().getColumn(0).setPreferredWidth(100);\n jTable1.getColumnModel().getColumn(0).setMaxWidth(100);\n jTable1.getColumnModel().getColumn(1).setMinWidth(120);\n jTable1.getColumnModel().getColumn(1).setPreferredWidth(120);\n jTable1.getColumnModel().getColumn(1).setMaxWidth(120);\n jTable1.getColumnModel().getColumn(2).setMinWidth(300);\n jTable1.getColumnModel().getColumn(2).setPreferredWidth(300);\n jTable1.getColumnModel().getColumn(2).setMaxWidth(300);\n jTable1.getColumnModel().getColumn(3).setMinWidth(200);\n jTable1.getColumnModel().getColumn(3).setPreferredWidth(200);\n jTable1.getColumnModel().getColumn(3).setMaxWidth(200);\n jTable1.getColumnModel().getColumn(4).setMinWidth(200);\n jTable1.getColumnModel().getColumn(4).setPreferredWidth(200);\n jTable1.getColumnModel().getColumn(4).setMaxWidth(200);\n jTable1.getColumnModel().getColumn(5).setMinWidth(100);\n jTable1.getColumnModel().getColumn(5).setPreferredWidth(100);\n jTable1.getColumnModel().getColumn(5).setMaxWidth(100);\n jTable1.getColumnModel().getColumn(6).setMinWidth(100);\n jTable1.getColumnModel().getColumn(6).setPreferredWidth(100);\n jTable1.getColumnModel().getColumn(6).setMaxWidth(100);\n }\n\n TextPesquisaProd.setFont(new java.awt.Font(\"Arial\", 0, 20)); // NOI18N\n TextPesquisaProd.setForeground(new java.awt.Color(153, 153, 153));\n TextPesquisaProd.setText(\"Selecione uma das opções de pesquisa ...\");\n TextPesquisaProd.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextPesquisaProd.setPreferredSize(new java.awt.Dimension(500, 25));\n TextPesquisaProd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextPesquisaProdActionPerformed(evt);\n }\n });\n\n ButtonPesquisar.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonPesquisar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/search.png\"))); // NOI18N\n ButtonPesquisar.setText(\"Pesquisar Produto\");\n ButtonPesquisar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonPesquisarActionPerformed(evt);\n }\n });\n\n ButtonAdicionar.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonAdicionar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add.png\"))); // NOI18N\n ButtonAdicionar.setText(\"Adicionar \");\n ButtonAdicionar.setMaximumSize(new java.awt.Dimension(300, 25));\n ButtonAdicionar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonAdicionarActionPerformed(evt);\n }\n });\n\n ButtonListar.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonListar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/abrircli.png\"))); // NOI18N\n ButtonListar.setText(\"Listar Produtos\");\n ButtonListar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonListarActionPerformed(evt);\n }\n });\n\n ComboFiltro.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n ComboFiltro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Código Interno\", \"Código Externo\", \"Código de Barras\", \"Descrição\", \"Grupo\", \"Subgrupo\", \"Data de Cadastro\" }));\n\n javax.swing.GroupLayout PanelProdutoPesLayout = new javax.swing.GroupLayout(PanelProdutoPes);\n PanelProdutoPes.setLayout(PanelProdutoPesLayout);\n PanelProdutoPesLayout.setHorizontalGroup(\n PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelProdutoPesLayout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1295, Short.MAX_VALUE)\n .addGroup(PanelProdutoPesLayout.createSequentialGroup()\n .addComponent(TextPesquisaProd, javax.swing.GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonPesquisar, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3)\n .addComponent(ButtonListar)\n .addGap(2, 2, 2)\n .addComponent(ButtonAdicionar, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(5, 5, 5))\n );\n PanelProdutoPesLayout.setVerticalGroup(\n PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelProdutoPesLayout.createSequentialGroup()\n .addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelProdutoPesLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)\n .addComponent(ButtonListar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ButtonAdicionar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ButtonPesquisar)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelProdutoPesLayout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextPesquisaProd, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ComboFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(3, 3, 3)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 531, Short.MAX_VALUE)\n .addGap(5, 5, 5))\n );\n\n jTabbedPane1.addTab(\"Pesquisar Produto\", PanelProdutoPes);\n\n PanelDados.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n ComboStatus.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n ComboStatus.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Ativo\", \"Bloqueado\", \"Inativo\" }));\n ComboStatus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboStatusActionPerformed(evt);\n }\n });\n\n ButtonNewSub.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n ButtonNewSub.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewSubActionPerformed(evt);\n }\n });\n\n LabelDataCad.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelDataCad.setText(\"Data de cadastro:\");\n\n TextCodigo.setEditable(false);\n TextCodigo.setBackground(new java.awt.Color(255, 255, 255));\n TextCodigo.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextCodigo.setForeground(new java.awt.Color(153, 153, 153));\n TextCodigo.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextCodigo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextCodigoActionPerformed(evt);\n }\n });\n\n ComboSubGrupo.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n\n LabelDescricao.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelDescricao.setText(\"Descrição:\");\n\n ComboGrupo.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n\n LabelCodigo.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelCodigo.setText(\"Código:\");\n\n LabelStatus.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelStatus.setText(\"Status:\");\n\n LabelGrupo.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelGrupo.setText(\"Grupo:\");\n\n ButtonNewGrupo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n ButtonNewGrupo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewGrupoActionPerformed(evt);\n }\n });\n\n TextDescricao.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextDescricao.setForeground(new java.awt.Color(153, 153, 153));\n TextDescricao.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextDescricao.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextDescricaoActionPerformed(evt);\n }\n });\n\n LabelSubgrupo.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelSubgrupo.setText(\"Subgrupo:\");\n\n LabelFornecedor.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelFornecedor.setText(\"Fornecedor:\");\n\n ButtonNewForn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n ButtonNewForn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewFornActionPerformed(evt);\n }\n });\n\n LabelDescriçaoECF.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelDescriçaoECF.setText(\"Descrição PDV:\");\n\n TextDescricaoECF.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextDescricaoECF.setForeground(new java.awt.Color(153, 153, 153));\n TextDescricaoECF.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextDescricaoECF.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextDescricaoECFActionPerformed(evt);\n }\n });\n\n LabelUnidade.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelUnidade.setText(\"Unidade:\");\n\n ComboUnidade.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n ComboUnidade.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboUnidadeActionPerformed(evt);\n }\n });\n\n ButtonNewUni.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n ButtonNewUni.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewUniActionPerformed(evt);\n }\n });\n\n LabelCodBarras.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelCodBarras.setText(\"Cód. Barras:\");\n\n TextCodBarras.setEditable(false);\n TextCodBarras.setBackground(new java.awt.Color(255, 255, 255));\n TextCodBarras.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextCodBarras.setForeground(new java.awt.Color(153, 153, 153));\n TextCodBarras.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextCodBarras.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextCodBarrasActionPerformed(evt);\n }\n });\n\n LabelModelo.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo.setText(\"Modelo:\");\n\n TextModelo.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModeloActionPerformed(evt);\n }\n });\n\n LabelMarca.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelMarca.setText(\"Marca:\");\n\n TextMarca.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextMarca.setForeground(new java.awt.Color(153, 153, 153));\n TextMarca.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextMarca.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextMarcaActionPerformed(evt);\n }\n });\n\n ButtonNovo.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonNovo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add.png\"))); // NOI18N\n ButtonNovo.setText(\"Novo Produto\");\n\n ButtonExcluir.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonExcluir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/editar.png\"))); // NOI18N\n ButtonExcluir.setText(\"Editar Cadastro\");\n ButtonExcluir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonExcluirActionPerformed(evt);\n }\n });\n\n ButtonEditar.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonEditar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/close24x24.png\"))); // NOI18N\n ButtonEditar.setText(\"Excluir Cadastro\");\n ButtonEditar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonEditarActionPerformed(evt);\n }\n });\n\n ButtonSalvar.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonSalvar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/Save.png\"))); // NOI18N\n ButtonSalvar.setText(\"Salvar Cadastro\");\n ButtonSalvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonSalvarActionPerformed(evt);\n }\n });\n\n ButtonCancelar.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/cancelarCli.png\"))); // NOI18N\n ButtonCancelar.setText(\"Cancelar\");\n ButtonCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonCancelarActionPerformed(evt);\n }\n });\n\n DateCadastro.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n DateCadastro.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/Calendar.png\")));\n\n TextCodigo2.setEditable(false);\n TextCodigo2.setBackground(new java.awt.Color(255, 255, 255));\n TextCodigo2.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextCodigo2.setForeground(new java.awt.Color(153, 153, 153));\n TextCodigo2.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextCodigo2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextCodigo2ActionPerformed(evt);\n }\n });\n\n LabelGrupo1.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelGrupo1.setText(\"NCM/SH:\");\n\n TextCodigo3.setEditable(false);\n TextCodigo3.setBackground(new java.awt.Color(255, 255, 255));\n TextCodigo3.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextCodigo3.setForeground(new java.awt.Color(153, 153, 153));\n TextCodigo3.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextCodigo3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextCodigo3ActionPerformed(evt);\n }\n });\n\n ButtonNewForn1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/pesquisarncm.png\"))); // NOI18N\n ButtonNewForn1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewForn1ActionPerformed(evt);\n }\n });\n\n ButtonNewForn2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/print.png\"))); // NOI18N\n ButtonNewForn2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewForn2ActionPerformed(evt);\n }\n });\n\n TextCodigo11.setEditable(false);\n TextCodigo11.setBackground(new java.awt.Color(255, 255, 255));\n TextCodigo11.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextCodigo11.setForeground(new java.awt.Color(153, 153, 153));\n TextCodigo11.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextCodigo11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextCodigo11ActionPerformed(evt);\n }\n });\n\n ButtonNewUni1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n ButtonNewUni1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewUni1ActionPerformed(evt);\n }\n });\n\n jTabbedPane8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \" Dados Complementares \", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Arial\", 0, 14))); // NOI18N\n jTabbedPane8.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n\n PanelFinanceiro4.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n\n LabelModelo12.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo12.setText(\"Valor Compra:\");\n\n TextModelo12.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo12.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo12.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo12ActionPerformed(evt);\n }\n });\n\n TextModelo13.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo13.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo13.setText(\"100000,00\");\n TextModelo13.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo13.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo13ActionPerformed(evt);\n }\n });\n\n LabelModelo13.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo13.setText(\"Valor Venda:\");\n\n LabelModelo14.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo14.setText(\"Preço Venda Min.:\");\n\n TextModelo14.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo14.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo14.setText(\"100000,00\");\n TextModelo14.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo14.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo14ActionPerformed(evt);\n }\n });\n\n TextModelo15.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo15.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo15.setText(\"100000,00\");\n TextModelo15.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo15.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo15ActionPerformed(evt);\n }\n });\n\n LabelModelo15.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo15.setText(\"Preço Sugerido:\");\n\n TextModelo16.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo16.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo16.setText(\"100000,00\");\n TextModelo16.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo16.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo16ActionPerformed(evt);\n }\n });\n\n LabelModelo16.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo16.setText(\"Custo Medio Liq.:\");\n\n LabelModelo17.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo17.setText(\"Preço Lucro Zero:\");\n\n TextModelo17.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo17.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo17.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo17.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo17ActionPerformed(evt);\n }\n });\n\n TextModelo18.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo18.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo18.setText(\"100000,00\");\n TextModelo18.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo18.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo18ActionPerformed(evt);\n }\n });\n\n LabelModelo18.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo18.setText(\"Preço Lucro Max.:\");\n\n TextModelo19.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo19.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo19.setText(\"100000,00\");\n TextModelo19.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo19.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo19ActionPerformed(evt);\n }\n });\n\n LabelModelo19.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo19.setText(\"Preço Lucro Min.:\");\n\n TextModelo20.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo20.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo20.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo20.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo20ActionPerformed(evt);\n }\n });\n\n LabelModelo20.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo20.setText(\"Markup:\");\n\n LabelModelo21.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo21.setText(\"Valor Promocional:\");\n\n TextModelo21.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo21.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo21.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo21.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo21ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout PanelFinanceiro4Layout = new javax.swing.GroupLayout(PanelFinanceiro4);\n PanelFinanceiro4.setLayout(PanelFinanceiro4Layout);\n PanelFinanceiro4Layout.setHorizontalGroup(\n PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(LabelModelo12)\n .addGap(24, 24, 24))\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(TextModelo12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(1, 1, 1)))\n .addGap(6, 6, 6)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TextModelo13, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelModelo13, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(LabelModelo14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextModelo14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelModelo15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextModelo15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(LabelModelo17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextModelo17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(TextModelo18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(LabelModelo19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(LabelModelo18)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelModelo20, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(TextModelo19, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextModelo20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelModelo16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextModelo16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(TextModelo21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(LabelModelo21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n PanelFinanceiro4Layout.setVerticalGroup(\n PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(LabelModelo16)\n .addGap(1, 1, 1)\n .addComponent(TextModelo16, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(LabelModelo15)\n .addGap(1, 1, 1)\n .addComponent(TextModelo15, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(LabelModelo14)\n .addGap(1, 1, 1)\n .addComponent(TextModelo14, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(TextModelo13, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelModelo12)\n .addComponent(LabelModelo13))\n .addGap(1, 1, 1)\n .addComponent(TextModelo12, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelModelo17)\n .addComponent(LabelModelo19)\n .addComponent(LabelModelo18)\n .addComponent(LabelModelo20))\n .addGap(1, 1, 1)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextModelo17, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextModelo18, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextModelo19, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextModelo20, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(LabelModelo21)\n .addGap(1, 1, 1)\n .addComponent(TextModelo21, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(16, 16, 16))\n );\n\n jTabbedPane8.addTab(\" Valores Principais \", PanelFinanceiro4);\n\n AreaObs2.setColumns(1);\n AreaObs2.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n AreaObs2.setLineWrap(true);\n AreaObs2.setRows(1);\n AreaObs2.setPreferredSize(null);\n jScrollPane5.setViewportView(AreaObs2);\n\n LabelObservacao2.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelObservacao2.setText(\"Observação:\");\n\n PanelImagem2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n LabelImagem2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n LabelImagem2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/ProdutoFoto.png\"))); // NOI18N\n LabelImagem2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n LabelImagem2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n\n javax.swing.GroupLayout PanelImagem2Layout = new javax.swing.GroupLayout(PanelImagem2);\n PanelImagem2.setLayout(PanelImagem2Layout);\n PanelImagem2Layout.setHorizontalGroup(\n PanelImagem2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelImagem2Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(LabelImagem2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n PanelImagem2Layout.setVerticalGroup(\n PanelImagem2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelImagem2Layout.createSequentialGroup()\n .addComponent(LabelImagem2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\n jPanel13.setLayout(jPanel13Layout);\n jPanel13Layout.setHorizontalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelObservacao2)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 493, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(PanelImagem2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel13Layout.setVerticalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(PanelImagem2, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addComponent(LabelObservacao2)\n .addGap(1, 1, 1)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(5, 5, 5))\n );\n\n jTabbedPane8.addTab(\" Observação / Imagem Produto\", jPanel13);\n\n ButtonNewPromo13.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonNewPromo13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/promoção.png\"))); // NOI18N\n ButtonNewPromo13.setText(\"Adicionar Uma Promoção ao Produto\");\n ButtonNewPromo13.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewPromo13ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\n jPanel14.setLayout(jPanel14Layout);\n jPanel14Layout.setHorizontalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(ButtonNewPromo13, javax.swing.GroupLayout.DEFAULT_SIZE, 756, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel14Layout.setVerticalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(ButtonNewPromo13, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(70, Short.MAX_VALUE))\n );\n\n jTabbedPane8.addTab(\" Promoção \", jPanel14);\n\n TextValorCusto28.setEditable(false);\n TextValorCusto28.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto28.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto28.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto28.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto28.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto28ActionPerformed(evt);\n }\n });\n\n LabelValorCus22.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus22.setText(\"Codigo Balança:\");\n\n TextValorCusto29.setEditable(false);\n TextValorCusto29.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto29.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto29.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto29.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto29.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto29ActionPerformed(evt);\n }\n });\n\n LabelValorCus23.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus23.setText(\"Peso:\");\n\n TextValorCusto30.setEditable(false);\n TextValorCusto30.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto30.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto30.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto30.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto30.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto30ActionPerformed(evt);\n }\n });\n\n LabelValorCus24.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus24.setText(\"Porcento Comissao:\");\n\n TextValorCusto31.setEditable(false);\n TextValorCusto31.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto31.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto31.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto31.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto31.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto31ActionPerformed(evt);\n }\n });\n\n LabelValorCus25.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus25.setText(\"Ponto Pedido:\");\n\n TextValorCusto32.setEditable(false);\n TextValorCusto32.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto32.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto32.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto32.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto32.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto32ActionPerformed(evt);\n }\n });\n\n LabelValorCus26.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus26.setText(\"Lote Economico Compra:\");\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelValorCus26)\n .addComponent(TextValorCusto32, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelValorCus24)\n .addComponent(TextValorCusto30, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelValorCus25)\n .addComponent(TextValorCusto31, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelValorCus22)\n .addComponent(TextValorCusto28, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelValorCus23)\n .addComponent(TextValorCusto29, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(316, Short.MAX_VALUE))\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(LabelValorCus22)\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto28, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(LabelValorCus23)\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto29, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(LabelValorCus26)\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto32, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(LabelValorCus25)\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto31, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(LabelValorCus24)\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto30, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))))\n );\n\n jTabbedPane8.addTab(\" Dados Complementares \", jPanel15);\n\n javax.swing.GroupLayout PanelDadosLayout = new javax.swing.GroupLayout(PanelDados);\n PanelDados.setLayout(PanelDadosLayout);\n PanelDadosLayout.setHorizontalGroup(\n PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelCodigo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextCodigo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelCodBarras)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextCodBarras, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonNewForn2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(LabelStatus)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelDescricao)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(TextDescricao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(PanelDadosLayout.createSequentialGroup()\n .addComponent(ButtonNovo, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3)\n .addComponent(ButtonExcluir)\n .addGap(3, 3, 3)\n .addComponent(ButtonEditar)\n .addGap(3, 3, 3)\n .addComponent(ButtonSalvar)\n .addGap(3, 3, 3)\n .addComponent(ButtonCancelar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelFornecedor)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextCodigo11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonNewForn, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelDataCad)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(DateCadastro, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createSequentialGroup()\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelModelo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelMarca)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextMarca, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelGrupo1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextCodigo2, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(1, 1, 1)\n .addComponent(TextCodigo3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelDescriçaoECF)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextDescricaoECF, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(LabelUnidade)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboUnidade, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelGrupo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonNewGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelSubgrupo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboSubGrupo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ButtonNewUni, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonNewSub, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addComponent(ButtonNewForn1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(ButtonNewUni1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jTabbedPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap())\n );\n PanelDadosLayout.setVerticalGroup(\n PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(TextCodBarras, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ComboStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelCodigo)\n .addComponent(TextCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelStatus)\n .addComponent(LabelCodBarras)))\n .addComponent(ButtonNewForn2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextCodigo2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelGrupo1)\n .addComponent(TextCodigo3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(ButtonNewForn1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelDescricao)\n .addComponent(TextDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelModelo)\n .addComponent(LabelMarca))\n .addComponent(TextMarca, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(ButtonNewUni1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextDescricaoECF, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelDescriçaoECF)\n .addComponent(LabelUnidade)\n .addComponent(ComboUnidade, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(ButtonNewUni, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(ButtonNewSub, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonNewGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ComboSubGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelSubgrupo)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ComboGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelGrupo)))\n .addGap(11, 11, 11)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(LabelDataCad, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(DateCadastro, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ButtonNewForn, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelFornecedor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextCodigo11, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTabbedPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 179, Short.MAX_VALUE)\n .addGap(5, 5, 5)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(ButtonNovo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ButtonSalvar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ButtonCancelar)\n .addComponent(ButtonEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(ButtonExcluir))\n .addGap(5, 5, 5))\n );\n\n PanelEstoque.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n LabelImEstoque.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/shipping-icon.png\"))); // NOI18N\n LabelImEstoque.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n LabelImEstoque.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n LabelImEstoqueMouseClicked(evt);\n }\n });\n\n PanelTextEstoq.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n LabelEstoque.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelEstoque.setText(\"Estoque do Produto\");\n\n javax.swing.GroupLayout PanelTextEstoqLayout = new javax.swing.GroupLayout(PanelTextEstoq);\n PanelTextEstoq.setLayout(PanelTextEstoqLayout);\n PanelTextEstoqLayout.setHorizontalGroup(\n PanelTextEstoqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelTextEstoqLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(LabelEstoque)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n PanelTextEstoqLayout.setVerticalGroup(\n PanelTextEstoqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelTextEstoqLayout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(LabelEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3))\n );\n\n LabelAtual.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelAtual.setText(\"Estoque Atual:\");\n\n LabelMax.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelMax.setText(\"Minimo:\");\n\n CheckBoxLimite.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n CheckBoxLimite.setText(\"Aviso de Limites\");\n\n TextAtual.setEditable(false);\n TextAtual.setBackground(new java.awt.Color(204, 204, 204));\n TextAtual.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n TextAtual.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\n TextMax.setEditable(false);\n TextMax.setBackground(new java.awt.Color(204, 204, 204));\n TextMax.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n TextMax.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\n LabelMax1.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelMax1.setText(\"Maximo:\");\n\n TextMax1.setEditable(false);\n TextMax1.setBackground(new java.awt.Color(204, 204, 204));\n TextMax1.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n TextMax1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\n LabelCodigo1.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelCodigo1.setText(\"Almoxarifado:\");\n\n TextCodigo1.setEditable(false);\n TextCodigo1.setBackground(new java.awt.Color(255, 255, 255));\n TextCodigo1.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextCodigo1.setForeground(new java.awt.Color(153, 153, 153));\n TextCodigo1.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextCodigo1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextCodigo1ActionPerformed(evt);\n }\n });\n\n ButtonNewUni2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n\n javax.swing.GroupLayout PanelEstoqueLayout = new javax.swing.GroupLayout(PanelEstoque);\n PanelEstoque.setLayout(PanelEstoqueLayout);\n PanelEstoqueLayout.setHorizontalGroup(\n PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(LabelMax)\n .addGap(54, 54, 54)\n .addComponent(TextMax))\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addComponent(PanelTextEstoq, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(1, 1, 1)\n .addComponent(CheckBoxLimite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(3, 3, 3))\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addGap(8, 8, 8)\n .addComponent(LabelAtual)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(TextAtual))\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(LabelMax1)\n .addGap(50, 50, 50)\n .addComponent(TextMax1)))\n .addGap(5, 5, 5)\n .addComponent(LabelImEstoque))\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addComponent(jSeparator1)\n .addGap(1, 1, 1))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelEstoqueLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(LabelCodigo1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextCodigo1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(3, 3, 3)\n .addComponent(ButtonNewUni2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n PanelEstoqueLayout.setVerticalGroup(\n PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(PanelTextEstoq, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(CheckBoxLimite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextAtual, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelAtual, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelMax, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextMax, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelMax1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextMax1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(LabelImEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelCodigo1)\n .addComponent(TextCodigo1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonNewUni2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5))\n );\n\n jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \" Lotes do Produto \", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Arial\", 0, 14))); // NOI18N\n\n jTableSubGrupo1.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n jTableSubGrupo1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null}\n },\n new String [] {\n \"Código Lote\", \"Código da NF\", \"Data Entrada\", \"Data de Fabricação\", \"Data de Validade\", \"Quantidade\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, true, false, true, false, true\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jTableSubGrupo1.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n jTableSubGrupo1.setMaximumSize(new java.awt.Dimension(2147483647, 200));\n jTableSubGrupo1.setMinimumSize(new java.awt.Dimension(770, 800));\n jTableSubGrupo1.setRowHeight(20);\n jTableSubGrupo1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n jTableSubGrupo1.getTableHeader().setReorderingAllowed(false);\n jScrollPane6.setViewportView(jTableSubGrupo1);\n if (jTableSubGrupo1.getColumnModel().getColumnCount() > 0) {\n jTableSubGrupo1.getColumnModel().getColumn(0).setMinWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(0).setPreferredWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(0).setMaxWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(1).setMinWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(1).setPreferredWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(1).setMaxWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(2).setMinWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(2).setPreferredWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(2).setMaxWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(3).setMinWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(3).setPreferredWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(3).setMaxWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(4).setMinWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(4).setPreferredWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(4).setMaxWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(5).setMinWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(5).setPreferredWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(5).setMaxWidth(100);\n }\n\n ButtonCancelar2.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonCancelar2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/pesquisarncm.png\"))); // NOI18N\n ButtonCancelar2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonCancelar2ActionPerformed(evt);\n }\n });\n\n ButtonCancelar3.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonCancelar3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);\n jPanel21.setLayout(jPanel21Layout);\n jPanel21Layout.setHorizontalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel21Layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addGap(2, 2, 2)\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ButtonCancelar2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonCancelar3, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(2, 2, 2))\n );\n jPanel21Layout.setVerticalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel21Layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel21Layout.createSequentialGroup()\n .addComponent(ButtonCancelar2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)\n .addComponent(ButtonCancelar3, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jTabbedPane7.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \" Fiscal \", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Arial\", 0, 14))); // NOI18N\n jTabbedPane7.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n\n ButtonNewPromo10.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonNewPromo10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/promoção.png\"))); // NOI18N\n ButtonNewPromo10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewPromo10ActionPerformed(evt);\n }\n });\n\n LabelValorCus16.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus16.setText(\"Grupo Tributario:\");\n\n TextValorCusto20.setEditable(false);\n TextValorCusto20.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto20.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto20.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto20.setText(\"1\");\n TextValorCusto20.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto20.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto20ActionPerformed(evt);\n }\n });\n\n TextValorCusto21.setEditable(false);\n TextValorCusto21.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto21.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n TextValorCusto21.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto21.setText(\"PRODUTO FABRICACAO PROPRIA SUJEITO AO ICMS ST\");\n TextValorCusto21.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto21.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto21ActionPerformed(evt);\n }\n });\n\n LabelValorCus17.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus17.setText(\"ICMS Customizado:\");\n\n TextValorCusto22.setEditable(false);\n TextValorCusto22.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto22.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto22.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto22.setText(\"1\");\n TextValorCusto22.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto22.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto22ActionPerformed(evt);\n }\n });\n\n ButtonNewPromo11.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonNewPromo11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/promoção.png\"))); // NOI18N\n ButtonNewPromo11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewPromo11ActionPerformed(evt);\n }\n });\n\n TextValorCusto23.setEditable(false);\n TextValorCusto23.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto23.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n TextValorCusto23.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto23.setText(\"PRODUTO FABRICACAO PROPRIA SUJEITO AO ICMS ST\");\n TextValorCusto23.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto23.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto23ActionPerformed(evt);\n }\n });\n\n ButtonNewPromo12.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonNewPromo12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/promoção.png\"))); // NOI18N\n ButtonNewPromo12.setText(\"Gerenciador Tributario\");\n ButtonNewPromo12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewPromo12ActionPerformed(evt);\n }\n });\n\n jSeparator7.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TextValorCusto21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(TextValorCusto22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(3, 3, 3)\n .addComponent(ButtonNewPromo11, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(TextValorCusto23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(LabelValorCus16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(105, 105, 105))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(TextValorCusto20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonNewPromo10, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(7, 7, 7)))\n .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonNewPromo12))\n .addComponent(LabelValorCus17, javax.swing.GroupLayout.PREFERRED_SIZE, 435, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(LabelValorCus16)\n .addGap(1, 1, 1)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ButtonNewPromo10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextValorCusto20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonNewPromo12, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(LabelValorCus17)\n .addGap(1, 1, 1)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ButtonNewPromo11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextValorCusto22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n jTabbedPane7.addTab(\" Tributações \", jPanel11);\n\n TextValorCusto24.setEditable(false);\n TextValorCusto24.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto24.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto24.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto24.setText(\"1\");\n TextValorCusto24.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto24.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto24ActionPerformed(evt);\n }\n });\n\n LabelValorCus18.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus18.setText(\"Ex Tipi:\");\n\n TextValorCusto25.setEditable(false);\n TextValorCusto25.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto25.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto25.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto25.setText(\"1\");\n TextValorCusto25.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto25.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto25ActionPerformed(evt);\n }\n });\n\n LabelValorCus19.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus19.setText(\"Codigo Lst:\");\n\n ComboUnidade6.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n ComboUnidade6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboUnidade6ActionPerformed(evt);\n }\n });\n\n LabelUnidade6.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelUnidade6.setText(\"Iat:\");\n\n ComboUnidade7.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n ComboUnidade7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboUnidade7ActionPerformed(evt);\n }\n });\n\n LabelUnidade7.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelUnidade7.setText(\"Ippt:\");\n\n ComboUnidade8.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n ComboUnidade8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboUnidade8ActionPerformed(evt);\n }\n });\n\n LabelUnidade8.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelUnidade8.setText(\"Tipo Item Sped:\");\n\n ComboUnidade9.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n ComboUnidade9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboUnidade9ActionPerformed(evt);\n }\n });\n\n LabelUnidade9.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelUnidade9.setText(\"Tipo:\");\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addComponent(LabelUnidade8)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(ComboUnidade6, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextValorCusto24, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(LabelUnidade7)\n .addGap(194, 194, 194)\n .addComponent(LabelUnidade9))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(LabelUnidade6)\n .addGap(130, 130, 130)\n .addComponent(LabelValorCus18)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(LabelValorCus19)\n .addGap(0, 78, Short.MAX_VALUE))\n .addComponent(TextValorCusto25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(ComboUnidade7, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboUnidade8, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(ComboUnidade9, 0, 435, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelValorCus18)\n .addComponent(LabelUnidade6)\n .addComponent(LabelValorCus19))\n .addGap(1, 1, 1)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ComboUnidade6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextValorCusto24, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextValorCusto25, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelUnidade7)\n .addComponent(LabelUnidade9))\n .addGap(2, 2, 2)\n .addComponent(ComboUnidade7, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(ComboUnidade8, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelUnidade8)\n .addGap(1, 1, 1)\n .addComponent(ComboUnidade9, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n jTabbedPane7.addTab(\" Dados Complementares \", jPanel8);\n\n TextValorCusto26.setEditable(false);\n TextValorCusto26.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto26.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto26.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto26.setText(\"1\");\n TextValorCusto26.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto26.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto26ActionPerformed(evt);\n }\n });\n\n LabelValorCus20.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus20.setText(\"Aliquota ICMS PAF:\");\n\n TextValorCusto27.setEditable(false);\n TextValorCusto27.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto27.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto27.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto27.setText(\"1\");\n TextValorCusto27.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto27.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto27ActionPerformed(evt);\n }\n });\n\n LabelValorCus21.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus21.setText(\"Aliquota ISSQN PAF:\");\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelValorCus20, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextValorCusto26, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(LabelValorCus21, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 90, Short.MAX_VALUE))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(TextValorCusto27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())))\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelValorCus20)\n .addComponent(LabelValorCus21))\n .addGap(1, 1, 1)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(TextValorCusto26, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)\n .addComponent(TextValorCusto27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jTabbedPane7.addTab(\" Aliquotas Paf \", jPanel12);\n\n javax.swing.GroupLayout PanelCadastroLayout = new javax.swing.GroupLayout(PanelCadastro);\n PanelCadastro.setLayout(PanelCadastroLayout);\n PanelCadastroLayout.setHorizontalGroup(\n PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelCadastroLayout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(PanelDados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(PanelEstoque, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTabbedPane7))\n .addGap(5, 5, 5))\n );\n PanelCadastroLayout.setVerticalGroup(\n PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelCadastroLayout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(PanelDados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(PanelCadastroLayout.createSequentialGroup()\n .addComponent(PanelEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)\n .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTabbedPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 237, Short.MAX_VALUE)))\n .addGap(4, 4, 4))\n );\n\n jTabbedPane1.addTab(\"Cadastro de Produto\", PanelCadastro);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1310, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jSeparator1 = new javax.swing.JSeparator();\n jplOpcoes = new javax.swing.JPanel();\n btnIncluir = new javax.swing.JButton();\n btnAlterar = new javax.swing.JButton();\n btnExcluir = new javax.swing.JButton();\n btnPesquisar = new javax.swing.JButton();\n btnSair = new javax.swing.JButton();\n sepMenu2 = new javax.swing.JSeparator();\n sepMenu1 = new javax.swing.JSeparator();\n jplDadosCadastro = new javax.swing.JPanel();\n lblRegistroVenda = new javax.swing.JLabel();\n lblCpf = new javax.swing.JLabel();\n lblNome = new javax.swing.JLabel();\n lblRg = new javax.swing.JLabel();\n tfdRegistroVenda = new javax.swing.JTextField();\n tfdCpf = new javax.swing.JTextField();\n tfdNome = new javax.swing.JTextField();\n tfdRg = new javax.swing.JTextField();\n jplInfoUser = new javax.swing.JPanel();\n lblConectado = new javax.swing.JLabel();\n lblUserConectado = new javax.swing.JLabel();\n lblHora = new javax.swing.JLabel();\n lblData = new javax.swing.JLabel();\n pnlDadosVendaProdutos = new javax.swing.JPanel();\n lblProduto = new javax.swing.JLabel();\n cmbProduto = new javax.swing.JComboBox<>();\n lblQuantidade = new javax.swing.JLabel();\n tfdQuantidade = new javax.swing.JTextField();\n btnAdicionarProduto = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n tblVendaProdutos = new javax.swing.JTable();\n jPanel2 = new javax.swing.JPanel();\n jSeparator2 = new javax.swing.JSeparator();\n pnlValorTotal = new javax.swing.JPanel();\n lblValorTotal = new javax.swing.JLabel();\n tfdValorTotal = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Cadastro de Clientes\");\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n btnIncluir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/adicionar-64.png\"))); // NOI18N\n btnIncluir.setText(\"Incluir\");\n btnIncluir.setToolTipText(\"\");\n btnIncluir.setAlignmentX(0.5F);\n btnIncluir.setFocusable(false);\n btnIncluir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnIncluir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnIncluir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnIncluirActionPerformed(evt);\n }\n });\n\n btnAlterar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/formato-64.png\"))); // NOI18N\n btnAlterar.setText(\"Alterar\");\n btnAlterar.setFocusable(false);\n btnAlterar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnAlterar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnAlterar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAlterarActionPerformed(evt);\n }\n });\n\n btnExcluir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/excluir-64.png\"))); // NOI18N\n btnExcluir.setText(\"Excluir\");\n btnExcluir.setFocusable(false);\n btnExcluir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnExcluir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnExcluir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnExcluirActionPerformed(evt);\n }\n });\n\n btnPesquisar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/pesquisar-mais-64.png\"))); // NOI18N\n btnPesquisar.setText(\"Pesquisar\");\n btnPesquisar.setFocusable(false);\n btnPesquisar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnPesquisar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n\n btnSair.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/sair-64.png\"))); // NOI18N\n btnSair.setText(\"Sair\");\n btnSair.setFocusable(false);\n btnSair.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnSair.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnSair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSairActionPerformed(evt);\n }\n });\n\n sepMenu2.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n sepMenu1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n javax.swing.GroupLayout jplOpcoesLayout = new javax.swing.GroupLayout(jplOpcoes);\n jplOpcoes.setLayout(jplOpcoesLayout);\n jplOpcoesLayout.setHorizontalGroup(\n jplOpcoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jplOpcoesLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnIncluir, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(12, 12, 12)\n .addComponent(btnAlterar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnExcluir)\n .addGap(18, 18, 18)\n .addComponent(sepMenu1, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnPesquisar)\n .addGap(18, 18, 18)\n .addComponent(sepMenu2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnSair)\n .addContainerGap())\n );\n jplOpcoesLayout.setVerticalGroup(\n jplOpcoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jplOpcoesLayout.createSequentialGroup()\n .addGroup(jplOpcoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jplOpcoesLayout.createSequentialGroup()\n .addGroup(jplOpcoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnIncluir, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnAlterar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnExcluir, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnPesquisar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnSair, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(sepMenu2, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(sepMenu1, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n );\n\n lblRegistroVenda.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n lblRegistroVenda.setText(\"Registro de Venda:\");\n\n lblCpf.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n lblCpf.setText(\"CPF:\");\n\n lblNome.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n lblNome.setText(\"Nome:\");\n\n lblRg.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n lblRg.setText(\"RG:\");\n\n tfdRegistroVenda.setFocusable(false);\n\n tfdCpf.setFocusable(false);\n\n tfdNome.setFocusable(false);\n\n tfdRg.setFocusable(false);\n\n javax.swing.GroupLayout jplDadosCadastroLayout = new javax.swing.GroupLayout(jplDadosCadastro);\n jplDadosCadastro.setLayout(jplDadosCadastroLayout);\n jplDadosCadastroLayout.setHorizontalGroup(\n jplDadosCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jplDadosCadastroLayout.createSequentialGroup()\n .addGap(59, 59, 59)\n .addGroup(jplDadosCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblRegistroVenda)\n .addComponent(lblCpf))\n .addGap(18, 18, 18)\n .addGroup(jplDadosCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tfdCpf, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE)\n .addComponent(tfdRegistroVenda))\n .addGap(118, 118, 118)\n .addGroup(jplDadosCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblRg)\n .addComponent(lblNome))\n .addGap(18, 18, 18)\n .addGroup(jplDadosCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tfdNome, javax.swing.GroupLayout.DEFAULT_SIZE, 391, Short.MAX_VALUE)\n .addComponent(tfdRg))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jplDadosCadastroLayout.setVerticalGroup(\n jplDadosCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jplDadosCadastroLayout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addGroup(jplDadosCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblRegistroVenda)\n .addComponent(tfdRegistroVenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblNome)\n .addComponent(tfdNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jplDadosCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblCpf)\n .addComponent(tfdCpf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblRg)\n .addComponent(tfdRg, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n lblConectado.setText(\" Conectado\");\n\n lblUserConectado.setText(\" Usuário Conectado\");\n\n lblHora.setText(\"Hora\");\n\n lblData.setText(\"Data\");\n\n javax.swing.GroupLayout jplInfoUserLayout = new javax.swing.GroupLayout(jplInfoUser);\n jplInfoUser.setLayout(jplInfoUserLayout);\n jplInfoUserLayout.setHorizontalGroup(\n jplInfoUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jplInfoUserLayout.createSequentialGroup()\n .addComponent(lblConectado)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblUserConectado, javax.swing.GroupLayout.PREFERRED_SIZE, 974, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblHora, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblData, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jplInfoUserLayout.setVerticalGroup(\n jplInfoUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblConectado)\n .addGroup(jplInfoUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblUserConectado)\n .addComponent(lblHora)\n .addComponent(lblData))\n );\n\n lblProduto.setText(\"Produto:\");\n\n cmbProduto.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Produto1\", \"Produto2\", \"Produto3\", \" \" }));\n\n lblQuantidade.setText(\"Quantidade:\");\n\n btnAdicionarProduto.setText(\"Adicionar\");\n\n tblVendaProdutos.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Produto\", \"Quantidade\", \"Valor Unit.\", \"Valor Parcial\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, true, true\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tblVendaProdutos.getTableHeader().setReorderingAllowed(false);\n jScrollPane2.setViewportView(tblVendaProdutos);\n if (tblVendaProdutos.getColumnModel().getColumnCount() > 0) {\n tblVendaProdutos.getColumnModel().getColumn(3).setResizable(false);\n }\n\n javax.swing.GroupLayout pnlDadosVendaProdutosLayout = new javax.swing.GroupLayout(pnlDadosVendaProdutos);\n pnlDadosVendaProdutos.setLayout(pnlDadosVendaProdutosLayout);\n pnlDadosVendaProdutosLayout.setHorizontalGroup(\n pnlDadosVendaProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlDadosVendaProdutosLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlDadosVendaProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2)\n .addGroup(pnlDadosVendaProdutosLayout.createSequentialGroup()\n .addComponent(lblProduto)\n .addGap(18, 18, 18)\n .addComponent(cmbProduto, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lblQuantidade)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tfdQuantidade, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnAdicionarProduto)\n .addContainerGap(591, Short.MAX_VALUE))))\n );\n pnlDadosVendaProdutosLayout.setVerticalGroup(\n pnlDadosVendaProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlDadosVendaProdutosLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlDadosVendaProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblProduto)\n .addComponent(cmbProduto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblQuantidade)\n .addComponent(tfdQuantidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAdicionarProduto))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 414, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator2)\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n lblValorTotal.setText(\"Valor Total:\");\n\n javax.swing.GroupLayout pnlValorTotalLayout = new javax.swing.GroupLayout(pnlValorTotal);\n pnlValorTotal.setLayout(pnlValorTotalLayout);\n pnlValorTotalLayout.setHorizontalGroup(\n pnlValorTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlValorTotalLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblValorTotal)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tfdValorTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(144, 144, 144))\n );\n pnlValorTotalLayout.setVerticalGroup(\n pnlValorTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlValorTotalLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlValorTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblValorTotal)\n .addComponent(tfdValorTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(14, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jplDadosCadastro, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jplOpcoes, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jSeparator1)\n .addGroup(layout.createSequentialGroup()\n .addComponent(pnlDadosVendaProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(pnlValorTotal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jplInfoUser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jplOpcoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jplDadosCadastro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(pnlDadosVendaProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(pnlValorTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jplInfoUser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public GrupoCrearEditarBackingMB() {\n\t\tsuper();\n\t\tthis.dto = new GrupoDTO();\n\t}", "public void agregar(Producto producto) throws BusinessErrorHelper;", "private void nuevo(HttpPresentationComms comms) throws HttpPresentationException, KeywordValueException {\n/* 190 */ this.pagHTML.getElement_operacion().setValue(\"C\");\n/* */ try {\n/* 192 */ HTMLElement sel = this.pagHTML.getElementBtnEliminar();\n/* 193 */ sel.getParentNode().removeChild(sel);\n/* */ }\n/* 195 */ catch (Exception e) {}\n/* */ \n/* 197 */ activarVista(\"nuevo\");\n/* 198 */ HTMLSelectElement combo = this.pagHTML.getElementIdTipoRecurso();\n/* 199 */ comboMultivalores(combo, \"tipo_recurso\", \"\", true);\n/* */ \n/* 201 */ combo = this.pagHTML.getElementIdProcedimiento();\n/* 202 */ llenarCombo(combo, \"prc_procedimientos\", \"id_procedimiento\", \"objetivo\", \"1=1\", \"\", true);\n/* */ \n/* 204 */ combo = this.pagHTML.getElementEstado();\n/* 205 */ comboMultivalores(combo, \"estado_activo_inactivo\", \"\", true);\n/* */ \n/* 207 */ this.pagHTML.getElementIdRecurso().setReadOnly(true);\n/* 208 */ this.pagHTML.getElementIdRecurso().setValue(\"0\");\n/* */ }", "private GrupoCuenta(String nombre, int operacion)\r\n/* 11: */ {\r\n/* 12:31 */ this.nombre = nombre;\r\n/* 13:32 */ this.operacion = operacion;\r\n/* 14: */ }", "public CARGOS_REGISTRO() {\n initComponents();\n InputMap map2 = txtNombre.getInputMap(JTextField.WHEN_FOCUSED); \n map2.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap maps = TxtSue.getInputMap(JTextField.WHEN_FOCUSED); \n maps.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap map3 = txtFun.getInputMap(JTextField.WHEN_FOCUSED); \n map3.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n this.setLocationRelativeTo(null);\n this.txtFun.setLineWrap(true);\n this.lblId.setText(Funciones.extraerIdMax());\n\t\tsexo.addItem(\"Administrativo\");\n\t\tsexo.addItem(\"Operativo\");\n sexo.addItem(\"Tecnico\");\n sexo.addItem(\"Servicios\");\n \n }", "public ordenProduccion() {\r\n initComponents();\r\n }", "public frmCadastrarProduto() {\n initComponents();\n\n this.cmbCategoria.setEnabled(false);\n this.cmbFornecedor.setEnabled(false);\n this.txtNome.setEnabled(false);\n this.txtDescricao.setEnabled(false);\n this.txtEstoque.setEnabled(false);\n this.txtId.setEnabled(false);\n this.txtPreco.setEnabled(false);\n this.txtPrecoCusto.setEnabled(false);\n this.txtCodBarras.setEnabled(false);\n\n }", "public CrGrupoFormularioPk insert(CrGrupoFormulario dto) throws CrGrupoFormularioDaoException;", "public void SalvarNovaPessoa(){\r\n \r\n\t\tpessoaModel.setUsuarioModel(this.usuarioController.GetUsuarioSession());\r\n \r\n\t\t//INFORMANDO QUE O CADASTRO FOI VIA INPUT\r\n\t\tpessoaModel.setOrigemCadastro(\"I\");\r\n \r\n\t\tpessoaRepository.SalvarNovoRegistro(this.pessoaModel);\r\n \r\n\t\tthis.pessoaModel = null;\r\n \r\n\t\tUteis.MensagemInfo(\"Registro cadastrado com sucesso\");\r\n \r\n\t}", "private void gravarPromocao() {\n\t\tString nome = textFieldNome.getText();\n\t\tString descricao = textFieldDescricao.getText();\n\t\tboolean ativo = true;\n\n\t\tPromocao promocao = null;\n\n\t\tif (modoEditar) {\n\t\t\tpromocao = promocaoAntiga;\n\n\t\t\tpromocao.setNome(nome);\n\t\t\tpromocao.setDescricao(descricao);\t\t\t\n\t\t\tpromocao.setAtiva(ativo);\n\n\t\t} else {\n\t\t\tpromocao = new Promocao( nome, descricao, ativo);\n\t\t}\n\n\t\ttry {\n\t\t\tif (modoEditar) {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().editarPromocao(promocao);\n\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção editada com sucesso!\", \"Promoção Editada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t} else {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().criarPromocao(promocao);\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção criada com sucesso!\", \"Promoção Criada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\n\t\t\tsetVisible(false);\n\t\t\tdispose();\n\n\n\t\t} catch (Exception exc) {\n\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\"Error a criar a Promoção \" + exc.getMessage(), \"Error\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t}", "public Frm_EliminaProducto() {\n initComponents();\n try{\n actualizarTabla();\n }catch(Exception e){\n \n }\n }", "public frm_tutor_subida_prueba() {\n }", "public GestionarRegistro() {\n initComponents();\n this.setLocationRelativeTo(null);\n d = new Donante();\n v = new Validacion();\n a=new Archivos();\n \n // r=new RegistroDonanteApto();\n\n }", "public void construirSetOperadores() {\n\n\t\tlabeltituloSeleccionOperador = new JLabel();\n\n\t\tcomboOperadores = new JComboBox(operadores);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboOperadores.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\t\n\n\t\tlabeltituloSeleccionOperador.setText(\"Seleccione el operador que relaciona ambas reglas\");\n\t\tpanelCentral.add(labeltituloSeleccionOperador);\n\t\tlabeltituloSeleccionOperador.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboOperadores);\n\t\tcomboOperadores.setBounds(100, 30, 150, 24);\n\t\t\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboOperadores.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jSeparator1 = new javax.swing.JSeparator();\n btnAgregar = new java.awt.Button();\n cancelar = new java.awt.Button();\n jLabel5 = new javax.swing.JLabel();\n fn = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n cp = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n ap = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n am = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n nombre = new javax.swing.JTextField();\n curp = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n rfc = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n domicilio = new javax.swing.JTextField();\n jLabel15 = new javax.swing.JLabel();\n ocupacion = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n telefono = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n correo = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n sexo = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setMaximumSize(new java.awt.Dimension(790, 590));\n jPanel1.setMinimumSize(new java.awt.Dimension(790, 590));\n jPanel1.setPreferredSize(new java.awt.Dimension(790, 590));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n jPanel1.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 30, 790, 10));\n\n btnAgregar.setActionCommand(\"btn_complete\");\n btnAgregar.setBackground(new java.awt.Color(36, 193, 93));\n btnAgregar.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n btnAgregar.setForeground(new java.awt.Color(255, 255, 255));\n btnAgregar.setLabel(\"Guardar\");\n btnAgregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarActionPerformed(evt);\n }\n });\n jPanel1.add(btnAgregar, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 530, 180, 33));\n\n cancelar.setActionCommand(\"btn_cancel\");\n cancelar.setBackground(new java.awt.Color(255, 0, 51));\n cancelar.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n cancelar.setForeground(new java.awt.Color(255, 255, 255));\n cancelar.setLabel(\"Cancelar \");\n cancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelarActionPerformed(evt);\n }\n });\n jPanel1.add(cancelar, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 530, 180, 33));\n\n jLabel5.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel5.setText(\"Fecha de Nacimiento\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 200, 150, 20));\n\n fn.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n fn.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n fn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n fnActionPerformed(evt);\n }\n });\n fn.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n fnKeyTyped(evt);\n }\n });\n jPanel1.add(fn, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 230, 152, 33));\n\n jLabel6.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel6.setText(\"Codigo postal\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 100, 110, 40));\n\n cp.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n cp.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n cp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cpActionPerformed(evt);\n }\n });\n cp.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n cpKeyTyped(evt);\n }\n });\n jPanel1.add(cp, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 140, 152, 33));\n\n jLabel7.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel7.setText(\"Apellido Paterno\");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 110, -1, -1));\n\n ap.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n ap.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n ap.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n apActionPerformed(evt);\n }\n });\n ap.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n apKeyTyped(evt);\n }\n });\n jPanel1.add(ap, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 140, 145, 33));\n\n jLabel8.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel8.setText(\"Apellido Materno\");\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 110, -1, -1));\n\n am.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n am.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n am.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n amActionPerformed(evt);\n }\n });\n am.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n amKeyTyped(evt);\n }\n });\n jPanel1.add(am, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 140, 145, 33));\n\n jLabel14.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel14.setText(\"Nombre\");\n jPanel1.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 110, -1, -1));\n\n nombre.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n nombre.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n nombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreActionPerformed(evt);\n }\n });\n nombre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n nombreKeyTyped(evt);\n }\n });\n jPanel1.add(nombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 140, 145, 33));\n\n curp.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n curp.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n curp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n curpActionPerformed(evt);\n }\n });\n curp.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n curpKeyTyped(evt);\n }\n });\n jPanel1.add(curp, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 230, 152, 33));\n\n jLabel9.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel9.setText(\"CURP\");\n jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 200, 150, 20));\n\n jLabel10.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel10.setText(\"RFC\");\n jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 200, 50, 20));\n\n rfc.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rfc.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n rfc.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rfcActionPerformed(evt);\n }\n });\n rfc.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n rfcKeyTyped(evt);\n }\n });\n jPanel1.add(rfc, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 230, 152, 33));\n\n jLabel11.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel11.setText(\"Domicilio\");\n jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 290, 110, 40));\n\n domicilio.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n domicilio.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n domicilio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n domicilioActionPerformed(evt);\n }\n });\n jPanel1.add(domicilio, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 330, 152, 33));\n\n jLabel15.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel15.setText(\"Ocupación\");\n jPanel1.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 300, -1, -1));\n\n ocupacion.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n ocupacion.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n ocupacion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ocupacionActionPerformed(evt);\n }\n });\n jPanel1.add(ocupacion, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 330, 145, 33));\n\n jLabel12.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel12.setText(\"Telefono\");\n jPanel1.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 300, -1, -1));\n\n telefono.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n telefono.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n telefono.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n telefonoActionPerformed(evt);\n }\n });\n telefono.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n telefonoKeyTyped(evt);\n }\n });\n jPanel1.add(telefono, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 330, 145, 33));\n\n jLabel13.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel13.setText(\"Correo electronico\");\n jPanel1.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 300, -1, -1));\n\n correo.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n correo.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n correo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n correoActionPerformed(evt);\n }\n });\n jPanel1.add(correo, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 330, 145, 33));\n\n jLabel16.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel16.setText(\"Sexo\");\n jPanel1.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 200, -1, -1));\n\n sexo.setBackground(new java.awt.Color(222, 184, 135));\n sexo.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n sexo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-\", \"Femenino\", \"Masculino\" }));\n sexo.setToolTipText(\"\");\n sexo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sexoActionPerformed(evt);\n }\n });\n jPanel1.add(sexo, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 230, 150, 30));\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/icons8_Multiply_32px_1.png\"))); // NOI18N\n jLabel2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jLabel2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel2MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(750, 0, 40, 30));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public CatProveedores() {\n initComponents();\n cargartabla();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n groupNameField = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n passwordCheckField = new javax.swing.JPasswordField();\n passwordField = new javax.swing.JPasswordField();\n createGroupButton = new javax.swing.JButton();\n errorLabel = new javax.swing.JLabel();\n\n setTitle(\"Criar Grupo\");\n setResizable(false);\n setType(java.awt.Window.Type.UTILITY);\n\n jLabel1.setText(\"Nome do Grupo\");\n\n jLabel2.setText(\"Senha\");\n\n createGroupButton.setText(\"Criar Grupo\");\n\n errorLabel.setForeground(new java.awt.Color(255, 0, 0));\n errorLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(createGroupButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(passwordField, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(groupNameField, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(passwordCheckField, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(errorLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(groupNameField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(passwordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(passwordCheckField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(errorLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(createGroupButton)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void grupoSeleccionado(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_grupoSeleccionado\n if (cbox4Grupo.getSelectedIndex() != 0) {\n grupoSeleccionado = true;\n buscarEvaluacion();\n vaciarTabla();\n } else {\n grupoSeleccionado = false;\n vaciarTabla();\n cbox3Evaluacion.removeAllItems();\n cbox3Evaluacion.addItem(\"Seleccione una opción\");\n } }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getActionCommand().equals(\"Agregar\")){\r\n\t\t\tboolean validacion =camposPrecios();\r\n\t\t\t\r\n\t\t\tif(validacion==true){\r\n\t\t\t\tagregarJTable();\r\n\t\t\t\tvc.habilitarBotones();\r\n\t\t\t\tvc.cantidadProductos();\r\n\t\t\t\tthis.vc.total();\r\n\t\t\t\tthis.vc.tipoPago();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else if(e.getActionCommand().equals(\"Eliminar Producto\")){\r\n\t\t\tvc.eliminacionFila();\r\n\t\t\tvc.cantidadProductos();\r\n\t\t\tthis.vc.total();\r\n\t\t\r\n\t\t}else if(e.getActionCommand().equals(\"Eliminar Todo\")){\r\n\t\t\tvc.borrarJtable(\"todo\");\r\n\t\t\tvc.cantidadProductos();\r\n\t\t\tthis.vc.total();\r\n\t\t}else if(e.getActionCommand().equals(\"Guardar\")){\r\n\t\t\tagregarCompra();\r\n\t\t\tvc.dispose();\r\n\t\t}\r\n\t}", "public void buscarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setDescripcionSeccion(\"Primaria\");\n \tgrado.setNumGrado(4);\n \tgrado.setDescripcionUltimoGrado(\"NO\");\n \tString respuesta = negocio.buscarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n BtgTipoSeleccion = new javax.swing.ButtonGroup();\n BtgPreguntas = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n RdbNumerico = new javax.swing.JRadioButton();\n RdbNominal = new javax.swing.JRadioButton();\n jLabel1 = new javax.swing.JLabel();\n txtEnunciado = new javax.swing.JTextField();\n jSeparator6 = new javax.swing.JSeparator();\n panelNumerico = new javax.swing.JPanel();\n jSeparator2 = new javax.swing.JSeparator();\n txtOpcionNumerica = new javax.swing.JTextField();\n txtRes1 = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblNumerica = new javax.swing.JTable();\n panelNominal = new javax.swing.JPanel();\n RdbSeleccionSi = new javax.swing.JRadioButton();\n txtOpcionNominal = new javax.swing.JTextField();\n jSeparator7 = new javax.swing.JSeparator();\n jScrollPane2 = new javax.swing.JScrollPane();\n tblNominal = new javax.swing.JTable();\n jPanel4 = new javax.swing.JPanel();\n btnGuardar = new javax.swing.JButton();\n pnlSumar = new javax.swing.JPanel();\n btnAgregar = new javax.swing.JToggleButton();\n btnEliminar = new javax.swing.JButton();\n\n setBorder(null);\n setMaximumSize(new java.awt.Dimension(640, 510));\n setMinimumSize(new java.awt.Dimension(640, 510));\n setName(\"\"); // NOI18N\n setPreferredSize(new java.awt.Dimension(640, 510));\n\n jPanel1.setMaximumSize(new java.awt.Dimension(640, 440));\n jPanel1.setMinimumSize(new java.awt.Dimension(640, 440));\n jPanel1.setPreferredSize(new java.awt.Dimension(640, 440));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel2.setBackground(new java.awt.Color(0, 113, 193));\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel3.setBackground(new java.awt.Color(0, 113, 193));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)), \"Tipo De Seleccion Única\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dubai Light\", 1, 14), new java.awt.Color(255, 255, 255))); // NOI18N\n jPanel3.setFont(new java.awt.Font(\"Dubai Light\", 0, 12)); // NOI18N\n\n RdbNumerico.setBackground(new java.awt.Color(0, 113, 193));\n BtgTipoSeleccion.add(RdbNumerico);\n RdbNumerico.setFont(new java.awt.Font(\"Dubai Light\", 1, 14)); // NOI18N\n RdbNumerico.setForeground(new java.awt.Color(255, 255, 255));\n RdbNumerico.setText(\"Numerica\");\n RdbNumerico.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n RdbNumericoMouseClicked(evt);\n }\n });\n RdbNumerico.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n RdbNumericoActionPerformed(evt);\n }\n });\n\n RdbNominal.setBackground(new java.awt.Color(0, 113, 193));\n BtgTipoSeleccion.add(RdbNominal);\n RdbNominal.setFont(new java.awt.Font(\"Dubai Light\", 1, 14)); // NOI18N\n RdbNominal.setForeground(new java.awt.Color(255, 255, 255));\n RdbNominal.setText(\"Nominal\");\n RdbNominal.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n RdbNominalMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addComponent(RdbNumerico)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(RdbNominal)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(RdbNumerico)\n .addComponent(RdbNominal))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jPanel2.add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 20, 240, 70));\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setFont(new java.awt.Font(\"Dubai\", 1, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"ENUNCIADO DE LA PREGUNTA:\");\n jPanel2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 120, -1, -1));\n\n txtEnunciado.setBackground(new java.awt.Color(0, 113, 193));\n txtEnunciado.setFont(new java.awt.Font(\"Dubai\", 0, 14)); // NOI18N\n txtEnunciado.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n txtEnunciado.setCaretColor(new java.awt.Color(255, 255, 255));\n jPanel2.add(txtEnunciado, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 140, 600, 20));\n\n jSeparator6.setForeground(new java.awt.Color(255, 255, 255));\n jPanel2.add(jSeparator6, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 160, 600, 20));\n\n jPanel1.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 640, 180));\n\n panelNumerico.setBackground(new java.awt.Color(255, 255, 255));\n panelNumerico.setMaximumSize(new java.awt.Dimension(642, 231));\n panelNumerico.setMinimumSize(new java.awt.Dimension(642, 231));\n panelNumerico.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jSeparator2.setBackground(new java.awt.Color(0, 113, 193));\n jSeparator2.setForeground(new java.awt.Color(0, 113, 193));\n panelNumerico.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 40, 475, 10));\n\n txtOpcionNumerica.setFont(new java.awt.Font(\"Dubai\", 0, 14)); // NOI18N\n txtOpcionNumerica.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n panelNumerico.add(txtOpcionNumerica, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 20, 475, 20));\n\n txtRes1.setEnabled(false);\n panelNumerico.add(txtRes1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 20, 35, -1));\n\n tblNumerica.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n jScrollPane1.setViewportView(tblNumerica);\n\n panelNumerico.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, 570, 169));\n\n jPanel1.add(panelNumerico, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 180, 580, 231));\n\n panelNominal.setBackground(new java.awt.Color(255, 255, 255));\n panelNominal.setMaximumSize(new java.awt.Dimension(642, 231));\n panelNominal.setMinimumSize(new java.awt.Dimension(642, 231));\n panelNominal.setPreferredSize(new java.awt.Dimension(642, 231));\n panelNominal.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n RdbSeleccionSi.setBackground(new java.awt.Color(255, 255, 255));\n BtgPreguntas.add(RdbSeleccionSi);\n RdbSeleccionSi.setFont(new java.awt.Font(\"Dubai Light\", 1, 14)); // NOI18N\n RdbSeleccionSi.setForeground(new java.awt.Color(0, 102, 102));\n panelNominal.add(RdbSeleccionSi, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 20, -1, -1));\n\n txtOpcionNominal.setFont(new java.awt.Font(\"Dubai\", 0, 14)); // NOI18N\n txtOpcionNominal.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n panelNominal.add(txtOpcionNominal, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 20, 400, 20));\n\n jSeparator7.setBackground(new java.awt.Color(0, 102, 102));\n jSeparator7.setForeground(new java.awt.Color(0, 102, 102));\n panelNominal.add(jSeparator7, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 40, 400, 10));\n\n tblNominal.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane2.setViewportView(tblNominal);\n\n panelNominal.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 540, 160));\n\n jPanel1.add(panelNominal, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 180, 580, 231));\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 255));\n jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n btnGuardar.setBackground(new java.awt.Color(0, 51, 102));\n btnGuardar.setFont(new java.awt.Font(\"Dubai\", 1, 14)); // NOI18N\n btnGuardar.setForeground(new java.awt.Color(255, 255, 255));\n btnGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/icons/guardar.png\"))); // NOI18N\n btnGuardar.setText(\"GUADAR\");\n btnGuardar.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, new java.awt.Color(0, 102, 102), new java.awt.Color(0, 102, 102), null, null));\n btnGuardar.setBorderPainted(false);\n btnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarActionPerformed(evt);\n }\n });\n jPanel4.add(btnGuardar, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 20, 130, -1));\n\n jPanel1.add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 410, 640, 80));\n\n pnlSumar.setBackground(new java.awt.Color(255, 255, 255));\n\n btnAgregar.setBackground(new java.awt.Color(255, 255, 255));\n btnAgregar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/icons/agregar-pregunta.png\"))); // NOI18N\n btnAgregar.setBorder(null);\n btnAgregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarActionPerformed(evt);\n }\n });\n\n btnEliminar.setBackground(new java.awt.Color(255, 255, 255));\n btnEliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/icons/quitar-pregunta.png\"))); // NOI18N\n btnEliminar.setBorder(null);\n btnEliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEliminarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout pnlSumarLayout = new javax.swing.GroupLayout(pnlSumar);\n pnlSumar.setLayout(pnlSumarLayout);\n pnlSumarLayout.setHorizontalGroup(\n pnlSumarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlSumarLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnAgregar, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlSumarLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnEliminar)\n .addContainerGap())\n );\n pnlSumarLayout.setVerticalGroup(\n pnlSumarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlSumarLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnAgregar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnEliminar)\n .addContainerGap(142, Short.MAX_VALUE))\n );\n\n jPanel1.add(pnlSumar, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 180, -1, 230));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 481, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n getAccessibleContext().setAccessibleParent(this);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n lblTit = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n sexo = new javax.swing.JComboBox<String>();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n txtNombre = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n TxtSue = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtFun = new javax.swing.JTextArea();\n btnGuardar = new javax.swing.JButton();\n lblId = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setText(\"L\");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 130, 20, -1));\n\n lblTit.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n lblTit.setText(\"REGISTRO CARGO\");\n jPanel1.add(lblTit, new org.netbeans.lib.awtextra.AbsoluteConstraints(128, 4, -1, -1));\n\n jLabel2.setText(\"Tipo Cargo\");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 62, -1, -1));\n\n sexo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sexoActionPerformed(evt);\n }\n });\n jPanel1.add(sexo, new org.netbeans.lib.awtextra.AbsoluteConstraints(175, 59, 231, -1));\n\n jLabel1.setText(\"Nombre Cargo\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 93, -1, -1));\n\n jLabel3.setText(\"Sueldo Cargo\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 131, -1, -1));\n\n txtNombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNombreActionPerformed(evt);\n }\n });\n txtNombre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtNombreKeyTyped(evt);\n }\n });\n jPanel1.add(txtNombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(175, 90, 231, -1));\n\n jLabel4.setText(\"Funciones\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 166, -1, -1));\n\n TxtSue.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n TxtSue.setMinimumSize(new java.awt.Dimension(1, 20));\n TxtSue.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TxtSueKeyTyped(evt);\n }\n });\n jPanel1.add(TxtSue, new org.netbeans.lib.awtextra.AbsoluteConstraints(175, 128, 231, -1));\n\n txtFun.setColumns(20);\n txtFun.setRows(5);\n txtFun.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtFunKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtFunKeyTyped(evt);\n }\n });\n jScrollPane1.setViewportView(txtFun);\n\n jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(175, 166, 231, -1));\n\n btnGuardar.setText(\"GUARDAR\");\n btnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarActionPerformed(evt);\n }\n });\n jPanel1.add(btnGuardar, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 290, 100, 34));\n\n lblId.setText(\"1\");\n jPanel1.add(lblId, new org.netbeans.lib.awtextra.AbsoluteConstraints(175, 34, 81, -1));\n\n jLabel5.setText(\"Id\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 34, -1, -1));\n\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/fondo2.jpg\"))); // NOI18N\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 430, 340));\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n pack();\n }", "public AnadirCompra() {\n\t\tsetLayout(null);\n\t\t\n\t\tJPanel pCompra = new JPanel();\n\t\tpCompra.setBackground(SystemColor.text);\n\t\tpCompra.setBounds(0, 0, 772, 643);\n\t\tadd(pCompra);\n\t\tpCompra.setLayout(null);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Compras\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tlblNewLabel.setBounds(684, 13, 76, 16);\n\t\tpCompra.add(lblNewLabel);\n\t\t\n\t\tlblNewLabel_1 = new JLabel(\"Personal\");\n\t\tlblNewLabel_1.setBounds(142, 130, 56, 16);\n\t\tpCompra.add(lblNewLabel_1);\n\t\t\n\t\tcmbPersonal = new JComboBox();\n\t\tcmbPersonal.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcargaPersonal();\n\t\t\t}\n\t\t});\n\t\tcmbPersonal.setBounds(291, 127, 409, 22);\n\t\tpCompra.add(cmbPersonal);\n\t\t\n\t\tlblFechaSolicitado = new JLabel(\"Fecha solicitado\");\n\t\tlblFechaSolicitado.setBounds(142, 184, 91, 16);\n\t\tpCompra.add(lblFechaSolicitado);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(291, 181, 409, 22);\n\t\tpCompra.add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tlblEstado = new JLabel(\"Estado\");\n\t\tlblEstado.setBounds(142, 231, 91, 16);\n\t\tpCompra.add(lblEstado);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(291, 228, 409, 22);\n\t\tpCompra.add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\tlblFechaEntrega = new JLabel(\"Fecha entrega\");\n\t\tlblFechaEntrega.setBounds(142, 276, 91, 16);\n\t\tpCompra.add(lblFechaEntrega);\n\t\t\n\t\tlblFechaRequerido = new JLabel(\"Fecha requerido\");\n\t\tlblFechaRequerido.setBounds(142, 318, 108, 16);\n\t\tpCompra.add(lblFechaRequerido);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setColumns(10);\n\t\ttextField_2.setBounds(291, 273, 409, 22);\n\t\tpCompra.add(textField_2);\n\t\t\n\t\ttextField_3 = new JTextField();\n\t\ttextField_3.setColumns(10);\n\t\ttextField_3.setBounds(291, 315, 409, 22);\n\t\tpCompra.add(textField_3);\n\t\t\n\t\tlblFechaAnulado = new JLabel(\"Fecha anulado\");\n\t\tlblFechaAnulado.setBounds(142, 364, 91, 16);\n\t\tpCompra.add(lblFechaAnulado);\n\t\t\n\t\ttextField_4 = new JTextField();\n\t\ttextField_4.setColumns(10);\n\t\ttextField_4.setBounds(291, 361, 409, 22);\n\t\tpCompra.add(textField_4);\n\t\t\n\t\ttextField_5 = new JTextField();\n\t\ttextField_5.setColumns(10);\n\t\ttextField_5.setBounds(291, 405, 409, 22);\n\t\tpCompra.add(textField_5);\n\t\t\n\t\tlblValor = new JLabel(\"Valor\");\n\t\tlblValor.setBounds(142, 408, 91, 16);\n\t\tpCompra.add(lblValor);\n\t\t\n\t\tlabel = new JLabel(\"Productos\");\n\t\tlabel.setBounds(142, 453, 56, 16);\n\t\tpCompra.add(label);\n\t\t\n\t\tbtnAadirCompra = new JButton(\"A\\u00F1adir Compra\");\n\t\tbtnAadirCompra.setBackground(SystemColor.textHighlight);\n\t\tbtnAadirCompra.setBounds(216, 605, 388, 25);\n\t\tpCompra.add(btnAadirCompra);\n\t\t\n\t\tlist = new JList();\n\t\tlist.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tcargaProducto();\n\t\t\t}\n\t\t});\n\t\tlist.setBackground(SystemColor.controlHighlight);\n\t\tlist.setBounds(291, 452, 409, 84);\n\t\tpCompra.add(list);\n\t\tlist.setModel(jList);\n\t\t\n\t\tbutton = new JButton(\"< ATR\\u00C1S\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//scrollPaneles.setViewportView(pgCompra);\n\t\t\t\thacerInvisible();\n\t\t\t}\n\t\t});\n\t\tbutton.setBackground(SystemColor.textHighlight);\n\t\tbutton.setBounds(12, 11, 106, 25);\n\t\tpCompra.add(button);\n\t\t\n\t\tscrollPaneles = new JScrollPane();\n\t\tscrollPaneles.setBounds(0, 0, 773, 643);\n\t\tadd(scrollPaneles);\n\n\t}", "public VendasProdutos() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n panelFondo = new javax.swing.JPanel();\n lblConsejo = new javax.swing.JLabel();\n panelDatos = new javax.swing.JPanel();\n lblNombre1 = new javax.swing.JLabel();\n txtNombre = new javax.swing.JTextField();\n lblDireccion1 = new javax.swing.JLabel();\n txtDireccion2 = new javax.swing.JTextField();\n lblDestino = new javax.swing.JLabel();\n Destinos = new javax.swing.JComboBox<>();\n jSeparator1 = new javax.swing.JSeparator();\n lblDatos = new javax.swing.JLabel();\n txtPeso = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n lblPeso = new javax.swing.JLabel();\n panelDatosReconocidos = new javax.swing.JPanel();\n lblNombres = new javax.swing.JLabel();\n lblNombre = new javax.swing.JLabel();\n lblCUI = new javax.swing.JLabel();\n lblCUI1 = new javax.swing.JLabel();\n btnGuardar = new javax.swing.JButton();\n rBtnPrioridad = new javax.swing.JRadioButton();\n lblTotal1 = new javax.swing.JLabel();\n lblDatos1 = new javax.swing.JLabel();\n lblTotal = new javax.swing.JLabel();\n lblPrioridad = new javax.swing.JLabel();\n btnAgregar = new javax.swing.JButton();\n panelBuscar = new javax.swing.JPanel();\n rBtnCF = new javax.swing.JRadioButton();\n txtNIT = new javax.swing.JTextField();\n lblNIT = new javax.swing.JLabel();\n btnRegistrar = new javax.swing.JButton();\n\n panelFondo.setBackground(new java.awt.Color(141, 234, 179));\n\n lblConsejo.setFont(new java.awt.Font(\"Dialog\", 0, 18)); // NOI18N\n lblConsejo.setText(\"Si el cliente no esta ingresado en el sistema favor Registrarlo antes :\");\n\n panelDatos.setBackground(new java.awt.Color(129, 240, 194));\n panelDatos.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 201, 178), 3, true));\n\n lblNombre1.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n lblNombre1.setForeground(new java.awt.Color(30, 65, 32));\n lblNombre1.setText(\"Ingrese Nombres :\");\n\n txtNombre.setFont(new java.awt.Font(\"Dialog\", 0, 20)); // NOI18N\n txtNombre.setForeground(new java.awt.Color(13, 58, 12));\n txtNombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNombreActionPerformed(evt);\n }\n });\n txtNombre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtNombreKeyTyped(evt);\n }\n });\n\n lblDireccion1.setFont(new java.awt.Font(\"Dialog\", 1, 20)); // NOI18N\n lblDireccion1.setForeground(new java.awt.Color(30, 65, 32));\n lblDireccion1.setText(\"Ingrese Direccion:\");\n\n txtDireccion2.setFont(new java.awt.Font(\"Dialog\", 0, 20)); // NOI18N\n txtDireccion2.setForeground(new java.awt.Color(13, 58, 12));\n txtDireccion2.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtDireccion2KeyTyped(evt);\n }\n });\n\n javax.swing.GroupLayout panelDatosLayout = new javax.swing.GroupLayout(panelDatos);\n panelDatos.setLayout(panelDatosLayout);\n panelDatosLayout.setHorizontalGroup(\n panelDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelDatosLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblDireccion1)\n .addComponent(lblNombre1))\n .addGap(69, 69, 69)\n .addGroup(panelDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 338, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtDireccion2, javax.swing.GroupLayout.PREFERRED_SIZE, 338, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(58, 58, 58))\n );\n panelDatosLayout.setVerticalGroup(\n panelDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelDatosLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panelDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblNombre1)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblDireccion1)\n .addComponent(txtDireccion2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n lblDestino.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n lblDestino.setForeground(new java.awt.Color(30, 65, 32));\n lblDestino.setText(\"DESTINO\");\n\n Destinos.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n lblDatos.setFont(new java.awt.Font(\"Dialog\", 0, 18)); // NOI18N\n lblDatos.setText(\"DATOS DEL PAQUETE:\");\n\n txtPeso.setFont(new java.awt.Font(\"Dialog\", 0, 20)); // NOI18N\n txtPeso.setForeground(new java.awt.Color(13, 58, 12));\n txtPeso.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPesoActionPerformed(evt);\n }\n });\n txtPeso.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtPesoKeyTyped(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Dialog\", 0, 18)); // NOI18N\n jLabel5.setText(\"Kg.\");\n\n lblPeso.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n lblPeso.setForeground(new java.awt.Color(30, 65, 32));\n lblPeso.setText(\"PESO \");\n\n panelDatosReconocidos.setBackground(new java.awt.Color(129, 240, 194));\n panelDatosReconocidos.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 201, 178), 3, true));\n\n lblNombres.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n lblNombres.setText(\"****************************\");\n\n lblNombre.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n lblNombre.setForeground(new java.awt.Color(30, 65, 32));\n lblNombre.setText(\"Nombre del remitente :\");\n\n lblCUI.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n lblCUI.setForeground(new java.awt.Color(30, 65, 32));\n lblCUI.setText(\"Numero de cui:\");\n\n lblCUI1.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n lblCUI1.setText(\"****************************\");\n\n javax.swing.GroupLayout panelDatosReconocidosLayout = new javax.swing.GroupLayout(panelDatosReconocidos);\n panelDatosReconocidos.setLayout(panelDatosReconocidosLayout);\n panelDatosReconocidosLayout.setHorizontalGroup(\n panelDatosReconocidosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelDatosReconocidosLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelDatosReconocidosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelDatosReconocidosLayout.createSequentialGroup()\n .addComponent(lblCUI)\n .addGap(121, 121, 121)\n .addComponent(lblCUI1))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelDatosReconocidosLayout.createSequentialGroup()\n .addComponent(lblNombre)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblNombres)))\n .addContainerGap(21, Short.MAX_VALUE))\n );\n panelDatosReconocidosLayout.setVerticalGroup(\n panelDatosReconocidosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelDatosReconocidosLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelDatosReconocidosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblNombres)\n .addComponent(lblNombre))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelDatosReconocidosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblCUI)\n .addComponent(lblCUI1))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n btnGuardar.setFont(new java.awt.Font(\"Dialog\", 0, 20)); // NOI18N\n btnGuardar.setText(\"Generar Factura\");\n btnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarActionPerformed(evt);\n }\n });\n\n rBtnPrioridad.setBackground(new java.awt.Color(21, 53, 44));\n rBtnPrioridad.setFont(new java.awt.Font(\"Dialog\", 1, 26)); // NOI18N\n rBtnPrioridad.setForeground(new java.awt.Color(254, 254, 254));\n rBtnPrioridad.setText(\"PRIORIDAD\");\n rBtnPrioridad.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rBtnPrioridadActionPerformed(evt);\n }\n });\n\n lblTotal1.setFont(new java.awt.Font(\"Dialog\", 1, 36)); // NOI18N\n lblTotal1.setForeground(new java.awt.Color(146, 7, 7));\n lblTotal1.setText(\"Q.\");\n\n lblDatos1.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n lblDatos1.setText(\".00\");\n\n lblTotal.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n lblTotal.setForeground(new java.awt.Color(176, 1, 1));\n lblTotal.setText(\"******\");\n\n lblPrioridad.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n lblPrioridad.setText(\".\");\n\n btnAgregar.setFont(new java.awt.Font(\"Dialog\", 0, 18)); // NOI18N\n btnAgregar.setText(\"Añadir Envio\");\n btnAgregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarActionPerformed(evt);\n }\n });\n\n panelBuscar.setBackground(new java.awt.Color(129, 240, 194));\n panelBuscar.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 201, 178), 3));\n\n rBtnCF.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n rBtnCF.setText(\"CONSUMIDOR FINAL\");\n rBtnCF.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n rBtnCFMouseClicked(evt);\n }\n });\n\n txtNIT.setFont(new java.awt.Font(\"Dialog\", 0, 20)); // NOI18N\n txtNIT.setForeground(new java.awt.Color(13, 58, 12));\n txtNIT.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtNITKeyTyped(evt);\n }\n });\n\n lblNIT.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n lblNIT.setForeground(new java.awt.Color(30, 65, 32));\n lblNIT.setText(\"Ingrese Numero de NIT:\");\n\n btnRegistrar.setFont(new java.awt.Font(\"Dialog\", 0, 20)); // NOI18N\n btnRegistrar.setText(\"Registrar Cliente\");\n btnRegistrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRegistrarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout panelBuscarLayout = new javax.swing.GroupLayout(panelBuscar);\n panelBuscar.setLayout(panelBuscarLayout);\n panelBuscarLayout.setHorizontalGroup(\n panelBuscarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelBuscarLayout.createSequentialGroup()\n .addGroup(panelBuscarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelBuscarLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblNIT)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelBuscarLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnRegistrar, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(70, 70, 70)))\n .addGroup(panelBuscarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNIT, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rBtnCF))\n .addGap(41, 41, 41))\n );\n panelBuscarLayout.setVerticalGroup(\n panelBuscarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelBuscarLayout.createSequentialGroup()\n .addGap(0, 12, Short.MAX_VALUE)\n .addGroup(panelBuscarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNIT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblNIT))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelBuscarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rBtnCF)\n .addComponent(btnRegistrar))\n .addGap(2, 2, 2))\n );\n\n javax.swing.GroupLayout panelFondoLayout = new javax.swing.GroupLayout(panelFondo);\n panelFondo.setLayout(panelFondoLayout);\n panelFondoLayout.setHorizontalGroup(\n panelFondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1)\n .addGroup(panelFondoLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panelFondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panelDatosReconocidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblDatos)\n .addComponent(panelDatos, javax.swing.GroupLayout.PREFERRED_SIZE, 700, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblConsejo)\n .addGroup(panelFondoLayout.createSequentialGroup()\n .addComponent(lblTotal1)\n .addGap(18, 18, 18)\n .addGroup(panelFondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFondoLayout.createSequentialGroup()\n .addGap(185, 185, 185)\n .addComponent(lblPrioridad, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(panelFondoLayout.createSequentialGroup()\n .addComponent(lblTotal)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblDatos1)\n .addGap(46, 46, 46)\n .addComponent(btnAgregar, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(panelFondoLayout.createSequentialGroup()\n .addComponent(lblDestino)\n .addGap(18, 18, 18)\n .addComponent(Destinos, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(124, 124, 124)\n .addComponent(lblPeso)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPeso, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel5)))\n .addGap(234, 234, 234))\n .addGroup(panelFondoLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(panelBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(panelFondoLayout.createSequentialGroup()\n .addGap(304, 304, 304)\n .addComponent(rBtnPrioridad, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n panelFondoLayout.setVerticalGroup(\n panelFondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFondoLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblConsejo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(panelBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panelDatosReconocidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(1, 1, 1)\n .addComponent(panelDatos, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblDatos)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelFondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblDestino)\n .addGroup(panelFondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Destinos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPeso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(lblPeso)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(rBtnPrioridad)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblPrioridad)\n .addGap(25, 25, 25)\n .addGroup(panelFondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblTotal1)\n .addGroup(panelFondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblTotal)\n .addComponent(lblDatos1)\n .addComponent(btnAgregar, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panelFondo, javax.swing.GroupLayout.PREFERRED_SIZE, 735, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panelFondo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public Operacoes() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n grupo1 = new javax.swing.ButtonGroup();\n grupo2 = new javax.swing.ButtonGroup();\n txtregistro = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n txtcodigo = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n combodpto = new javax.swing.JComboBox();\n txtdireccion = new javax.swing.JTextField();\n combomun = new javax.swing.JComboBox();\n jLabel15 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n txtnombre = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabla = new javax.swing.JTable();\n btnguardar = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n activa = new javax.swing.JRadioButton();\n inactiva = new javax.swing.JRadioButton();\n jPanel2 = new javax.swing.JPanel();\n jCheckBox4 = new javax.swing.JCheckBox();\n jCheckBox3 = new javax.swing.JCheckBox();\n jCheckBox2 = new javax.swing.JCheckBox();\n jCheckBox5 = new javax.swing.JCheckBox();\n jCheckBox6 = new javax.swing.JCheckBox();\n txttelefono = new javax.swing.JFormattedTextField();\n txtnit = new javax.swing.JFormattedTextField();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n txtregistro.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtregistroKeyTyped(evt);\n }\n });\n\n jLabel13.setText(\"N° Registro Fiscal\");\n\n jLabel12.setText(\"Teléfono\");\n\n jLabel11.setText(\"Dirección\");\n\n jLabel10.setText(\"NIT\");\n\n jLabel2.setText(\"Codigo\");\n\n jLabel3.setText(\"Nombre de empresa\");\n\n jLabel8.setText(\"Nivel asignado\");\n\n txtcodigo.setEditable(false);\n\n jLabel14.setText(\"Municipio\");\n\n combodpto.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Seleccionar\", \"San Salvador\", \"La Unión\", \"San Miguel\", \"Santa Ana\" }));\n\n txtdireccion.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtdireccionKeyTyped(evt);\n }\n });\n\n combomun.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Seleccionar\", \"Soyapango\", \"San Salvador\", \"Ilopango\" }));\n\n jLabel15.setText(\"Departamento\");\n\n jButton1.setText(\"Modificar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n txtnombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtnombreActionPerformed(evt);\n }\n });\n txtnombre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtnombreKeyTyped(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"CREACION DE EMPRESA\");\n\n tabla.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tabla);\n\n btnguardar.setText(\"Guardar\");\n btnguardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnguardarActionPerformed(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Estado\"));\n\n grupo1.add(activa);\n activa.setSelected(true);\n activa.setText(\"Activa\");\n activa.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n activaActionPerformed(evt);\n }\n });\n\n grupo1.add(inactiva);\n inactiva.setText(\"Inactiva\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(106, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(activa)\n .addComponent(inactiva))\n .addGap(16, 16, 16))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(activa)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(inactiva)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n grupo2.add(jCheckBox4);\n jCheckBox4.setText(\"Nivel 4\");\n\n grupo2.add(jCheckBox3);\n jCheckBox3.setText(\"Nivel 3\");\n\n grupo2.add(jCheckBox2);\n jCheckBox2.setSelected(true);\n jCheckBox2.setText(\"Nivel 1\");\n jCheckBox2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox2ActionPerformed(evt);\n }\n });\n\n grupo2.add(jCheckBox5);\n jCheckBox5.setText(\"Nivel 5\");\n\n grupo2.add(jCheckBox6);\n jCheckBox6.setText(\"Nivel 2\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox4)\n .addComponent(jCheckBox3)\n .addComponent(jCheckBox2)\n .addComponent(jCheckBox6)\n .addComponent(jCheckBox5))\n .addGap(493, 493, 493))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jCheckBox2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jCheckBox6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox5)\n .addContainerGap(17, Short.MAX_VALUE))\n );\n\n try {\n txttelefono.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"####-####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n try {\n txtnit.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"####-######-###-#\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jButton2.setText(\"Leer\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel11)\n .addComponent(jLabel2)\n .addComponent(jLabel14)\n .addComponent(jLabel15)\n .addComponent(jLabel8))\n .addGap(46, 46, 46)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtcodigo)\n .addComponent(txtdireccion)\n .addComponent(txtnombre)\n .addComponent(combodpto, 0, 184, Short.MAX_VALUE)\n .addComponent(combomun, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12))\n .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txttelefono, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtnit, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtregistro, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(131, 131, 131))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnguardar)\n .addGap(17, 17, 17)\n .addComponent(jButton1)\n .addGap(18, 18, 18)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(281, 281, 281)\n .addComponent(jLabel1))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 845, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(71, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel11)\n .addGap(6, 6, 6)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(jLabel14)\n .addGap(16, 16, 16))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(combomun, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel15)\n .addComponent(combodpto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtcodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtnombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtdireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(txttelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtnit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(txtregistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnguardar)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap(71, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n FormaP = new javax.swing.JDialog();\n jPanel7 = new javax.swing.JPanel();\n jLabel19 = new javax.swing.JLabel();\n jPanel48 = new javax.swing.JPanel();\n txtBuscar = new javax.swing.JTextField();\n btnBuscarPaciente4 = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n tb_Grupo = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n Nomenclatura = new javax.swing.JDialog();\n jPanel8 = new javax.swing.JPanel();\n jLabel20 = new javax.swing.JLabel();\n jPanel47 = new javax.swing.JPanel();\n txtBuscar1 = new javax.swing.JTextField();\n btnBuscarPaciente5 = new javax.swing.JButton();\n jScrollPane4 = new javax.swing.JScrollPane();\n tb_Grupo2 = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n jDialog1 = new javax.swing.JDialog();\n jPanel1 = new javax.swing.JPanel();\n btnNuevo = new javax.swing.JButton();\n btneditar = new javax.swing.JButton();\n btnguardar = new javax.swing.JButton();\n btneliminar = new javax.swing.JButton();\n lblusu = new javax.swing.JLabel();\n jLabel57 = new javax.swing.JLabel();\n jPanel23 = new javax.swing.JPanel();\n buscartodo = new javax.swing.JTextField();\n btnBuscarPaciente = new javax.swing.JButton();\n lbldetalle = new javax.swing.JLabel();\n cargareliminar = new javax.swing.JPanel();\n Mensaje = new javax.swing.JLabel();\n eli = new javax.swing.JButton();\n noeli = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtPrecio = new javax.swing.JTextField();\n fp = new javax.swing.JLabel();\n nom = new javax.swing.JLabel();\n txtcodigo = new javax.swing.JTextField();\n panelFormaPago = new javax.swing.JPanel();\n forma = new javax.swing.JTextField();\n b = new javax.swing.JButton();\n panelFormaPago1 = new javax.swing.JPanel();\n Nomen = new javax.swing.JTextField();\n b1 = new javax.swing.JButton();\n jScrollPane3 = new javax.swing.JScrollPane();\n tb_Grupo1 = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n jPanel5 = new javax.swing.JPanel();\n jLabel33 = new javax.swing.JLabel();\n\n FormaP.setMinimumSize(new java.awt.Dimension(310, 441));\n FormaP.setResizable(false);\n\n jPanel7.setBackground(new java.awt.Color(41, 127, 184));\n jPanel7.setMinimumSize(new java.awt.Dimension(310, 441));\n\n jLabel19.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 30)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(255, 255, 255));\n jLabel19.setText(\"Forma de Pago\");\n\n jPanel48.setBackground(new java.awt.Color(255, 255, 255));\n\n txtBuscar.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtBuscar.setBorder(null);\n txtBuscar.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n txtBuscarCaretUpdate(evt);\n }\n });\n txtBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBuscarActionPerformed(evt);\n }\n });\n txtBuscar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtBuscarKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtBuscarKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel48Layout = new javax.swing.GroupLayout(jPanel48);\n jPanel48.setLayout(jPanel48Layout);\n jPanel48Layout.setHorizontalGroup(\n jPanel48Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel48Layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(txtBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 5, Short.MAX_VALUE))\n );\n jPanel48Layout.setVerticalGroup(\n jPanel48Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel48Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(txtBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n btnBuscarPaciente4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-27.png\"))); // NOI18N\n btnBuscarPaciente4.setContentAreaFilled(false);\n btnBuscarPaciente4.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnBuscarPaciente4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarPaciente4ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel19)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(jPanel48, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBuscarPaciente4, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(24, Short.MAX_VALUE))\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()\n .addContainerGap(25, Short.MAX_VALUE)\n .addComponent(jLabel19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnBuscarPaciente4, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jPanel48, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(334, 334, 334))\n );\n\n jScrollPane2.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n\n tb_Grupo.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_Grupo.setGridColor(new java.awt.Color(255, 255, 255));\n tb_Grupo.setRowHeight(25);\n tb_Grupo.setSelectionBackground(new java.awt.Color(102, 102, 102));\n tb_Grupo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_GrupoMouseClicked(evt);\n }\n });\n tb_Grupo.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_GrupoKeyPressed(evt);\n }\n });\n jScrollPane2.setViewportView(tb_Grupo);\n\n javax.swing.GroupLayout FormaPLayout = new javax.swing.GroupLayout(FormaP.getContentPane());\n FormaP.getContentPane().setLayout(FormaPLayout);\n FormaPLayout.setHorizontalGroup(\n FormaPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)\n );\n FormaPLayout.setVerticalGroup(\n FormaPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(FormaPLayout.createSequentialGroup()\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n Nomenclatura.setMinimumSize(new java.awt.Dimension(612, 430));\n Nomenclatura.setResizable(false);\n\n jPanel8.setBackground(new java.awt.Color(41, 127, 184));\n jPanel8.setMinimumSize(new java.awt.Dimension(310, 441));\n\n jLabel20.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 30)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(255, 255, 255));\n jLabel20.setText(\"CPT\");\n\n jPanel47.setBackground(new java.awt.Color(255, 255, 255));\n\n txtBuscar1.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtBuscar1.setBorder(null);\n txtBuscar1.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n txtBuscar1CaretUpdate(evt);\n }\n });\n txtBuscar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBuscar1ActionPerformed(evt);\n }\n });\n txtBuscar1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtBuscar1KeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtBuscar1KeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel47Layout = new javax.swing.GroupLayout(jPanel47);\n jPanel47.setLayout(jPanel47Layout);\n jPanel47Layout.setHorizontalGroup(\n jPanel47Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel47Layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(txtBuscar1, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 5, Short.MAX_VALUE))\n );\n jPanel47Layout.setVerticalGroup(\n jPanel47Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel47Layout.createSequentialGroup()\n .addComponent(txtBuscar1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n btnBuscarPaciente5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-27.png\"))); // NOI18N\n btnBuscarPaciente5.setContentAreaFilled(false);\n btnBuscarPaciente5.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(jPanel47, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBuscarPaciente5, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(299, Short.MAX_VALUE))\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnBuscarPaciente5, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jPanel47, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(348, 348, 348))\n );\n\n jScrollPane4.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n\n tb_Grupo2.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_Grupo2.setGridColor(new java.awt.Color(255, 255, 255));\n tb_Grupo2.setRowHeight(25);\n tb_Grupo2.setSelectionBackground(new java.awt.Color(102, 102, 102));\n tb_Grupo2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_Grupo2MouseClicked(evt);\n }\n });\n tb_Grupo2.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_Grupo2KeyPressed(evt);\n }\n });\n jScrollPane4.setViewportView(tb_Grupo2);\n\n javax.swing.GroupLayout NomenclaturaLayout = new javax.swing.GroupLayout(Nomenclatura.getContentPane());\n Nomenclatura.getContentPane().setLayout(NomenclaturaLayout);\n NomenclaturaLayout.setHorizontalGroup(\n NomenclaturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 612, Short.MAX_VALUE)\n );\n NomenclaturaLayout.setVerticalGroup(\n NomenclaturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(NomenclaturaLayout.createSequentialGroup()\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jDialog1.setAlwaysOnTop(true);\n jDialog1.setResizable(false);\n\n javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());\n jDialog1.getContentPane().setLayout(jDialog1Layout);\n jDialog1Layout.setHorizontalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n jDialog1Layout.setVerticalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(41, 127, 184));\n jPanel1.setPreferredSize(new java.awt.Dimension(284, 714));\n\n btnNuevo.setFont(new java.awt.Font(\"Segoe UI\", 0, 18)); // NOI18N\n btnNuevo.setForeground(new java.awt.Color(240, 240, 240));\n btnNuevo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Icon/Documento-32.png\"))); // NOI18N\n btnNuevo.setText(\"Nuevo\");\n btnNuevo.setContentAreaFilled(false);\n btnNuevo.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnNuevo.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btnNuevo.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btnNuevo.setIconTextGap(30);\n btnNuevo.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btnNuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNuevoActionPerformed(evt);\n }\n });\n\n btneditar.setFont(new java.awt.Font(\"Segoe UI\", 0, 18)); // NOI18N\n btneditar.setForeground(new java.awt.Color(240, 240, 240));\n btneditar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Icon/Editar-32.png\"))); // NOI18N\n btneditar.setText(\"Editar\");\n btneditar.setContentAreaFilled(false);\n btneditar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btneditar.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btneditar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btneditar.setIconTextGap(30);\n btneditar.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btneditar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btneditarActionPerformed(evt);\n }\n });\n\n btnguardar.setFont(new java.awt.Font(\"Segoe UI\", 0, 18)); // NOI18N\n btnguardar.setForeground(new java.awt.Color(240, 240, 240));\n btnguardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Icon/Guardar-32.png\"))); // NOI18N\n btnguardar.setText(\"Guardar\");\n btnguardar.setContentAreaFilled(false);\n btnguardar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnguardar.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btnguardar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btnguardar.setIconTextGap(30);\n btnguardar.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btnguardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnguardarActionPerformed(evt);\n }\n });\n\n btneliminar.setFont(new java.awt.Font(\"Segoe UI\", 0, 18)); // NOI18N\n btneliminar.setForeground(new java.awt.Color(240, 240, 240));\n btneliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Icon/Basura-32.png\"))); // NOI18N\n btneliminar.setText(\"Eliminar\");\n btneliminar.setContentAreaFilled(false);\n btneliminar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btneliminar.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btneliminar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btneliminar.setIconTextGap(30);\n btneliminar.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btneliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btneliminarActionPerformed(evt);\n }\n });\n\n lblusu.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 18)); // NOI18N\n lblusu.setForeground(new java.awt.Color(255, 255, 255));\n lblusu.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Usuario-40.png\"))); // NOI18N\n lblusu.setText(\"Silvana\");\n lblusu.setFocusable(false);\n lblusu.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n\n jLabel57.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 36)); // NOI18N\n jLabel57.setForeground(new java.awt.Color(255, 255, 255));\n jLabel57.setText(\"<html>Precios<span style=\\\"font-size:'14px'\\\"><br>Nomenclaturas</br></span></html>\");\n\n jPanel23.setBackground(new java.awt.Color(255, 255, 255));\n\n buscartodo.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n buscartodo.setForeground(new java.awt.Color(51, 51, 51));\n buscartodo.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n buscartodo.setBorder(null);\n buscartodo.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n buscartodoCaretUpdate(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);\n jPanel23.setLayout(jPanel23Layout);\n jPanel23Layout.setHorizontalGroup(\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel23Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(buscartodo, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42))\n );\n jPanel23Layout.setVerticalGroup(\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel23Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(buscartodo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n btnBuscarPaciente.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-27.png\"))); // NOI18N\n btnBuscarPaciente.setContentAreaFilled(false);\n btnBuscarPaciente.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnBuscarPaciente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarPacienteActionPerformed(evt);\n }\n });\n\n lbldetalle.setForeground(new java.awt.Color(255, 255, 255));\n lbldetalle.setText(\"CPT, Descripción\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lbldetalle)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBuscarPaciente, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel57, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblusu, javax.swing.GroupLayout.PREFERRED_SIZE, 282, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnNuevo, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnguardar, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btneditar, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btneliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(jLabel57, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscarPaciente, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lbldetalle)\n .addGap(21, 21, 21)\n .addComponent(btnNuevo)\n .addGap(18, 18, 18)\n .addComponent(btnguardar)\n .addGap(18, 18, 18)\n .addComponent(btneditar)\n .addGap(18, 18, 18)\n .addComponent(btneliminar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 184, Short.MAX_VALUE)\n .addComponent(lblusu, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n cargareliminar.setBackground(new java.awt.Color(255, 153, 51));\n\n Mensaje.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n Mensaje.setForeground(new java.awt.Color(255, 255, 255));\n Mensaje.setText(\"Mensaje\");\n\n eli.setForeground(new java.awt.Color(240, 240, 240));\n eli.setText(\"Si\");\n eli.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));\n eli.setContentAreaFilled(false);\n eli.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n eli.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n eli.setIconTextGap(30);\n eli.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n eliActionPerformed(evt);\n }\n });\n\n noeli.setForeground(new java.awt.Color(240, 240, 240));\n noeli.setText(\"No\");\n noeli.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));\n noeli.setContentAreaFilled(false);\n noeli.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n noeli.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n noeli.setIconTextGap(30);\n noeli.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n noeliActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout cargareliminarLayout = new javax.swing.GroupLayout(cargareliminar);\n cargareliminar.setLayout(cargareliminarLayout);\n cargareliminarLayout.setHorizontalGroup(\n cargareliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(cargareliminarLayout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(Mensaje)\n .addGap(46, 46, 46)\n .addComponent(eli, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(noeli, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n cargareliminarLayout.setVerticalGroup(\n cargareliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(cargareliminarLayout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(cargareliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Mensaje)\n .addComponent(eli, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(noeli, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setMinimumSize(new java.awt.Dimension(543, 156));\n\n jLabel3.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(51, 51, 51));\n jLabel3.setText(\"Forma de Pago\");\n\n jLabel4.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(51, 51, 51));\n jLabel4.setText(\"Nomenclatura\");\n\n jLabel5.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(51, 51, 51));\n jLabel5.setText(\"Precio\");\n\n txtPrecio.setEditable(false);\n txtPrecio.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtPrecio.setForeground(new java.awt.Color(51, 51, 51));\n txtPrecio.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPrecioKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtPrecioKeyTyped(evt);\n }\n });\n\n fp.setBackground(new java.awt.Color(255, 255, 255));\n fp.setForeground(new java.awt.Color(255, 255, 255));\n fp.setText(\"jLabel8\");\n\n nom.setBackground(new java.awt.Color(255, 255, 255));\n nom.setForeground(new java.awt.Color(255, 255, 255));\n nom.setText(\"jLabel8\");\n\n txtcodigo.setEditable(false);\n txtcodigo.setForeground(new java.awt.Color(255, 255, 255));\n txtcodigo.setBorder(null);\n\n panelFormaPago.setBackground(new java.awt.Color(255, 255, 255));\n panelFormaPago.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));\n\n forma.setEditable(false);\n forma.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n forma.setForeground(new java.awt.Color(51, 51, 51));\n forma.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n forma.setBorder(null);\n forma.setSelectedTextColor(new java.awt.Color(51, 51, 51));\n forma.setSelectionColor(new java.awt.Color(255, 255, 255));\n forma.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n formaCaretUpdate(evt);\n }\n });\n\n b.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-25.png\"))); // NOI18N\n b.setContentAreaFilled(false);\n b.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n b.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout panelFormaPagoLayout = new javax.swing.GroupLayout(panelFormaPago);\n panelFormaPago.setLayout(panelFormaPagoLayout);\n panelFormaPagoLayout.setHorizontalGroup(\n panelFormaPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFormaPagoLayout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(forma, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(b, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3))\n );\n panelFormaPagoLayout.setVerticalGroup(\n panelFormaPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFormaPagoLayout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(panelFormaPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(forma, javax.swing.GroupLayout.DEFAULT_SIZE, 25, Short.MAX_VALUE)\n .addComponent(b, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n panelFormaPago1.setBackground(new java.awt.Color(255, 255, 255));\n panelFormaPago1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));\n\n Nomen.setEditable(false);\n Nomen.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n Nomen.setForeground(new java.awt.Color(51, 51, 51));\n Nomen.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n Nomen.setBorder(null);\n Nomen.setSelectedTextColor(new java.awt.Color(51, 51, 51));\n Nomen.setSelectionColor(new java.awt.Color(255, 255, 255));\n Nomen.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n NomenCaretUpdate(evt);\n }\n });\n\n b1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-25.png\"))); // NOI18N\n b1.setContentAreaFilled(false);\n b1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n b1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n b1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout panelFormaPago1Layout = new javax.swing.GroupLayout(panelFormaPago1);\n panelFormaPago1.setLayout(panelFormaPago1Layout);\n panelFormaPago1Layout.setHorizontalGroup(\n panelFormaPago1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFormaPago1Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(Nomen)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(b1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3))\n );\n panelFormaPago1Layout.setVerticalGroup(\n panelFormaPago1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFormaPago1Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(panelFormaPago1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Nomen, javax.swing.GroupLayout.DEFAULT_SIZE, 25, Short.MAX_VALUE)\n .addComponent(b1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel3))\n .addGap(61, 61, 61)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(panelFormaPago, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(panelFormaPago1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(fp)\n .addGap(5, 5, 5)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addComponent(txtPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(338, 338, 338)\n .addComponent(nom))\n .addComponent(txtcodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(121, 121, 121))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(fp)\n .addComponent(nom)))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(panelFormaPago, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addComponent(txtPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(panelFormaPago1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(txtcodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jScrollPane3.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n\n tb_Grupo1.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n tb_Grupo1.setFont(new java.awt.Font(\"Segoe UI\", 0, 12)); // NOI18N\n tb_Grupo1.setForeground(new java.awt.Color(51, 51, 51));\n tb_Grupo1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_Grupo1.setGridColor(new java.awt.Color(255, 255, 255));\n tb_Grupo1.setRowHeight(25);\n tb_Grupo1.setSelectionBackground(new java.awt.Color(102, 102, 102));\n tb_Grupo1.getTableHeader().setReorderingAllowed(false);\n tb_Grupo1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_Grupo1MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n tb_Grupo1MousePressed(evt);\n }\n });\n tb_Grupo1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_Grupo1KeyPressed(evt);\n }\n });\n jScrollPane3.setViewportView(tb_Grupo1);\n\n jPanel5.setBackground(new java.awt.Color(43, 43, 43));\n jPanel5.setPreferredSize(new java.awt.Dimension(929, 115));\n\n jLabel33.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 24)); // NOI18N\n jLabel33.setForeground(new java.awt.Color(255, 255, 255));\n jLabel33.setText(\"Edición\");\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 335, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(67, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cargareliminar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1223, Short.MAX_VALUE)))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(cargareliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public static Consumo insertConsumo(int cantidad_consumo,Date fecha_inicio,\n Producto producto,Servicio servicio){\n Consumo miConsumo = new Consumo(cantidad_consumo,fecha_inicio, \n producto, servicio);\n miConsumo.registrarConsumo();\n return miConsumo;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabelNombre = new javax.swing.JLabel();\n jTextFieldNombre = new javax.swing.JTextField();\n jLabelApellido = new javax.swing.JLabel();\n jTextFieldApellido = new javax.swing.JTextField();\n jLabelDNI = new javax.swing.JLabel();\n jTextFieldDNI = new javax.swing.JTextField();\n jLabelSexo = new javax.swing.JLabel();\n jRadioButtonF = new javax.swing.JRadioButton();\n jRadioButtonM = new javax.swing.JRadioButton();\n jLabelOS = new javax.swing.JLabel();\n jComboBoxOS = new javax.swing.JComboBox<>();\n jButtonBuscar = new javax.swing.JButton();\n jLabelTelefono = new javax.swing.JLabel();\n jTextFieldTelefono = new javax.swing.JTextField();\n jLabelCel = new javax.swing.JLabel();\n jTextFieldCel = new javax.swing.JTextField();\n jLabelDir = new javax.swing.JLabel();\n jTextFieldDir = new javax.swing.JTextField();\n jLabelDirLegal = new javax.swing.JLabel();\n jTextFieldDirLegal = new javax.swing.JTextField();\n jLabelFN = new javax.swing.JLabel();\n jDateChooserFN = new com.toedter.calendar.JDateChooser();\n jButtonGuardar = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Registar Paciente\");\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Datos del Paciente\"));\n\n jLabelNombre.setText(\"Nombre\");\n\n jLabelApellido.setText(\"Apellido\");\n\n jLabelDNI.setText(\"DNI\");\n\n jTextFieldDNI.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextFieldDNIActionPerformed(evt);\n }\n });\n\n jLabelSexo.setText(\"Sexo\");\n\n jRadioButtonF.setText(\"Femenino\");\n jRadioButtonF.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioButtonFActionPerformed(evt);\n }\n });\n\n jRadioButtonM.setText(\"Masculino\");\n\n jLabelOS.setText(\"O. S.\");\n\n jButtonBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/find (2).png\"))); // NOI18N\n\n jLabelTelefono.setText(\"Télefono\");\n\n jLabelCel.setText(\"Celular\");\n\n jLabelDir.setText(\"Dirección\");\n\n jLabelDirLegal.setText(\"Dirección Legal\");\n\n jLabelFN.setText(\"Fecha Nacimiento\");\n\n jButtonGuardar.setText(\"Guardar\");\n\n jButton1.setText(\"Cancelar\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelApellido)\n .addComponent(jLabelDNI)\n .addComponent(jLabelOS)\n .addComponent(jLabelSexo))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldApellido)\n .addComponent(jTextFieldDNI)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jRadioButtonF, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jRadioButtonM)\n .addGap(36, 36, 36))\n .addComponent(jComboBoxOS, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(jLabelFN)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jDateChooserFN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButtonBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jButtonGuardar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1))))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabelNombre)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextFieldNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabelDir)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldDir))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabelTelefono)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(36, 36, 36)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabelCel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextFieldCel))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabelDirLegal)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextFieldDirLegal)))))\n .addGap(213, 213, 213))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelNombre)\n .addComponent(jTextFieldNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelApellido)\n .addComponent(jTextFieldApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelDNI)\n .addComponent(jTextFieldDNI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelFN))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelSexo)\n .addComponent(jRadioButtonF)\n .addComponent(jRadioButtonM)))\n .addComponent(jDateChooserFN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(20, 20, 20)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelOS)\n .addComponent(jComboBoxOS, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(35, 35, 35)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelTelefono)\n .addComponent(jTextFieldTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelCel)\n .addComponent(jTextFieldCel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelDir)\n .addComponent(jTextFieldDir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelDirLegal)\n .addComponent(jTextFieldDirLegal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(45, 45, 45)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonGuardar)\n .addComponent(jButton1))\n .addContainerGap(20, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n fechaTerminopc = new javax.swing.JTextField();\n fechaContrato = new javax.swing.JTextField();\n fechaTerminoContrato = new javax.swing.JTextField();\n jPanel3 = new javax.swing.JPanel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n valorventa = new javax.swing.JTextField();\n rut = new javax.swing.JTextField();\n jPanel4 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n precio = new javax.swing.JTextField();\n cantidad = new javax.swing.JTextField();\n comboProducto = new javax.swing.JComboBox<>();\n butPrepago = new javax.swing.JRadioButton();\n butPostpago = new javax.swing.JRadioButton();\n jPanel5 = new javax.swing.JPanel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Fecha de Contratación\");\n\n jLabel2.setText(\"Fecha de Termino (opcional)\");\n\n jLabel3.setText(\"Fecha de Termino Contrato\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(fechaTerminoContrato, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(fechaContrato, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(fechaTerminopc, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 36, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(fechaContrato, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(fechaTerminopc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(fechaTerminoContrato, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(29, Short.MAX_VALUE))\n );\n\n jLabel8.setText(\"RUT\");\n\n jLabel9.setText(\"Valor venta\");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(45, 45, 45)\n .addComponent(valorventa, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel8))\n .addContainerGap(76, Short.MAX_VALUE))\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(120, 120, 120)\n .addComponent(rut, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(76, Short.MAX_VALUE)))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(jLabel8)\n .addGap(28, 28, 28)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(valorventa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addGap(0, 81, Short.MAX_VALUE))\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(rut, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(131, Short.MAX_VALUE)))\n );\n\n jLabel4.setText(\"Producto\");\n\n jLabel5.setText(\"Tipo de venta\");\n\n jLabel6.setText(\"Precio\");\n\n jLabel7.setText(\"Cantidad\");\n\n comboProducto.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Seleccione\", \"Telefonia\", \"Internet\", \"TV Cable\" }));\n\n butPrepago.setText(\"Prepago\");\n butPrepago.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n butPrepagoActionPerformed(evt);\n }\n });\n\n butPostpago.setText(\"Postpago\");\n butPostpago.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n butPostpagoActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel5)\n .addComponent(jLabel4))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cantidad, javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE)\n .addComponent(precio)))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(butPrepago)\n .addComponent(comboProducto, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(butPostpago)))\n .addContainerGap(54, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(butPrepago)\n .addComponent(butPostpago))\n .addGap(26, 26, 26)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboProducto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(precio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addGap(0, 2, Short.MAX_VALUE)\n .addComponent(cantidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n );\n\n jButton1.setText(\"Menu\");\n\n jButton2.setText(\"Agregar\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap(65, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton2)\n .addComponent(jButton1))\n .addGap(48, 48, 48))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addComponent(jButton1)\n .addGap(18, 18, 18)\n .addComponent(jButton2)\n .addContainerGap(62, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(186, Short.MAX_VALUE))\n );\n\n pack();\n }", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "public CrearGrupoDeContactosMenuActionListener() {\n }", "public Registrar_Producto() {\n this.setContentPane(fondo);\n initComponents();\n llenaArr();\n llenaCB();\n soloLetras(rp_tx_nombre);\n soloNumeros(rp_tx_cantidad);\n soloNumeros(rp_tx_precio);\n soloLetras(rp_tx_descripcion);\n }", "public FormPermisos() {\n initComponents();\n setLocationRelativeTo(null);\n setTitle(\"INTERFACE-PERMISOS\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jToolBar1 = new javax.swing.JToolBar();\n botonCrear = new javax.swing.JButton();\n botonModificar = new javax.swing.JButton();\n botonEliminar = new javax.swing.JButton();\n botonSalir = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jToolBar3 = new javax.swing.JToolBar();\n radioCodigoBarras = new javax.swing.JRadioButton();\n jSeparator1 = new javax.swing.JToolBar.Separator();\n radioNombre = new javax.swing.JRadioButton();\n jSeparator2 = new javax.swing.JToolBar.Separator();\n radioTipoProducto = new javax.swing.JRadioButton();\n jSeparator3 = new javax.swing.JToolBar.Separator();\n radioMarca = new javax.swing.JRadioButton();\n jSeparator4 = new javax.swing.JToolBar.Separator();\n radioUnidadMedida = new javax.swing.JRadioButton();\n jPanel2 = new javax.swing.JPanel();\n textoBuscar = new javax.swing.JTextField();\n botonBuscar = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n tablaProducto = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Gestionar Producto\");\n setResizable(false);\n\n jToolBar1.setFloatable(false);\n jToolBar1.setRollover(true);\n\n botonCrear.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n botonCrear.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/crearx32.png\"))); // NOI18N\n botonCrear.setText(\"Crear\");\n botonCrear.setFocusable(false);\n botonCrear.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonCrear.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n botonCrear.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonCrearActionPerformed(evt);\n }\n });\n jToolBar1.add(botonCrear);\n\n botonModificar.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n botonModificar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/modificarx32.png\"))); // NOI18N\n botonModificar.setText(\"Modificar\");\n botonModificar.setFocusable(false);\n botonModificar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonModificar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(botonModificar);\n\n botonEliminar.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n botonEliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/eliminarx32.png\"))); // NOI18N\n botonEliminar.setText(\"Eliminar\");\n botonEliminar.setFocusable(false);\n botonEliminar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonEliminar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(botonEliminar);\n\n botonSalir.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n botonSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/salirx32.png\"))); // NOI18N\n botonSalir.setText(\"Salir\");\n botonSalir.setFocusable(false);\n botonSalir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonSalir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n botonSalir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonSalirActionPerformed(evt);\n }\n });\n jToolBar1.add(botonSalir);\n\n getContentPane().add(jToolBar1, java.awt.BorderLayout.PAGE_START);\n\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jToolBar3.setFloatable(false);\n jToolBar3.setRollover(true);\n\n buttonGroup1.add(radioCodigoBarras);\n radioCodigoBarras.setText(\"Codigo de Barras\");\n radioCodigoBarras.setFocusable(false);\n radioCodigoBarras.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioCodigoBarras.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioCodigoBarras);\n jToolBar3.add(jSeparator1);\n\n buttonGroup1.add(radioNombre);\n radioNombre.setSelected(true);\n radioNombre.setText(\"Nombre \");\n radioNombre.setFocusable(false);\n radioNombre.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioNombre.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioNombre);\n jToolBar3.add(jSeparator2);\n\n buttonGroup1.add(radioTipoProducto);\n radioTipoProducto.setText(\"Tipo de Producto\");\n radioTipoProducto.setFocusable(false);\n radioTipoProducto.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioTipoProducto.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioTipoProducto);\n jToolBar3.add(jSeparator3);\n\n buttonGroup1.add(radioMarca);\n radioMarca.setText(\"Marca\");\n radioMarca.setFocusable(false);\n radioMarca.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioMarca.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioMarca);\n jToolBar3.add(jSeparator4);\n\n buttonGroup1.add(radioUnidadMedida);\n radioUnidadMedida.setText(\"Unidad de Medida\");\n radioUnidadMedida.setFocusable(false);\n radioUnidadMedida.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n radioUnidadMedida.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(radioUnidadMedida);\n\n jPanel1.add(jToolBar3, java.awt.BorderLayout.PAGE_START);\n\n textoBuscar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n botonBuscar.setBackground(new java.awt.Color(255, 255, 255));\n botonBuscar.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n botonBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/apptiendasoft/c5_recursos/iconos/buscarx20.png\"))); // NOI18N\n botonBuscar.setText(\"Buscar\");\n botonBuscar.setOpaque(false);\n botonBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonBuscarActionPerformed(evt);\n }\n });\n\n tablaProducto.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n jScrollPane1.setViewportView(tablaProducto);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Nombre:\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(textoBuscar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 788, Short.MAX_VALUE))\n .addGap(23, 23, 23))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(textoBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(botonBuscar)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel1.add(jPanel2, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n pack();\n setLocationRelativeTo(null);\n }", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "Compuesta createCompuesta();", "public void BuscarGrupo() {\r\n try {\r\n // Inicializamos la tabla para refrescar todos los datos contenidos.\r\n InicializarTabla(_escuchador.session);\r\n Transaction tx = _escuchador.session.beginTransaction();\r\n List<Cursos> tabla=rsmodel.lista;\r\n List<Cursos> borrados = new <Cursos>ArrayList();\r\n if(menuCursos.campoCursosBuscarCategorias.getSelectedItem().toString().equals(\"Todos los campos\")){\r\n for(Cursos obj : tabla) {\r\n if(!obj.getCodigo().toString().contains(menuCursos.campoCursosBuscar.getText().toLowerCase()) && !obj.getNombre().toLowerCase().contains(menuCursos.campoCursosBuscar.getText().toLowerCase())){\r\n borrados.add(obj);\r\n }\r\n }\r\n }\r\n else if(menuCursos.campoCursosBuscarCategorias.getSelectedItem().toString().equals(\"Código del curso\")){\r\n for(Cursos obj : tabla) {\r\n if(!obj.getCodigo().toString().contains(menuCursos.campoCursosBuscar.getText().toLowerCase())){\r\n borrados.add(obj);\r\n }\r\n }\r\n }\r\n else if(menuCursos.campoCursosBuscarCategorias.getSelectedItem().toString().equals(\"Nombre del curso\")){\r\n for(Cursos obj : tabla) {\r\n if(!obj.getNombre().toLowerCase().contains(menuCursos.campoCursosBuscar.getText().toLowerCase())){\r\n borrados.add(obj);\r\n }\r\n }\r\n }\r\n tabla.removeAll(borrados);\r\n tx.commit();\r\n if(tabla.isEmpty()){tabla.add(new Cursos(null));}\r\n rs=tabla;\r\n ControladorTabla registrosBuscados = new ControladorTabla(tabla);\r\n menuCursos.getTablaCursos().setModel(registrosBuscados);\r\n } catch (Exception e) {\r\n JOptionPane.showMessageDialog(null, e, \"Excepción\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "public static void registrarOperacionPrestamo(Usuario autor, long idPrestamo, Operacion operacion) throws DaoException {\r\n String msg = null;\r\n Prestamo prestamo = PrestamoDao.findPrestamoById(idPrestamo, null);\r\n Conexion con = null;\r\n try {\r\n HashMap<String, String> infoPrestamo;\r\n HashMap<String, Object> infoOperacion = new HashMap<String, Object>();\r\n infoOperacion.put(\"ID\", Consultas.darNumFilas(Operacion.NOMBRE_TABLA)+1);\r\n infoOperacion.put(\"FECHA\", Consultas.getCurrentDate());\r\n infoOperacion.put(\"TIPO\", operacion.getTipo());\r\n infoOperacion.put(\"ID_AUTOR\", autor.getId());\r\n\r\n \r\n con=new Conexion();\r\n switch (operacion.getTipo()) {\r\n case Operacion.PAGAR_CUOTA:\r\n PrestamoDao.registrarPagoCuota(prestamo,con);\r\n infoOperacion.put(\"MONTO\", prestamo.getValorCuota());\r\n infoOperacion.put(\"DESTINO\", \"0\");\r\n infoOperacion.put(\"METODO\", operacion.getMetodo());\r\n infoOperacion.put(\"ID_PRESTAMO\", prestamo.getId()); \r\n \r\n break;\r\n case Operacion.PAGAR_CUOTA_EXTRAORDINARIA:\r\n \r\n //solo gasta lo necesario par apagar el prestamo\r\n if (operacion.getMonto()>prestamo.getCantidadRestante())\r\n {\r\n throw new DaoException(\"La cuota supera lo que debe\");\r\n }\r\n \r\n infoOperacion.put(\"MONTO\", operacion.getMonto());\r\n infoOperacion.put(\"DESTINO\",\"0\" );\r\n infoOperacion.put(\"METODO\", operacion.getMetodo());\r\n infoOperacion.put(\"ID_PRESTAMO\", prestamo.getId()); \r\n PrestamoDao.registrarPagoCuotaExtraordinaria(prestamo,operacion,con);\r\n break;\r\n case Operacion.CERRAR:\r\n if (prestamo.getCantidadRestante() != 0) {\r\n throw new DaoException( \"El prestamo no se ha pagado completamente\");\r\n } else {\r\n \r\n Consultas.insertar(null, infoOperacion, Operacion.infoColumnas, Operacion.NOMBRE_TABLA);\r\n String sentenciaCerrar = \"UPDATE PRESTAMOS SET ESTADO='CERRADO' WHERE ID=\" + prestamo.getId();\r\n con.getConexion().prepareStatement(sentenciaCerrar).executeUpdate();\r\n \r\n }\r\n \r\n }\r\n \r\n Consultas.insertar(con, infoOperacion, Operacion.infoColumnas, Operacion.NOMBRE_TABLA);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(OperacionDao.class.getName()).log(Level.SEVERE, null, ex); \r\n con.rollback();\r\n throw new DaoException();\r\n }\r\n\r\n \r\n }", "private JPanel criarPainelNorte() {\n\n JPanel pNorte = new JPanel(new BorderLayout());\n\n pNorte.setBorder(PADDING_BORDER);\n\n JLabel lbl = new JLabel(\"Selecione o tipo de Utilizador:\", JLabel.CENTER);\n\n btnFae = criarRadioBtnFae();\n btnOrg = criarRadioBtnOrg();\n btnRep = criarRadioBtnRep();\n\n ButtonGroup rBtnGroup = new ButtonGroup();\n rBtnGroup.add(btnFae);\n rBtnGroup.add(btnOrg);\n rBtnGroup.add(btnRep);\n\n JPanel panelBotoes = new JPanel(new FlowLayout());\n panelBotoes.add(btnFae);\n panelBotoes.add(btnOrg);\n panelBotoes.add(btnRep);\n\n pNorte.add(lbl, BorderLayout.NORTH);\n pNorte.add(panelBotoes, BorderLayout.CENTER);\n\n return pNorte;\n }", "@Override\n public ComprobanteContable createComprobante(\n Aerolinea a, Boleto boleto, Cliente cliente, String tipo) throws CRUDException {\n Optional op;\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n buff.append(a.getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas\n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n comprobante.setIdCliente(cliente);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(tipo);\n\n //ComprobanteContablePK numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n comprobante.setIdNumeroGestion(numero);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n\n return comprobante;\n }", "public VentanaCrearProducto(ControladorProducto controladorProducto) {\n initComponents();\n this.controladorProducto=controladorProducto;\n txtCodigoCrearProducto.setText(String.valueOf(this.controladorProducto.getCodigo()));\n this.setSize(1000,600);\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "private boolean saveOperacion(BeanItem<Operacion> oItem, Form operacionConfirmForm) {\n\t\tboolean isMulti = (cuentasSet!=null);\n\t\tEntityTransaction trans = null;\n\t\tEntityManager em = null;\n\t\ttry {\n\t\t\tem = ConfigurationUtil.getNewEntityManager();\n\t\t\tMutableLocalEntityProvider<Operacion> operacionEP = new BatchableLocalEntityProvider<Operacion>(\n\t\t\t\t\tOperacion.class, em);\n\t\t\toperacionEP.setTransactionsHandledByProvider(false);\n\t\t\tMutableLocalEntityProvider<Cuenta> cuentaEP = new BatchableLocalEntityProvider<Cuenta>(\n\t\t\t\t\tCuenta.class, em);\n\t\t\tMutableLocalEntityProvider<Usuario> usuarioEP = new BatchableLocalEntityProvider<Usuario>(\n\t\t\t\t\tUsuario.class, em);\n\t\t\tcuentaEP.setTransactionsHandledByProvider(false);\n\t\t\tMutableLocalEntityProvider<Saldo> saldoEP = new BatchableLocalEntityProvider<Saldo>(\n\t\t\t\t\tSaldo.class, em);\n\t\t\tsaldoEP.setTransactionsHandledByProvider(false);\n\t\t\t\t\n\t\t\tString logCaja = null;\n\t\t\t\n\t\t\ttrans = em.getTransaction();\n\t\t\ttrans.begin();\n\t\t\t\n\t\t\tif (!isMulti) {\n\t\t\t\tcuentasSet = new HashSet<Cuenta>();\n\t\t\t\tcuentasSet.add(cuenta);\n\t\t\t}\n\t\t\tOperacion oper = null;\n\t\t\tfor (Cuenta cn : cuentasSet) {\n\t\t\t\toper = (isMulti ? ((Operacion)oItem.getBean()).clone() : (Operacion)oItem.getBean());\n\t\t\t\toper.setUsuario(em.find(Usuario.class, (SessionHandler.get().getId())));\n\t\t\t\tif (oper.getFechaDeCobro()==null && (!oper.getTipo().equals(Tipo.CHEQUE.toString()))) oper.setFechaDeCobro(oper.getFecha());\n\t\t\t\tcn = cuentaEP.getEntityManager().find(Cuenta.class, cn.getId(), LockModeType.PESSIMISTIC_WRITE);\n\t\t\t\tassert cn!=null;\n\t\t\t\t\n\t\t\t\tif (oper.getIsCargo()) {\n\t\t\t\t\toper.setPen(oper.getPen().multiply(new BigDecimal(-1)).setScale(2));\n\t\t\t\t\toper.setUsd(oper.getUsd().multiply(new BigDecimal(-1)).setScale(2));\n\t\t\t\t}\n\t\n\t\t\t\tBoolean isEfectivo = oper.getTipo().equals(Tipo.EFECTIVO.toString()); \n\t\t\t\t//logger.info(\"Got operacion to save: \" + oper);\n\t\n\t\t\t\toper.setIsPen((oper.getPen().compareTo(new BigDecimal(0)) > 0 \n\t\t\t\t\t\t|| oper.getPen().compareTo(new BigDecimal(0))< 0) ? true : false);\n\t\n\t\t\t\tBoolean isCorEfectivo = oper.getIsCorrection() ? \n\t\t\t\t\t\toper.getOperacionCorrected().getTipo().equals(Tipo.EFECTIVO.toString()) : isEfectivo;\n\t\t\t\t// In case of correction and same type (EFECTIVO/BANCO) or is of type Caja/Banco\n\t\t\t\t// Only add the difference\n\t\t\t\tif (oper.getIsCorrection() && (isEfectivo.equals(isCorEfectivo) || cn.getIsCaja())) {\n\t\t\t\t\tOperacion oldOperacion = oper.getOperacionCorrected();\n\t\t\t\t\t\n\t\t\t\t\tBigDecimal diffPen = oper.getPen().subtract(\n\t\t\t\t\t\t\toldOperacion.getPen());\n\t\t\t\t\toper.setPen(diffPen);\n\t\t\t\t\tBigDecimal diffUsd = oper.getUsd().subtract(\n\t\t\t\t\t\t\toldOperacion.getUsd());\n\t\t\t\t\toper.setUsd(diffUsd);\n\t\t\t\t} else if (oper.getIsCorrection() && (!cn.getIsCaja()) && ((!isEfectivo.equals(isCorEfectivo)) || \n\t\t\t\t\t\t((!isEfectivo) && (!isCorEfectivo) && (!oper.getBanco().equals(oper.getOperacionCorrected().getBanco()))))) {\n\t\t\t\t\t// If isCorrection and there are differences of types we have to move between Efectivo and Bancario\n\t\t\t\t\t// make a reverse operation\n\t\t\t\t\tOperacion op = oper.getOperacionCorrected().clone();\n\t\t\t\t\top.setIsCorrection(true);\n\t\t\t\t\top.setDescripcion(oper.getDescripcion());\n\t\t\t\t\top.setOperacionCorrected(oper.getOperacionCorrected());\n\t\t\t\t\top.setBeneficiario(oper.getBeneficiario());\n\t\t\t\t\top.setCentroCosto(oper.getCentroCosto());\n\t\t\t\t\top.setCuentaContable(oper.getCuentaContable());\n\t\t\t\t\top.setRubroInstitucional(oper.getRubroInstitucional());\n\t\t\t\t\top.setRubroProyecto(oper.getRubroProyecto());\n\t\t\t\t\top.setLugarGasto(oper.getLugarGasto());\n\t\t\t\t\top.setBanco(oper.getBanco());\n\t\t\t\t\top.setChequeNumero(oper.getChequeNumero());\n\t\t\t\t\top.setDocNumero(oper.getDocNumero());\n\t\t\t\t\top.setDni(oper.getDni());\n\t\t\t\t\top.setTipoDocumento(oper.getTipoDocumento());\n\t\t\t\t\tif (ConfigurationUtil.getUltimoMesCerrado().before(oper.getOperacionCorrected().getFecha()))\n\t\t\t\t\t\top.setFecha(ConfigurationUtil.dateAddSeconds(oper.getOperacionCorrected().getFecha(), 1));\n\t\t\t\t\telse\n\t\t\t\t\t\top.setFecha(ConfigurationUtil.dateAddSeconds(ConfigurationUtil.getUltimoMesCerrado(), 1));\n\t\t\t\t\t\n\t\t\t\t\top.setPen(oper.getOperacionCorrected().getPen().multiply(new BigDecimal(-1)));\n\t\t\t\t\top.setUsd(oper.getOperacionCorrected().getUsd().multiply(new BigDecimal(-1)));\n\t\t\t\t\t\n\t\t\t\t\tcn.setPen(cn.getPen().add(op.getPen()));\n\t\t\t\t\tcn.setUsd(cn.getUsd().add(op.getUsd()));\t\t\t\t\n\t\t\t\t\tcn = cuentaEP.updateEntity(cn);\n\t\t\t\t\top.setSaldoPen(cn.getPen());\n\t\t\t\t\top.setSaldoUsd(cn.getUsd());\t\t\n\t\t\t\t\tObject operAdded = operacionEP.addEntity(op);\n\t\t\t\t\tObject newOperacionId = ((Operacion)operAdded).getId();\n\t\t\t\t\top.setId((Long)newOperacionId);\n\t\t\t\t\t\n\t\t\t\t\t// NEW CODE REVERSE the Caja/Banco\n\t\t\t\t\t// NEW CODE - added operacion to caja Cuenta\n\t\t\t\t\tlogger.info(processCajaBancoOperacion(cn, (Operacion)operAdded, em, cuentaEP, operacionEP));\n\t\t\t\t\tif (newOperacionId!=null) recalculateSaldos((Operacion)operAdded, em);\n\t\t\t\t}\n\t\t\t\tString logCuenta = \"Cuenta numero: \" + cn.getNumero()\n\t\t\t\t\t\t+ \" , antes PEN: \" + cn.getPen()\n\t\t\t\t\t\t+ \", USD: \" + cn.getUsd();\n\t\t\t\t// Set the BancoCuenta beacause otherwise it gets lost\n\t\t\t\tif (oper.getBanco()!=null) {\n\t\t\t\t\tCuenta bancoCuenta = em.find(Cuenta.class, oper.getBanco().getBancoCuenta().getId());\n\t\t\t\t\tBanco banco = em.find(Banco.class, oper.getBanco().getId());\n\t\t\t\t\tbanco.setBancoCuenta(bancoCuenta);\n\t\t\t\t\toper.setBanco(banco);\n\t\t\t\t}\n\t\t\t\tObject operAdded = operacionEP.addEntity(oper);\n\t\t\t\tObject newOperacionId = ((Operacion)operAdded).getId();\n\t\t\t\tcn = recalculateSaldos((Operacion)operAdded, em);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tlogger.info(\"new oper id: \" + newOperacionId);\n\t\t\t\toper.setId((Long) newOperacionId);\n\t\t\t\tif (operAdded!=null) \n\t\t\t\t\tlogger.info(\"Added new operacion: \" + operAdded.toString());\n\t\t\t\tlogger.info(\"Updated cn: \" + cn.toString());\n\t\t\t\t// PROCESS CAJA/BANCO \n\t\t\t\tif (!cn.getIsCaja()) {\n\t\t\t\t\tlogger.info(\"OPERACION en CAJA/BANCO processing normally for non Caja\");\t\t\t\n\t\t\t\t\tlogger.info(processCajaBancoOperacion(cn, (Operacion)operAdded, em, cuentaEP, operacionEP));\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlogger.info(\"Nueva operacion \"\n\t\t\t\t\t\t+ (oper.getIsCorrection() ? \" CORRECCION\" : \"\")\n\t\t\t\t\t\t+ \": \" + oper);\n\t\t\t\tlogCuenta += \", ahora PEN: \" + cn.getPen() + \", USD: \"\n\t\t\t\t\t\t+ cn.getUsd();\n\t\t\t\tlogger.info(logCuenta);\t\t\t\t\n\t\t\t\tcuenta = cn;\n\t\t\t}\n\t\t\tif (trans!=null && trans.isActive()) {\n\t\t\t\tlogger.info(\"trans active commiting...\");\n\t\t\t\ttrans.commit();\n\t\t\t\tlogger.info(\"commit done\");\n\t\t\t\tem.close();\n\t\t\t}\n\t\t\tlogger.info(\"Cuenta for redrawing: \" + cuenta);\n\t\t\tremoveComponent(operacionConfirmForm);\n\t\t\tif (operacionTable instanceof AccountantCajaTable) \n\t\t\t\t((AccountantCajaTable)operacionTable).redraw(cuenta, oper.getIsPen(), true, false);\n\t\t\telse if (operacionTable!=null) operacionTable.drawCuentaForm(cuenta, true);\n\t\t\tif (cuentaTable!=null) cuentaTable.redraw();\n\t\t\tWindow par = getWindow().getParent();\n\t\t\tpar.removeWindow(getWindow());\n\t\t\tif (!isMulti && ConfigurationUtil.is(\"REPORTS_COMPROBANTE_OPEN\")) ReportHelper.generateComprobante(oper, par);\n\t\t\tif (!isMulti && ConfigurationUtil.is(\"REPORTS_COMPROBANTE_PRINT\")&&(!SessionHandler.isAdmin())&&(!SessionHandler.isContador())) {\n\t\t\t\tJasperPrint jrPrint = ReportHelper.printComprobante(oper, par);\n\t\t\t\tboolean isPrinted = false;\n\t\t\t\tif (((VasjaApp)par.getApplication()).getPrintHelper()!=null)\n\t\t\t\t\tisPrinted = ((VasjaApp)par.getApplication()).getPrintHelper().print(jrPrint, true);\n\t\t\t\tif (!isPrinted)\n\t\t\t\t\tthrow new Exception(\"No se podia imprimir comprobante\");\t\t\t\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tif ((trans!=null) && (trans.isActive())) {\n\t\t\t\tlogger.info(\"Trans is active rolling back...\");\n\t\t\t\ttrans.rollback();\n\t\t\t\tlogger.info(\"Rolled back\");\n\t\t\t\tem.close();\n\t\t\t}\n\t\t\te.printStackTrace();\t\t\t\t\t\n\t\t\tgetWindow().showNotification(\"Problema con la operacion \", e.getMessage(), Notification.TYPE_ERROR_MESSAGE);\n\t\t}\n\t\treturn true;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jLabel5 = new javax.swing.JLabel();\r\n jPanel1 = new javax.swing.JPanel();\r\n jLabel8 = new javax.swing.JLabel();\r\n jLabel10 = new javax.swing.JLabel();\r\n jLabel11 = new javax.swing.JLabel();\r\n jPanel2 = new javax.swing.JPanel();\r\n jLabel9 = new javax.swing.JLabel();\r\n cbbProducto = new javax.swing.JComboBox();\r\n jLabel12 = new javax.swing.JLabel();\r\n spnCantidad = new javax.swing.JSpinner();\r\n btnAgregarProducto = new javax.swing.JButton();\r\n txtOrdenEmpleado = new javax.swing.JTextField();\r\n txtFechaPedido = new javax.swing.JTextField();\r\n txtFechaRecibido = new javax.swing.JTextField();\r\n txtNOrdenProduccion = new javax.swing.JTextField();\r\n\r\n setTitle(\"Orden de Produccion\");\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Cambria Math\", 3, 14)); // NOI18N\r\n jLabel5.setText(\"N° de Orden de Producción\");\r\n\r\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jLabel8.setFont(new java.awt.Font(\"Cambria Math\", 3, 14)); // NOI18N\r\n jLabel8.setText(\"Ordena:\");\r\n\r\n jLabel10.setFont(new java.awt.Font(\"Cambria Math\", 3, 14)); // NOI18N\r\n jLabel10.setText(\"Fecha Recibido:\");\r\n\r\n jLabel11.setFont(new java.awt.Font(\"Cambria Math\", 3, 14)); // NOI18N\r\n jLabel11.setText(\"Fecha de Pedido:\");\r\n\r\n jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jLabel9.setFont(new java.awt.Font(\"Cambria Math\", 3, 14)); // NOI18N\r\n jLabel9.setText(\"Producto:\");\r\n\r\n cbbProducto.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\r\n cbbProducto.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cbbProductoActionPerformed(evt);\r\n }\r\n });\r\n\r\n jLabel12.setFont(new java.awt.Font(\"Cambria Math\", 3, 14)); // NOI18N\r\n jLabel12.setText(\"Cantidad:\");\r\n\r\n btnAgregarProducto.setText(\"Agregar Producto\");\r\n btnAgregarProducto.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btnAgregarProductoActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\r\n jPanel2.setLayout(jPanel2Layout);\r\n jPanel2Layout.setHorizontalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(cbbProducto, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(18, 18, 18)\r\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(spnCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(18, 18, 18)\r\n .addComponent(btnAgregarProducto, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n jPanel2Layout.setVerticalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(cbbProducto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(spnCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(btnAgregarProducto))\r\n .addGap(278, 278, 278))\r\n );\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, 126, Short.MAX_VALUE)\r\n .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(txtOrdenEmpleado, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(txtFechaPedido, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(txtFechaRecibido, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(206, 206, 206))\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(txtOrdenEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)\r\n .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(txtFechaPedido, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE))\r\n .addGap(6, 6, 6)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel10)\r\n .addComponent(txtFechaRecibido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(26, 26, 26))\r\n );\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 538, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(27, 27, 27)\r\n .addComponent(txtNOrdenProduccion, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addContainerGap(23, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(txtNOrdenProduccion, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n getAccessibleContext().setAccessibleName(\"ordenProduccion\");\r\n getAccessibleContext().setAccessibleDescription(\"\");\r\n\r\n pack();\r\n }" ]
[ "0.66137785", "0.63908684", "0.63165736", "0.63074803", "0.62489796", "0.6247264", "0.616297", "0.6135393", "0.6075865", "0.6027993", "0.5985852", "0.59700644", "0.5956225", "0.58293355", "0.5828298", "0.5798128", "0.57898396", "0.5787902", "0.57777923", "0.57611006", "0.5757215", "0.57550454", "0.5743906", "0.57037693", "0.5695206", "0.5687274", "0.56850356", "0.5671689", "0.5670694", "0.56292224", "0.5628476", "0.56220615", "0.56002927", "0.55986655", "0.5594742", "0.5589606", "0.5572636", "0.55676746", "0.5558795", "0.55568624", "0.5556726", "0.55547994", "0.55466783", "0.55437857", "0.5542634", "0.55414295", "0.5537573", "0.55314904", "0.5531247", "0.5523391", "0.5515226", "0.5512793", "0.5511343", "0.5509717", "0.5507692", "0.5487702", "0.5486718", "0.54776144", "0.54697293", "0.5450718", "0.5442636", "0.5442336", "0.5441289", "0.5439875", "0.5438592", "0.54353714", "0.5430033", "0.54250956", "0.5419024", "0.5417142", "0.5414869", "0.54094595", "0.54034656", "0.5399028", "0.539604", "0.5391265", "0.53901243", "0.538546", "0.5384205", "0.53830487", "0.53819585", "0.5379833", "0.5376117", "0.537521", "0.53716785", "0.5371413", "0.53649014", "0.5364137", "0.5360205", "0.5358196", "0.53571254", "0.53537583", "0.5345751", "0.5342769", "0.53400505", "0.5336137", "0.53322816", "0.5331076", "0.53282547", "0.53267056" ]
0.54857093
57
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(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); btnPesquisar = new javax.swing.JButton(); edtPesquisa = new javax.swing.JTextField(); btnExcluir = new javax.swing.JButton(); btnVisualizar = new javax.swing.JButton(); btnAlterar = new javax.swing.JButton(); btnNovo = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); btnSelecionar = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Pesquisar grupo"); jPanel1.setBackground(new java.awt.Color(255, 255, 255)); jPanel1.setName("Consulta"); // NOI18N jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { } )); jScrollPane1.setViewportView(jTable1); btnPesquisar.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N btnPesquisar.setText("pesquisar"); btnPesquisar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPesquisarActionPerformed(evt); } }); edtPesquisa.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N btnExcluir.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N btnExcluir.setText("Excluir"); btnExcluir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnExcluirActionPerformed(evt); } }); btnVisualizar.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N btnVisualizar.setText("visualizar"); btnVisualizar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnVisualizarActionPerformed(evt); } }); btnAlterar.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N btnAlterar.setText("alterar"); btnAlterar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAlterarActionPerformed(evt); } }); btnNovo.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N btnNovo.setText("Novo"); btnNovo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnNovoActionPerformed(evt); } }); jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel1.setText("Nome/código"); btnSelecionar.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N btnSelecionar.setText("Selecionar"); btnSelecionar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSelecionarActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 881, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addComponent(edtPesquisa) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(btnPesquisar)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(btnNovo) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnAlterar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnVisualizar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnExcluir) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSelecionar)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel1) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnPesquisar) .addComponent(edtPesquisa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 362, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnExcluir) .addComponent(btnVisualizar) .addComponent(btnAlterar) .addComponent(btnNovo) .addComponent(btnSelecionar)) .addGap(23, 23, 23)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 901, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 481, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public 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}", "@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 LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\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 FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\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 JFFornecedores() {\n initComponents();\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 MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }", "public frmAddIncidencias() {\n initComponents();\n }" ]
[ "0.73192346", "0.7290526", "0.7290526", "0.7290526", "0.7285891", "0.72480357", "0.7213616", "0.7207808", "0.71955067", "0.71891475", "0.71844363", "0.7159038", "0.71474695", "0.7092269", "0.7079923", "0.70560205", "0.69864315", "0.697697", "0.69552195", "0.6953691", "0.69458604", "0.6942849", "0.6935743", "0.6930747", "0.69286084", "0.6924837", "0.69246644", "0.6911876", "0.69103247", "0.68922365", "0.6891582", "0.68904996", "0.68901706", "0.6888661", "0.68829393", "0.6881672", "0.6880505", "0.68782157", "0.6875765", "0.6874406", "0.68711114", "0.6859388", "0.6856025", "0.68551815", "0.6855079", "0.6855076", "0.68530315", "0.68524104", "0.68524104", "0.6843717", "0.68364704", "0.6836458", "0.6828335", "0.68279964", "0.6826276", "0.68240345", "0.6823631", "0.68171996", "0.6816324", "0.68097955", "0.68088883", "0.68078303", "0.6807776", "0.680721", "0.680251", "0.6795605", "0.6794452", "0.67921954", "0.67907083", "0.678904", "0.6787817", "0.6787755", "0.67814714", "0.67663145", "0.6765024", "0.67649895", "0.6756559", "0.6754775", "0.6751848", "0.67506975", "0.67435455", "0.6738591", "0.6737042", "0.6735227", "0.6732907", "0.6726301", "0.6726003", "0.67197675", "0.67156976", "0.6714806", "0.6713657", "0.6708582", "0.67078584", "0.6705488", "0.6700733", "0.6699659", "0.6698679", "0.66974026", "0.6693979", "0.66902804", "0.6690275" ]
0.0
-1
chose a Character random from this String
private String generateRefKey(int n) { String AlphaNumericString = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "0123456789" + "abcdefghijklmnopqrstuvxyz"; // create StringBuffer size of AlphaNumericString StringBuilder sb = new StringBuilder(n); for (int i = 0; i < n; i++) { // generate a random number between // 0 to AlphaNumericString variable length int index = (int)(AlphaNumericString.length() * Math.random()); // add Character one by one in end of sb sb.append(AlphaNumericString .charAt(index)); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private char getRandomCharacter() {\n Random r = new Random();\n char c = (char)(r.nextInt(26) + 'A');\n if(characters.contains(c)) {\n return getRandomCharacter();\n } else {\n return c;\n }\n }", "private char getRandomCharacter() {\n int min = 0;\n int max = ALPHABET.length-1;\n int randomPos;\n\n // Could possibly have used ASCII numbers 61-95\n randomPos = min + (int)(Math.random() * ((max - min) + 1));\n\n return ALPHABET[randomPos];\n }", "private static char rndChar() {\n\t\tRandom rnd = new Random();\n\t\treturn (char)rnd.nextInt(10);\n\t}", "private char generateRandomCharacter(){\n String alphabets = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n Random rand = new Random();\n int randomNumber = rand.nextInt(26);\n return alphabets.charAt(randomNumber);\n }", "public static String randChar(){\n int n = rand.nextInt(52);\n return String.valueOf(KEYBOARD.charAt(n));\n }", "public char randomChar() {\n\t\tRandom r = new Random();\n\t\tint threshold = r.nextInt(total);\n\t\tint current = 0;\n\t\t\n\t\tfor (char c : letters.keySet()) {\n\t\t\tcurrent += letters.get(c);\n\t\t\tif (current > threshold) {\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ' ';\n\t}", "public static char casillaRandom() {\r\n char pool[] = {'b', 'p', 's', 'd'};\r\n\r\n int indiceRandom = (int) (Math.random() * 4);\r\n\r\n char selected = pool[indiceRandom];\r\n\r\n return selected;\r\n }", "public static char randomLetter(){\n\t\t//char A-Z\n\t\tint r1 = (int) (Math.random()*26+65);\n\n\t\t//char a-z\n\t\tint r2 = (int) (Math.random()*26+97);\n\n\t\t//choose one of the two\n\t\tif(Math.random() < 0.5)\n\t\t\treturn (char) r1;\n\t\treturn (char) r2;\n\t}", "public char compChoice ()\n {\n\tint num = (int) (Math.random () * 5) + 1;\n\tif (num == 1)\n\t return 's';\n\telse if (num == 2)\n\t return 'd';\n\telse if (num == 3)\n\t return 'p';\n\telse if (num == 4)\n\t return 'h';\n\telse\n\t return 'w';\n }", "private char getRandomChar(RandomNumberGenerator random, Transition randomTransition) {\n char randomChar;\n do {\n int diff = randomTransition.getMax() - randomTransition.getMin() + 1;\n randomChar = (char) (random.nextInt(diff) + randomTransition.getMin());\n } while (!StringUtils.isCharValidUtf8(randomChar));\n return randomChar;\n }", "protected char randomChar(int length) {\n\n int randomLetter = (int) (Math.random() * length);\n char letter = this.alphabet[randomLetter];\n return letter;\n }", "public char compChoice ()\n {\n\tint num = (int) (Math.random () * 3) + 1;\n\tif (num == 1)\n\t return 'F';\n\telse if (num == 2)\n\t return 'W';\n\telse\n\t return 'G';\n }", "String selectRandomSecretWord();", "public static String randChar(int l) {\n char [] replacement = {'&','#','%','!','@','?'};\n String out=\"\";\n var r=new Random();\n for(int i = 0; i <l;i++) {\n out+= replacement[r.nextInt(replacement.length)];\n }\n return out;\n }", "public static char generateLetter() {\n\t\t\n\t\treturn (char)((int)('A' + Math.random() * ('Z' - 'A' + 1)));\n\t}", "public static char getRandomLowerCaseLetter(){\n\t\treturn getRandomCharacter('a','z');\n\t}", "public static char getDigitCharacter(){\n\t\treturn getRandomCharacter('0','9');\n\t}", "public static char getRandomUpperCaseLetter(){\n\t\treturn getRandomCharacter('A','Z');\n\t}", "public String chooseWord(){\n\t\tRandom a = new Random();\t\t\r\n\t\t\r\n\t\tint randomNumber = a.nextInt(words.length);\r\n\t\t\r\n\t\tString gameWord = words[randomNumber];\r\n\t\t\r\n\t\treturn gameWord;\r\n\t\t\t\t\r\n\t}", "public char throwDie() {\r\n return _chars.charAt(RAND.nextInt(DIE_SIDES));\r\n }", "char nextChar();", "public String getRandom() {\n\t return word.get(new Random().nextInt(word.size()));}", "public static char readChar()\n {\n \tString ch = scanner.next();\n \treturn ch.charAt(0);\n }", "public static void carColor() {\n System.out.println(\"Do you have a red car? \");\n char redCar= sc.next().charAt(0); \n }", "public abstract char getStarterChar();", "public void randomlyChooseWord()\n {\n Random random = new Random();\n int randomIndex = random.nextInt(POSSIBLE_WORDS.length);\n System.out.println(randomIndex);\n word = POSSIBLE_WORDS[randomIndex].toUpperCase();\n showChar = new boolean[word.length()];\n }", "public static char readCharacter(String message){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n return in.next().charAt(0);\n }", "public char getChar(String pPrompt) {\r\n\t\tSystem.out.print(pPrompt + \" \");\r\n\t\treturn input.nextLine().charAt(0);\r\n\t}", "public char getChar();", "static Card generateRandomCard()\n {\n Card.Suit suit;\n char val;\n\n int suitSelector, valSelector;\n\n // get random suit and value\n suitSelector = (int) (Math.random() * 4);\n valSelector = (int) (Math.random() * 14);\n\n // pick suit\n suit = Card.Suit.values()[suitSelector];\n\n // pick value\n valSelector++; // put in range 1-14\n switch(valSelector)\n {\n case 1:\n val = 'A';\n break;\n case 10:\n val = 'T';\n break;\n case 11:\n val = 'J';\n break;\n case 12:\n val = 'Q';\n break;\n case 13:\n val = 'K';\n break;\n case 14:\n val = 'X';\n break;\n default:\n val = (char)('0' + valSelector); // simple way to turn n into 'n' \n }\n return new Card(val, suit);\n }", "public void chooseWord() {\n int length = words.size();\n int index = (int) ((length - 1) * Math.random());\n word = words.get(index);\n }", "private String getRandomName(){\n return rndString.nextString();\n }", "char readChar();", "public static String randSym(){\n int n = rand.nextInt(rand.nextInt(83 - 52 + 1) + 52);\n return String.valueOf(KEYBOARD.charAt(n));\n }", "private static void chooseLetter()\n {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Choose a letter :: X or O : \");\n userLetter = scanner.next().toUpperCase().charAt(0);\n computerLetter = (userLetter == 'X') ? 'O' : 'X';\n }", "public char sampleFirstCharacterFromNetwork(char humanNoteChar) {\r\n INDArray initializationInput = Nd4j.zeros(1, characterIterator.inputColumns(), 1);\r\n int idx = characterIterator.convertCharacterToIndex(humanNoteChar);\r\n initializationInput.putScalar(new int[]{0, idx, 0}, 1.0f);\r\n net.rnnClearPreviousState();\r\n INDArray nnOutput = net.rnnTimeStep(initializationInput);\r\n nnOutput = nnOutput.tensorAlongDimension((int)nnOutput.size(2) - 1, 1, 0); //Gets the last time step nnOutput\r\n\r\n //Output is a probability distribution. Sample from this.\r\n double[] outputProbDistribution = new double[characterIterator.totalOutcomes()];\r\n for (int j = 0; j < outputProbDistribution.length; j++)\r\n outputProbDistribution[j] = nnOutput.getDouble(0, j);\r\n int sampledCharacterIdx = LSTMCharModellingExample.sampleFromDistribution(outputProbDistribution, random);\r\n char result= characterIterator.convertIndexToCharacter(sampledCharacterIdx);\r\n INDArray nextInput = Nd4j.zeros(1, characterIterator.inputColumns());\r\n nextInput.putScalar(new int[]{0, sampledCharacterIdx}, 1.0f); //Prepare next time step input\r\n System.out.println(\"First composed char = \" + result);\r\n net.rnnTimeStep(nextInput);\r\n return result;\r\n }", "public char charAt(int index);", "public static String rndLetterString() {\r\n int spLen = RBytes.rndInt(10, 20);\r\n char[] c = RBytes.rndCharArray('a', 'z');\r\n char[] C = RBytes.rndCharArray('A', 'Z');\r\n char[] d = RBytes.rndCharArray('0', '9');\r\n String special = \"\";\r\n for (int s = 0; s < spLen; s++) {\r\n special += \"!@#$%^&*()-_~`=+:;.,\";\r\n }\r\n String s1 = new String(c) + new String(d) + new String(C) + special;\r\n return shaffleString(s1);\r\n }", "@Override\n public String next() {\n Random random = new Random();\n return fruits[random.nextInt(3)];\n }", "public static char getChar() throws IOException {\n\t\nString s = getString();\nreturn s.charAt(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the first letter of the string, to help idiot proof it.\n\n}", "public abstract char read_char();", "public static char readChar()\n \n {\n char c='0';\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n c=wort.charAt(0);\n } catch(IOException e1) {\n System.out.println(\"Eingabefehler, bitte noch einmal!\");\n c=readChar();\n } catch(NumberFormatException e2) {\n if(wort.equals(\"\"))\n System.out.println(\"Bitte etwas eingeben, noch einmal:\");\n else {\n System.out.print(\"Fehler beim Format, \");\n System.out.println(\"bitte noch einmal!\");}\n c=readChar();\n }\n return c;\n }", "public String generateRandomString(){\n \n StringBuffer randStr = new StringBuffer();\n for(int i=0; i<RANDOM_STRING_LENGTH; i++){\n int number = getRandomNumber();\n char ch = CHAR_LIST.charAt(number);\n randStr.append(ch);\n }\n return randStr.toString();\n }", "public static char inputChar(String p) {\n String c;\n while (true) {\n System.out.print(p);\n c = in.nextLine();\n if (c.length() == 1) {\n return c.charAt(0);\n } else {\n System.err.print(\"Must enter character, enter again! \");\n }\n }\n }", "public char[] randomCompMoveSelection() {\n\t\treturn null;\n\t}", "public static String getRandomConsonant()\n\t{\n\t\tchar randLetter = (char) getRandomBetween(97,122);\n\t\twhile (isCharVowel(randLetter))\n\t\t{\n\t\t\trandLetter = (char) getRandomBetween(97,122);\n\t\t}\n\n\t\treturn Character.toString(randLetter);\n\t}", "public String getRandomCharecter(){\n\n\tif (!dataprepared){\n\t prepareData();\n\t}\n\t\n\tAssert.pre(table!=null,\"data must be prepared\");\n\n\treturn (String)table.get(r.nextInt(total));\n\n\t\n }", "Chromosome getRandom();", "public static char playerInput(String player) {\r\n\t System.out.println(\"Enter the input to begin the game: X | O: \");\r\n\t char inputChar = value.next().charAt(0);\r\n\r\n\t return inputChar;\r\n\t }", "public char getCharacter(boolean defender){\n if (defender){\n if (this.is_Empty()){\n return '~';\n }\n else if(this.is_shot()){\n return '*';\n }\n else{\n return 'B';\n }\n }\n else {\n if (!this.is_shot()){\n return '.';\n }\n else if (!this.is_Empty()){\n return '*';\n }\n else {\n return '~';\n }\n }\n }", "public static char leerCaracter() { \n\t\tchar letra = sc.nextLine().charAt(0); // Lee una cadena y obtiene el primer caracter\n\t\treturn letra;\n\t}", "public static char getUniqueChar() {\n return CHARS.charAt(getNextPosition());\n }", "public char getChar() {\n return this.s;\n }", "public static String randUpper(){\n int n = rand.nextInt(26)*2;\n return String.valueOf(KEYBOARD.charAt(n));\n }", "private void selectRandom() {\n\n\t\tRandom randomise;\n\n\t\t// Select random char from Spinner only if it is enabled\n\t\tif (solo.getCurrentSpinners().get(0).isEnabled()) {\n\t\t\trandomise = new Random();\n\t\t\trandomCharPos = randomise.nextInt(solo.getCurrentSpinners().get(1)\n\t\t\t\t\t.getCount());\n\n\t\t\tsolo.pressSpinnerItem(0, randomCharPos);\n\t\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\t\trandomChar = solo.getCurrentSpinners().get(0).getSelectedItem()\n\t\t\t\t\t.toString();\n\t\t}\n\n\t\t// Select random act from Spinner\n\t\trandomise = new Random();\n\t\trandomActPos = randomise.nextInt(solo.getCurrentSpinners().get(1)\n\t\t\t\t.getCount());\n\n\t\tsolo.pressSpinnerItem(1, randomActPos);\n\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\trandomAct = solo.getCurrentSpinners().get(1).getSelectedItem()\n\t\t\t\t.toString();\n\n\t\t// Select random page from Spinner\n\t\trandomise = new Random();\n\t\trandomPagePos = randomise.nextInt(solo.getCurrentSpinners().get(2)\n\t\t\t\t.getCount());\n\n\t\tsolo.pressSpinnerItem(2, randomPagePos);\n\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\trandomPage = solo.getCurrentSpinners().get(2).getSelectedItem()\n\t\t\t\t.toString();\n\t}", "private char readChar() \n {\n \n String uInput = null;//user input\n do//do while loop to wait for a charater\n {\n try//collect user input\n {\n uInput = br.readLine();\n }\n catch(IOException ioe)//catch IOE\n {\n System.out.println(\"IO error trying to read number. Exiting now\");\n System.exit(1);\n }\n if(uInput.charAt(0)=='?')//special case for ? symbol\n {\n return uInput.charAt(0);\n }\n if(!Character.isLetter(uInput.charAt(0)))//check for charater\n {\n System.out.println(\"Invalid input, use ? for a list of commands\");\n System.out.printf(\"=> \");\n }\n }\n while(!Character.isLetter(uInput.charAt(0)));\n\n return uInput.charAt(0);//return character input\n \n }", "public void generateComputerChoice() {\n\t\tgetRandomNumber();\n\t\tsetComputerChoice();\n\t}", "public static void QBack() {\n System.out.println(\"Do you have a favorite Quarterback? \");\n char qbQuestion= sc.next().charAt(0);\n }", "public static String randLower(){\n int n = rand.nextInt(26)*2 + 1;\n return String.valueOf(KEYBOARD.charAt(n));\n }", "public char crypt(char letter){\n\n char l = conns[alphabet.indexOf(letter)];\n\n return l;\n }", "public void firstCharacter() {\n\t\tString name = \"martin\";\n\t\tchar letter = name.charAt(5);\n\t\tSystem.out.println(letter);\n\t}", "public GameCharacter gameCharacterAt(int idx)\n\t{\n\t\tif (idx<0 || idx>=randomGameChars.length)\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t\n\t\treturn randomGameChars[idx];\n\t}", "public void selectTarget(ICharacter character) {\n }", "public char userChoice ()\n {\n\tString c = IBIO.inputString (\"Stag, Doe, Phoenix, Horse, or Wolf? \");\n\tboolean Check = isValid (c);\n\twhile (!isValid (c))\n\t{\n\t printSlow (\"Error, invalid input.\");\n\t c = IBIO.inputString (\"Stag, Doe, Phoenix, Horse, or Wolf? \");\n\t}\n\n\n\tif (c.equalsIgnoreCase (\"Stag\") || c.equalsIgnoreCase (\"s\"))\n\t return 's';\n\telse if (c.equalsIgnoreCase (\"Doe\") || c.equalsIgnoreCase (\"d\"))\n\t return 'd';\n\telse if (c.equalsIgnoreCase (\"Phoenix\") || c.equalsIgnoreCase (\"p\"))\n\t return 'p';\n\telse if (c.equalsIgnoreCase (\"Horse\") || c.equalsIgnoreCase (\"h\"))\n\t return 'h';\n\telse\n\t return 'w';\n\n }", "private char readChar() {\r\n\t\tInputStream in = System.in;\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\tString line = null;\r\n\r\n\t\ttry {\r\n\t\t\tline = br.readLine();\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn line.toLowerCase().charAt(0);\r\n\t}", "public String getRandomWord() {\r\n Random rand = new Random();\r\n return possibleWords[rand.nextInt(possibleWords.length)]; // Word from a random index\r\n }", "public char nextChar() throws Exception {\n currentPos++;\n return currentChar();\n }", "@Override\r\n\tpublic char charAt(int index) {\n\t\treturn chars[index];\r\n\t}", "public char Get() {\n\t\treturn myChar;\n\t}", "public static char playRound() {\n\n String playerChoice = playerChoice();\n System.out.println(\"You chose: \" + playerChoice);\n\n Random rand = new Random();\n int compRand = rand.nextInt(3);\n String compChoice = new String();\n\n switch (compRand) {\n case 0:\n compChoice = \"rock\";\n break;\n case 1:\n compChoice = \"paper\";\n break;\n case 2:\n compChoice = \"scissors\";\n break;\n }\n\n char result = 'l';\n String resAnoun = \"Player loses!\";\n\n System.out.println(\"Player choice: \" + playerChoice + \" VS Computer Choice: \" + compChoice);\n\n if (playerChoice.equals(compChoice)) {\n result = 't';\n resAnoun = \"Draw!\";\n } else if (playerChoice.equals(\"rock\")) {\n if (compChoice.equals(\"scissors\")) {\n result = 'w';\n resAnoun = \"Player wins!\";\n }\n } else if (playerChoice.equals(\"paper\")) {\n if (compChoice.equals(\"rock\")) {\n result = 'w';\n resAnoun = \"Player wins!\";\n }\n } else if (playerChoice.equals(\"scissors\")) {\n if (compChoice.equals(\"paper\")) {\n result = 'w';\n resAnoun = \"Player wins!\";\n }\n }\n System.out.println(resAnoun);\n\n return result;\n }", "public static char getKeyCharacter()\n {\n \n //Prompts and reads the key character in String\n final int MINIMUM_LENGTH = 0, MAXIMUM_LENGTH = 1;\n Scanner key = new Scanner(System.in);\n System.out.print(\"Please enter a single character to act as a key: \");\n String fh = key.nextLine();\n \n //Checks for key character length and loops for proper input\n while (fh.length() == MINIMUM_LENGTH|| fh.length() > MAXIMUM_LENGTH)\n {\t\n System.out.print(\"Please enter a single character to act as a key: \");\n fh = key.nextLine();\n }\n \n //Converts String to char\n char gKC = fh.charAt(0);\n return gKC;\n }", "@Override\r\n\tpublic char play(char lastPlayed) {\n\t\tString inputStr;\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Next character: \");\r\n\t\tinputStr = input.nextLine();\r\n\t\twhile (inputStr.length() > 1) {\r\n\t\t\tSystem.out.print(\"Next character: \");\r\n\t\t\tinputStr = input.nextLine();\r\n\t\t}\r\n\t\treturn inputStr.charAt(0);\r\n\t}", "private String pickWord() {\n \thangmanWords = new HangmanLexicon();\n \tint randomWord = rgen.nextInt(0, (hangmanWords.getWordCount() - 1)); \n \tString pickedWord = hangmanWords.getWord(randomWord);\n \treturn pickedWord;\n }", "public static String generateCoupon() {\n \t\t// choose a Character random from this String\n\t\tString availableCharacters = \"ABCDEFGHIJKLMNPQRSTUVWXYZ\" + \"123456789\";\n\t\t// create StringBuffer \n\t\tStringBuilder sb = new StringBuilder(5);\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\t// generate a random number\n\t\t\tdouble indexDouble = availableCharacters.length() * Math.random();\n\t\t\tint index = (int)Math.round(indexDouble);\n\t\t\tif(index > 0 && index < 33) {\n\t\t\t\tsb.append(availableCharacters.charAt(index));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString().substring(0,10);\t\t\n\t}", "private String generateRandomWord()\n {\t\n\tRandom randomNb = new Random(System.currentTimeMillis());\n\tchar [] word = new char[randomNb.nextInt(3)+5];\n\tfor(int i=0; i<word.length; i++)\n\t word[i] = letters[randomNb.nextInt(letters.length)];\n\treturn new String(word);\n }", "char getReadChar();", "public static void letterShuff() {\n ArrayList<Character> letter = new ArrayList<Character>();\n for (char i = 'a'; i <= 'z'; i++) {\n letter.add(i);\n }\n Collections.shuffle(letter);\n System.out.println(letter);\n System.out.println(letter.get(letter.size()-1));\n System.out.println(letter.get(0));\n if(letter.get(0) == 'a' || letter.get(0) == 'e' || letter.get(0) == 'i' || letter.get(0) == 'o' || letter.get(0) == 'u') {\n System.out.println(\"I'm a vowel!\");\n }\n }", "public Character pickOpponent()\n {\n int oppIndex = random.nextInt(characterList.size());\n opponent = characterList.get(oppIndex);\n return opponent;\n }", "public char readChar() {\n return readNextLine().charAt(0);\n }", "public static String randomQuote() {\n\t\tint i = (int) (Math.random() * quotes.length);\n\t\treturn quotes[i];\n\t}", "private final String getRandomString() {\n StringBuffer sbRan = new StringBuffer(11);\n String alphaNum = \"1234567890abcdefghijklmnopqrstuvwxyz\";\n int num;\n for (int i = 0; i < 11; i++) {\n num = (int) (Math.random() * (alphaNum.length() - 1));\n sbRan.append(alphaNum.charAt(num));\n }\n return sbRan.toString();\n }", "public static String randomString() {\n\t\tint leftLimit = 97; // letter 'a'\n\t\tint rightLimit = 122; // letter 'z'\n\t\tint targetStringLength = 10;\n\t\tRandom random = new Random();\n\n\t\treturn random.ints(leftLimit, rightLimit + 1).limit(targetStringLength)\n\t\t\t\t.collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString();\n\t}", "public char readChar(String message) {\r\n\t\tSystem.out.println(message);\r\n\t\treturn scanner.nextLine().charAt(0);\r\n\t}", "public static String randomeString() {\n\t\t\tString generatedString = RandomStringUtils.randomAlphabetic(8);\n\t\t\tSystem.out.println(generatedString);\n\t\t\treturn generatedString;\n\t\t\t\n\t\t}", "private String singleChar(RubiksColor color) {\n switch(color) {\n case RED:\n return \"R\";\n case GREEN:\n return \"G\";\n case BLUE:\n return \"B\";\n case YELLOW:\n return \"Y\";\n case ORANGE:\n return \"O\";\n case WHITE:\n return \"W\";\n }\n\n return \"R\";\n }", "public static char[] getWord() {\n\t\t\n\t\tString[] words = {\"cookie\", \"bacon\", \"steak\", \"apple\", \"doughnut\"};\n\t\tString choice = words[(int)(Math.random() * words.length)];\n\t\tchar[] word = new char[choice.length()];\n\n\t\tfor (int i = 0; i < word.length; i++) {\n\t\t\tword[i] = choice.charAt(i); // Convert Word into charArray\n\t\t}\n\t\treturn word;\n\t}", "public static String randAlnumSym(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(94);\n if (n>83){\n result = String.valueOf(n-84);\n }else {\n result = String.valueOf(KEYBOARD.charAt(rand.nextInt(84))); //both\n }\n break;\n case 1:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randLower();\n }\n break;\n case 2:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randUpper();\n }\n break;\n }\n return result;\n }", "public char nextChar() {\n this.inputStr = this.s.nextLine();\n\n if (!inputStr.isEmpty()) {\n for (int i = 0; i < inputStr.length(); i++) {\n if (inputStr.charAt(i) >= 'A' && inputStr.charAt(i) <= 'Z') {\n return inputStr.charAt(i);\n } else if (inputStr.charAt(i) >= 'a' && inputStr.charAt(i) <= 'z') {\n return inputStr.charAt(i);\n }\n }\n }\n return ' ';\n }", "public String next() {\n return words[rng.nextInt(words.length)];\n }", "public String repeatCharacters(String word) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n sb.append(c);\n if (random.nextFloat() <= 0.5) {\n for (int j = 0; j < random.nextInt(MAX_REPEAT_TIMES); j++) {\n sb.append(c);\n }\n }\n }\n return sb.toString();\n }", "public String getRandomText(int numChars)\n {\n if (myText == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n int randomIndex = myRandom.nextInt(myText.length() - myNum);\n String randomLetter = myText.substring(randomIndex, randomIndex + myNum);\n sb.append(randomLetter);\n for (int k = 0; k < numChars - myNum; k++) {\n ArrayList<String> letters = getFollows(randomLetter);\n if (letters.size() == 0)\n break;\n randomIndex = myRandom.nextInt(letters.size());\n String ourTab = letters.get(randomIndex);\n sb.append(ourTab);\n //updated the random letter by adding a new letter to it\n randomLetter = (sb.toString()).substring((sb.toString()).length()-myNum);\n }\n return sb.toString();\n }", "char getNextChar () {\n m_pos++; \n return getChar ();\n }", "public String chooseSuit()\t{\n\t\tString choose = \"\";\n\t\tSystem.out.println(\"Choose a suit: h) hearts, d) diamonds, s) spades, c) clubs\");\n\t\tchoose = input.nextLine();\n\t\tswitch(choose.toLowerCase())\t{\n\t\tcase \"h\":\n\t\t\tchoose = \"Hearts\";\n\t\t\tbreak;\n\t\tcase \"d\":\n\t\t\tchoose = \"Diamonds\";\n\t\t\tbreak;\n\t\tcase \"s\":\n\t\t\tchoose = \"Spades\";\n\t\t\tbreak;\n\t\tcase \"c\":\n\t\t\tchoose = \"Clubs\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Try again!\");\n\t\t\tchooseSuit();\n\t\t\tbreak;\n\t\t}\n\t\treturn choose;\n\t}", "public static String randomSelection() {\n int min = 1;\n int max = 3;\n String randomSelection;\n Random random = new Random(System.currentTimeMillis());\n int randomNumber = random.nextInt((max - min) +1) +min;\n if(randomNumber == 1) {\n randomSelection = \"rock\";\n } else if (randomNumber == 2) {\n randomSelection = \"paper\";\n } else {\n randomSelection = \"scissors\";\n }\n return randomSelection;\n }", "char getContactLetter();", "public char charAt(int charOffset);", "private String RandomGoal() {\n\t\tList<String> list = Arrays.asList(\"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"t\", \"t\");\n\t\tRandom rand = new Random();\n\t\tString randomgoal = list.get(rand.nextInt(list.size()));\n\n\t\treturn randomgoal;\n\t}", "public void cardGen(){\n\t\tRandom rand = new Random();\n\t\tint randValue = rand.nextInt(13);\n\t\tcardString = value[randValue] + suit[rand.nextInt(4)];\n\t}", "public void generateCharacters() {\n for(int i = 0; i < 3; i++) {\n this.characters.add(getRandomCharacter());\n }\n }", "private static void computerTurn()\n {\n int computerMove;\n while (true)\n {\n computerMove = (int) Math.floor(Math.random() * 10) % 9 + 1;\n if (board[computerMove] == ' ')\n {\n break;\n }\n\n }\n System.out.println(\"Computer choose:: \" + computerMove);\n board[computerMove] = computerLetter;\n }", "public char givenIndex(String str, int index)\r\n {\r\n char a= str.charAt(index);\r\n return a;\r\n }" ]
[ "0.78377914", "0.77679205", "0.76895314", "0.74665016", "0.74537456", "0.73420906", "0.7276139", "0.7226533", "0.72034925", "0.70572126", "0.6857658", "0.6767106", "0.66338277", "0.6508887", "0.63888854", "0.6379032", "0.63682574", "0.636733", "0.6332151", "0.6328974", "0.6273285", "0.626879", "0.6226421", "0.618613", "0.617273", "0.6163328", "0.6110172", "0.6104807", "0.6096568", "0.6091891", "0.6068341", "0.6033987", "0.60229224", "0.6020957", "0.59973675", "0.5982173", "0.5953372", "0.59455746", "0.59430754", "0.5941404", "0.5916807", "0.5903771", "0.5902905", "0.59024864", "0.59023136", "0.58910537", "0.58885556", "0.588809", "0.5840573", "0.58399206", "0.5823978", "0.58216536", "0.58134586", "0.58123994", "0.5810118", "0.5802066", "0.5798728", "0.57844716", "0.5782498", "0.57781816", "0.5771823", "0.5757115", "0.57539386", "0.5749276", "0.5744015", "0.57202196", "0.57095593", "0.5698083", "0.5664891", "0.5658025", "0.5648444", "0.56459284", "0.5643664", "0.5631406", "0.5630395", "0.56302947", "0.56202984", "0.56122506", "0.5610982", "0.5610647", "0.5602147", "0.5595639", "0.5589697", "0.55889875", "0.55634594", "0.556057", "0.5556212", "0.5555336", "0.55523473", "0.55506593", "0.55408806", "0.5525718", "0.55230904", "0.5521632", "0.5518682", "0.55141217", "0.551385", "0.55113345", "0.5505484", "0.5498584", "0.54916334" ]
0.0
-1
Get a URL to the uploaded content Uri downloadUrl = taskSnapshot.getUploadSessionUri();
@Override public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) { Ref.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() { @Override public void onSuccess(Uri uri) { figureURL = String.valueOf(uri); } }); Toast.makeText(Create_order.this, "Upload Image Berhasil", Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n // Do what you want\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n StorageReference downloadUrl = taskSnapshot.getStorage();\n downloadImage(downloadUrl);\n Log.e(\"downloadUrl\", \" \" + downloadUrl);\n\n\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getUploadSessionUri();\n\n //Toast.makeText(c, downloadUrl.toString(), Toast.LENGTH_LONG).show();\n onProgressOperation.onFinished(\"Upload complete!\", \"Video has been successfully uploaded\");\n\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n intf.afterUpload(downloadUrl.toString());\n //Toast.makeText(context, \"Success Upload to \"+downloadUrl.toString(),Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n userDB.child(\"profileUrl\").setValue(downloadUrl.toString());\n waitingDialog.dismiss();\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n Log.i(TAG, \"Fb profile pic successfully uploaded\");\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n final StorageReference ref = FirebaseStorage.getInstance().getReference().child(\"images\").child(imageName);\n uploadTask[0] = ref.putBytes(data);\n\n Task<Uri> urlTask = uploadTask[0].continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()) {\n throw task.getException();\n }\n\n // Continue with the task to get the download URL\n return ref.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()) {\n Uri downloadUri = task.getResult();\n Log.i(\"URL\", downloadUri.toString());\n\n Intent intent = new Intent(CreateSnapActivity.this, ChooseUserActivity.class);\n intent.putExtra(\"imageURL\", downloadUri.toString());\n intent.putExtra(\"imageName\", imageName);\n intent.putExtra(\"message\", messageEditText.getText().toString());\n startActivity(intent);\n\n } else {\n // Handle failures\n // ...\n }\n\n }\n });\n\n\n }", "public String getDownloadUrl() {\n return downloadUrl;\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n profileImageUrl = taskSnapshot.getDownloadUrl().toString();\n }", "public String getSourceDownloadUrl();", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n if (downloadUrl != null) {\n mStringArrayList.add(downloadUrl.toString());\n }\n startUploading();\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Task<Uri> uriTask= uploadTask.continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n\n if(!task.isSuccessful()){\n\n throw task.getException();\n\n }\n ImageUrl = filepath.getDownloadUrl().toString();\n return filepath.getDownloadUrl();\n\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if(task.isSuccessful()){\n\n ImageUrl = task.getResult().toString();\n //Toast.makeText(getApplicationContext(),\"Image saved to database\" ,Toast.LENGTH_SHORT).show();\n SaveProductInfo();\n }\n }\n });\n }", "@Override\r\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n photoUrl = taskSnapshot.getDownloadUrl();\r\n prosesUpdate();\r\n }", "public String getFileUploadUrl()\n\t\t{\n\t\t\treturn EU.getFileUploadUrl();\n\t\t}", "public String getFileUploadUrl()\n\t\t{\n\t\t\treturn EU.getFileUploadUrl();\n\t\t}", "public String getFileUploadUrl()\n\t\t{\n\t\t\treturn EU.getFileUploadUrl();\n\t\t}", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUri = taskSnapshot.getDownloadUrl();\n broadcastUploadFinished(downloadUri, uri);\n showUploadFinishedNotification(downloadUri, uri);\n taskCompleted();\n }", "@Cold\n @Override\n public Single<Uri> getDownloadUrl(String remoteDestinationPath) {\n return RxTask.toSingle(() -> createReference(remoteDestinationPath).getDownloadUrl())\n .doOnError(e -> Timber.e(\"StorageException handled and can be ignored\"));\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n mStorageRef.child(\"url\").getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n\n //Setting the url to database\n\n reference2.child(\"url\").setValue(uri.toString());\n reference2.child(\"name\").setValue(shared.getName());\n reference2.child(\"date\").setValue(date+\"+\"+formattedDate);\n Toast.makeText(UserHomeActivity.this, \"Shared Successfully\", Toast.LENGTH_SHORT).show();\n\n\n uploadUserImageView.setImageDrawable(getResources().getDrawable(R.drawable.uploadimage));\n\n }\n\n });\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n String myurl=taskSnapshot.getDownloadUrl().toString();\n\n String filepathuri=filePath.toString();\n\n String filename=filepathuri.substring(filepathuri.lastIndexOf(\"/\")+1);\n uploadreferance(myurl,filename);\n progressDialog.dismiss();\n\n //and displaying a success toast\n Toast.makeText(getApplicationContext(), \"File Uploaded \", Toast.LENGTH_LONG).show();\n Intent intent = new Intent(Upload_files.this,navigation_bar.class);\n startActivity(intent);\n }", "public String getLogCollectionUploadServerUrl();", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUri = taskSnapshot.getDownloadUrl();\n broadcastUploadFinished(downloadUri, data.getData());\n showUploadFinishedNotification(downloadUri, data.getData());\n taskCompleted();\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n if (downloadUrl != null) {\n mPlayer.image = downloadUrl.toString();\n savePlayerInfo();\n ToastUtils.show(R.string.toast_profile_saved, Toast.LENGTH_SHORT);\n } else {\n ToastUtils.show(R.string.toast_error_generic, Toast.LENGTH_SHORT);\n }\n showProgress(false);\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n mStorageRef.child(type).getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n\n //Setting the url to database\n\n reference2.child(type).setValue(uri.toString());\n\n Toast.makeText(UserHomeActivity.this, \"Shared Successfully\", Toast.LENGTH_SHORT).show();\n\n uploadUserImageView.setImageDrawable(getResources().getDrawable(R.drawable.uploadimage));\n\n }\n\n });\n }", "public String getPackageDownloadUrl();", "private String get_url() {\n File file = new File(url);\n return file.getAbsolutePath();\n }", "public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n @SuppressWarnings(\"VisibleForTests\")\n Uri downloadUrI = taskSnapshot.getDownloadUrl();\n FirebasePost firebasePost = new FirebasePost();\n firebasePost.imageUrl = downloadUrI.toString();\n myImage.child(\"home\").setValue(firebasePost);\n\n\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n taskSnapshot.getMetadata().getReference().getDownloadUrl().addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if(task.isSuccessful()){\n FirebaseStorage.getInstance().getReference().child(\"faculty_images\").child(imageIdentifier).getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n Useremail.photouri = uri;\n FirebaseFirestore.getInstance().collection(\"Faculty_Bag\").document(Useremail.email).update(\"photo_uri\",Useremail.photouri.toString()).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Showfancytoasr.show(MainActivity.this,\"Uploading process was successful\");\n progressDialog.dismiss();\n finish();\n startActivity(getIntent());\n }\n });\n }\n });\n }\n }\n });\n }", "private void uploadImageToFirebaseStorage() {\n StorageReference profileImageRef =\n FirebaseStorage.getInstance().getReference(\"profilepics/\" + System.currentTimeMillis() + \".jpg\");\n\n if (uriProfileImage != null) {\n profileImageRef.putFile(uriProfileImage)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n //This is not working because it is null\n profileImageUrl = taskSnapshot.getDownloadUrl().toString();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Profile.this, e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n mDatabaseUserReference.child(userID).child(\"name\").setValue(username);\n // Reference to the IMAGE of a particular user through userID\n // Can't pass imageUri\n // Get reference to the image stored in Firebase\n String downloadUrl = taskSnapshot.getDownloadUrl().toString();\n mDatabaseUserReference.child(userID).child(\"image\").setValue(downloadUrl);\n\n // Redirect user back to MainActivity\n Intent mainIntent = new Intent(\n SetupActivity.this, MainActivity.class\n );\n startActivity(mainIntent);\n }", "void onTaskComplete(MediaDownloadTask mediaDownloadTask);", "private static Uri getOutputMediaFileUri(){\n return Uri.fromFile(getOutputMediaFile());\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Task<Uri> uriTask = taskSnapshot.getStorage().getDownloadUrl();\n while (!uriTask.isSuccessful());\n Uri downLoadUrl = uriTask.getResult();\n\n Map userInfo = new HashMap();\n //write where to put values in database\n userInfo.put(\"profileImageUrl\",downLoadUrl.toString());\n mUserDb.updateChildren(userInfo);\n\n return;\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n filepath.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n // teh result uri of the image on WEB\n Uri downloadURIofImage = uri;\n\n // Pass the URI and ImageView to Picasso\n Picasso.get().load(downloadURIofImage).into(resultImageView);\n }\n });\n\n }", "private Uri getOutputMediaFileUri(){\n\t\treturn Uri.fromFile( getOutputMediaFile() );\n\t}", "String getURL(FsItem f);", "public String getContentURL();", "@Override\r\n @SuppressWarnings(\"VisibleForTests\")\r\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n listener.onUploadImageSuccess(taskSnapshot.getDownloadUrl().toString());\r\n\r\n }", "java.lang.String getArtifactUrl();", "@NonNull\n private File getDownloadLocation() {\n System.out.println(\"Hello. in download start\");\n File root = android.os.Environment.getExternalStorageDirectory();\n File file = new File(root.getAbsolutePath() + \"/V2A\");\n if (!file.exists()) {\n file.mkdirs();\n }\n System.out.println(file.toString());\n System.out.println(\"Hello. in download end\");\n //Toast.makeText(this, \"Starting Download\", Toast.LENGTH_SHORT).show();\n\n return file;\n\n }", "public String getS3UploadURL()\n\t{\n\t\treturn m_S3UploadURL;\n\t}", "public URL getAccountUrl() {\n try {\n return new URL(storageAsyncRawClient.azureBlobStorage.url());\n } catch (MalformedURLException e) {\n throw new RuntimeException(String.format(\"Invalid URL on %s: %s\" + getClass().getSimpleName(), storageAsyncRawClient.azureBlobStorage.url()), e);\n }\n }", "void mo54428b(DownloadTask downloadTask);", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n filePath.getDownloadUrl().addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n String downloadUrl = task.getResult().toString();\n product.setImage(downloadUrl);\n databaseReference.child(\"productos\").child(product.getId()).setValue(product);\n progressDialog.dismiss();\n Intent mainActivityView = new Intent(AddProduct.this, MainActivity.class);\n AddProduct.this.startActivity(mainActivityView);\n Toast.makeText(AddProduct.this, \"¡Producto guardado con éxito!\", Toast.LENGTH_LONG).show();\n }\n });\n }", "private void uploadFromUri(final Uri fileUri, final String videoname , final String link) {\n\n final StorageReference photoRef = mStorageRef.child(videoname\n + \".\" + getFileExtension(fileUri));\n\n uploadTask=photoRef.putFile(fileUri);\n\n uploadTask.addOnProgressListener(new OnProgressListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onProgress(UploadTask.TaskSnapshot taskSnapshot) {\n if (isCancelled)\n return;\n showProgressNotification(\"Uploading\",\n taskSnapshot.getBytesTransferred(),\n taskSnapshot.getTotalByteCount());\n }\n })\n .continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n // Forward any exceptions\n if (!task.isSuccessful()) {\n throw task.getException();\n }\n\n Log.d(TAG, \"uploadFromUri: upload success\");\n\n // Request the public download URL\n return photoRef.getDownloadUrl();\n }\n })\n .addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(@NonNull final Uri downloadUri) {\n // Upload succeeded\n Log.d(TAG, \"uploadFromUri: getDownloadUri success\");\n\n // [START_EXCLUDE]\n broadcastUploadFinished(downloadUri, fileUri);\n showUploadFinishedNotification(downloadUri, fileUri);\n taskCompleted();\n // [END_EXCLUDE]\n\n //[META_DATA TO DATABASE]\n\n\n StorageReference reference =FirebaseStorage.getInstance().getReference(\"videosThumnails\").child(videoname+\".jpg\");\n reference.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n\n Map<String,Object> videoMetaData= new HashMap<>();\n videoMetaData.put(\"videoName\",videoname);\n videoMetaData.put(\"thumbnail\",uri.toString());\n videoMetaData.put(\"videoUrl\",downloadUri.toString());\n videoMetaData.put(\"time\", FieldValue.serverTimestamp());\n\n mDatabaseRef.collection(\"VideoMetadata\").document(videoname)\n .set(videoMetaData);\n//\n }\n });\n\n\n\n Toast.makeText(getApplicationContext(), \"Upload Complete\", Toast.LENGTH_SHORT).show();\n\n }\n }).addOnCanceledListener(new OnCanceledListener() {\n @Override\n public void onCanceled() {\n\n dismissProgressNotification();\n stopSelf();\n }\n });\n\n }", "@Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n fotoReferencia.getDownloadUrl()\n .addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n Mensaje mensajeFoto = new Mensaje\n (nombreUsuario,\n \"Ha enviado una foto\",\n FirebaseAuth.getInstance().getCurrentUser()\n .getPhotoUrl().toString(),\n \"2\",\n DateFormat.getTimeInstance().format\n (Timestamp.now().toDate()),\n uri.toString(),\n idUsuario,\n idVeterinario);\n db.collection(\"chat\")\n .document(idChat)\n .collection(\"mensajes\")\n .add(mensajeFoto);\n }\n });\n }", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n riversRef.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n\n Model model = new Model(uri.toString());\n String modelID = myRef.push().getKey();\n myRef.child(modelID).setValue(model);\n userID = fAuth.getCurrentUser().getUid();\n DocumentReference documentReference = fStore.collection(\"users\").document(userID);\n\n\n Map<String, Object> fuser = new HashMap<>();\n fuser.put(\"FileUrl\", model);\n documentReference.set(fuser, SetOptions.merge());\n Toast.makeText(eeg4.this, \"Uploaded successfully\", Toast.LENGTH_SHORT).show();\n }\n });\n progressDialog.dismiss();\n\n //and displaying a success toast\n Toast.makeText(getApplicationContext(), \"File Uploaded \", Toast.LENGTH_LONG).show();\n }", "public void nextClicked(View view) {\n createSnapImageView.setDrawingCacheEnabled(true);\n createSnapImageView.buildDrawingCache();\n Bitmap bitmap = createSnapImageView.getDrawingCache();\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n final byte[] data = baos.toByteArray();\n\n final UploadTask[] uploadTask = {FirebaseStorage.getInstance().getReference().child(\"images\").child(imageName).putBytes(data)};\n uploadTask[0].addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n // Handle unsuccessful uploads\n Toast.makeText(CreateSnapActivity.this, \"Upload Failed\", Toast.LENGTH_SHORT).show();\n }\n }).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n // taskSnapshot.getMetadata() contains file metadata such as size, content-type, etc.\n\n // ...\n\n final StorageReference ref = FirebaseStorage.getInstance().getReference().child(\"images\").child(imageName);\n uploadTask[0] = ref.putBytes(data);\n\n Task<Uri> urlTask = uploadTask[0].continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()) {\n throw task.getException();\n }\n\n // Continue with the task to get the download URL\n return ref.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()) {\n Uri downloadUri = task.getResult();\n Log.i(\"URL\", downloadUri.toString());\n\n Intent intent = new Intent(CreateSnapActivity.this, ChooseUserActivity.class);\n intent.putExtra(\"imageURL\", downloadUri.toString());\n intent.putExtra(\"imageName\", imageName);\n intent.putExtra(\"message\", messageEditText.getText().toString());\n startActivity(intent);\n\n } else {\n // Handle failures\n // ...\n }\n\n }\n });\n\n\n }\n\n });\n\n }", "@Override\n public void onProgress(UploadTask.TaskSnapshot taskSnapshot) {\n }", "public String getTargetUrl() {\n return targetUrl;\n }", "@Override\n public void onProgress(UploadTask.TaskSnapshot taskSnapshot) {\n }", "@Override\n public void onComplete(@NonNull Task<Uri> task) {\n if(task.isSuccessful()) {\n Uri downloadUri = task.getResult();\n String mUri = downloadUri.toString();\n //Log.d(\"uri\", mUri);\n\n //get firebase reference, update map w/ profilePic, and update map in reference\n reference = FirebaseDatabase.getInstance().getReference(\"USERS\").child(firebaseUser.getUid());\n HashMap<String, Object> map = new HashMap<>();\n map.put(\"ProfilePic\", mUri);\n reference.updateChildren(map);\n\n pd.dismiss();\n }\n //if task not successful --> show toast\n else {\n Toast.makeText(getApplicationContext(), \"Upload failed!\", Toast.LENGTH_SHORT).show();\n pd.dismiss();\n }\n }", "void mo54418a(DownloadTask downloadTask);", "private void configStorage(){\n try {\n final StorageReference storageReference = FirebaseStorage.getInstance()\n .getReference(\"motolost/\"+ String.valueOf(Math.random()) + getFileExtension(filePath));\n storageReference.putFile(filePath)\n .continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()) {\n throw task.getException();\n }\n return storageReference.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()) {\n Uri downloadUri = task.getResult();\n saveRegistry(downloadUri.toString());\n }\n }\n });\n } catch (Exception ex) {\n Constant.showMessage(\"Exception\", ex.getMessage(), this);\n }\n }", "public String getBaseMediaUrl() {\n return (String) get(\"base_media_url\");\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n\n }", "private void uploadToCloud()\n {\n final String TAG = \"uploadToCloud.uploadTask\";\n try\n {\n final File f = new File(currentPhotoPath);\n final Uri uri = Uri.fromFile(f);\n metaData = new StorageMetadata.Builder().setContentType(\"image/jpg\").build();\n final StorageReference ref = mStorageRef.child(mAuth.getCurrentUser().getUid() + \"/Pictures/\" + uri.getLastPathSegment());\n uploadTask = ref.putFile(uri, metaData);\n\n uploadTask.addOnProgressListener(new OnProgressListener<UploadTask.TaskSnapshot>()\n {\n @Override\n public void onProgress(UploadTask.TaskSnapshot taskSnapshot)\n {\n progressBar.setVisibility(View.VISIBLE);\n progressBar.setProgress(Math.toIntExact\n ((taskSnapshot.getBytesTransferred() / taskSnapshot.getTotalByteCount()) * 100));\n Toast.makeText(getActivity(), \"Upload in Progress\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener()\n {\n @Override\n public void onFailure(@NonNull Exception exception)\n {\n progressBar.setVisibility(View.GONE);\n Log.w(TAG, \"uploadToCloud.uploadTask:failure\", exception);\n Toast.makeText(getActivity(), \"Unable to Upload: \"\n + exception.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>()\n {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot)\n {\n Task<Uri> urlTask = uploadTask.continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>()\n {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception\n {\n if (!task.isSuccessful())\n {\n throw task.getException();\n }\n return ref.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>()\n {\n @Override\n public void onComplete(@NonNull Task<Uri> task)\n {\n if (task.isSuccessful())\n {\n Uri downloadUri = task.getResult();\n Image image = new Image(downloadUri.toString());\n mDataRef.child(\"user/\" + mAuth.getCurrentUser().getUid() + \"/imageDownload/\"\n + FilenameUtils.getBaseName(uri.getLastPathSegment())).setValue(image); }\n else\n {\n Log.d(TAG, \"uploadToCloud.uploadTask.continueWithTask:failure\");\n }\n\n progressBar.setVisibility(View.GONE);\n Log.d(TAG, \"uploadToCloud.uploadTask:success\");\n Toast.makeText(getActivity(), \"Upload Complete\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n });\n }\n catch (Exception e)\n {\n Log.d(TAG, \"uploadToCloud.imageCapture:null\");\n Toast.makeText(getActivity(), \"Unable to Upload: Please Load Local Image\", Toast.LENGTH_SHORT).show();\n }\n }", "public void uploadFileButton(Uri pdfUri) {\n title = titleUpdate.getText().toString();\n content = contentUpdate.getText().toString();\n time = timeUpdate.getText().toString();\n place = placeUpdate.getText().toString();\n organize = organizeUpdate.getText().toString();\n\n fileReference = firebaseStorage.getReference().child(firebaseAuth.getUid()).child(\"FileAdmin\").child(titlestarred).child(\"file\");\n\n if(pdfUri == null){\n imageURL=imageNameUpdate.getText().toString();\n fileURL = fileNameUpdate.getText().toString();\n event = new Event(content, fileURL, imageURL, organize, place, time, title);\n eventPathDatabaseReference.setValue(event);\n uploadImageButton(imageUri);\n\n }else if(pdfUri != null) {\n uploadTaskFile = fileReference.putFile(pdfUri);\n Task<Uri> urlTask = uploadTaskFile.continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()) {\n throw task.getException();\n }\n // Continue with the task to get the download URL\n return fileReference.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()) {\n fileURL = task.getResult().toString();\n event = new Event(content, fileURL, imageURL, organize, place, time, title);\n eventPathDatabaseReference.setValue(event);\n }\n else {\n // Handle failures\n // ...\n }\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getContext(), \"File not Succesfully upload\", Toast.LENGTH_SHORT).show();\n }\n });\n uploadImageButton(imageUri);\n }\n\n }", "public String getUrl() {\n Deque<String> urlDeque = (Deque<String>) httpSession.getAttribute( SessionVariable.SESSION_URL_SCOPE );\n return urlDeque.pollFirst();\n }", "public String getScreenshotUrl() {\n return screenshotUrl;\n }", "public String getScreenshotUrl() {\n return screenshotUrl;\n }", "public String getSecureBaseMediaUrl() {\n return (String) get(\"secure_base_media_url\");\n }", "public NameValue<String, String> getDestURL() {\n return getDestURL(false);\n }", "@Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n progressBar.setVisibility(View.GONE);\n Toast.makeText(getContext(), \"Your file is saved in \" + localFile.toString(), Toast.LENGTH_LONG).show();\n }", "public String getUrlForSharing() {\n PostData pd = getAdapter().getPost(mPager.getCurrentItem());\n return pd.getUrl();\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n Intent intent = new Intent(AppoinmentDetails.this, Payments.class);\n Bundle b = new Bundle();\n b.putString(\"total\",Totalfee);\n b.putString(\"timeperpatient\",timeperpatient);\n b.putString(\"number\",number );\n b.putString(\"consulID\",consulID);\n b.putString(\"Bill\",downloadUrl.toString());\n\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.PNG,100, baos);\n byte [] arr=baos.toByteArray();\n String result= Base64.encodeToString(arr, Base64.DEFAULT);\n\n b.putString(\"bitmap\",result);\n intent.putExtras(b);\n progressBar.setVisibility(View.GONE);\n startActivity(intent);\n finish();\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n progressDialog.setMessage(\"Please wait\");\n progressDialog.dismiss();\n Task<Uri> downloadUrl = taskSnapshot.getStorage().getDownloadUrl();\n image = downloadUrl.toString();\n //Toast.makeText(StudententryActivity.this, \"image path\"+image, Toast.LENGTH_SHORT).show();\n Log.e(\"path\",\"path\"+downloadUrl);\n // Picasso.get().load(downloadUrl).into(imageview);\n Glide.with(context).load(downloadUrl).placeholder(R.mipmap.ic_launcher).into(imageview);\n //imageview.setBackground();\n Toast.makeText(StudententryActivity.this, \"Student Image Set Success\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\r\n public String getURL() {\n return url;\r\n }", "protected void onPostExecute(String file_url) {\n }", "protected void onPostExecute(String file_url) {\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n\n if (downloadUrl != null) {\n // article = new Article(newref.getKey(), date.getTime(), title.getText().toString(), input.getText().toString(), MyData.getMyUser().id, MyData.getMyUser().name, downloadUrl.toString());\n if (dialog != null && dialog.isShowing())\n dialog.dismiss();\n\n upload(downloadUrl.toString());\n\n\n\n\n final String s = name;\n if (s.trim().length() != 0) {\n\n if(MainActivity.rootLayout!=null)\n Snackbar.make(MainActivity.rootLayout, \"Successfully created page \" + s, Snackbar.LENGTH_LONG)\n .setAction(\"Show\", new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n\n Intent intent = new Intent(AddPage.this, PageOpenActivity.class);\n intent.putExtra(\"id\", s);\n startActivity(intent);\n\n }\n }).show();\n\n\n\n if(PageActivity.rootlayout!=null)\n Snackbar.make(PageActivity.rootlayout, \"Successfully created page \" + s, Snackbar.LENGTH_LONG)\n .setAction(\"Show\", new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n\n Intent intent = new Intent(AddPage.this, PageOpenActivity.class);\n intent.putExtra(\"id\", s);\n startActivity(intent);\n\n }\n }).show();\n\n\n\n\n\n }\n\n // FirebaseAuth.getInstance().signOut();\n// finish()\n\n finish();\n }\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot)\n {\n }", "public String getURL() {\r\n return url;\r\n }", "public String getUploadId() {\n return uploadId;\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n //Etiqueta para evitar que el IDE se queje de que el metodo getDownloadUrl\n //solo deberia ser visible por tests o en un ambito private\n @SuppressWarnings(\"VisibleForTests\")\n //Obtiene del TaskSnapShot la URI de la imagen\n Uri uri = taskSnapshot.getDownloadUrl();\n //Establece la URL de la imagen de usuario en el objeto Usuario con la nueva URL\n usuario.setImagenUrl(uri.toString());\n\n //Obtiene una referencia a la base de datos\n DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference();\n //Almacena en la base de datos el objeto Usuario actualizado\n databaseReference.child(\"usuarios\").child(usuario.getId()).setValue(usuario);\n\n //Carga la nueva imagen en el ImageView\n Glide.with(getApplicationContext())\n .load(uri)\n .apply(new RequestOptions().placeholder(R.drawable.iconouser).centerCrop())\n .into(ivFotoPerfil);\n }", "public String getDownloadLink() {\r\n\t\tString site = MySoup.getSite();\r\n\t\tString authKey = MySoup.getAuthKey();\r\n\t\tString passKey = MySoup.getPassKey();\r\n\t\tString downloadLink = site + \"torrents.php?action=download&id=\" + id + \"&authkey=\" + authKey + \"&torrent_pass=\" + passKey;\r\n\t\treturn downloadLink;\r\n\t}", "public String getURL() {\n return url;\n }", "@Override\r\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n }", "URI getMediaURI();", "@Override\n public void onClick(View view) {\n StorageReference myfileRef = storageRef.child(email).child(\"ProfPic.jpg\");\n //StorageReference myfileRef = storageRef.child(\"ProfPic.jpg\");\n viewImage.setDrawingCacheEnabled(true);\n viewImage.buildDrawingCache();\n Bitmap bitmap = viewImage.getDrawingCache();\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] data = baos.toByteArray();\n\n UploadTask uploadTask = myfileRef.putBytes(data);\n uploadTask.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(ProfilePicture.this, \"TASK FAILED\", Toast.LENGTH_SHORT).show();\n }\n }).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(ProfilePicture.this, \"Upload Successful!\", Toast.LENGTH_SHORT).show();\n //progressBar.setVisibility(View.GONE);\n\n Uri downloadUrl =taskSnapshot.getDownloadUrl();\n String DOWNLOAD_URL = downloadUrl.getPath();\n Log.v(\"Download URL\", DOWNLOAD_URL);\n Toast.makeText(ProfilePicture.this, DOWNLOAD_URL, Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder()\n .setPhotoUri(downloadUrl)\n .build();\n\n user.updateProfile(profileUpdates)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Log.d(TAG, \"User profile updated.\");\n }\n }\n });\n String profileUri = (downloadUrl != null) ? downloadUrl.toString() : \"\";\n DatabaseContants.getCurrentUserRef().child(UserModel.URI_KEY).setValue(profileUri);\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n String downloadUrl = taskSnapshot.getDownloadUrl().toString();\n String name = \"\";\n try {\n //for space with name\n name = java.net.URLEncoder.encode(etName.getText().toString(), \"UTF-8\");\n downloadUrl = java.net.URLEncoder.encode(downloadUrl, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n\n }\n //register στη εφαρμογή καλώντας το register.php\n String url = \"http://83.212.99.161:8083/twitterserver/register.php?first_name=\" + name + \"&email=\" + etEmail.getText().toString() + \"&password=\" + etPassword.getText().toString() + \"&picture_path=\" + downloadUrl;\n // gia okeanos: 83.212.102.247:8083 δεύτερος server\n // gia topika: 10.0.2.2:8083\n new MyAsyncTaskgetNews().execute(url);\n hideProgressDialog();\n\n }", "protected abstract String getJobSubmitUrl(CloseableHttpClient httpClient,\n File bundle) throws IOException, UnsupportedEncodingException;", "public String getURL() { return url; }", "private void showUploadFinishedNotification(@Nullable Uri downloadUrl, @Nullable Uri fileUri) {\n dismissProgressNotification();\n\n // Make Intent to UploadActivity\n Intent intent = new Intent(this, Upload_Video_activity.class)\n .putExtra(EXTRA_DOWNLOAD_URL, downloadUrl)\n .putExtra(EXTRA_FILE_URI, fileUri)\n .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n boolean success = downloadUrl == null;\n String caption=\"\" ;\n if (success==true)\n {\n caption=\"Upload fail\";\n }\n else if (success==false)\n {\n caption=\"Upload Complete\";\n }\n\n showFinishedNotification(caption, intent);\n }", "public static String getDownloadDirectory() {\n return downloadDirectory;\n }", "private void uploadPhoto() {\n\n final ProgressDialog pd = new ProgressDialog(this);\n pd.setTitle(\"Uploading Image...\");;\n pd.show();\n\n final String randomKey = UUID.randomUUID().toString();\n StorageReference storageRef = storageReference.child(\"images/\" + randomKey);\n\n storageRef.putFile(imageUri)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n final Task<Uri> firebaseUri = taskSnapshot.getStorage().getDownloadUrl();\n firebaseUri.addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n photoURL = uri.toString();\n }\n });\n\n pd.dismiss();\n Snackbar.make(findViewById(android.R.id.content), \"Image Uploaded.\", Snackbar.LENGTH_LONG).show();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n pd.dismiss();\n Toast.makeText(getApplicationContext(), \"Failed To Upload\", Toast.LENGTH_LONG).show();\n }\n })\n .addOnProgressListener(new OnProgressListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onProgress(@NonNull UploadTask.TaskSnapshot snapshot) {\n double progressPercent = (100.00 * snapshot.getBytesTransferred() / snapshot.getTotalByteCount());\n pd.setMessage(\"Percentage: \" + (int) progressPercent + \"%\");\n }\n });\n }", "public String getDownloadRequestUrl()\r\n {\r\n String requestUrl;\r\n if ( downloadURI != null )\r\n {\r\n try\r\n {\r\n // dont use whole uri.. only file and query part..!?\r\n requestUrl = URLUtil.getPathQueryFromUri( downloadURI );\r\n return requestUrl;\r\n }\r\n catch (URIException e)\r\n {// failed to use uri.. try other request urls..\r\n NLogger.warn( NLoggerNames.Download_Candidate, e, e );\r\n }\r\n }\r\n \r\n if ( resourceURN != null )\r\n {\r\n requestUrl = URLUtil.buildName2ResourceURL( resourceURN );\r\n }\r\n else\r\n {\r\n // build standard old style gnutella request.\r\n String fileIndexStr = String.valueOf( fileIndex );\r\n StringBuffer urlBuffer = new StringBuffer( 6 + fileIndexStr.length()\r\n + fileName.length() );\r\n urlBuffer.append( \"/get/\" );\r\n urlBuffer.append( fileIndexStr );\r\n urlBuffer.append( '/' ); \r\n urlBuffer.append( URLCodecUtils.encodeURL( fileName ) );\r\n requestUrl = urlBuffer.toString();\r\n }\r\n return requestUrl;\r\n }", "public void uploadImageButton(Uri imageUri) {\n title = titleUpdate.getText().toString();\n content = contentUpdate.getText().toString();\n time = timeUpdate.getText().toString();\n place = placeUpdate.getText().toString();\n organize = organizeUpdate.getText().toString();\n\n\n imageReference = firebaseStorage.getReference().child(firebaseAuth.getUid()).child(\"AdminImage\").child(titlestarred).child(\"image\");\n\n if(imageUri == null) {\n imageURL=imageNameUpdate.getText().toString();\n //Log.d(\"kimmy\", imageURL);\n event = new Event(content, fileURL, imageURL, organize, place, time, title);\n eventPathDatabaseReference.setValue(event);\n //uploadFileButton(pdfUri);\n\n }else if(imageUri != null){\n uploadTaskImage = imageReference.putFile(imageUri);\n Task<Uri> urlTask = uploadTaskImage.continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()) {\n throw task.getException();\n }\n // Continue with the task to get the download URL\n return imageReference.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()) {\n imageURL = task.getResult().toString();\n event = new Event(content, fileURL, imageURL, organize, place, time, title);\n eventPathDatabaseReference.setValue(event);\n }\n else {\n // Handle failures\n // ...\n }\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getContext(), \"File not Succesfully upload\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(MainActivity.this, \"Uploaded\", Toast.LENGTH_SHORT).show();\n }", "Uri getRecordingUri(Uri channelUri);", "com.google.protobuf.ByteString\n getArtifactUrlBytes();", "public String getPassportCopyUpload() {\n\t\treturn passportCopyUpload;\n\t}", "public String getFileUploadPath() {\n\t\treturn fileUploadPath;\n\t}", "URL toURL(FileReference fileReferece);", "public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}" ]
[ "0.7402031", "0.7123599", "0.69701576", "0.67064023", "0.66139823", "0.65472054", "0.65127224", "0.63213", "0.6313714", "0.62487316", "0.62138224", "0.6194445", "0.6055079", "0.6016777", "0.59971476", "0.59971476", "0.59971476", "0.58298165", "0.5801345", "0.57575583", "0.57574", "0.5733771", "0.5706556", "0.5670118", "0.5668951", "0.561679", "0.56082535", "0.5586116", "0.55315536", "0.55251485", "0.5498363", "0.54811585", "0.54684377", "0.54318607", "0.54288095", "0.54180163", "0.5406893", "0.5406693", "0.53612965", "0.53533876", "0.53402853", "0.53322905", "0.52933174", "0.5285062", "0.5271434", "0.5257267", "0.52459997", "0.5244915", "0.52328974", "0.5204959", "0.5194759", "0.5192477", "0.51920533", "0.5166236", "0.51624095", "0.5161101", "0.5159987", "0.5144487", "0.51412547", "0.5136537", "0.51282567", "0.5104087", "0.5101667", "0.5101667", "0.5101157", "0.5095761", "0.5079131", "0.50783515", "0.50695705", "0.5056268", "0.5049194", "0.5042971", "0.50425005", "0.50425005", "0.5034725", "0.5033347", "0.502332", "0.50076884", "0.499861", "0.4995234", "0.4990119", "0.49776688", "0.49758342", "0.49752617", "0.49731815", "0.4971938", "0.49699694", "0.49686983", "0.4967483", "0.49610445", "0.49554127", "0.4954167", "0.49449182", "0.49426603", "0.49383292", "0.49377894", "0.4934046", "0.49340338", "0.49320292", "0.49279124" ]
0.6388292
7
Handle unsuccessful uploads ...
@Override public void onFailure(@NonNull Exception exception) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void uploadFailed() {\n }", "public void onFailure(Throwable caught) {\n\t\t\tGWT.log(\"Error uploading file\", caught);\t\n\t\t}", "void uploadFailed(long bytes);", "@Override\r\n\t\t\t\tpublic void onFail(String desc) {\n\t\t\t\t Log.e(\"upload\",desc);\t\r\n\t\t\t\t}", "void uploadFailed(StreamingErrorEvent event);", "@Override\n public void onError(int statuscode, String errormsg) {\n Log.i(\"bmob\", \"文件上传失败:\" + errormsg);\n Toast.makeText(context, \"头像上传失败\" + errormsg, Toast.LENGTH_SHORT).show();\n uploadListener.onError(statuscode,errormsg);\n }", "@Override\n public void onError(int statuscode, String errormsg) {\n Log.i(\"bmob\", \"文件上传失败:\" + errormsg);\n Toast.makeText(context, \"头像上传失败\" + errormsg, Toast.LENGTH_SHORT).show();\n uploadListener.onError(statuscode,errormsg);\n }", "@Override\n public void onFailure(int code, String msg) {\n Log.i(\"Allen\", \"上传文件失败:\" + msg + \" ImgURL=\" + ImgURL);\n mDialog.dismiss();\n ToastUtils.toastFail(RegisterActivity.this, \"上传文件失败\" + msg);\n\n }", "public handleFileUpload() {\r\n\t\tsuper();\r\n\t}", "@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\tWindow.alert(\"FAILED TO UPLOAD\");\n\t\t\t\t}", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n Helpers.MostrarError(getActivity(), getString(R.string.failuploadphoto));\n }", "@Override\n public void uploadSucceeded(Upload.SucceededEvent event) {\n if ( fileDataByteArrayOutputStream != null ) {\n try {\n fileDataByteArrayOutputStream.flush();\n fileData = fileDataByteArrayOutputStream.toByteArray();\n fileDataByteArrayOutputStream.close(); // presume the upload actually closes this\n } catch (Exception e) {}\n finally {\n fileDataByteArrayOutputStream = null;\n }\n }\n if ( isNotAllowedMimeType ) { // small files can be fully uploaded before we detect an invalid mime type\n System.out.println(\"uploadSucceeded() - INVALID MIME TYPE detected after successful upload: \" + mimeType);\n //afterUploadFailed(fileName,isCanceled,isNotAllowedMimeType,false,contentLength,maxSizeInBytes);\n resetUpload();\n }\n }", "private void onFailImageTransfer()\n {\n Log.d(TAG, \"onFailImageTransfer: finished.\");\n this.fragmentActivity.runOnUiThread(() -> Toast.makeText(this.fragmentActivity,\n \"Image transfer failed\", Toast.LENGTH_SHORT).show());\n\n switchToPickLayout();\n }", "@RequestMapping(\"/uploadError\")\n public ModelAndView handleUploadError(Locale locale){\n ModelAndView modelAndView = new ModelAndView(\"/profile\");\n modelAndView.addObject(\"error\",messageSource.getMessage(\"image.file.too.big\",null,locale));\n return modelAndView;\n }", "void uploadSuccessful(long bytes);", "void fileTransferFailed(IMSession session, String requestId, ReasonInfo reason);", "@Override\n\t\t\tpublic void uploadError(String path, String key, String errorMessage) {\n\t\t\t\tsynchronized (this) {\n int row = fileKeys.indexOf(key);\n resultTable.setValueAt(\"error\", row, 2);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onWriteFailed(byte fileType, byte errCode) {\n }", "void handleError(\n HttpMethod method,\n TusServletRequest servletRequest,\n TusServletResponse servletResponse,\n UploadStorageService uploadStorageService,\n String ownerKey)\n throws IOException, TusException;", "@Override\n protected String doInBackground(Void... params) {\n try {\n return uploadFile();\n } catch (Exception e) {\n mLastError = e;\n cancel(true);\n return null;\n }\n }", "@Override\n public void onStreamError(Throwable throwable)\n {\n if (throwable instanceof MultiPartIllegalFormatException)\n {\n //If its an illegally formed request, then we send back 400.\n _streamResponseCallback.onError(Messages.toStreamException(RestException.forError(400, \"Illegally formed multipart payload\")));\n return;\n }\n //Otherwise this is an internal server error. R2 will convert this to a 500 for us. As mentioned this should never happen.\n _streamResponseCallback.onError(throwable);\n }", "@Override\n public void onErrorResponse(VolleyError volleyError) {\n loading.dismiss();\n\n //Showing toast\n Toast.makeText(imageUpload.this, \"Silakan cek koneksi anda\", Toast.LENGTH_LONG).show();\n }", "public void upload_alter(){\n\t\tLibMeasure lm=new LibMeasure();\r\n\t\tIntByReference count=new IntByReference();\r\n\t\tint ret=lm.TM_getErrorList(errorfile, count);\r\n\t\tswitch(ret){\r\n\t\tcase 0:\r\n\t\t\tSystem.out.println(\"sucess to get errorlist!\");\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"internal error of libmeasure!\");\r\n\t\t\tbreak;\r\n\t\tcase 101:\r\n\t\t\tSystem.out.println(\"error of calling libmeasure!\");\r\n\t\t\tbreak;\r\n\t\tdefault: \r\n\t\t\tSystem.out.println(\"未知错误\"+ret);\r\n\t\t}\r\n\t\tif(ret==0)\r\n\t\t{\r\n\t\t\tFile efile=new File(errorfile);\r\n\t\t\tpost_len=efile.length();\r\n\t\t\tif(post_len>pre_len)\r\n\t\t\t{\r\n\t\t\t\tif(send()==0) //报警日志bug\r\n\t\t\t\t\tpre_len=post_len;\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"error of uploading alert!\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif(post_len<pre_len)\r\n\t\t\t\t\tpre_len=0;\r\n\t\t}\r\n\t\t//loadData();\r\n\t\t\r\n\t}", "void onPhotoError();", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] bytes, Throwable throwable) {\n mProgress.setVisibility(View.INVISIBLE);\n mStatus.setText(R.string.failure);\n mPhotoFile.delete();\n }", "private void notifyUploadFail() {\n numberOfFail++;\n notificationBuilder.setContentText(getNotificationContent());\n notificationManger.notify(0, notificationBuilder.build());\n }", "void fileSendFailed(IMSession session, String requestId, String fileId, ReasonInfo reason);", "public void run() {\n\t\t\t\t\tMessage msg;\n\t\t\t\t\tVector<File> files = new Vector<File>();\n\t\t\t\t\tfiles.add(new File(fileName));\n\t\t\t\t\tString result = upload(url, formParameters, files);\n\t\t\t\t\tif (StringUtils.isEmpty(result)) {\n\t\t\t\t\t\tmsg = handler.obtainMessage(Constant.UPLOAD_FAIL_CODE, Constant.UPLOAD_EXCEPTION);\n\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLog.i(TAG, result);\n\t\t\t\t\t\tmsg = handler.obtainMessage(messageWhat, result);\n\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t}\n\n\t\t\t\t}", "private boolean uploadErrorEventCallback(File file, int errorCode, String message, String serverData) {\n if (file.getStatus() == File.Status.CANCELLED) {\n return true;\n }\n\n // Keep the global stats up to date\n nativeSetProperty(getStats(), UPLOAD_ERRORS, getStats().getUploadErrors() + 1);\n\n boolean response;\n try {\n response = this.uploadErrorHandler == null\n || this.uploadErrorHandler\n .onUploadError(new UploadErrorEvent(file, errorCode, message, serverData));\n } finally {\n // We're running in Ajax/DOM mode so we need to explicitly invoke the complete handler after each file upload error.\n try {\n uploadCompleteEventCallback(file);\n } finally {\n // Similarly, we need to handle the requeue error logic manually\n if (this.requeueOnError && errorCode != File.Status.CANCELLED.toInt()) {\n addFileToQueue(file);\n }\n }\n }\n\n return response;\n }", "private Result uploadFile(StoryModel storyModel) {\n if (isStopped())\n return Result.failure();\n\n\n String storyId = storyModel.get_id();\n if (storyModel.getType() != null && storyModel.getType().equals(\"image\")) {\n\n sendStartStatus(\"image\", storyModel.get_id());\n\n NotificationsManager.getInstance().showUpDownNotification(getApplicationContext(),\n storyModel.get_id(),\n storyModel.getUserId());\n if (uploadImageFile(storyModel.getFile())) {\n return Result.success();\n } else {\n if (compositeDisposable.isDisposed()) {\n sendErrorStatus(\"image\", storyId);\n }\n return Result.retry();\n }\n } else if (storyModel.getType() != null && storyModel.getType().equals(\"video\")) {\n\n sendStartStatus(\"video\", storyModel.get_id());\n\n NotificationsManager.getInstance().showUpDownNotification(getApplicationContext(),\n storyModel.get_id(),\n storyModel.getUserId());\n if (uploadVideoFile(storyModel.getFile())) {\n return Result.success();\n } else {\n if (compositeDisposable.isDisposed()) {\n sendErrorStatus(\"video\", storyId);\n }\n return Result.retry();\n }\n } else {\n return Result.failure();\n }\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n progressDialog.dismiss();\n Toast.makeText(UserProfile.this, \"Error updating Image..\", Toast.LENGTH_SHORT).show();\n\n }", "void fileUploaded(String path);", "public void errorFileEscenario() {\n\t\tvisorEscenario.errorFileEscenario();\t\n\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n Toast.makeText(context, \"Image process failed\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError volleyError) {\n loading.dismiss();\n //Showing toast\n //Toast.makeText(getActivity(), volleyError.getMessage().toString(), Toast.LENGTH_LONG).show();\n Toast.makeText(AdQuestionActivity.this, \"Upload Error! \"+volleyError.getMessage().toString(), Toast.LENGTH_LONG).show();\n }", "private void onPhotoError() {\n ToastModifications.createToast(this, getString(R.string.error_saving_photo), Toast.LENGTH_LONG);\n }", "@Override\n public void handleUpload(UploadResponse response) {\n inProgress.remove(response.getLocation());\n //If the upload was a failure then add the location to the list of loose ends\n if(!response.success())\n looseEnds.add(response.getLocation());\n\n Log.i(this.getClass().toString(), String.format(\"Loose ends: %d In progress: %d\", looseEnds.size(), inProgress.size()));\n }", "private void uploadFileFinished(SucceededEvent event) {\n try {\n // String fileName = event.getFilename();\n // File f = getFile(fileName);\n // f.setReadOnly(READONLY_REPLICATION_MODE);\n } catch (Exception e) {\n Logging.logMessage(Logging.LEVEL_WARN, this,\"%s, %s, %s\", \"Readonly Exception\", \"Can't set file \" + event.getFilename() + \" to ReadOnly.\", e);\n }\n\n // Update der Liste durchführen\n loadXtreemFSData();\n }", "@SuppressWarnings(\"RedundantThrows\")\n @Test\n public void upload() throws IOException {\n }", "@Override\n @RequestMapping(\"upload.feep\")\n public void upload(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@Override\n public void onTransferIOError(TransferDiskIOErrorAlert alert) {\n }", "protected void upload(final AbstractBackupPath bp) throws Exception\n {\n new RetryableCallable<Void>()\n {\n @Override\n public Void retriableCall() throws Exception\n {\n fs.upload(bp, bp.localReader());\n return null;\n }\n }.call();\n }", "@Override\n protected void upload(X x) {\n }", "@Override\n public void onError(Status status) {\n }", "void uploadingFile(String path);", "@Override\n public void onError(Status status) {\n }", "@Override\n public int getUploaded() {\n return 0;\n }", "private void uploadFile() {\n if (selectedImageUri != null) {\n //displaying a progress dialog while upload is going on\n final ProgressDialog progressDialog = new ProgressDialog(this);\n progressDialog.setTitle(\"Uploading\");\n progressDialog.show();\n\n StorageReference riversRef = storageReference.child(\"Images/Adhaar\"+jill+\"/\"+jack);\n riversRef.putFile(selectedImageUri)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n //if the upload is successfull\n //hiding the progress dialog\n progressDialog.dismiss();\n\n //and displaying a success toast\n Toast.makeText(getApplicationContext(), \"File Uploaded \", Toast.LENGTH_LONG).show();\n Intent step3 = new Intent(step4.this, step4.class);\n startActivity(step3);\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n //if the upload is not successfull\n //hiding the progress dialog\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }\n })\n .addOnProgressListener(new OnProgressListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onProgress(UploadTask.TaskSnapshot taskSnapshot) {\n //calculating progress percentage\n @SuppressWarnings(\"VisibleForTests\") double re=taskSnapshot.getBytesTransferred();\n @SuppressWarnings(\"VisibleForTests\") double rem=taskSnapshot.getBytesTransferred();\n double progress = (100.0 * re) / rem;\n\n //displaying percentage in progress dialog\n progressDialog.setMessage(\"Uploaded \" + ((int) progress) + \"%...\");\n }\n });\n }\n //if there is not any file\n else {\n //you can display an error toast\n }\n }", "public void handleError(int code);", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n progressDialog.dismiss();\n\n //and displaying a success toast\n Toast.makeText(getApplicationContext(), \"File Uploaded \", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onError(Status status) {\n }", "@Override\n public void onError(Status status) {\n }", "@Override\n\t\t\tpublic void onError(int httpcode) {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n int geekid = Integer.parseInt(request.getParameter(\"geekid\"));\n if (ServletFileUpload.isMultipartContent(request)) {\n try {\n\n List<FileItem> multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);\n\n for (FileItem item : multiparts) {\n\n if (!item.isFormField()) {\n item.write(new File(UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\"));\n\n }\n \n String fileName = UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\";\n\n }\n\n //File uploaded successfully\n request.setAttribute(\"message\", \"File Uploaded Successfully\");\n\n } catch (Exception ex) {\n\n request.setAttribute(\"message\", \"File Upload Failed due to \" + ex);\n\n }\n\n } else {\n\n request.setAttribute(\"message\",\n \"Sorry this Servlet only handles file upload request\");\n\n }\n\n request.getRequestDispatcher(\"/result.jsp\").forward(request, response);\n\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n //Muestra un Snackbar informando al usuaario del error\n Snackbar.make(ivFotoPerfil,\"Error al subir la imagen al servidor: \"\n + e.getMessage(),\n Snackbar.LENGTH_LONG).show();\n }", "public void run() {\n\t\t\t\t\tString resultString = upload(url, formParameters, datas);\n\t\t\t\t\tif (null != resultString) {\n\t\t\t\t\t\tMessage message = handler.obtainMessage(MessageWhat.UPLOADRESP, resultString);\n\t\t\t\t\t\thandler.sendMessage(message);\n\t\t\t\t\t}\n\t\t\t\t}", "public synchronized void upload(){\n\t}", "@Override\n\tpublic void onError(TaskItem item) {\n\t\treportFailure((IMediaFile) item.getUserData().get(\"file\"), item.getError());\n\t\titem.setHandler(null);\n\t\titem.setOperation(null);\n\t\titem.getUserData().clear();\n\t}", "@Override\n public void onSuccess(\n UploadTask.TaskSnapshot taskSnapshot) {\n progressDialog.dismiss();\n Toast.makeText(ProfileActivity.this, \"Image Uploaded!!\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void complete(String arg0, ResponseInfo info, JSONObject response) {\n if (info.isOK()) {\n Upload();\n }\n }", "void handleError(Exception ex);", "private void handleFileStorageFactoryResult(FileStorageFactoryResult result) {\n if (result == FileStorageFactoryResult.SUCCESS) {\n return;\n }\n\n String errorMessage = \"\";\n switch (result) {\n case ERROR_UNKNOWN:\n errorMessage = (ResourceUtil.getLangString(Controller.getBundle(), LanguageKey.ERROR_UNKNOWN));\n break;\n case ERROR_UNINITIALIZED:\n errorMessage = (ResourceUtil.getLangString(Controller.getBundle(), LanguageKey.ERROR_UNINITIALIZED));\n break;\n case ERROR_UNEXPECTED_BEHAVIOR:\n errorMessage = (ResourceUtil.getLangString(Controller.getBundle(), LanguageKey.ERROR_UNEXPECTED_BEHAVIOR));\n break;\n case ERROR_FILE_NOT_FOUND:\n errorMessage = (ResourceUtil.getLangString(Controller.getBundle(), LanguageKey.ERROR_FILE_NOT_FOUND));\n break;\n case ERROR_FILE_INVALID:\n errorMessage = (ResourceUtil.getLangString(Controller.getBundle(), LanguageKey.ERROR_FILE_INVALID));\n break;\n case ERROR_FILE_LOCKED:\n // TODO: show username\n errorMessage = (ResourceUtil.getLangString(Controller.getBundle(), LanguageKey.ERROR_FILE_LOCKED));\n break;\n case ERROR_FILE_VERSION_MISMATCH:\n errorMessage = (ResourceUtil.getLangString(Controller.getBundle(), LanguageKey.ERROR_FILE_VERSION_MISMATCH));\n break;\n case ERROR_LOCKSTATE_FAILED:\n errorMessage = (ResourceUtil.getLangString(Controller.getBundle(), LanguageKey.ERROR_LOCKSTATE_FAILED));\n break;\n case ERROR_BUILD_ARCHIVE:\n errorMessage = (ResourceUtil.getLangString(Controller.getBundle(), LanguageKey.ERROR_BUILD_ARCHIVE));\n break;\n default:\n break;\n }\n\n AlertHelper.showError(LanguageKey.ERROR_STORAGE, errorMessage);\n }", "@Override\r\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n progressDialog.dismiss();\r\n updateRealTimeDB(userId, path);\r\n\r\n //and displaying a success toast\r\n finish();\r\n\r\n Toast.makeText(getApplicationContext(), \"File Uploaded \", Toast.LENGTH_LONG).show();\r\n }", "@Test\r\n public void test_performLogic_Failure1() throws Exception {\r\n try {\r\n UploadedDocument doc = new UploadedDocument();\r\n doc.setDocumentId(1);\r\n doc.setContestId(1);\r\n doc.setFileName(\"fake.txt\");\r\n doc.setPath(\"test_files\");\r\n doc.setMimeTypeId(new MimeTypeRetriever().getMimeTypeIdFromFileName(\"test_files/test.txt\"));\r\n List<UploadedDocument> docUploads = new ArrayList<UploadedDocument>();\r\n docUploads.add(doc);\r\n\r\n instance.performLogic(docUploads);\r\n fail(\"FileNotFoundException is expected\");\r\n } catch (FileNotFoundException e) {\r\n // success\r\n }\r\n }", "@OnClick(R.id.retryButton)\n public void retryUpload() {\n callback.retryUpload(contribution);\n }", "void uploadFinished(StreamingEndEvent event, File uploadedTemporaryFile);", "private void uploadFile() {\n if (filePath != null) {\n //displaying a progress dialog while upload is going on\n final ProgressDialog progressDialog = new ProgressDialog(this);\n progressDialog.setTitle(\"Uploading\");\n progressDialog.show();\n\n StorageReference riversRef = mStorageRef.child(previously);\n riversRef.putFile(filePath)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n //if the upload is successfull\n //hiding the progress dialog\n progressDialog.dismiss();\n\n //and displaying a success toast\n Toast.makeText(getApplicationContext(), \"File Uploaded \", Toast.LENGTH_LONG).show();\n // picup =true;\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n //if the upload is not successfull\n //hiding the progress dialog\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }\n })\n .addOnProgressListener(new OnProgressListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onProgress(UploadTask.TaskSnapshot taskSnapshot) {\n //calculating progress percentage\n double progress = (100.0 * taskSnapshot.getBytesTransferred()) / taskSnapshot.getTotalByteCount();\n\n //displaying percentage in progress dialog\n progressDialog.setMessage(\"Uploaded \" + ((int) progress) + \"%...\");\n }\n });\n }\n //if there is not any file\n else {\n //you can display an error toast\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n uploadFile(request, response);\n\n }", "void uploadCompleted(String blobId);", "public void handleErrors() {\n // hook method\n }", "public void uploadMultipart(String path, final String name) {\n //getting name for the image\n // String name = editText.getText().toString().trim();\n\n //getting the actual path of the image\n // String path = getPath(filePath);\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, UPLOAD_URL)\n .addFileToUpload(path, \"image\") //Adding file\n .addParameter(\"name\", name) //Adding text parameter to the request\n .addParameter(\"alert\", mAlertId) //Adding text parameter to the request\n .addParameter(\"device\",\n android.os.Build.MODEL) //Adding text parameter to the request\n .addParameter(\"title\", currentCaptureDirectory.getName())\n .setNotificationConfig(new UploadNotificationConfig()).setMaxRetries(2)\n .setDelegate(new UploadStatusDelegate() {\n @Override\n public void onProgress(Context context, UploadInfo uploadInfo) {\n // your code here\n }\n\n @Override\n public void onError(Context context, UploadInfo uploadInfo,\n Exception exception) {\n // your code here\n }\n\n @Override\n public void onCompleted(Context context, UploadInfo uploadInfo,\n ServerResponse serverResponse) {\n Log.i(\" _ \", \" \");\n Log.d(TAG, \"JSON RESPONSE::: \" + serverResponse.toString());\n Log.d(TAG, \"JSON RESPONSE::: \" + serverResponse.getBodyAsString());\n Log.i(\" _ \", \" \");\n\n File photo = new File(currentCaptureDirectory, name);\n if (photo.exists()) photo.delete();\n\n if (mSendEmail) {\n mSendEmail = false;\n mEmailResetHandler.removeCallbacks(emailResetRunnable);\n mEmailResetHandler.postDelayed(emailResetRunnable, 1000 * 600);\n String link = mServerUrl + \"sendEmail.php?device=\" + mDeviceName +\n \"&name=\" + name + \"&title=\" +\n currentCaptureDirectory.getName();\n new updateData().execute(link);\n\n String link2 = mServerUrl + \"init.php?device=\" + mDeviceName;\n new updateData().execute(link2);\n\n mHandler.postDelayed(runnable, 6000);\n }\n\n // your code here\n // if you have mapped your server response to a POJO, you can easily get it:\n // YourClass obj = new Gson().fromJson(serverResponse.getBodyAsString(), YourClass.class);\n // File photo = new File(Environment.getExternalStorageDirectory(), name + \".jpg\");\n // if (photo.exists()) photo.delete();\n }\n\n @Override\n public void onCancelled(Context context, UploadInfo uploadInfo) {\n // your code here\n }\n }).startUpload(); //Starting the upload\n\n } catch (Exception exc) {\n Log.i(TAG, exc.getMessage());\n }\n }", "void onSavingFailed(Throwable e);", "public void testSetUpload() {\n try {\n sub.setUpload(null);\n } catch (Exception e) {\n fail(\"Should not throw anything.\");\n }\n }", "@Override\n\tpublic void fileDeliveryServiceError(int arg0, String arg1, Integer arg2) {\n\t\t\n\t}", "public ActionForward uploadResume(ActionMapping mapping, ActionForm form,\r\n HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n System.out.println(\"INSIDE UPLOAD RESUME METHOD...\");\r\n\r\n try {\r\n System.out.println(\"INSIDE TRY\");\r\n PrintWriter out = response.getWriter();\r\n\r\n ResumeUploadActionForm resumeUploadActionForm = (ResumeUploadActionForm) form;\r\n FormFile file = resumeUploadActionForm.getFile();\r\n HttpSession session = request.getSession();\r\n ResourceBundle resourceBundle = ResourceBundle.getBundle(\"common/resources/Constants\");\r\n CmnUserMst lObjCmnUserMst = (CmnUserMst) session.getAttribute(\"cmnUserMst\");\r\n String UploadPath = MessageFormat.format(resourceBundle.getString(\"UPLOADPATH.RESUME\"), System.getenv(resourceBundle.getString(\"UPLOADPATH.BASE\")), lObjCmnUserMst.getUserId());\r\n\r\n if (file != null) {\r\n fileURL = uploadFile(request, file, UploadPath);\r\n }\r\n\r\n return mapping.findForward(\"success\");\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n return mapping.findForward(\"success\");\r\n }", "protected void work() {\n try {\n if(theFile!=null) { \n //construct filePath, fileSize\n int fileSize = theFile.getFileSize();\n if(fileSize==0) fileSize=1;\n String filePath = path+\"/\"+theFile.getFileName();\n if(log.isDebugEnabled()) log.debug(\"Uploading file: \"+filePath+\", filesize: \"+fileSize/1000+\"KB\");\n\t\t\t\n //write out file\n InputStream stream = theFile.getInputStream();\n OutputStream bos = new FileOutputStream(filePath);\n int bytesRead = 0;\n byte[] buffer = new byte[Constants.FILEUPLOAD_BUFFER];\n while(isRunning() && ((bytesRead = stream.read(buffer, 0, Constants.FILEUPLOAD_BUFFER)) != -1)) {\n bos.write(buffer, 0, bytesRead);\n sum+=bytesRead;\n setPercent(sum/fileSize);\n }\n bos.close();\n stream.close();\n }\n } catch(Exception ex) {\n setRunning(false);\n log.error(\"Error while uploading: \"+ex.getMessage());\n ex.printStackTrace();\n }\n }", "protected void failed()\r\n {\r\n //overwrite\r\n }", "private File processMultipartForm() {\n\n File storeDirectory = Configuration\n .getParameterValueAsFile(PENDING_DIR);\n\n int fileSizeLimit = Configuration\n .getParameterValueAsInt(METADATA_MAX_BYTES);\n\n DiskFileItemFactory factory = new DiskFileItemFactory();\n factory.setSizeThreshold(fileSizeLimit);\n\n RestletFileUpload upload = new RestletFileUpload(factory);\n\n List<FileItem> items;\n\n try {\n Request request = getRequest();\n items = upload.parseRequest(request);\n } catch (FileUploadException e) {\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, e\n .getMessage(), e);\n }\n\n for (FileItem fi : items) {\n if (fi.getName() != null) {\n String uuid = UUID.randomUUID().toString();\n File file = new File(storeDirectory, uuid);\n try {\n fi.write(file);\n return file;\n } catch (Exception consumed) {\n }\n }\n }\n\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST,\n \"no valid file uploaded\");\n }", "public void uploadMultipleFilesWithOneIncorrectData() throws InterruptedException {\n\t\tlog.info(line);\n\t\tAssert.assertTrue(clickAllActionButton.uploadMultipleFiles(),\n\t\t\t\t\"success and error message are displayed for respective files\");\n\t}", "@Override\r\n\t\t\t\tpublic void onSucceed(JSONObject obj) {\n\t\t\t\t\tLog.e(\"upload\",obj.toString());\r\n\t\t\t\t}", "public void handleFileUpload(FileUploadEvent event) {\n\n\t\tFacesMessage msg = new FacesMessage();\n\n\t\ttry {\n\t\t\t// recharger les parametres de la photo\n\t\t\ttry {\n\t\t\t\tloadParamPhoto();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t// this.setUrl( (String) event.getComponent().getAttributes()\n\t\t\t// .get(\"url\") );\n\t\t\t//\n\t\t\t// this.setDossierEtudiantId ( (String)\n\t\t\t// event.getComponent().getAttributes()\n\t\t\t// .get(\"dossierEtudiantId\") );\n\n\t\t\t// FacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\t// ServletContext scontext = (ServletContext)\n\t\t\t// facesContext.getExternalContext().getContext();\n\t\t\t// String arquivo = scontext.getRealPath(\"/upload/\");\n\t\t\t// System.err.println(\"---------->\" + arquivo + \" ----\" +\n\t\t\t// folder_temp);\n\n\t\t\tFile targetFolder = new File(folder_temp);\n\t\t\t// File targetFolder = new File(arquivo + \"\\\\\");\n\n\t\t\tInputStream inputStream = event.getFile().getInputstream();\n\n\t\t\t// generer un nom de fichier unique\n\t\t\tString fileUrl = FileUtility.getUidFileName(event.getFile().getFileName());\n\n\t\t\tOutputStream out = new FileOutputStream(new File(targetFolder, fileUrl));\n\n\t\t\tint read = 0;\n\t\t\tbyte[] bytes = new byte[4096];\n\n\t\t\twhile ((read = inputStream.read(bytes)) != -1) {\n\t\t\t\tout.write(bytes, 0, read);\n\t\t\t}\n\n\t\t\tinputStream.close();\n\t\t\tout.flush();\n\t\t\tout.close();\n\n\t\t\tsetUrl(fileUrl);\n\n\t\t\tdossierEtudiantDto.setPhoto(fileUrl);\n\t\t\tthis.photo_attache_capture = true;\n\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_INFO);\n\t\t\tmsg.setSummary(bundleDocument.getString(\"document_success_upload_file\"));\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\n\t\t} catch (IOException e) {\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\n\t\t\tmsg.setSummary(bundleDocument.getString(\"document_error_upload_file\"));\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\r\n\tpublic void error(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "void whenUploadFile(MultipartFile file, HttpServletRequest request);", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(getApplicationContext(),\"Image uploaded\",Toast.LENGTH_SHORT).show();\n }", "public void handleError(ClientHttpResponse response) throws IOException {\n }", "@RequestMapping(value = \"/uploadStatement\", produces = \"application/json\", method = RequestMethod.POST)\n\tpublic @ResponseBody ResponseEntity handleFileUpload(@RequestParam(\"file\") MultipartFile multipart) throws Exception {\n\t\tlog.info(\"In handleFileUpload method\");\n\t\tAppResponse appResponse = new AppResponse();\n\t\t// check1 : Empty check\n\t\tif (!multipart.isEmpty()) {\n\t\t\t// check2: type check. Only CSV and XML file\n\t\t\tif (isValidFileTye(multipart)) {\n\t\t\t\tList<Record> duplicateRecords = new ArrayList<Record>();\n\t\t\t\tList<Record> invalidRecords = new ArrayList<Record>();\n\t\t\t\tFile inputFile = convertFileFormat(multipart);\n\t\t\t\tList<Record> extractedRecords = extractorService.extractRecordsFromFile(inputFile,multipart.getContentType());\n\t\t\t\tduplicateRecords.addAll(validatorService.getDuplicateRecords(extractedRecords));\n\t\t\t\tinvalidRecords.addAll(validatorService.getEndBalanceErrorRecords(extractedRecords));\n\t\t\t\t// check3: if processed records have some duplicated transaction reference or invalid end balance\n\t\t\t\tif (!duplicateRecords.isEmpty() || !invalidRecords.isEmpty()) {\n\t\t\t\t\tappResponse.setMessage(AppConstants.VALIDATION_ERROR);\n\t\t\t\t\tappResponse.setStatus(AppConstants.INVALID_STATUS);\n\t\t\t\t\tappResponse.setDuplicateRecords(duplicateRecords);\n\t\t\t\t\tappResponse.setInvalidEndBalanceRecords(invalidRecords);\n\t\t\t\t} else {\n\t\t\t\t\tappResponse.setStatus(AppConstants.VALID_STATUS);\n\t\t\t\t\tappResponse.setMessage(AppConstants.VALIDATION_SUCCESS);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tappResponse.setMessage(AppConstants.UNSUPPORTED_FILE_FORMAT);\n\t\t\t\treturn new ResponseEntity<>(appResponse, HttpStatus.UNSUPPORTED_MEDIA_TYPE);\n\t\t\t}\n\t\t} else {\n\t\t\tappResponse.setMessage(AppConstants.INVALID_INPUT);\n\t\t\treturn new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n\t\t}\n\t\tlog.info(\"end handleFileUpload method\");\n\t\treturn new ResponseEntity<>(appResponse, HttpStatus.OK);\n\t}", "public Long createFileUpload(FileUpload fileUpload, InputStream fileInputStream) throws AppException;", "@Override\n\t\t\tpublic void handleError(ClientHttpResponse response) throws IOException {\n\t\t\t\t\n\t\t\t}", "private String processUploadedFile(FileItem item) {\n if (!item.isFormField()) {\n try {\n item.write(new File(realPath + item.getName()));\n return \"{success:true}\";\n } catch (Exception ex) {\n log(FileUploadServlet.class.getName() + \" has thrown an exception: \" + ex.getMessage());\n }\n }\n return \"{success:false}\";\n }", "public UploadHandle upload(List<File> files) throws Exception {\n \tMetadata md = new Metadata();\n \tfinal FileCollection fcol = new FileCollection(md);\n \tfor(File f: files) {\n \t\tFileMetaData mf = new FileMetaData(f.getName(), f.getLocalName(), \"\", null);\n \t\tmf.setGroups(f.getGroups());\n \t\tmd.md.file.add(mf);\n \t}\n NullOutputStream ostream = new NullOutputStream();\n fcol.tarit(ostream);\n long length = ostream.getLength();\n\n HttpResponse response = client.get(new URI(config.preallocurl()));\n String prealloc_file = this.read_http_entity(response.getEntity());\n String ingestServer = prealloc_file.split(\"\\n\")[0];\n String location = prealloc_file.split(\"\\n\")[1];\n ingestServer = ingestServer.split(\": \")[1];\n location = location.split(\": \")[1];\n \n PipedInputStream in = new PipedInputStream();\n final PipedOutputStream out = new PipedOutputStream(in);\n new Thread(\n new Runnable(){\n @Override\n public void run(){\n try {\n fcol.tarit(out);\n } catch (Exception ex) {\n Logger.getLogger(Connect.class.getName()).log(Level.SEVERE, null, ex);\n \n }\n }\n }\n ).start();\n \n InputStreamEntity entity = new InputStreamEntity(in, length);\n response = client.put(entity, new URI(\"https://\"+ingestServer+location));\n this.read_http_entity(response.getEntity());\n\n response = client.get(new URI(\"https://\"+ingestServer+config.finishurl()+location));\n String status_url = this.read_http_entity(response.getEntity());\n for(String line:status_url.split(\"\\n\")) {\n System.out.println(line);\n if(line.startsWith(\"Status: \"))\n status_url = line.split(\": \")[1];\n }\n System.out.println(status_url+\"/xml\");\n StatusHandler sturl = new StatusHandler();\n sturl.status_url = status_url+\"/xml\";\n sturl.timeout = 30;\n sturl.step = 5;\n UploadHandle ret = sturl;\n return ret;\n }", "@Override\n public void onFailure() {\n }", "protected void fireError(String filename, long contentLength, String message, UploadErrorType uploadErrorType) {\n for (UploadListener uploadListener : uploadListeners) {\n uploadListener.errorNotify(filename, message, uploadErrorType, contentLength);\n }\n }", "public void onRequestFailure(Request request, IOException e) { }", "@Override\n public void onSuccess (UploadTask.TaskSnapshot taskSnapshot){\n Toast.makeText(IncomeActivity.this, \"Image uploaded successfully\",\n Toast.LENGTH_SHORT).show();\n }", "@Override\r\n public void handleIOException(\r\n File file,\r\n java.io.IOException cause\r\n )\r\n {\n }", "@ExceptionHandler(IOException.class)\n public ModelAndView handleIOException(Locale locale){\n ModelAndView modelAndView = new ModelAndView(\"/profile\");\n modelAndView.addObject(\"error\",messageSource.getMessage(\"image.io.exception\",null,locale));\n return modelAndView;\n }", "@Override\r\n public void run() {\n upload();\r\n }", "public void processBlockwiseResponseTransferFailed() {\n //to be overridden by extending classes\n }", "protected void onUnsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException {\n }", "private void onTakePhotoFailed() {\n final String errorMessage = getString(R.string.photo_error_message);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(CameraActivity.this, errorMessage, Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n\tpublic void onStartBlobStoreSessionFail() {\n\t\t\n\t}" ]
[ "0.8098276", "0.7178614", "0.71676296", "0.71385926", "0.7053654", "0.67557836", "0.67557836", "0.66131026", "0.6594326", "0.65326715", "0.6479554", "0.6444012", "0.6437468", "0.64205617", "0.63291746", "0.63185775", "0.6257892", "0.6202708", "0.6172525", "0.61074424", "0.6060064", "0.6055344", "0.59482366", "0.59398925", "0.59382176", "0.5933552", "0.59210765", "0.59187883", "0.5917739", "0.5911289", "0.5861132", "0.58386755", "0.5820419", "0.5810884", "0.57921207", "0.5787105", "0.5777293", "0.5766929", "0.57561374", "0.5743856", "0.5743504", "0.5732671", "0.56931084", "0.5690477", "0.56864274", "0.5668295", "0.56641495", "0.5645575", "0.5641717", "0.56358635", "0.5634113", "0.5634113", "0.5621745", "0.5618292", "0.56097704", "0.56076485", "0.5604918", "0.55958086", "0.5591117", "0.5577622", "0.55685526", "0.55586386", "0.55521095", "0.55416995", "0.5536879", "0.5531688", "0.55312353", "0.5524743", "0.5523861", "0.5507681", "0.5498753", "0.5495739", "0.5492945", "0.5485359", "0.54677105", "0.5467438", "0.5466777", "0.5465971", "0.5462892", "0.5455075", "0.54527843", "0.54440856", "0.5441509", "0.5435531", "0.5431011", "0.54257244", "0.5420871", "0.5416414", "0.541239", "0.5407835", "0.5407444", "0.5404993", "0.54035527", "0.5403067", "0.54011565", "0.5395546", "0.53939885", "0.5388419", "0.5385448", "0.53833514", "0.53831935" ]
0.0
-1
Render the given char
private float renderChar(char renderChar, boolean italic) { if (renderChar == 160) { return 4.0F; // forge: display nbsp as space. MC-2595 } if (renderChar == ' ') { return 4.0F; } else { int charIndex = "\u00c0\u00c1\u00c2\u00c8\u00ca\u00cb\u00cd\u00d3\u00d4\u00d5\u00da\u00df\u00e3\u00f5\u011f\u0130\u0131\u0152\u0153\u015e\u015f\u0174\u0175\u017e\u0207\u0000\u0000\u0000\u0000\u0000\u0000\u0000 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u0000\u00c7\u00fc\u00e9\u00e2\u00e4\u00e0\u00e5\u00e7\u00ea\u00eb\u00e8\u00ef\u00ee\u00ec\u00c4\u00c5\u00c9\u00e6\u00c6\u00f4\u00f6\u00f2\u00fb\u00f9\u00ff\u00d6\u00dc\u00f8\u00a3\u00d8\u00d7\u0192\u00e1\u00ed\u00f3\u00fa\u00f1\u00d1\u00aa\u00ba\u00bf\u00ae\u00ac\u00bd\u00bc\u00a1\u00ab\u00bb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\u03b2\u0393\u03c0\u03a3\u03c3\u03bc\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u2205\u2208\u2229\u2261\u00b1\u2265\u2264\u2320\u2321\u00f7\u2248\u00b0\u2219\u00b7\u221a\u207f\u00b2\u25a0\u0000".indexOf(renderChar); return charIndex != -1 && !super.getUnicodeFlag() ? super.renderDefaultChar(charIndex, italic) : super.renderUnicodeChar(renderChar, italic); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void draw_char(int x, int y, char[][] _display, char c) {\n _display[x][y] = c;\n }", "public char getRender() {\n\n return (animalChar);\n }", "protected int drawEchoCharacter(Graphics g, int x, int y, char c) {\n ONE[0] = c;\n SwingUtilities2.drawChars(Utilities.getJComponent(this), g, ONE, 0, 1, x, y);\n return x + g.getFontMetrics().charWidth(c);\n }", "public abstract void drawChars(char data[], int offset, int length, int x, int y);", "public void putc(int achar){\n if(view!=null) {\n if (achar >= 0) {\n StringBuilder arf = new StringBuilder(1);\n arf.append((char) achar);\n view.append(arf);\n } else {\n //is return code from a failed stream read\n }\n }\n }", "protected final void putChar(char c)\n\t{\n\t\tif (showCaret)\n\t\t{\n\t\t\tif (displayingCaret)\n\t\t\t\ttext.setText(text.getText().substring(0, text.getText().length() - 1) + c + \"|\");\n\t\t\telse text.setText(text.getText().substring(0, text.getText().length() - 1) + c + \" \");\n\t\t}\n\t\telse text.setText(text.getText() + c);\n\t}", "public void render (DrawingCanvas canvas){\n //System.out.println(\"drawing \"+wd+\"*\"+ht+\" at (\"+x+\",\"+y+\")\");\n canvas.setForeground(col);\n canvas.drawString(str, x, y, false);\n canvas.setForeground(Color.lightGray);\n canvas.drawRect(x,y-13,(str.length()*8),16);\n }", "public char displayChar(){\r\n if(hit){\r\n if(ship != null){\r\n if(ship.isSunk()){\r\n return SUNK_SHIP_SECTION;\r\n }else{\r\n return HIT_SHIP_SECTION;\r\n }\r\n }else{\r\n return HIT_WATER;\r\n }\r\n }else {\r\n if (ship == null) {\r\n return PRISTINE_WATER;\r\n }else{\r\n return HIDDEN_SHIP_SECTION;\r\n }\r\n }\r\n }", "@Override\n public String toString() {\n return \"\" + character;\n }", "String charWrite();", "public void setChar(Character c) {\n setText(String.valueOf(c));\n }", "@Override\n public void convertCharacter(char character, StringBuilder outputTextBuilder) {\n }", "@Override\n\tchar toChar() {\n\t\treturn 'R';\n\t}", "public static void displayLine( char lineChar, int lineType ) \r\n {\n }", "public void appendChar(char c){\n\t\ttimer.stop();\n\t\tcursorVisible = false;\n\t\tsetText(getText()+c);\n\t\ttimer.start();\n\t}", "public char getChar();", "void writeChar(char value);", "public void print(char someChar) {\r\n print(someChar + \"\");\r\n }", "protected int drawOneChar(Graphics g, char c, int x, int y) {\r\n\t\t// skip if it is a space\r\n\t\tif (c == ' ') {\r\n\t\t\treturn x + this.spaceWidth + xIndent + charWidthIncrement;\r\n\t\t}\r\n\t\tint charIndex = charIndex(c);\r\n\t\t// draw the unknown character as a rectangle\r\n\t\tif (charIndex < 0) {\r\n\t\t\tint squareWidth = this.spaceWidth + xIndent + charWidthIncrement;\r\n\t\t\tg.drawRect(x, y, squareWidth - 1, height - 1);\r\n\t\t\treturn x + squareWidth;\r\n\t\t}\r\n\r\n\t\tint charX = this.x[charIndex];\r\n\t\tint charY = this.y[charIndex];\r\n\t\tint cw = widthes[charIndex];\r\n\t\tint imageIndex = idx[charIndex];\r\n\r\n\t\ty += yIndent / 2;\r\n\r\n\t\tImage image = this.currentImages[imageIndex];\r\n\r\n\t\tint clipX = g.getClipX();\r\n\t\tint clipY = g.getClipY();\r\n\t\tint clipWidth = g.getClipWidth();\r\n\t\tint clipHeight = g.getClipHeight();\r\n\r\n\t\tint ix = x - charX;\r\n\t\tint iy = y - charY;\r\n\r\n\t\tif (!italic && !bold) {\r\n\t\t\tg.clipRect(x, y, cw, this.height);\r\n\t\t\tg.drawImage(image, ix, iy, Graphics.LEFT | Graphics.TOP);\r\n\t\t} else if (italic & bold) {\r\n\t\t\tint halfHeight = height / 2;\r\n\t\t\tg.clipRect(x + 1, y, cw, this.height);\r\n\t\t\tg.drawImage(image, ix + 1, iy, Graphics.LEFT | Graphics.TOP);\r\n\t\t\tg.setClip(clipX, clipY, clipWidth, clipHeight);\r\n\t\t\tg.clipRect(x + 2, y, cw, halfHeight);\r\n\t\t\tg.drawImage(image, ix + 2, iy, Graphics.LEFT | Graphics.TOP);\r\n\t\t\tg.setClip(clipX, clipY, clipWidth, clipHeight);\r\n\t\t\tg.clipRect(x, y + halfHeight, cw, height - halfHeight);\r\n\t\t\tg.drawImage(image, ix, iy, Graphics.LEFT | Graphics.TOP);\r\n\t\t} else if (italic) {\r\n\t\t\tint halfHeight = height / 2;\r\n\t\t\tg.clipRect(x + 1, y, cw, halfHeight);\r\n\t\t\tg.drawImage(image, ix + 1, iy, Graphics.LEFT | Graphics.TOP);\r\n\t\t\tg.setClip(clipX, clipY, clipWidth, clipHeight);\r\n\t\t\tg.clipRect(x, y + halfHeight, cw, height - halfHeight);\r\n\t\t\tg.drawImage(image, ix, iy, Graphics.LEFT | Graphics.TOP);\r\n\t\t} else { // just a bold\r\n\t\t\tg.clipRect(x, y, cw, this.height);\r\n\t\t\tg.drawImage(image, ix, iy, Graphics.LEFT | Graphics.TOP);\r\n\t\t\tg.setClip(clipX, clipY, clipWidth, clipHeight);\r\n\t\t\tg.clipRect(x + 1, y, cw, this.height);\r\n\t\t\tg.drawImage(image, ix + 1, iy, Graphics.LEFT | Graphics.TOP);\r\n\t\t}\r\n\t\t// restore clipping\r\n\t\tg.setClip(clipX, clipY, clipWidth, clipHeight);\r\n\t\treturn x + cw + xIndent + charWidthIncrement;\r\n\t}", "public void printNextChar()\n\t{\n\t\tif(line < linesSize)\n\t\t{\n\t\t\tString nextChar = Character.toString(lines[line].charAt(charIndex));\n\t\t\t\n\t\t\t// Prints our desired character\n\t\t\ttry\n\t\t\t{\n\t\t\t\tGraphics g = messageCanvas.getGraphics();\n\t\t\t\tg.setColor(Color.white);\n\t\t\t\tg.drawString(nextChar, rowWidth, line * font.getLineHeight());\n\t\t\t\tg.flush();\n\t\t\t}\n\t\t\tcatch(SlickException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcharIndex ++;\n\t\t\tif(charIndex > lines[line].length()-1)\n\t\t\t{\n\t\t\t\tcharIndex = rowWidth = 0;\n\t\t\t\tline ++;\n\t\t\t}\n\t\t\telse\n\t\t\t\trowWidth += font.getWidth(nextChar);\n\t\t}\n\t}", "@Override\r\n public void paint(Graphics g) {\r\n super.paint(g);\r\n Letter letter = new Letter(\"C\", getPosition());\r\n letter.paint(g);\r\n }", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "@Override\n\tpublic char getDisplayChar() {\n\t\tPrintable thing;\n\t\t\n\t\tif(this.containsAnActor()) \n\t\t\tthing = this.getActor();\n\t\telse if (items.size() > 0)\n\t\t\tthing = items.get(items.size() - 1);\n\t\telse\n\t\t\tthing = ground;\n\t\t\n\t\treturn thing.getDisplayChar();\n\t}", "private BufferedImage createCharImage(char character) {\n\t\tBufferedImage image = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);\r\n\t\tGraphics2D graphics = image.createGraphics();\r\n\t\t\r\n\t\tif (antiAliasing) {\r\n\t\t\tgraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\r\n\t\t}\r\n\t\t\r\n\t\tgraphics.setFont(font);\r\n\t\tFontMetrics metrics = graphics.getFontMetrics();\r\n\t\tgraphics.dispose();\r\n\t\t\r\n\t\tint charWidth = metrics.charWidth(character);\r\n\t\tint charHeight = metrics.getHeight();\r\n\t\t\r\n\t\t// Character not represented in provided font\r\n\t\tif (charWidth == 0) return null;\r\n\t\t\r\n\t\t// Generate character image\r\n\t\timage = new BufferedImage(charWidth, charHeight, BufferedImage.TYPE_INT_ARGB);\r\n\t\tgraphics = image.createGraphics();\r\n\t\t\r\n\t\tif (antiAliasing) {\r\n\t\t\tgraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\r\n\t\t}\r\n\t\t\r\n\t\tgraphics.setFont(font);\r\n\t\tgraphics.setPaint(Color.WHITE);\r\n\t\tgraphics.drawString(String.valueOf(character), 0, metrics.getAscent());\r\n\t\tgraphics.dispose();\r\n\t\t\r\n\t\treturn image;\r\n\t}", "CharSequence escape(char c);", "@Override\r\n public void render(final Graphics graphics) throws Exception\r\n {\n for (int index = 0; index < characters.size(); index++)\r\n {\r\n //get the current character\r\n Character character = characters.get(index);\r\n \r\n //only render if the character is not dead\r\n if (!character.isDead())\r\n character.render(graphics, getImage());\r\n }\r\n }", "public void displayCharacter() {\n System.out.println(\"**************************\");\n System.out.println(p.showDetails());\n System.out.println(\"**************************\"+\"\\n\");\n\n }", "private String addCharacter() {\n\t\t// Two Parameters: CharaNumber, CharaName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|chara\");\n\t\tif (!parameters[0].equals(\"0\")) {\n\t\t\ttag.append(parameters[0]);\n\t\t}\n\t\ttag.append(\":\" + parameters[1]);\n\t\treturn tag.toString();\n\n\t}", "public char toChar() {\r\n//\t\t//Ant\r\n//\t\tif(hasAnt()){\r\n//\t\t\tif(this.ant.getColour() == 0){\r\n//\t\t\t\treturn '=';\r\n//\t\t\t}\r\n//\t\t\tif(this.ant.getColour() == 1){\r\n//\t\t\t\treturn '|';\r\n//\t\t\t}\r\n//\t\t}\r\n\t\t\r\n\t\t//Rock\r\n\t\tif(this.rocky){\r\n\t\t\treturn '#';\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//Food\r\n\t\tif(this.food > 0){\r\n\t\t\t//Prints the food value,\r\n\t\t\t//if it is > 9, prints 9 instead\r\n\t\t\tif(this.anthill == 0){ //0 to 9\r\n\t\t\t\tif(this.food > 9){\r\n\t\t\t\t\treturn 48 + 9;\r\n\t\t\t\t}\r\n\t\t\t\treturn (char) (this.food + 48);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Otherwise, food must be in an anthill\r\n\t\t\t//so give unique char value that acknowledges this\r\n\t\t\t//Greek isn't recognised by Notepad or the console (prints '?' instead)\r\n\t\t\t//Minimum food value is 1, so -1 from ascii codes\r\n\t\t\tif(this.anthill == 1){ //Upper case, 65 for Latin, 913 for Greek\r\n\t\t\t\tif(this.food > 9){\r\n\t\t\t\t\treturn (char) (64 + 9);\r\n\t\t\t\t}\r\n\t\t\t\treturn (char) (64 + this.food);\r\n\t\t\t}\r\n\t\t\tif(this.anthill == 2){ //Lower case, 97 for Latin, 945 for Greek\r\n\t\t\t\tif(this.food > 9){\r\n\t\t\t\t\treturn (char) (96 + 9);\r\n\t\t\t\t}\r\n\t\t\t\treturn (char) (96 + this.food);\r\n\t\t\t}\r\n\t\t\t//Else error, cannot be less than 0 or more than 2 anthills\r\n\t\t\tLogger.log(new WarningEvent(\"Cell anthill value not 0, 1 or 2\"));\r\n\t\t\treturn 0;\t//Null char value\r\n\t\t}\r\n\t\t\r\n\t\t//Anthill\r\n\t\tif(this.anthill > 0){\r\n\t\t\tif(this.anthill == 1){\r\n\t\t\t\treturn '+';\r\n\t\t\t}\r\n\t\t\tif(this.anthill == 2){\r\n\t\t\t\treturn '-';\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\t//Markers\r\n//\t\tfor(int i = 0; i < this.markers.length; i++){\r\n//\t\t\tfor(boolean marker : this.markers[i]){\r\n//\t\t\t\tif(marker){\r\n//\t\t\t\t\tif(i == 0){\r\n//\t\t\t\t\t\treturn '[';\r\n//\t\t\t\t\t}else if(i == 1){\r\n//\t\t\t\t\t\treturn ']';\r\n//\t\t\t\t\t}else{\r\n//\t\t\t\t\t\treturn '?';\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t}\t\t\r\n//\t\t}\r\n\t\t\r\n\t\treturn '.';\r\n\t}", "public static BufferedImage getCharacterImage(char c) throws CharacterNotSupportedException{\n int a = (int)'a';\n int o = (int)'o';\n int p = (int)'p';\n int z = (int)'z';\n \n int zero = (int)'0';\n int nine = (int)'9';\n \n int ac = (int)'A';\n int oc = (int)'O';\n int pc = (int)'P';\n int zc = (int)'Z';\n \n int ci = (int)c;\n \n //System.out.print(c);\n \n if(ci>=zero && ci<=nine){ \n for(int i=zero;i<=nine;i++){//from 0 to 9\n int d = i-zero;//difference between i and zero; a number from 0 to nine-zero.\n if(ci == i){\n return font.getImage(new Location(d,3));\n }\n }\n }\n else if(ci>=ac && ci<=zc){\n for(int i=ac;i<=oc;i++){//from A to O\n int d = i-ac;//difference between i and ac. a number from 0 to pc-ac.\n if(ci == i){\n return font.getImage(new Location(d+1,4));\n }\n }\n for(int j=pc;j<=zc;j++){//from P to Z\n int d = j-pc;//difference between j and pc. a number from 0 to zc-pc.\n if(ci == j){\n return font.getImage(new Location(d,5));\n }\n } \n } \n else if(ci>=a && ci<=z){\n for(int i=a;i<=o;i++){\n int d = i-a;//difference between i and a. a number from 0 to p-a.\n if(ci == i){\n return font.getImage(new Location(d+1,6));\n }\n }\n for(int j=p;j<=z;j++){//from p to z\n int d = j-p;//difference between j and p. Number from 0 to z-p.\n if(ci == j){\n return font.getImage(new Location(d,7));\n }\n } \n }\n else if(ci == ' '){//space\n return font.getImage(new Location(0,0));\n }\n else if(ci == ','){\n return font.getImage(new Location(12,2));\n }\n else if(ci == '.'){\n return font.getImage(new Location(14,2));\n }\n else if(ci == '!'){\n return font.getImage(new Location(1,2));\n }\n else if(ci == '\\''){//apostrophe or '\n return font.getImage(new Location(7,2));\n }\n else if(ci == '#'){\n return font.getImage(new Location(3,2));\n }\n else if(ci == '?'){\n return font.getImage(new Location(15,3));\n }\n else if(ci == ':'){\n return font.getImage(new Location(11,3));\n }\n else if(ci == ';'){\n return font.getImage(new Location(12,3));\n }\n \n throw new CharacterNotSupportedException(\"Character \"+c+\" is not supported in StringImage\");\n }", "public char getCharacter(boolean defender){\n if (defender){\n if (this.is_Empty()){\n return '~';\n }\n else if(this.is_shot()){\n return '*';\n }\n else{\n return 'B';\n }\n }\n else {\n if (!this.is_shot()){\n return '.';\n }\n else if (!this.is_Empty()){\n return '*';\n }\n else {\n return '~';\n }\n }\n }", "@Override\t\n public void paint(Graphics g)\n {\n\t char [] chText={'T','a','n','z','e','n','d','e',' ','S','c','h','r','i','f','t'};\n\t \n\t g.setFont (new Font(\"Helvetica\", Font.BOLD, 20));\n\t FontMetrics m=g.getFontMetrics();\n\t int height=m.getHeight ()+5;\n\t int width=m.charWidth(chText[0]);\n\t \n\t //Correct width, if a bigger char exists:\n\t for (int i=1; i < chText.length; i++)\n\t {\n\t\t if(m.charWidth(chText[i])> width)\n\t\t {\n\t\t\t width=m.charWidth(chText[i]);\n\t\t }\n\t }\t\t \n\t \n\t for (int j=0;j<chText.length;j++)\n\t {\n\t\t int start=(int)Math.round(20*Math.random());\n\t\t g.setColor(Palette[start%Palette.length]);\n\t\t g.drawChars(chText,j,1,j*width,height+start);\n\t }\n }", "private void renderText(CharSequence source) {\n \n }", "public abstract char getStarterChar();", "@Override\n\tpublic void render(Canvas c) {\n\t\tc.drawText(text,(float)x+width,(float)y+height , paint);\n\t\t\n\t}", "default CharSequence escape(char c, int index, int of, char prev) {\n return escape(c);\n }", "public int drawChar(Graphics g, char c, int x, int y) {\r\n\t\tsetColor(g.getColor());\r\n\t\tint nextX = drawOneChar(g, c, x, y);\r\n\t\tif ((style & Font.STYLE_UNDERLINED) != 0) {\r\n\t\t\tint yU = y + this.baseline + 2;\r\n\t\t\tg.drawLine(x, yU, nextX - 1, yU);\r\n\t\t}\r\n\t\treturn nextX;\r\n\t}", "private void writeChar(byte[] bytes) {\n // let terminal do auto wrap around. \n term.writeChar(bytes);\n\n // update cursor \n //int x=term.getCursorX(); \n //int y=term.getCursorY();\n //term.putChar(bytes, x, y);\n // increment: let terminal do auto wrap around. \n //term.moveCursor(1,0); \n\n }", "public void Insert(char ch) {\n sb.append(ch);\n }", "protected void visualizeCharacter(Character c, PdfDrawer drawer) throws VisualizerException {\n visualizePosition(c.getPosition(), drawer, Color.BLACK);\n }", "public abstract String visualize(byte input);", "private void draw (String printable, StringBuffer canvas) {\r\n \t\t\tcanvas.append(\"| \");\r\n \t\t\t\r\n \t\t\tcanvas.append(printable);\r\n \t\t\tfor (int i=printable.length(); i<width-4; i++) //Fill in the spaces.\r\n \t\t\t{\r\n \t\t\t\tcanvas.append(' ');\r\n \t\t\t}\r\n \t\t\tcanvas.append(\" |\\n\");\r\n \t\t}", "public Glyph(char character, Color color, Color background) {\r\n this.character = character;\r\n this.color = color;\r\n this.background = background;\r\n }", "@Override\n public void write (final int c)\n {\n if (text != null)\n {\n text.append (String.valueOf ((char) c));\n if (++col > wrap)\n println ();\n }\n else\n super.write (c);\n }", "public String getChar() {\n\t\tString asciiCode = getProperty(key_delimiter);\n\t\tCharacter c = null;\n\t\tif (asciiCode == null) {\n\t\t\tc = '|';\n\t\t} else if (asciiCode != null && asciiCode.startsWith(\"#\")\n\t\t\t\t&& asciiCode.length() > 1) {\n\t\t\tint i = Integer.valueOf(asciiCode.substring(1));\n\t\t\tc = new Character((char) i);\n\t\t} else if (asciiCode.length() == 1) {\n\t\t\tc = asciiCode.charAt(0);\n\t\t}\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif (c != null){\n\t\t\tresult = String.valueOf(c);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void set_char(_char param) {\n this.local_char = param;\n }", "private String singleChar(RubiksColor color) {\n switch(color) {\n case RED:\n return \"R\";\n case GREEN:\n return \"G\";\n case BLUE:\n return \"B\";\n case YELLOW:\n return \"Y\";\n case ORANGE:\n return \"O\";\n case WHITE:\n return \"W\";\n }\n\n return \"R\";\n }", "public char getColor();", "public int drawChars(Graphics g, char[] data, int offset, int length, int x, int y, int anchors) {\r\n\t\tint xx = getX(charsWidth(data, offset, length), x, anchors);\r\n\t\tint yy = getY(y, anchors);\r\n\t\tsetColor(g.getColor());\r\n\t\tfor (int i = offset; i < offset + length; i++) {\r\n\t\t\txx = drawOneChar(g, data[i], xx, yy);\r\n\t\t}\r\n\t\tif ((style & Font.STYLE_UNDERLINED) != 0) {\r\n\t\t\tint yU = y + this.baseline + 2;\r\n\t\t\tg.drawLine(x, yU, xx - 1, yU);\r\n\t\t}\r\n\t\treturn xx;\r\n\t}", "@Override\n\tpublic void draw() {\n\t\tif (isWhite){\n\t\t\tSystem.out.print(\"\\u2656\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.print(\"\\u265C\");\n\t\t}\t\t\n\t}", "public char drawCell ()\n {\n final char ALIVE_SYMBOL = '\\u25A0';\n final char DEAD_SYMBOL = '\\u25A1';\n if (cellStatus)\n {\n return ALIVE_SYMBOL;\n }\n else\n {\n return DEAD_SYMBOL;\n }// end of if (cellStatus)\n }", "void writeChar(final char result) throws WriterException;", "@Override\n public void btPutChar(int value) {\n }", "void RenderString(GameContainer gameContainer, Graphics graphics)\r\n\t{\n\t\t\r\n\t}", "@Override\n public void render() {\n System.out.println(this.input);\n return;\n }", "private void drawPosition(Position pos, TextColor color, char c, boolean wide) {\n TextGraphics text = screen.newTextGraphics();\n text.setForegroundColor(color);\n text.putString(pos.getX() * 2, pos.getY() + 1, String.valueOf(c));\n\n if (wide) {\n text.putString(pos.getX() * 2 + 1, pos.getY() + 1, String.valueOf(c));\n }\n }", "public void Insert(char ch) {\n s.append(ch);\n }", "@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawString(str, 10, 10);\r\n\t\tg.drawLine(10, 20, 110, 20);\r\n\t\tg.drawRect(pX, 30, 100, 100);\r\n\t\t\r\n\t}", "char getChar () { \n return m_pos < m_len ? m_buffer.charAt (m_pos) : '\\0';\n }", "public boolean isValidChar(char c) {\n\t\tif (Character.isIdentifierIgnorable(c))\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn renderer.getFont().canDisplay(c);\r\n\t}", "@Override\r\n\tpublic void render(GameContainer gc, Renderer r) {\n\t\tr.drawTextInBox(posX, posY, width, height, color1, text);\r\n\t\t//r.noiseGen();\r\n\t}", "@Override\r\n public void keyPressed(KeyEvent e) {\n char c = e.getKeyChar();\r\n //seteo el caracter como texto del label\r\n lab.setText(Character.toString(c));\r\n }", "protected final void write(char c) throws IOException {\n\t\toutput.write(c);\n\t}", "public char charAt(int index);", "public String getCharacter() {\n return this.state.getCharacter();\n }", "public abstract char read_char();", "public void addChar(char ch){\n\t\tvalue.append(ch);\n\t}", "private String getCharacterString()\n {\n String returnString = \"Characters:\\n\\t\";\n Set<String> keys = characters.keySet();\n if(characters.size() <= 0) {\n returnString += \"[None]\";\n return returnString;\n }\n for(String character : keys) {\n returnString += \" [\" + character + \"]\";\n }\n return returnString;\n }", "@Override\n\tpublic void render() {\n\t\tif (this.hidden) {\n\t\t\treturn;\n\t\t}\n\n\t\tsuper.render();\n\n\t\tthis.font.draw(Graphics.batch, this.label, this.getX(),\n\t\t\tthis.getY() + (this.getHeight() - this.font.getLineHeight()) / 2);\n\t}", "public char getChar() {\n return this.s;\n }", "@Override\n\tpublic void paint(Graphics e) {\n\t\tsuper.paint(e);\n\t\te.drawString(text, 20, 20);\n\t}", "@Override\n public void characters(char[] ch, int start, int length) {\n Node current = eltStack.peek();\n if (current.getChildNodes().getLength() == 1\n && current.getChildNodes().item(0).getNodeType() == Node.TEXT_NODE) {\n Text text = (Text) current.getChildNodes().item(0);\n text.appendData(new String(ch, start, length));\n } else {\n Text text = document.createTextNode(new String(ch, start, length));\n eltStack.peek().appendChild(text);\n }\n }", "public abstract void drawString(String str, int x, int y);", "String escChr(char pChar) throws Exception;", "String getRune_lit();", "public void handleText(char ch[], int start, int length, int line, int col) {\r\n // TODO: Implement this.\r\n System.out.print(\"Characters: \\\"\");\r\n\r\n for(int i = start; i < start + length; i++) {\r\n // Instead of printing raw whitespace, we're escaping it\r\n switch(ch[i]) {\r\n case '\\\\':\r\n System.out.print(\"\\\\\\\\\");\r\n break;\r\n case '\"':\r\n System.out.print(\"\\\\\\\"\");\r\n break;\r\n case '\\n':\r\n System.out.print(\"\\\\n\");;\r\n case '\\r':\r\n System.out.print(\"\\\\r\");\r\n break;\r\n case '\\t':\r\n System.out.print(\"\\\\t\");\r\n break;\r\n default:\r\n System.out.print(ch[i]);\r\n break;\r\n }\r\n }\r\n\r\n System.out.print(\"\\\"\\n\");\r\n }", "public void drawString(AttributedCharacterIterator iterator, int x, int y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att\");\r\n\t}", "protected String toString(char c) {\n\t\t\treturn Character.toString(c);\n\t\t}", "char getEChar();", "public final void render(Surface surface, Shape clip, AffineTransform tx, CharSequence str,\n final int x, final int y, Color color) {\n if (str == null || str.length() == 0)\n return;\n\n int charsCount = str.length();\n\n if ((bdfFont != null) && (charsCount > 0)) {\n int offset = 0;\n final int bdfFontDepth = bdfFont.getDepth();\n\n float f_max = (1 << bdfFontDepth) - 1;\n if (f_max == 0) f_max = 1;\n\n BDFParser.Rectangle glyph_box = new BDFParser.Rectangle();\n final Point2D src = new Point2D.Double();\n final Point2D dst = new Point2D.Double();\n\n int x_min = Integer.MAX_VALUE;\n int y_min = Integer.MAX_VALUE;\n int x_max = Integer.MIN_VALUE;\n int y_max = Integer.MIN_VALUE;\n\n for (int i = 0; i < charsCount; i++) {\n BDFGlyph glyph = bdfFont.getGlyph(str.charAt(i));\n if (glyph == null) {\n continue;\n }\n\n glyph_box = glyph.getBbx(glyph_box);\n\n final int fHeight = glyph_box.height;\n final int[] fData = glyph.getData();\n final int scan = fData.length / fHeight;\n\n int fg_r = color.getRed();\n int fg_g = color.getGreen();\n int fg_b = color.getBlue();\n\n //box location\n final int bx = x + offset + glyph_box.x;\n final int by = y - fHeight - glyph_box.y;\n\n for (int k = 0; k < fHeight; k++) {\n final int offsetLine = k * scan;\n for (int j = 0; j < scan; j++) {\n int fPixel = fData[offsetLine + j];\n if (fPixel != 0) {\n\n //pixel location\n int px = bx + j;\n int py = by + k;\n\n if (tx != null) {\n src.setLocation(px, py);\n tx.transform(src, dst);\n px = (int) dst.getX();\n py = (int) dst.getY();\n }\n\n //clip\n if (clip == null || clip.contains(px, py)) {\n //compute color\n int bg_color = surface.getRGBPixel(px, py);\n\n int bg_r = (bg_color & 0x00FF0000) >> 16;\n int bg_g = (bg_color & 0x0000FF00) >> 8;\n int bg_b = (bg_color & 0x000000FF);\n\n //todo improve this pixel composition\n\n float alpha = fPixel / f_max;\n\n int r = bg_r + ((int) ((fg_r - bg_r) * alpha)) & 0xFF;\n int g = bg_g + ((int) ((fg_g - bg_g) * alpha)) & 0xFF;\n int b = bg_b + ((int) ((fg_b - bg_b) * alpha)) & 0xFF;\n\n fPixel = (((r << 16) + (g << 8) + b) | 0xFF000000);\n\n surface.setRGBPixel(px, py, fPixel);\n\n if (x_min > px) x_min = px;\n if (y_min > py) y_min = py;\n if (x_max < px) x_max = px;\n if (y_max < py) y_max = py;\n }\n }\n }\n }\n offset += glyph.getDWidth().width;\n }\n if (x_min < Integer.MAX_VALUE && y_min < Integer.MAX_VALUE &&\n x_max > Integer.MIN_VALUE && y_max > Integer.MIN_VALUE)\n surface.update(x_min, y_min, x_max - x_min + 1, y_max - y_min + 1);\n }\n }", "private void drawLetter(Canvas canvas, char c, float x, float y,\n boolean selected) {\n getRect(x, y, selRect);\n if (selected) {\n// Log.d(TAG, \"selRect: \" + selRect);\n canvas.drawRect(selRect, this.selectedTilePaint);\n } else {\n canvas.drawRect(selRect, this.tilePaint);\n }\n\n letterPaint.setTextAlign(Paint.Align.CENTER);\n // Draw the letter in the center of the tile\n FontMetrics fm = letterPaint.getFontMetrics();\n // Centering in X: use alignment (and X at midpoint)\n float x2 = this.width / 2;\n // Centering in Y: measure ascent/descent first\n float y2 = this.height / 2 - (fm.ascent + fm.descent) / 2;\n letterPaint.setTextSize(height * 0.75f);\n letterPaint.setTextScaleX(width / height);\n\n canvas.drawText(\"\" + c, x + x2, y + y2, letterPaint);\n }", "public void add(String character)\n { \n if(display.getText().equals(\"0\"))\n {\n display.setText(character);\n }\n \n else\n {\n display.setText(display.getText() + character);\n }\n }", "public void renderText(String text, int x, int y)\n {\n renderText(text, x, y, 0x00000000);\n }", "private void printchar(){\n temp = (inp).toString();\n count = (temp).length();\n System.out.println(\"Length = \"+(temp).length());\n }", "public Key<WritingShape> getGlyphKey(char ch) {\n\t\treturn new Key<WritingShape>(\"\" + ch, WritingShape.class);\n\t}", "void draw_text(int x, int y, char[][] _display, String txt) {\n for (int i = 0; i < txt.length(); i++)\n {\n draw_char(x + i, y, _display, txt.charAt(i));\n }\n }", "void drawOutput(String output);", "public void set_char(int param) {\n this.local_char = param;\n }", "public void putc(char c);", "@Override\n\tpublic void Render() {\n\t\t\n\t\tSystem.out.println(\"Chocolater Ice Cream\");\n\t\t\n\t}", "public SingleChar(char c) {\n super(SOME, NONE);\n this.c = c;\n }", "protected void render(){}", "private void renderCardStat(Graphics2D g,String str,int yOffset) {\n\t\twhile((currentCardBounds.x + currentCardBounds.width/2 - this.makeRectangleWidth(g.getFont(), str)/2) + (this.makeRectangleWidth(g.getFont(), str)) > (this.displayCardBounds.x + this.displayCardBounds.width)) {\r\n\t\t\tg.setFont(new Font(g.getFont().getFamily(),g.getFont().getStyle(),g.getFont().getSize()-1));\r\n\t\t}\r\n\t\tg.drawString(str, currentCardBounds.x + currentCardBounds.width/2 - this.makeRectangleWidth(g.getFont(), str)/2, currentCardBounds.y + currentCardBounds.height + this.makeRectangleHeight(g.getFont(), str) + (yOffset));\r\n\t\t//g.setFont(originalFont);\r\n\t}", "java.lang.String getRenderer();", "public void drawString(AttributedCharacterIterator iterator, float x, float y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att2\");\r\n\t}", "private static char rndChar() {\n\t\tRandom rnd = new Random();\n\t\treturn (char)rnd.nextInt(10);\n\t}", "public abstract char getCommentChar();", "void onCharacter(Terminal terminal, char data);", "private Suit(String s, char c) {\n\t\tthis.displayText = s;\n\t\tthis.displayChar = c;\n\t}", "@Override\n\tpublic void render() {\n\t\t\n\t}" ]
[ "0.6862989", "0.67370373", "0.66947323", "0.6627617", "0.6608495", "0.6572204", "0.6445974", "0.64128965", "0.63890743", "0.637881", "0.6352343", "0.635001", "0.6293702", "0.6240344", "0.62361664", "0.6229923", "0.6219398", "0.6212774", "0.62051976", "0.6141243", "0.61401254", "0.6109741", "0.6053286", "0.60224277", "0.6018886", "0.6016835", "0.6015914", "0.6011179", "0.6004843", "0.599675", "0.59820396", "0.59686786", "0.5966431", "0.59604377", "0.5938846", "0.5889112", "0.5885218", "0.58620965", "0.5852755", "0.5845166", "0.58402216", "0.5834926", "0.58183366", "0.5812401", "0.5808396", "0.57943666", "0.5780742", "0.57706755", "0.57586145", "0.57392365", "0.57307494", "0.57305515", "0.5723916", "0.5694391", "0.56903315", "0.56728715", "0.566753", "0.56549364", "0.5652041", "0.56470954", "0.5646463", "0.5638172", "0.5625076", "0.562384", "0.5623648", "0.56228596", "0.5621628", "0.5613696", "0.5610681", "0.56063753", "0.5598242", "0.5582487", "0.55656606", "0.5559027", "0.55586934", "0.55569905", "0.55524486", "0.5547791", "0.55354327", "0.55319786", "0.5531918", "0.5529157", "0.55273557", "0.55248094", "0.55232704", "0.5517391", "0.5507899", "0.5504164", "0.5503337", "0.55033", "0.55028194", "0.5501115", "0.5500685", "0.54974943", "0.5494818", "0.5491428", "0.5484775", "0.54827994", "0.5480611", "0.54772174" ]
0.66060454
5
Draws the specified string with a shadow.
@Override public int drawStringWithShadow(String text, float x, float y, int color) { if (Minecraft.getMinecraft().currentScreen instanceof GuiChat && color == 14737632) { doPreviewColor = true; } int returnInt = this.drawString(text, x, y, color, true); doPreviewColor = false; return returnInt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawStringWithShadow(String text, float x, float y, int color) {\n/* 36 */ drawString(text, x, y, color, true);\n/* */ }", "public static String shadowText(final String aText,\n final String aColor,\n final String aShadowColor,\n final String aBackgroundColor,\n final int aShadowShift) {\n StringBuffer sb= new StringBuffer(64);\n shadowText(sb, aText, aColor, aShadowColor, aBackgroundColor, aShadowShift);\n return sb.toString();\n}", "@Override\n public int drawString(String text, float x, float y, int color, boolean dropShadow) {\n super.enableAlpha();\n int textXPos;\n \n if (dropShadow) {\n drawNewString(color, true);\n textXPos = renderString(text, x + 1.0F, y + 1.0F, color, true);\n drawNewString(color, false);\n textXPos = Math.max(textXPos, renderString(text, x, y, color, false));\n } else {\n drawNewString(color, false);\n textXPos = renderString(text, x, y, color, false);\n }\n \n return textXPos;\n }", "public static StringBuffer shadowText(final StringBuffer aBuf,\n final String aText,\n final String aColor,\n final String aShadowColor,\n final String aBackgroundColor,\n final int aShadowShift) {\n aBuf.append(\"<span style=\\\"position:relative; color:\");\n aBuf.append(aShadowColor).append(\"\\\">\");\n aBuf.append(aText);\n aBuf.append(\"<font \");\n if (StringUtility.isNotBlank(aBackgroundColor)) { // invisible when no css\n aBuf.append(\"color=\\\"\").append(aBackgroundColor).append(\"\\\" \");\n }\n aBuf.append(\"style=\\\"position:absolute; color:\");\n aBuf.append(aColor);\n aBuf.append(\"; left:\").append(aShadowShift);\n aBuf.append(\"px; top:\").append(aShadowShift);\n aBuf.append(\"px;\\\">\");\n aBuf.append(aText);\n aBuf.append(\"</font></span>\");\n return aBuf;\n}", "private void renderStringAtPos(String text, boolean textShadow) {\n \n boolean resetTextColor = true;\n boolean ignoreColorCodes = false;\n \n for (int stringIndex = 0; stringIndex < text.length(); stringIndex++) {\n char stringChar = text.charAt(stringIndex);\n \n //If the character is a color character and it is not the end of the text String,\n //set the text color.\n if (stringChar == 167 && stringIndex + 1 < text.length()) {\n if (!ignoreColorCodes) {\n \n char colorCodeChar = String.valueOf(text.charAt(stringIndex + 1)).toLowerCase(Locale.ROOT).charAt(0);\n int colorCodeId = \"0123456789abcdefklmnor\".indexOf(colorCodeChar);\n \n //Color code: &*\n if (colorCodeChar == '*') {\n //Toggles color code blending.\n doColorBlending = !doColorBlending;\n colorCodeId = -1;\n }\n \n //Color code: &v\n if (colorCodeChar == 'v') {\n ignoreColorCodes = true;\n colorCodeId = -1;\n }\n \n if (colorCodeId != -1) {\n if (colorCodeId < 16) {\n if (resetTextColor) {\n resetTextColor = false;\n resetColor();\n }\n \n this.randomStyle = false;\n this.boldStyle = false;\n this.strikethroughStyle = false;\n this.underlineStyle = false;\n this.italicStyle = false;\n \n if (colorCodeId < 0) {\n colorCodeId = 15;\n }\n \n if (textShadow) {\n colorCodeId += 16;\n }\n \n int colorCodeColor = this.colorCode[colorCodeId];\n \n //If color blending is not on, reset the text color.\n if (!doColorBlending) {\n resetColor();\n }\n \n addColor(colorCodeColor >> 16, colorCodeColor >> 8 & 255, colorCodeColor & 255);\n updateColor();\n \n } else {\n resetTextColor = true;\n \n //Color Code: &k\n if (colorCodeId == 16) {\n this.randomStyle = true;\n \n //Color Code: &l\n } else if (colorCodeId == 17) {\n this.boldStyle = true;\n \n //Color Code: &m\n } else if (colorCodeId == 18) {\n this.strikethroughStyle = true;\n \n //Color Code: &n\n } else if (colorCodeId == 19) {\n this.underlineStyle = true;\n \n //Color Code: &o\n } else if (colorCodeId == 20) {\n this.italicStyle = true;\n \n //Color Code: &r\n } else if (colorCodeId == 21) {\n this.randomStyle = false;\n this.boldStyle = false;\n this.strikethroughStyle = false;\n this.underlineStyle = false;\n this.italicStyle = false;\n \n resetColor();\n colorCodeCount = 1;\n totalRColor = baseTextColor >> 16 & 255;\n totalGColor = baseTextColor & 255;\n totalBColor = baseTextColor >> 8 & 255;\n alphaColor = 100;\n \n updateColor();\n }\n }\n }\n }\n \n stringIndex++;\n } else {\n resetTextColor = true;\n ignoreColorCodes = false;\n \n int stringCharIndex = \"\\u00c0\\u00c1\\u00c2\\u00c8\\u00ca\\u00cb\\u00cd\\u00d3\\u00d4\\u00d5\\u00da\\u00df\\u00e3\\u00f5\\u011f\\u0130\\u0131\\u0152\\u0153\\u015e\\u015f\\u0174\\u0175\\u017e\\u0207\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000 !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\\u0000\\u00c7\\u00fc\\u00e9\\u00e2\\u00e4\\u00e0\\u00e5\\u00e7\\u00ea\\u00eb\\u00e8\\u00ef\\u00ee\\u00ec\\u00c4\\u00c5\\u00c9\\u00e6\\u00c6\\u00f4\\u00f6\\u00f2\\u00fb\\u00f9\\u00ff\\u00d6\\u00dc\\u00f8\\u00a3\\u00d8\\u00d7\\u0192\\u00e1\\u00ed\\u00f3\\u00fa\\u00f1\\u00d1\\u00aa\\u00ba\\u00bf\\u00ae\\u00ac\\u00bd\\u00bc\\u00a1\\u00ab\\u00bb\\u2591\\u2592\\u2593\\u2502\\u2524\\u2561\\u2562\\u2556\\u2555\\u2563\\u2551\\u2557\\u255d\\u255c\\u255b\\u2510\\u2514\\u2534\\u252c\\u251c\\u2500\\u253c\\u255e\\u255f\\u255a\\u2554\\u2569\\u2566\\u2560\\u2550\\u256c\\u2567\\u2568\\u2564\\u2565\\u2559\\u2558\\u2552\\u2553\\u256b\\u256a\\u2518\\u250c\\u2588\\u2584\\u258c\\u2590\\u2580\\u03b1\\u03b2\\u0393\\u03c0\\u03a3\\u03c3\\u03bc\\u03c4\\u03a6\\u0398\\u03a9\\u03b4\\u221e\\u2205\\u2208\\u2229\\u2261\\u00b1\\u2265\\u2264\\u2320\\u2321\\u00f7\\u2248\\u00b0\\u2219\\u00b7\\u221a\\u207f\\u00b2\\u25a0\\u0000\".indexOf(stringChar);\n \n if (this.randomStyle && stringCharIndex != -1) {\n int stringCharWidth = this.getCharWidth(stringChar);\n char randomChar;\n \n //Randomly chooses characters until a character of the same width is found.\n do {\n stringCharIndex = super.fontRandom.nextInt(\"\\u00c0\\u00c1\\u00c2\\u00c8\\u00ca\\u00cb\\u00cd\\u00d3\\u00d4\\u00d5\\u00da\\u00df\\u00e3\\u00f5\\u011f\\u0130\\u0131\\u0152\\u0153\\u015e\\u015f\\u0174\\u0175\\u017e\\u0207\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000 !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\\u0000\\u00c7\\u00fc\\u00e9\\u00e2\\u00e4\\u00e0\\u00e5\\u00e7\\u00ea\\u00eb\\u00e8\\u00ef\\u00ee\\u00ec\\u00c4\\u00c5\\u00c9\\u00e6\\u00c6\\u00f4\\u00f6\\u00f2\\u00fb\\u00f9\\u00ff\\u00d6\\u00dc\\u00f8\\u00a3\\u00d8\\u00d7\\u0192\\u00e1\\u00ed\\u00f3\\u00fa\\u00f1\\u00d1\\u00aa\\u00ba\\u00bf\\u00ae\\u00ac\\u00bd\\u00bc\\u00a1\\u00ab\\u00bb\\u2591\\u2592\\u2593\\u2502\\u2524\\u2561\\u2562\\u2556\\u2555\\u2563\\u2551\\u2557\\u255d\\u255c\\u255b\\u2510\\u2514\\u2534\\u252c\\u251c\\u2500\\u253c\\u255e\\u255f\\u255a\\u2554\\u2569\\u2566\\u2560\\u2550\\u256c\\u2567\\u2568\\u2564\\u2565\\u2559\\u2558\\u2552\\u2553\\u256b\\u256a\\u2518\\u250c\\u2588\\u2584\\u258c\\u2590\\u2580\\u03b1\\u03b2\\u0393\\u03c0\\u03a3\\u03c3\\u03bc\\u03c4\\u03a6\\u0398\\u03a9\\u03b4\\u221e\\u2205\\u2208\\u2229\\u2261\\u00b1\\u2265\\u2264\\u2320\\u2321\\u00f7\\u2248\\u00b0\\u2219\\u00b7\\u221a\\u207f\\u00b2\\u25a0\\u0000\".length());\n randomChar = \"\\u00c0\\u00c1\\u00c2\\u00c8\\u00ca\\u00cb\\u00cd\\u00d3\\u00d4\\u00d5\\u00da\\u00df\\u00e3\\u00f5\\u011f\\u0130\\u0131\\u0152\\u0153\\u015e\\u015f\\u0174\\u0175\\u017e\\u0207\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000 !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\\u0000\\u00c7\\u00fc\\u00e9\\u00e2\\u00e4\\u00e0\\u00e5\\u00e7\\u00ea\\u00eb\\u00e8\\u00ef\\u00ee\\u00ec\\u00c4\\u00c5\\u00c9\\u00e6\\u00c6\\u00f4\\u00f6\\u00f2\\u00fb\\u00f9\\u00ff\\u00d6\\u00dc\\u00f8\\u00a3\\u00d8\\u00d7\\u0192\\u00e1\\u00ed\\u00f3\\u00fa\\u00f1\\u00d1\\u00aa\\u00ba\\u00bf\\u00ae\\u00ac\\u00bd\\u00bc\\u00a1\\u00ab\\u00bb\\u2591\\u2592\\u2593\\u2502\\u2524\\u2561\\u2562\\u2556\\u2555\\u2563\\u2551\\u2557\\u255d\\u255c\\u255b\\u2510\\u2514\\u2534\\u252c\\u251c\\u2500\\u253c\\u255e\\u255f\\u255a\\u2554\\u2569\\u2566\\u2560\\u2550\\u256c\\u2567\\u2568\\u2564\\u2565\\u2559\\u2558\\u2552\\u2553\\u256b\\u256a\\u2518\\u250c\\u2588\\u2584\\u258c\\u2590\\u2580\\u03b1\\u03b2\\u0393\\u03c0\\u03a3\\u03c3\\u03bc\\u03c4\\u03a6\\u0398\\u03a9\\u03b4\\u221e\\u2205\\u2208\\u2229\\u2261\\u00b1\\u2265\\u2264\\u2320\\u2321\\u00f7\\u2248\\u00b0\\u2219\\u00b7\\u221a\\u207f\\u00b2\\u25a0\\u0000\".charAt(stringCharIndex);\n } while (stringCharWidth != this.getCharWidth(randomChar));\n \n stringChar = randomChar;\n }\n \n float charShadowOffset = stringCharIndex == -1 || super.getUnicodeFlag() ? 0.5f : 1f;\n boolean doCharShadow = (stringChar == 0 || stringCharIndex == -1 || super.getUnicodeFlag()) && textShadow;\n \n if (doCharShadow) {\n super.posX -= charShadowOffset;\n super.posY -= charShadowOffset;\n }\n \n float renderOffset = renderChar(stringChar, italicStyle);\n \n if (doCharShadow) {\n super.posX += charShadowOffset;\n super.posY += charShadowOffset;\n }\n \n if (boldStyle) {\n super.posX += charShadowOffset;\n \n if (doCharShadow) {\n super.posX -= charShadowOffset;\n super.posY -= charShadowOffset;\n }\n \n this.renderChar(stringChar, italicStyle);\n super.posX -= charShadowOffset;\n \n if (doCharShadow) {\n super.posX += charShadowOffset;\n super.posY += charShadowOffset;\n }\n \n renderOffset++;\n }\n doDraw(renderOffset);\n }\n }\n }", "public void strokeString(float x, float y, String text);", "public abstract void drawString(String str, int x, int y);", "@ExposedMethod\n\tfinal PyString shadowstr___repr__() {\n\t\tString fmt = \"PyShadowString(%.200s, %.200s)\";\n\t\treturn Py.newString(String.format(fmt, super.__repr__(), shadow.__repr__()));\n\t}", "private void drawCenteredString(String text, float x, float y, int color)\n {\n this.getFontRenderer().drawStringWithShadow(text, (x - this.getFontRenderer().getStringWidth(text) / 2), y, color);\n }", "@Override\n public int drawString(String text, int x, int y, int color) {\n return this.drawString(text, x, y, color, false);\n }", "@Override\n public void drawString(String str, int x, int y) {\n graphics.drawString(str, x, y - descent);\n if (bold) {\n graphics.drawString(str, x + 1, y - descent);\n }\n\n if (underline) {\n graphics.drawLine(x, y - 1, x + str.length() * char_width, y - 1);\n }\n\n }", "public abstract double drawString(AEColor clr, double font_size, String str, double mid_x, double mid_y);", "private void drawString(Graphics g, String s, int x, int y) {\n g.setColor(colour);\n g.setFont(FONT);\n FontMetrics fm = g.getFontMetrics(FONT);\n g.drawString(s, x * fm.charWidth('W'), y * fm.getAscent());\n }", "private int renderString(String text, float x, float y, int color, boolean dropShadow) {\n if (super.getBidiFlag()) {\n text = bidirectionalReorder(text);\n }\n \n updateColor();\n super.posX = x;\n super.posY = y;\n renderStringAtPos(text, dropShadow);\n return (int) super.posX;\n }", "public PyShadowString(String primary, String shadow) {\n\t\tthis(TYPE, Py.newString(primary), Py.newString(shadow), new PyList());\n\t}", "public void renderText(String text, int x, int y)\n {\n renderText(text, x, y, 0x00000000);\n }", "public void draw(String str, double x, double y, double size, int color) {\n draw(str, x, y, size, color, Align.LEFT);\n }", "private PyShadowString(PyObject primary, PyObject shadow) {\n\t\tthis(TYPE, primary, shadow, new PyList());\n\t}", "public void drawString(String s, float x, float y)\r\n\t{\r\n\t\tdrawText(_g2.getFont(), s, (int) x, (int) y);\r\n\t}", "private void drawString( Graphics2D g2, String str, Point2D.Double p, Color colour )\r\n {\r\n double x = translateX( p.getX() );\r\n double y = translateY( p.getY() );\r\n \r\n Font f = g2.getFont().deriveFont( FONT_SIZE );\r\n g2.setFont( f );\r\n \r\n g2.setColor( colour );\r\n g2.drawString( str, (float)x, (float)y );\r\n }", "public void renderText(String text, int x, int y, int color)\n {\n renderText(text, x, y, color, 1.0f);\n }", "private void drawText(Graphics2D g2, String text, String fontName) {\n\n int fontSize = Math.round(getHeight() * factor);\n\n Font baseFont = new Font(fontName, Font.PLAIN, fontSize);\n Font font = baseFont.deriveFont(attr);\n\n GlyphVector gv = font.createGlyphVector(frc, text);\n Rectangle pixelBounds = gv.getPixelBounds(frc, 0, 0);\n\n int centerX = getWidth() / 2;\n int centerY = getHeight() / 2;\n\n float offsetX = pixelBounds.x + (pixelBounds.width / 2);\n float offsetY = pixelBounds.y + (pixelBounds.height / 2);\n\n AffineTransform at = new AffineTransform();\n at.translate(centerX - offsetX, centerY - offsetY);\n Shape outline = gv.getOutline();\n outline = at.createTransformedShape(outline);\n g2.fill(outline);\n }", "public void fillString(float x, float y, String text);", "void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color);", "public void a(zf zfVar, String str, Canvas canvas, float f, float f2, TextPaint textPaint, boolean z) {\n if (z && (zfVar instanceof zs)) {\n textPaint.setAlpha(255);\n }\n if (str != null) {\n canvas.drawText(str, f, f2, textPaint);\n } else {\n canvas.drawText(zfVar.b.toString(), f, f2, textPaint);\n }\n }", "public void drawString(String str, int x, int y)\r\n\t{\r\n\t\tdrawText(_g2.getFont(), str, x, y);\r\n\t}", "private void addText(Graphics g, Font font, Color frontColor, Rectangle rectangle, Color backColor, String str, int xPos, int yPos) {\n g.setFont(font);\n g.setColor(frontColor);\n if (rectangle != null) {\n g.drawRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n }\n g.setColor(backColor);\n if (rectangle != null) {\n g.fillRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n }\n g.setColor(frontColor);\n g.drawString(str, xPos, yPos);\n }", "public void draw(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "public LabelBuilder setTextShadow(boolean textShadow) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.setTextShadow(textShadow);\n\t\treturn this;\n\t}", "public void draw(String str, double x, double y, double size, int color, Align align) {\n GL11.glEnable(GL11.GL_BLEND);\n //GL11.glDepthMask(false);\n double scale = size / mcFont().FONT_HEIGHT;\n GL11.glPushMatrix(); {\n GL11.glTranslated(x, y, 0);\n GL11.glScaled(scale, scale, 1);\n String[] ss = str.split(\"\\n\");\n for(int i = 0; i < ss.length; ++i) {\n GL11.glPushMatrix(); {\n double dy = i * mcFont().FONT_HEIGHT;\n GL11.glTranslated(0, dy, 0);\n drawSingleLine(ss[i], color, align);\n } GL11.glPopMatrix();\n }\n } GL11.glPopMatrix();\n }", "void drawMessage(String message);", "public void drawMessage(Graphics2D g2d, String s)\r\n\t\t{\r\n\t\t\tint widthR = 100, heightR = 30;\r\n\t\t\tg2d.setColor(new Color(176, 163, 255, 180));\r\n\t\t\tg2d.fillRoundRect(x + (width-widthR)/2, y - height + 20, widthR, heightR, 15, 15);\r\n\t\t\tFont font = new Font(\"Serif\", Font.PLAIN, 18);\r\n\t\t\tg2d.setFont(font);\r\n\t\t\tFontMetrics fm = g2d.getFontMetrics();\r\n\t\t\tg2d.setColor(new Color(0,0,0, 140));\r\n\t\t\tg2d.drawString(s,x + (width-fm.stringWidth(s))/2, y - height + 40);\r\n\t\t}", "public void drawString(AttributedCharacterIterator iterator, int x, int y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att\");\r\n\t}", "void RenderString(GameContainer gameContainer, Graphics graphics)\r\n\t{\n\t\t\r\n\t}", "public void drawString(String str, int x, int y, int col) {\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tdrawToArr(letters[fongLegend.indexOf(str.charAt(i))], x + (i << 3),\n\t\t\t\t\ty, 8, 8, col);\n\t\t}\n\t}", "public void drawText(Font theFont, String str, int x, int y)\r\n\t{\n\t\tFont ft = g.getFont();\r\n\r\n\t\tg.setFont(theFont);\r\n\r\n\t\t// @@@ IM ignore the WMFGraphics method, since it relies on JDK1.2 code\r\n\t\t// (AttributedIterator)\r\n\t\t// g.drawString(str, x, y);\r\n\t\twmf.textOut(x, y, str);\r\n\r\n\t\t// restore the font\r\n\t\tg.setFont(ft);\r\n\t\tif (DEBUG_OUTPUT)\r\n\t\t\tMWC.Utilities.Errors.Trace.trace(\"drawText\");\r\n\t}", "public void a(zf zfVar, String str, Canvas canvas, float f, float f2, Paint paint) {\n if (str != null) {\n canvas.drawText(str, f, f2, paint);\n } else {\n canvas.drawText(zfVar.b.toString(), f, f2, paint);\n }\n }", "@Override\n\tpublic void draw3dText(Vector3f location, String textString) {\n\n\t}", "public void drawString(AttributedCharacterIterator iterator, float x, float y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att2\");\r\n\t}", "@Override\n\tpublic void paint(Graphics e) {\n\t\tsuper.paint(e);\n\t\te.drawString(text, 20, 20);\n\t}", "public void render (DrawingCanvas canvas){\n //System.out.println(\"drawing \"+wd+\"*\"+ht+\" at (\"+x+\",\"+y+\")\");\n canvas.setForeground(col);\n canvas.drawString(str, x, y, false);\n canvas.setForeground(Color.lightGray);\n canvas.drawRect(x,y-13,(str.length()*8),16);\n }", "private static void drawOutlineText(Canvas canvas, Paint textPaint, String str,\n float x, float y) {\n // Is there a better way to do this?\n textPaint.setColor(0xff000000);\n canvas.drawText(str, x-1, y, textPaint);\n canvas.drawText(str, x+1, y, textPaint);\n canvas.drawText(str, x, y-1, textPaint);\n canvas.drawText(str, x, y+1, textPaint);\n canvas.drawText(str, x-0.7f, y-0.7f, textPaint);\n canvas.drawText(str, x+0.7f, y-0.7f, textPaint);\n canvas.drawText(str, x-0.7f, y+0.7f, textPaint);\n canvas.drawText(str, x+0.7f, y+0.7f, textPaint);\n textPaint.setColor(0xffffffff);\n canvas.drawText(str, x, y, textPaint);\n }", "@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawString(str, 10, 10);\r\n\t\tg.drawLine(10, 20, 110, 20);\r\n\t\tg.drawRect(pX, 30, 100, 100);\r\n\t\t\r\n\t}", "public void drawString( String s,double x,double y ) {\n\t\tgraphics.drawString( s,(int)(x * scale),(int)(y * scale) );\n\t}", "void drawOutput(String output);", "@Override\n public void drawBytes(byte[] buf, int s, int len, int x, int y) {\n graphics.drawBytes(buf, s, len, x, y - descent);\n if (bold) {\n graphics.drawBytes(buf, s, len, x + 1, y - descent);\n }\n\n if (underline) {\n graphics.drawLine(x, y - 1, x + len * char_width, y - 1);\n }\n\n }", "public static void drawText(String text, double[] color, double rasterPosX, double rasterPosY) {\n gl.glColor3d(color[0], color[1], color[2]);\n gl.glRasterPos2d(rasterPosX, rasterPosY);\n glut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, text);\n }", "protected void drawRainbowTitle(Graphics2D g2d, Font font, List<Color> colors, int offsetX, String text)\n {\n g2d.setFont(new Font(font.getName(), Font.PLAIN, 140));\n Color curr = colors.get(0);\n g2d.setColor(curr);\n\n for (int i = 0; i < text.length(); i++)\n {\n g2d.drawString(String.valueOf(text.charAt(i)), 80 * i + offsetX, 200);\n\n if (text.charAt(i) == ' ') continue;\n curr = colors.get((colors.indexOf(curr) + 1) % colors.size());\n g2d.setColor(curr);\n\n }\n }", "public PyString getshadow() {\n\t\treturn shadowstr_getshadow();\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 void renderTypeString() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(Color.BLACK);\n StdDraw.setPenColor(Color.WHITE);\n StdDraw.enableDoubleBuffering();\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2, \"Typed the seed and end with letter S\");\n StdDraw.show();\n }", "@Override\n\tpublic void draw(FontRenderer fontRenderer, int x, int y, int backgroundColor, int foregroundColor) {\n\t\tfontRenderer.drawString(this.displayName, x, y, foregroundColor);\n\t}", "protected void paintGutterText(Graphics gfx, int line, int x) {\n String text = ta.getGutterText(line);\n if (text == null) {\n return;\n }\n \n gfx.setFont(getFont());\n Color textColor = ta.getGutterTextColor(line);\n if (textColor == null) {\n gfx.setColor(getForeground());\n } else {\n gfx.setColor(textColor);\n }\n int y = ta.lineToY(line) + fm.getHeight();\n \n // draw 4 times to make it appear bold, displaced 1px to the right, to the bottom and bottom right.\n //int len = text.length() > ta.gutterChars ? ta.gutterChars : text.length();\n Utilities.drawTabbedText(new Segment(text.toCharArray(), 0, text.length()),\n ta.getGutterMargins(), y, gfx, this, 0);\n Utilities.drawTabbedText(new Segment(text.toCharArray(), 0, text.length()),\n ta.getGutterMargins() + 1, y, gfx, this, 0);\n Utilities.drawTabbedText(new Segment(text.toCharArray(), 0, text.length()),\n ta.getGutterMargins(), y + 1, gfx, this, 0);\n Utilities.drawTabbedText(new Segment(text.toCharArray(), 0, text.length()),\n ta.getGutterMargins() + 1, y + 1, gfx, this, 0);\n }", "public void drawFrame(int x, int y, String s, boolean k) {\n if (!k) {\n Font font1 = new Font(\"Monaco\", Font.BOLD, 15);\n StdDraw.setPenColor(StdDraw.WHITE);\n StdDraw.setFont(font1);\n int centX = x;\n int centY = y;\n StdDraw.text(centX, centY, s);\n StdDraw.show();\n } else {\n StdDraw.clear(Color.BLACK);\n StdDraw.show();\n drawFrame(x, y, s, false);\n\n }\n }", "private void drawXYZText() {\n\t\t//Draw text X - red\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glRasterPos3f(1,0,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"X\");\n\t\tgl.glEnd();\n\t\t//Draw text -X - red\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glRasterPos3f(-1,0,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-X\");\n\t\tgl.glEnd();\n\t\t\n\t\t//Draw text Y - Green\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glRasterPos3f(0,1,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"Y\");\n\t\tgl.glEnd();\n\t\t//Draw text -Y - Green\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glRasterPos3f(0,-1,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-Y\");\n\t\tgl.glEnd();\n\t\t\n\t\t//Draw text Z - Blue\n\t\tgl.glColor3f(0.0f, 0.0f, 1.0f);\n\t\tgl.glRasterPos3f(0,0,1);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"Z\");\n\t\tgl.glEnd();\n\t\t//Draw text -Z - Blue\n\t\tgl.glColor3f(0.0f, 0.0f, 1.0f);\n\t\tgl.glRasterPos3f(0,0,-1);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-Z\");\n\t\tgl.glEnd();\n\t}", "public void displayToScreen(String str){\r\n textPane1.setText(str);\r\n paintDiamond();\r\n }", "public String createDrawTextString(int width, int height, int fontSize, String message) {\n\t\tint size = (int) Math.ceil(fontSize * height / 1080D);\n\t\tint borderw = (int) Math.ceil(size * 7D / fontSize);\n\t\ttry (Writer writer = new BufferedWriter(\n\t\t\t\tnew OutputStreamWriter(new FileOutputStream(tempOverlayFile), Charset.forName(\"UTF-8\")))) {\n\t\t\twriter.write(message);\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn \"\";\n\t\t}\n\t\tString drawText = \"drawtext=x=(w-tw)*0.5:y=0.935*(h-0.5*\" + size\n\t\t\t\t+ \"):bordercolor=black:fontcolor=white:borderw=\" + borderw + \":fontfile=\" + getFontFile() + \":fontsize=\"\n\t\t\t\t+ size + \":textfile=\" + tempOverlayFilename;\n\t\treturn drawText;\n\t}", "public void setDrawString(int drawStringX, int drawStringY){\n this.drawStringX = drawStringX;\n this.drawStringY = drawStringY;\n }", "@Override\n\t public void onDrawShadow(Canvas canvas) {\n\n\t // Draws the ColorDrawable in the Canvas passed in from the system.\n\t shadow.draw(canvas);\n\t }", "@Override\n public void fillText(String text, double x, double y) {\n graphicsEnvironmentImpl.fillText(canvas, text, x, y);\n }", "private void drawStringX(String s, int x, int y, Graphics g)\r\n {\r\n int strW = fm.stringWidth( s );\r\n int strH = 10; //right?\r\n g.drawString( s, x - strW/2, y + strH);\r\n }", "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 }", "private void drawStrings(Graphics g, int wid, int hei) {\n Font f = new Font(\"Font.PLAIN\", Font.BOLD, hei / 20);\n g.setFont(f);\n g.setColor(Color.white);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 - 2, hei / 10 - 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 5, hei / 10 * 3 - 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 - 2, hei / 2 - 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 - 2, hei / 2 + hei / 20 + 3);\n g.setColor(Color.black);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 + 2, hei / 10 + 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 9, hei / 10 * 3 + 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 + 2, hei / 2 + 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 + 2, hei / 2 + hei / 20 + 7);\n g.setColor(Color.red);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20, hei / 10);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 7, hei / 10 * 3);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20, hei / 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63, hei / 2 + hei / 20 + 5);\n }", "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "@Override\n public void strokeText(String text, double x, double y) {\n graphicsEnvironmentImpl.strokeText(canvas, text, x, y);\n }", "@Override\n public void draw( Graphics g )\n {\n g.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\n g.setColor( Color.BLUE );\n g.fillOval( baseX, baseY, myWidth, myHeight );\n g.setColor( Color.BLACK );\n g.drawString( card, baseX + 7, baseY + 20 ); }", "@Override\r\n\tpublic void onCustomDraw(Graphics2D g) {\n\t\tg.setColor(Color.black);\r\n\t\tg.fillRect(x, y, width, height);\r\n\t\tg.setColor(Color.green);\r\n\t\tfor(int i = 0; i < 50; i++){\r\n\t\t\tif(text[i] != null){\r\n\t\t\t\tg.drawString(text[i], 11, (i*10)+20);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public GraphicsText(String text, float x, float y){\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n textColor = Color.BLACK;\r\n font = new Font(\"SanSerif\", Font.PLAIN, 14);\r\n }", "private void renderCardStat(Graphics2D g,String str,int yOffset) {\n\t\twhile((currentCardBounds.x + currentCardBounds.width/2 - this.makeRectangleWidth(g.getFont(), str)/2) + (this.makeRectangleWidth(g.getFont(), str)) > (this.displayCardBounds.x + this.displayCardBounds.width)) {\r\n\t\t\tg.setFont(new Font(g.getFont().getFamily(),g.getFont().getStyle(),g.getFont().getSize()-1));\r\n\t\t}\r\n\t\tg.drawString(str, currentCardBounds.x + currentCardBounds.width/2 - this.makeRectangleWidth(g.getFont(), str)/2, currentCardBounds.y + currentCardBounds.height + this.makeRectangleHeight(g.getFont(), str) + (yOffset));\r\n\t\t//g.setFont(originalFont);\r\n\t}", "public void addShadow() {\n startShadow();\n }", "public ColouredString(String string) {\n this.content = string;\n }", "@Override\r\n\tpublic void render(GameContainer gc, Renderer r) {\n\t\tr.drawTextInBox(posX, posY, width, height, color1, text);\r\n\t\t//r.noiseGen();\r\n\t}", "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 renderText(float x ,float y ){\n ttf.drawString(x, y, text);\n }", "public void drawNoticeText(int h){\r\n Font font=new Font(\"SanSerif\",Font.BOLD,15); \r\n g.setColor(Color.red);\r\n g.setFont(font);\r\n String t=\"NOTE: All players cannot be on the same team.\";\r\n g.drawString(t,50,265);\r\n t=\"Use WASD to move.\";\r\n g.drawString(t,50,48); \r\n t=\"Press SPACE on the Start Button to Begin!\";\r\n g.drawString(t,120,h-5); \r\n \r\n font=new Font(\"SanSerif\",Font.BOLD,40); \r\n g.setColor(Color.black);\r\n g.setFont(font); \r\n t=\"Settings\";\r\n g.drawString(t,330,40); \r\n }", "private static void drawText(Canvas canvas, String text, int left, int top, int width, int maxWidth, Paint paint)\n\t{\n\t\tcanvas.save();\n\t\tint offset = Math.max(0, maxWidth - width) / 2;\n\t\tcanvas.clipRect(left, top, left + maxWidth, top + paint.getTextSize() * 2);\n\t\tcanvas.drawText(text, left + offset, top - paint.ascent(), paint);\n\t\tcanvas.restore();\n\t}", "@Override\r\n\tpublic void paint(Graphics g) {\n\t\tg.setColor(new Color((int)(Math.random() * 255),(int)(Math.random() * 255) , (int)(Math.random() * 255)));\r\n\t\tg.setFont(new Font(\"궁서\", Font.BOLD, 50));\r\n\t\t\r\n\t\tint n = (int) (Math.random() * 4);\r\n\t\tg.drawString(ss[n], x, y);\r\n\t}", "@Override\t\n public void paint(Graphics g)\n {\n\t char [] chText={'T','a','n','z','e','n','d','e',' ','S','c','h','r','i','f','t'};\n\t \n\t g.setFont (new Font(\"Helvetica\", Font.BOLD, 20));\n\t FontMetrics m=g.getFontMetrics();\n\t int height=m.getHeight ()+5;\n\t int width=m.charWidth(chText[0]);\n\t \n\t //Correct width, if a bigger char exists:\n\t for (int i=1; i < chText.length; i++)\n\t {\n\t\t if(m.charWidth(chText[i])> width)\n\t\t {\n\t\t\t width=m.charWidth(chText[i]);\n\t\t }\n\t }\t\t \n\t \n\t for (int j=0;j<chText.length;j++)\n\t {\n\t\t int start=(int)Math.round(20*Math.random());\n\t\t g.setColor(Palette[start%Palette.length]);\n\t\t g.drawChars(chText,j,1,j*width,height+start);\n\t }\n }", "public void drawString(final String msg, final int xPos, final int yPos) {\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.draw(batch, msg, xPos, yPos);\n batch.end();\n }", "public void drawString(final String msg, final int xPos, final int yPos, final Color color) {\n font.setColor(color);\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.draw(batch, msg, xPos, yPos);\n batch.end();\n }", "void drawLabel(){\n FreeTypeFontGenerator generator = new FreeTypeFontGenerator(Gdx.files.internal(\"Rubik-Regular.ttf\"));\n FreeTypeFontGenerator.FreeTypeFontParameter parameter = new FreeTypeFontGenerator.FreeTypeFontParameter();\n parameter.size = 25;\n parameter.color = Color.BLACK;\n BitmapFont font2 = generator.generateFont(parameter);\n\n font2.getData().setScale(FONT_SCALE);\n\n font2.draw(game.getBatch(), \"Please insert the IP Address\\n you see on you partner's screen\", 50, 600);\n }", "public void drawWrapped(String str, double x, double y, double size, int color, double limit) {\n double scale = size / mcFont().FONT_HEIGHT;\n FontRenderer font = mcFont();\n List<String> list = split(str, limit * font.FONT_HEIGHT / size);\n //System.out.println(\"---{\" + list.size());\n for(String s : list) {\n //System.out.println(str);\n draw(s, x, y, size, color);\n y += size;\n } \n //System.out.println(\"---}\");\n }", "private void drawText(Graphics2D g, double xCenter, double yCenter, VisualItem item, String text, boolean drawBackground)\n {\n if (m_font == null) \n {\n m_font = item.getFont();\n m_font = FontLib.getFont(m_font.getName(), m_font.getStyle(), m_font.getSize());\n }\n \n g.setFont(m_font);\n FontMetrics fm = DEFAULT_GRAPHICS.getFontMetrics(m_font);\n int textH = fm.getHeight();\n int textW = fm.stringWidth(text);\n \n \t\t// Render a filled circular background\n if (drawBackground)\n {\n \tdouble radius = Math.max(textH, textW) / 2; \t\n \tEllipse2D circle = new Ellipse2D.Double(xCenter - radius, yCenter - radius, radius * 2, radius * 2);\n \tGraphicsLib.paint(g, item, circle, getStroke(item), RENDER_TYPE_FILL);\n }\n \n\t\t// Render the text \n\t\tint textColor = item.getTextColor();\n g.setPaint(ColorLib.getColor(textColor));\n\t\t\n\t boolean useInt = 1.5 > Math.max(g.getTransform().getScaleX(), g.getTransform().getScaleY());\n if ( useInt ) {\n g.drawString(text, (int)xCenter - textW/2, (int)yCenter + textH/2 - 3);\n } else {\n g.drawString(text, (float)xCenter - textW/2, (float)yCenter + textH/2 - 3);\n }\n }", "private void draw (String printable, StringBuffer canvas) {\r\n \t\t\tcanvas.append(\"| \");\r\n \t\t\t\r\n \t\t\tcanvas.append(printable);\r\n \t\t\tfor (int i=printable.length(); i<width-4; i++) //Fill in the spaces.\r\n \t\t\t{\r\n \t\t\t\tcanvas.append(' ');\r\n \t\t\t}\r\n \t\t\tcanvas.append(\" |\\n\");\r\n \t\t}", "public void drawText(String text, float x, float y, float size) {\n\t\tTextLoader.addLargeText(text, x, y, size, this);\n\t}", "public String format(Object object){\n return \"<font\"+(this == NO_COLOR ? \"\" : \" color=#\"+getHexValue())+\">\"+object+\"</font>\";\n }", "public void drawText(final String text, final int xPos, final int yPos, final Color color){\n font.setColor(Color.BLACK);\n font.setScale(0.51f);\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n \n font.setColor(Color.WHITE);\n font.setScale(0.5f);\n batch.begin();\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n font.setScale(1f);\n }", "public void drawCenteredText(String text, int x, int y);", "public void draw(Graphics g){\n g.setColor (colour);\n g.fillOval (x,y,DIAMETER, DIAMETER);\n g.setColor (Color.black);\n g.drawString(name, x+5, y+30);\n g.setFont (new Font (\"Times New Roman\", Font.PLAIN, 16) );\n g.setColor (Color.black);\n g.drawString (Integer.toString(seatNum), x+13 ,y+18) ;\n \n \n \n \n \n \n }", "public static void draw() {\n\t\tStdDraw.clear();\n\t\tStdDraw.text(.5, .90, hint);\n\t\tStdDraw.text(.5, .5, label);\n\t\tStdDraw.text(0.5, 0.3, textBeingEntered);\n\t\tStdDraw.show(0);\n\n\t}", "public static final void drawInto(final Graphics2D g,\n final String text, final Rectangle2D rect) {\n final Graphics2D gfx = (Graphics2D) g.create();\n final StringDrawer sd = new StringDrawer(gfx, text);\n final double width = sd.getWidth();\n final Rectangle2D fit = PaintUtil.fitInto(rect, width, sd.getHeight());\n final double scale = fit.getWidth() / width;\n gfx.translate(fit.getCenterX(), fit.getCenterY());\n gfx.scale(scale, scale);\n sd.draw(ORIGIN, CENTER_H, CENTER_V);\n gfx.dispose();\n }", "private HBox createStyledText(String searched, String guess, HBox styledText, boolean isIgnoreCase) {\n int index = (isIgnoreCase ? searched.toLowerCase().indexOf(guess.toLowerCase()) : searched.indexOf(guess));\n if (index >= 0) {\n\n String beginString = searched.substring(0, index);\n String highlightedString = (isIgnoreCase ? searched.substring(index, index + guess.length()) : guess);\n String endString = searched.substring(index + guess.length());\n\n final Text begin = new Text(beginString);\n styledText.getChildren().add(begin);\n\n final Text highlighted = new Text(highlightedString);\n highlighted.getStyleClass().add(HIGHLIGHTED_DROPDOWN_CLASS);\n styledText.getChildren().add(highlighted);\n\n final Text end = new Text(endString);\n end.getStyleClass().add(USUAL_DROPDOWN_CLASS);\n styledText.getChildren().add(end);\n\n } else {\n styledText.getChildren().add(new Text(searched));\n }\n return styledText;\n }", "private void drawString(final Graphics2D gfx, final List<String> lines) {\n for (int offset = 0; offset < lines.size(); ++offset) {\n gfx.setPaint(Color.BLACK);\n gfx.drawString(\n lines.get(offset),\n 0, gfx.getFontMetrics().getHeight() * (offset + 1)\n );\n }\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 }", "@Override\n\tpublic void draw() {\n\t\tif (isWhite){\n\t\t\tSystem.out.print(\"\\u2656\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.print(\"\\u265C\");\n\t\t}\t\t\n\t}", "public void drawString(String text, CustomFont font, int RGB, int x, int y) {\n\t\tchar[] charArray = text.toCharArray();\n\n\t\tint x_off = 0;\n\t\tint y_off = 0;\n\n\t\t\n\t\tfor (int i = 0; i < charArray.length; i++) {\n\t\t\tchar c = charArray[i];\n\t\t\tSprite char_sprite = font.getCharacter(c);\n\n\t\t\t/*\n\t\t\t * New Line padding.\n\t\t\t */\n\t\t\tif (c == '\\n') {\n\t\t\t\ty_off += 16;\n\t\t\t\tx_off = 0;\n\t\t\t}\n\n\t\t\tif (char_sprite == null)\n\t\t\t\tcontinue;\n\n\t\t\t/*\n\t\t\t * Padding right.\n\t\t\t */\n\t\t\tif (c == '!' || c == '?') {\n\t\t\t\tx_off += 2;\n\t\t\t}\n\n\t\t\tdrawRenderable(char_sprite, RGB, x + x_off, y + y_off);\n\n\t\t\t/*\n\t\t\t * Padding left.\n\t\t\t */\n\n\t\t\tint next_char_index = i + 1;\n\n\t\t\tif (next_char_index < charArray.length) {\n\t\t\t\tchar next_char = charArray[next_char_index];\n\n\t\t\t\tif (next_char == '!' || next_char == '.') {\n\t\t\t\t\tx_off += 4;\n\t\t\t\t} else if (next_char == (next_char | 32)) {\n\t\t\t\t\tx_off += 6;\n\t\t\t\t} else {\n\t\t\t\t\tx_off += 7;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void draw(Graphics2D g2d) {\r\n g2d.setFont(new Font(font, Font.BOLD, size));\r\n g2d.drawString(text, x, y);\r\n }", "private void createText() {\n Texture texture = new Texture(Gdx.files.internal(\"Text/item.png\"));\n texture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n TextureRegion region = new TextureRegion(texture);\n display = new BitmapFont(Gdx.files.internal(\"Text/item.fnt\"), region, false);\n display.setUseIntegerPositions(false);\n display.setColor(Color.BLACK);\n }", "public void draw (Graphics page)\r\n {\n\tpage.drawString(\"(Math.random())\",0,0);\r\n }", "public PyShadowString() {\n\t\tthis(Py.EmptyString, Py.EmptyString);\n\t}" ]
[ "0.85872567", "0.6838142", "0.6775184", "0.6716046", "0.6706234", "0.6464351", "0.6338655", "0.6180821", "0.6069711", "0.6026173", "0.60016865", "0.59788364", "0.5939785", "0.5910144", "0.5899907", "0.5820611", "0.5810498", "0.5791698", "0.57170683", "0.57117754", "0.5684678", "0.5678541", "0.5674864", "0.561428", "0.5599755", "0.5565862", "0.55258685", "0.5495215", "0.54508626", "0.54490095", "0.54444396", "0.5441718", "0.5433784", "0.5425291", "0.54111814", "0.540119", "0.5377467", "0.53633463", "0.5353559", "0.53413963", "0.5334997", "0.5331493", "0.53148186", "0.5314186", "0.52881736", "0.5280866", "0.5275969", "0.527295", "0.5265364", "0.52637196", "0.5263394", "0.5244784", "0.5234061", "0.5221539", "0.52069443", "0.5190738", "0.51551676", "0.51423097", "0.5141391", "0.5126176", "0.51253307", "0.51238936", "0.51166856", "0.5114238", "0.5104255", "0.50695235", "0.5067316", "0.50515884", "0.500811", "0.5007634", "0.50013024", "0.50004345", "0.50002134", "0.4999914", "0.49958938", "0.49929422", "0.49873567", "0.49860242", "0.4981108", "0.49623525", "0.49598077", "0.49581984", "0.4956625", "0.4955112", "0.49529535", "0.49429107", "0.49390656", "0.49314985", "0.4928958", "0.49172267", "0.49066266", "0.48800653", "0.4879233", "0.48684677", "0.48659745", "0.48616698", "0.4860385", "0.48560306", "0.4850427", "0.48472834" ]
0.7633381
1
Draws the specified string.
@Override public int drawString(String text, int x, int y, int color) { return this.drawString(text, x, y, color, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void drawString(String str, int x, int y);", "public abstract double drawString(AEColor clr, double font_size, String str, double mid_x, double mid_y);", "public void drawString(String str, int x, int y)\r\n\t{\r\n\t\tdrawText(_g2.getFont(), str, x, y);\r\n\t}", "@Override\n public void drawString(String str, int x, int y) {\n graphics.drawString(str, x, y - descent);\n if (bold) {\n graphics.drawString(str, x + 1, y - descent);\n }\n\n if (underline) {\n graphics.drawLine(x, y - 1, x + str.length() * char_width, y - 1);\n }\n\n }", "public void draw(String str, double x, double y, double size, int color) {\n draw(str, x, y, size, color, Align.LEFT);\n }", "public void strokeString(float x, float y, String text);", "private void drawString(Graphics g, String s, int x, int y) {\n g.setColor(colour);\n g.setFont(FONT);\n FontMetrics fm = g.getFontMetrics(FONT);\n g.drawString(s, x * fm.charWidth('W'), y * fm.getAscent());\n }", "public void drawString(String s, float x, float y)\r\n\t{\r\n\t\tdrawText(_g2.getFont(), s, (int) x, (int) y);\r\n\t}", "@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawString(str, 10, 10);\r\n\t\tg.drawLine(10, 20, 110, 20);\r\n\t\tg.drawRect(pX, 30, 100, 100);\r\n\t\t\r\n\t}", "public void drawString(AttributedCharacterIterator iterator, int x, int y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att\");\r\n\t}", "public void drawString(AttributedCharacterIterator iterator, float x, float y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att2\");\r\n\t}", "public void drawMessage(Graphics2D g2d, String s)\r\n\t\t{\r\n\t\t\tint widthR = 100, heightR = 30;\r\n\t\t\tg2d.setColor(new Color(176, 163, 255, 180));\r\n\t\t\tg2d.fillRoundRect(x + (width-widthR)/2, y - height + 20, widthR, heightR, 15, 15);\r\n\t\t\tFont font = new Font(\"Serif\", Font.PLAIN, 18);\r\n\t\t\tg2d.setFont(font);\r\n\t\t\tFontMetrics fm = g2d.getFontMetrics();\r\n\t\t\tg2d.setColor(new Color(0,0,0, 140));\r\n\t\t\tg2d.drawString(s,x + (width-fm.stringWidth(s))/2, y - height + 40);\r\n\t\t}", "public void drawString( String s,double x,double y ) {\n\t\tgraphics.drawString( s,(int)(x * scale),(int)(y * scale) );\n\t}", "public void render (DrawingCanvas canvas){\n //System.out.println(\"drawing \"+wd+\"*\"+ht+\" at (\"+x+\",\"+y+\")\");\n canvas.setForeground(col);\n canvas.drawString(str, x, y, false);\n canvas.setForeground(Color.lightGray);\n canvas.drawRect(x,y-13,(str.length()*8),16);\n }", "void drawMessage(String message);", "private void drawString( Graphics2D g2, String str, Point2D.Double p, Color colour )\r\n {\r\n double x = translateX( p.getX() );\r\n double y = translateY( p.getY() );\r\n \r\n Font f = g2.getFont().deriveFont( FONT_SIZE );\r\n g2.setFont( f );\r\n \r\n g2.setColor( colour );\r\n g2.drawString( str, (float)x, (float)y );\r\n }", "public void setDrawString(int drawStringX, int drawStringY){\n this.drawStringX = drawStringX;\n this.drawStringY = drawStringY;\n }", "void RenderString(GameContainer gameContainer, Graphics graphics)\r\n\t{\n\t\t\r\n\t}", "void drawOutput(String output);", "public void draw(String str, double x, double y, double size, int color, Align align) {\n GL11.glEnable(GL11.GL_BLEND);\n //GL11.glDepthMask(false);\n double scale = size / mcFont().FONT_HEIGHT;\n GL11.glPushMatrix(); {\n GL11.glTranslated(x, y, 0);\n GL11.glScaled(scale, scale, 1);\n String[] ss = str.split(\"\\n\");\n for(int i = 0; i < ss.length; ++i) {\n GL11.glPushMatrix(); {\n double dy = i * mcFont().FONT_HEIGHT;\n GL11.glTranslated(0, dy, 0);\n drawSingleLine(ss[i], color, align);\n } GL11.glPopMatrix();\n }\n } GL11.glPopMatrix();\n }", "public void drawText(Font theFont, String str, int x, int y)\r\n\t{\n\t\tFont ft = g.getFont();\r\n\r\n\t\tg.setFont(theFont);\r\n\r\n\t\t// @@@ IM ignore the WMFGraphics method, since it relies on JDK1.2 code\r\n\t\t// (AttributedIterator)\r\n\t\t// g.drawString(str, x, y);\r\n\t\twmf.textOut(x, y, str);\r\n\r\n\t\t// restore the font\r\n\t\tg.setFont(ft);\r\n\t\tif (DEBUG_OUTPUT)\r\n\t\t\tMWC.Utilities.Errors.Trace.trace(\"drawText\");\r\n\t}", "public void draw(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "public void renderText(String text, int x, int y)\n {\n renderText(text, x, y, 0x00000000);\n }", "@Override\n\tpublic void paint(Graphics e) {\n\t\tsuper.paint(e);\n\t\te.drawString(text, 20, 20);\n\t}", "public void drawString(String str, int x, int y, int col) {\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tdrawToArr(letters[fongLegend.indexOf(str.charAt(i))], x + (i << 3),\n\t\t\t\t\ty, 8, 8, col);\n\t\t}\n\t}", "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "public void displayToScreen(String str){\r\n textPane1.setText(str);\r\n paintDiamond();\r\n }", "public void fillString(float x, float y, String text);", "public static final void drawInto(final Graphics2D g,\n final String text, final Rectangle2D rect) {\n final Graphics2D gfx = (Graphics2D) g.create();\n final StringDrawer sd = new StringDrawer(gfx, text);\n final double width = sd.getWidth();\n final Rectangle2D fit = PaintUtil.fitInto(rect, width, sd.getHeight());\n final double scale = fit.getWidth() / width;\n gfx.translate(fit.getCenterX(), fit.getCenterY());\n gfx.scale(scale, scale);\n sd.draw(ORIGIN, CENTER_H, CENTER_V);\n gfx.dispose();\n }", "private void draw (String printable, StringBuffer canvas) {\r\n \t\t\tcanvas.append(\"| \");\r\n \t\t\t\r\n \t\t\tcanvas.append(printable);\r\n \t\t\tfor (int i=printable.length(); i<width-4; i++) //Fill in the spaces.\r\n \t\t\t{\r\n \t\t\t\tcanvas.append(' ');\r\n \t\t\t}\r\n \t\t\tcanvas.append(\" |\\n\");\r\n \t\t}", "private void addText(Graphics g, Font font, Color frontColor, Rectangle rectangle, Color backColor, String str, int xPos, int yPos) {\n g.setFont(font);\n g.setColor(frontColor);\n if (rectangle != null) {\n g.drawRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n }\n g.setColor(backColor);\n if (rectangle != null) {\n g.fillRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n }\n g.setColor(frontColor);\n g.drawString(str, xPos, yPos);\n }", "public int drawString(Graphics g, String text, int x, int y, int anchors) {\r\n\t\treturn drawSubstring(g,text,0,text.length(),x,y,anchors);\r\n\t}", "public void drawString(final String msg, final int xPos, final int yPos, final Color color) {\n font.setColor(color);\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.draw(batch, msg, xPos, yPos);\n batch.end();\n }", "public void draw(Graphics2D g2d) {\r\n g2d.setFont(new Font(font, Font.BOLD, size));\r\n g2d.drawString(text, x, y);\r\n }", "public void drawString(final String msg, final int xPos, final int yPos) {\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.draw(batch, msg, xPos, yPos);\n batch.end();\n }", "public void renderText(String text, int x, int y, int color)\n {\n renderText(text, x, y, color, 1.0f);\n }", "private void drawStringX(String s, int x, int y, Graphics g)\r\n {\r\n int strW = fm.stringWidth( s );\r\n int strH = 10; //right?\r\n g.drawString( s, x - strW/2, y + strH);\r\n }", "private void drawString(final Graphics2D gfx, final List<String> lines) {\n for (int offset = 0; offset < lines.size(); ++offset) {\n gfx.setPaint(Color.BLACK);\n gfx.drawString(\n lines.get(offset),\n 0, gfx.getFontMetrics().getHeight() * (offset + 1)\n );\n }\n }", "public void drawText(String text, float x, float y, float size) {\n\t\tTextLoader.addLargeText(text, x, y, size, this);\n\t}", "private void rectangle(final Graphics2D theG2d, final double theX, \r\n final double theY, final double theWidth, \r\n final double theHeight, final String theString) { \r\n final Rectangle2D rect = \r\n new Rectangle2D.Double(theX, theY, theWidth, theHeight); \r\n if (DRAW.equals(theString)) { \r\n theG2d.draw(rect); \r\n } else { \r\n theG2d.fill(rect); \r\n } \r\n }", "public void drawCenteredText(String text, int x, int y);", "public void draw() {\n\t\tGL11.glColor3f(0.5f,0.5f,1.0f);\n\t\n\t\t// draw quad\n\t\tGL11.glBegin(GL11.GL_QUADS);\n\t\t\tGL11.glVertex2f(x,y);\n\t\t\tGL11.glVertex2f(x+width,y);\n\t\t\tGL11.glVertex2f(x+width,y+height);\n\t\t\tGL11.glVertex2f(x,y+height);\n\t\tGL11.glEnd();\n\t\t\n\t\tif(text != null || !text.equals(\"\"))\n\t\t\tfont.drawString(text, x, y);\n\t\n\t}", "@Override\n public void drawBytes(byte[] buf, int s, int len, int x, int y) {\n graphics.drawBytes(buf, s, len, x, y - descent);\n if (bold) {\n graphics.drawBytes(buf, s, len, x + 1, y - descent);\n }\n\n if (underline) {\n graphics.drawLine(x, y - 1, x + len * char_width, y - 1);\n }\n\n }", "public void drawFrame(int x, int y, String s, boolean k) {\n if (!k) {\n Font font1 = new Font(\"Monaco\", Font.BOLD, 15);\n StdDraw.setPenColor(StdDraw.WHITE);\n StdDraw.setFont(font1);\n int centX = x;\n int centY = y;\n StdDraw.text(centX, centY, s);\n StdDraw.show();\n } else {\n StdDraw.clear(Color.BLACK);\n StdDraw.show();\n drawFrame(x, y, s, false);\n\n }\n }", "private void drawText(Graphics2D g2, String text, String fontName) {\n\n int fontSize = Math.round(getHeight() * factor);\n\n Font baseFont = new Font(fontName, Font.PLAIN, fontSize);\n Font font = baseFont.deriveFont(attr);\n\n GlyphVector gv = font.createGlyphVector(frc, text);\n Rectangle pixelBounds = gv.getPixelBounds(frc, 0, 0);\n\n int centerX = getWidth() / 2;\n int centerY = getHeight() / 2;\n\n float offsetX = pixelBounds.x + (pixelBounds.width / 2);\n float offsetY = pixelBounds.y + (pixelBounds.height / 2);\n\n AffineTransform at = new AffineTransform();\n at.translate(centerX - offsetX, centerY - offsetY);\n Shape outline = gv.getOutline();\n outline = at.createTransformedShape(outline);\n g2.fill(outline);\n }", "public void paint(Graphics g) {\n\t\tg.drawRect(0, 0, getWidth() - 1, getHeight() - 1);\n\n\t\t/* display the string inside the rectangle. */\n\t\tg.drawString(strBuffer.toString(), 10, 20);\n\t}", "private void drawStrings(Graphics g, int wid, int hei) {\n Font f = new Font(\"Font.PLAIN\", Font.BOLD, hei / 20);\n g.setFont(f);\n g.setColor(Color.white);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 - 2, hei / 10 - 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 5, hei / 10 * 3 - 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 - 2, hei / 2 - 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 - 2, hei / 2 + hei / 20 + 3);\n g.setColor(Color.black);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 + 2, hei / 10 + 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 9, hei / 10 * 3 + 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 + 2, hei / 2 + 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 + 2, hei / 2 + hei / 20 + 7);\n g.setColor(Color.red);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20, hei / 10);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 7, hei / 10 * 3);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20, hei / 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63, hei / 2 + hei / 20 + 5);\n }", "public void drawStringWithShadow(String text, float x, float y, int color) {\n/* 36 */ drawString(text, x, y, color, true);\n/* */ }", "void draw_text(int x, int y, char[][] _display, String txt) {\n for (int i = 0; i < txt.length(); i++)\n {\n draw_char(x + i, y, _display, txt.charAt(i));\n }\n }", "public static final void drawBitmapString( SpriteBatch batch, String str, float x, float y, LibAnchor ank, float alpha )\n {\n int frame = 0;\n int frameWidth = NUMBERS.getImage().getFrameWidth();\n int stringWidth = ( str.length() * frameWidth );\n float drawX = x;\n float drawY = y;\n\n //consider anchor\n switch( ank )\n {\n case ELeftTop: { drawX -= 0; drawY -= 0; break; }\n case ECenterTop: { drawX -= stringWidth / 2; drawY -= 0; break; }\n case ERightTop: { drawX -= stringWidth; drawY -= 0; break; }\n case ELeftMiddle: { drawX -= 0; drawY -= NUMBERS.getImage().getTotalHeight() / 2; break; }\n case ECenterMiddle: { drawX -= stringWidth / 2; drawY -= NUMBERS.getImage().getTotalHeight() / 2; break; }\n case ERightMiddle: { drawX -= stringWidth; drawY -= NUMBERS.getImage().getTotalHeight() / 2; break; }\n case ELeftBottom: { drawX -= 0; drawY -= NUMBERS.getImage().getTotalHeight(); break; }\n case ECenterBottom: { drawX -= stringWidth / 2; drawY -= NUMBERS.getImage().getTotalHeight(); break; }\n case ERightBottom: { drawX -= stringWidth; drawY -= NUMBERS.getImage().getTotalHeight(); break; }\n }\n\n //browse all chars\n for ( int i = 0; i < str.length(); ++i )\n {\n switch ( str.charAt( i ) )\n {\n case ' ': frame = -1; break;\n case '%': frame = 10; break;\n default: frame = 0 + Integer.parseInt( String.valueOf( str.charAt( i ) ) ); break;\n }\n\n //draw frame if desired\n if ( frame == -1 )\n {\n drawX += frameWidth / 2;\n }\n else\n {\n NUMBERS.setCurrentFrameIndex( frame );\n NUMBERS.draw\n (\n batch,\n drawX,\n drawY,\n LibAnchor.ELeftTop,\n alpha,\n false,\n LibUI.SCALATION_NONE,\n LibUI.SCALATION_NONE,\n LibUI.ROTATION_NONE\n );\n\n drawX += frameWidth;\n }\n }\n }", "public void drawWrapped(String str, double x, double y, double size, int color, double limit) {\n double scale = size / mcFont().FONT_HEIGHT;\n FontRenderer font = mcFont();\n List<String> list = split(str, limit * font.FONT_HEIGHT / size);\n //System.out.println(\"---{\" + list.size());\n for(String s : list) {\n //System.out.println(str);\n draw(s, x, y, size, color);\n y += size;\n } \n //System.out.println(\"---}\");\n }", "void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color);", "void renderString(Graphics2D graphic, double x, double y, double dx, double dy, GlyphVector gv,\n Feature feature, Fill fill, double rotation) {\n AffineTransform temp = graphic.getTransform();\n AffineTransform labelAT = new AffineTransform();\n \n Point2D mapCentre = new java.awt.geom.Point2D.Double(x, y);\n Point2D graphicCentre = new java.awt.geom.Point2D.Double();\n temp.transform(mapCentre, graphicCentre);\n labelAT.translate(graphicCentre.getX(), graphicCentre.getY());\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"rotation \" + rotation);\n }\n \n double shearY = temp.getShearY();\n double scaleY = temp.getScaleY();\n double scaleX = temp.getScaleX();\n double originalRotation = Math.atan(shearY / scaleY);\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"originalRotation \" + originalRotation);\n }\n \n labelAT.rotate(rotation - originalRotation);\n \n double xToyRatio = Math.abs(scaleX / scaleY);\n labelAT.scale(xToyRatio, 1.0 / xToyRatio);\n graphic.setTransform(labelAT);\n \n applyFill(graphic, fill, feature);\n \n // we move this to the centre of the image.\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"about to draw at \" + x + \",\" + y + \" with the start of the string at \"\n + (x + dx) + \",\" + (y + dy));\n }\n \n graphic.drawGlyphVector(gv, (float) dx, (float) dy);\n // tl.draw(graphic, (float) dx, (float) dy);\n \n //graphics.drawString(label,(float)x,(float)y);\n resetFill(graphic);\n graphic.setTransform(temp);\n \n return;\n }", "private void drawStrings(Canvas canvas)\n\t{\n\t\tPaint dark = new Paint();\n\t\tdark.setARGB(255, 15, 74, 0);\n\t\tdark.setTextAlign(Paint.Align.CENTER);\n\t\tfloat cellWidth = (Math.min(getMeasuredHeight(), getMeasuredWidth()) - PADDING);\n\t\tcellWidth = cellWidth/(float)_height;\n\t\tdark.setTextSize(cellWidth / 4 * 3);\n\n\t\tTypeface font = Typeface.createFromAsset(getContext().getAssets(), \n\t\t\t\t\"fonts/Roboto.ttf\");\n\t\tdark.setTypeface(font);\n\t\tfor ( int i = 0; i < _board.getSize(); ++i ) \n\t\t{\n\t\t\tString letter = _board.getElementAt(i);\n\t\t\tint x = i % _height;\n\t\t\tint y = i / _height;\n\t\t\tcanvas.drawText(letter, x * (cellWidth) + cellWidth / 2, y * (cellWidth) + cellWidth / 4 * 3, dark);\n\t\t}\n\t}", "public GLGraphics drawText(String text, float x, float y, float w, float h) {\n\t\treturn drawText(text, x, y, w, h, VAlign.LEFT);\n\t}", "public void drawText(final String text, final int xPos, final int yPos, final Color color){\n font.setColor(Color.BLACK);\n font.setScale(0.51f);\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n \n font.setColor(Color.WHITE);\n font.setScale(0.5f);\n batch.begin();\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n font.setScale(1f);\n }", "@Override\n public void fillText(String text, double x, double y) {\n graphicsEnvironmentImpl.fillText(canvas, text, x, y);\n }", "public void drawString(String text, CustomFont font, int RGB, int x, int y) {\n\t\tchar[] charArray = text.toCharArray();\n\n\t\tint x_off = 0;\n\t\tint y_off = 0;\n\n\t\t\n\t\tfor (int i = 0; i < charArray.length; i++) {\n\t\t\tchar c = charArray[i];\n\t\t\tSprite char_sprite = font.getCharacter(c);\n\n\t\t\t/*\n\t\t\t * New Line padding.\n\t\t\t */\n\t\t\tif (c == '\\n') {\n\t\t\t\ty_off += 16;\n\t\t\t\tx_off = 0;\n\t\t\t}\n\n\t\t\tif (char_sprite == null)\n\t\t\t\tcontinue;\n\n\t\t\t/*\n\t\t\t * Padding right.\n\t\t\t */\n\t\t\tif (c == '!' || c == '?') {\n\t\t\t\tx_off += 2;\n\t\t\t}\n\n\t\t\tdrawRenderable(char_sprite, RGB, x + x_off, y + y_off);\n\n\t\t\t/*\n\t\t\t * Padding left.\n\t\t\t */\n\n\t\t\tint next_char_index = i + 1;\n\n\t\t\tif (next_char_index < charArray.length) {\n\t\t\t\tchar next_char = charArray[next_char_index];\n\n\t\t\t\tif (next_char == '!' || next_char == '.') {\n\t\t\t\t\tx_off += 4;\n\t\t\t\t} else if (next_char == (next_char | 32)) {\n\t\t\t\t\tx_off += 6;\n\t\t\t\t} else {\n\t\t\t\t\tx_off += 7;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void draw(Graphics2D gc){\r\n\r\n Font curFont = gc.getFont();\r\n gc.setFont(font);\r\n Paint curColor = gc.getPaint();\r\n gc.setPaint(textColor);\r\n //gc.drawString(text, x, y); // This would look better but doesn't seem to work with hit testing.\r\n\r\n FontRenderContext frc = gc.getFontRenderContext();\r\n TextLayout textLayout = new TextLayout(text, font, frc);\r\n AffineTransform moveTo = AffineTransform.getTranslateInstance(x, y);\r\n textShape = textLayout.getOutline(moveTo);\r\n gc.fill(textShape);\r\n gc.setFont(curFont);\r\n gc.setPaint(curColor);\r\n }", "public void renderText(float x ,float y ){\n ttf.drawString(x, y, text);\n }", "@Override\n public int drawStringWithShadow(String text, float x, float y, int color) {\n if (Minecraft.getMinecraft().currentScreen instanceof GuiChat && color == 14737632) {\n doPreviewColor = true;\n }\n \n int returnInt = this.drawString(text, x, y, color, true);\n doPreviewColor = false;\n \n return returnInt;\n }", "private void renderTypeString() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(Color.BLACK);\n StdDraw.setPenColor(Color.WHITE);\n StdDraw.enableDoubleBuffering();\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2, \"Typed the seed and end with letter S\");\n StdDraw.show();\n }", "@Override\n public void draw( Graphics g )\n {\n g.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\n g.setColor( Color.BLUE );\n g.fillOval( baseX, baseY, myWidth, myHeight );\n g.setColor( Color.BLACK );\n g.drawString( card, baseX + 7, baseY + 20 ); }", "public void paint(Graphics g) {\r\n g.drawString(message, 5, 15);\r\n }", "private static void drawOutlineText(Canvas canvas, Paint textPaint, String str,\n float x, float y) {\n // Is there a better way to do this?\n textPaint.setColor(0xff000000);\n canvas.drawText(str, x-1, y, textPaint);\n canvas.drawText(str, x+1, y, textPaint);\n canvas.drawText(str, x, y-1, textPaint);\n canvas.drawText(str, x, y+1, textPaint);\n canvas.drawText(str, x-0.7f, y-0.7f, textPaint);\n canvas.drawText(str, x+0.7f, y-0.7f, textPaint);\n canvas.drawText(str, x-0.7f, y+0.7f, textPaint);\n canvas.drawText(str, x+0.7f, y+0.7f, textPaint);\n textPaint.setColor(0xffffffff);\n canvas.drawText(str, x, y, textPaint);\n }", "private void drawStringY(String s, int x, int y, Graphics g)\r\n {\r\n int strW = fm.stringWidth( s );\r\n int strH = 10; //right?\r\n g.drawString( s, x - strW, y + strH/2);\r\n }", "@Override\n public void strokeText(String text, double x, double y) {\n graphicsEnvironmentImpl.strokeText(canvas, text, x, y);\n }", "private void renderCardStat(Graphics2D g,String str,int yOffset) {\n\t\twhile((currentCardBounds.x + currentCardBounds.width/2 - this.makeRectangleWidth(g.getFont(), str)/2) + (this.makeRectangleWidth(g.getFont(), str)) > (this.displayCardBounds.x + this.displayCardBounds.width)) {\r\n\t\t\tg.setFont(new Font(g.getFont().getFamily(),g.getFont().getStyle(),g.getFont().getSize()-1));\r\n\t\t}\r\n\t\tg.drawString(str, currentCardBounds.x + currentCardBounds.width/2 - this.makeRectangleWidth(g.getFont(), str)/2, currentCardBounds.y + currentCardBounds.height + this.makeRectangleHeight(g.getFont(), str) + (yOffset));\r\n\t\t//g.setFont(originalFont);\r\n\t}", "public static void drawStringMultiLine(MatrixStack matrixStack, FontRenderer fontRenderer, String string, int x, int y, int color) \n {\n String[] lines = string.split(\"\\\\\\\\n\");\n for (int i = 0; i < lines.length; i++) \n {\n String line = lines[i];\n fontRenderer.drawString(matrixStack, line, x, y + (fontRenderer.FONT_HEIGHT * i), color);\n }\n }", "public static void draw() {\n\t\tStdDraw.clear();\n\t\tStdDraw.text(.5, .90, hint);\n\t\tStdDraw.text(.5, .5, label);\n\t\tStdDraw.text(0.5, 0.3, textBeingEntered);\n\t\tStdDraw.show(0);\n\n\t}", "private void drawCenteredString(final String theString, final Graphics2D theGraphics) {\n final String str = theString;\n int strWidth = 0;\n int strAscent = 0;\n int x = 0;\n int y = 0;\n final FontMetrics fm = theGraphics.getFontMetrics();\n\n strWidth = fm.stringWidth(str);\n strAscent = fm.getAscent();\n x = myWidth / 2 - strWidth / 2;\n y = myHeight / 2 + strAscent / 2;\n theGraphics.drawString(str, x, y);\n }", "@Override\n\tpublic void draw(FontRenderer fontRenderer, int x, int y, int backgroundColor, int foregroundColor) {\n\t\tfontRenderer.drawString(this.displayName, x, y, foregroundColor);\n\t}", "public int drawSubstring(Graphics g, String text, int offset, int length, int x, int y, int anchors) {\r\n\t\tint xx = getX(substringWidth(text, offset, length), x, anchors);\r\n\t\tint yy = getY(y, anchors);\r\n\t\tsetColor(g.getColor());\r\n\t\tfor (int i = offset; i < offset + length; i++) {\r\n\t\t\txx = drawOneChar(g, text.charAt(i), xx, yy);\r\n\t\t}\r\n\t\tif ((style & Font.STYLE_UNDERLINED) != 0) {\r\n\t\t\tint yU = y + this.baseline + 2;\r\n\t\t\tg.drawLine(x, yU, xx - 1, yU);\r\n\t\t}\r\n\t\treturn xx;\r\n\t}", "@Override\r\n\tpublic void onCustomDraw(Graphics2D g) {\n\t\tg.setColor(Color.black);\r\n\t\tg.fillRect(x, y, width, height);\r\n\t\tg.setColor(Color.green);\r\n\t\tfor(int i = 0; i < 50; i++){\r\n\t\t\tif(text[i] != null){\r\n\t\t\t\tg.drawString(text[i], 11, (i*10)+20);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void renderText(String text, int x, int y, float scale)\n {\n renderText(text, x, y, 0x00000000, scale);\n }", "@Override\r\n\tprotected void draw(PGraphics pg) {\r\n\t\tif(font == null) {\r\n\t\t\tfont = rootContainer.getPApplet().createFont(\"Arial\", ((int)this.height * 0.8F));\r\n\t\t}\r\n\t\tpg.stroke(0);\r\n\t\tpg.strokeWeight(3);\r\n\t\tpg.noFill();\r\n\t\tif(activated == false) {\r\n\t\t}else {\r\n\t\t\tpg.line(x, y, x+height, y+height);\r\n\t\t\tpg.line(x+height, y, x, y+height);\r\n\t\t}\r\n\t\tpg.rect(x, y, height, height);\r\n\t\tpg.textAlign(PApplet.LEFT, PApplet.CENTER);\r\n\t\tpg.textFont(font);\r\n\t\tpg.fill(this.textColor.red, textColor.green, textColor.blue, textColor.alpha);\r\n\t\tpg.text(this.text, x+height+(height/2), y-3, width-height, height);\r\n\t}", "private void drawNumber(Font f,String s,int x,int y){\r\n // finds width of the string when drawn\r\n FontMetrics metrics=g.getFontMetrics(f);\r\n int n=(int)metrics.stringWidth(s); \r\n g.drawString(s,x-n/2,y); \r\n \r\n }", "@Override\n\tpublic String drawForConsole() {\n\t\tString[][] output = new String[this.getWidth()][this.getHeight()];\n\t\tString image = \"\";\n\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\t\tif (x == 0 || x == this.getWidth() - 1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (y == 0 || y == this.getHeight() -1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (this.isFilledIn()) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\toutput[x][y] = \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\t\timage += output[x][y];\n\t\t\t\tif (x == this.getWidth() - 1) {\n\t\t\t\t\timage += \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn image;\n\t}", "public void printASCIIArt(String string) {\n\t\tint width = 500;\n int height = 30;\n\n BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n java.awt.Graphics g = image.getGraphics();\n g.setFont(new Font(\"SansSerif\", Font.CENTER_BASELINE, 16));\n\n Graphics2D graphics = (Graphics2D) g;\n graphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n graphics.drawString(string, 10, 20);\n\n //save this image\n //ImageIO.write(image, \"png\", new File(\"/users/mkyong/ascii-art.png\"));\n\n for (int y = 0; y < height; y++) {\n StringBuilder sb = new StringBuilder();\n for (int x = 0; x < width; x++) {\n\n sb.append(image.getRGB(x, y) == -16777216 ? \" \" : \"$\");\n\n }\n\n if (sb.toString().trim().isEmpty()) {\n continue;\n }\n\n System.out.println(sb);\n }\n\t}", "private void drawCenteredString(Graphics g2d, String text, Rectangle rect, Font font) {\r\n FontMetrics metrics = g2d.getFontMetrics(font);\r\n int x = rect.x + (rect.width - metrics.stringWidth(text)) / 2;\r\n int y = rect.y + ((rect.height - metrics.getHeight()) / 2) + metrics.getAscent();\r\n g2d.setFont(font);\r\n g2d.drawString(text, x, y);\r\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y);", "protected void drawCenterString(String s,int y,Graphics g,Font font){\n Dimension size = getSize();\n FontMetrics metrics = g.getFontMetrics(font);\n int x = (size.width - metrics.stringWidth(s))/2;\n g.setFont(font);\n g.drawString(s,x,y - (properties.buttonHeight - metrics.getHeight())/2);\n\n }", "@Override\n\tpublic void draw3dText(Vector3f location, String textString) {\n\n\t}", "@Override\n\tpublic void render(Canvas c) {\n\t\tc.drawText(text,(float)x+width,(float)y+height , paint);\n\t\t\n\t}", "public void writeLine(String theString, int color)\r\n\t{\r\n\t\t/*\r\n\t\t * 0 = system! 1 = User Input 2 = Socket Input 3 = Other\r\n\t\t */\r\n\t\tStyleContext context = new StyleContext();\r\n\t\tstyle = context.getStyle(StyleContext.DEFAULT_STYLE);\r\n\t\tStyleConstants.setFontSize(style, 14);\r\n\t\tStyleConstants.setSpaceAbove(style, 4);\r\n\t\tStyleConstants.setSpaceBelow(style, 4);\r\n\r\n\t\tswitch (color)\r\n\t\t{\r\n\t\tcase 0:\r\n\t\t\tStyleConstants.setForeground(style, Color.GRAY);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLACK);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLUE);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tStyleConstants.setForeground(style, Color.RED);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\ttheString = theString + \"\\n\";\r\n\r\n\t\ttry\r\n\t\t{\r\n\r\n\t\t\tdoc.insertString(doc.getLength(), theString, style);\r\n\r\n\t\t}\r\n\t\tcatch (BadLocationException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// scroll to the bottom\r\n\t\ttxtDisplayArea.setCaretPosition(txtDisplayArea.getDocument()\r\n\t\t\t\t.getLength());\r\n\r\n\t}", "public void renderText(String text, int x, int y, int color, float scale)\n {\n renderText(text, x, y, color, scale, 1.0f);\n }", "public static void drawText(String text, double[] color, double rasterPosX, double rasterPosY) {\n gl.glColor3d(color[0], color[1], color[2]);\n gl.glRasterPos2d(rasterPosX, rasterPosY);\n glut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, text);\n }", "void drawError(String message);", "public void draw(Graphics g){\n g.setColor (colour);\n g.fillOval (x,y,DIAMETER, DIAMETER);\n g.setColor (Color.black);\n g.drawString(name, x+5, y+30);\n g.setFont (new Font (\"Times New Roman\", Font.PLAIN, 16) );\n g.setColor (Color.black);\n g.drawString (Integer.toString(seatNum), x+13 ,y+18) ;\n \n \n \n \n \n \n }", "@Override\n\tpublic void paint(Graphics g, String text, Dimension d) {\n\t\tif (needsRegeneratedImage || image==null){\n\t\t\timage = generateImage(g, text, d);\n\t\t\t// Now we don't need to regenerate for a while\n\t\t\tneedsRegeneratedImage=false;\n\t\t}\n\t\tg.drawImage(image, 0, 0, null);\n\t}", "public String createDrawTextString(int width, int height, int fontSize, String message) {\n\t\tint size = (int) Math.ceil(fontSize * height / 1080D);\n\t\tint borderw = (int) Math.ceil(size * 7D / fontSize);\n\t\ttry (Writer writer = new BufferedWriter(\n\t\t\t\tnew OutputStreamWriter(new FileOutputStream(tempOverlayFile), Charset.forName(\"UTF-8\")))) {\n\t\t\twriter.write(message);\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn \"\";\n\t\t}\n\t\tString drawText = \"drawtext=x=(w-tw)*0.5:y=0.935*(h-0.5*\" + size\n\t\t\t\t+ \"):bordercolor=black:fontcolor=white:borderw=\" + borderw + \":fontfile=\" + getFontFile() + \":fontsize=\"\n\t\t\t\t+ size + \":textfile=\" + tempOverlayFilename;\n\t\treturn drawText;\n\t}", "public GraphicsText(String text, float x, float y){\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n textColor = Color.BLACK;\r\n font = new Font(\"SanSerif\", Font.PLAIN, 14);\r\n }", "private void drawPosition(Position pos, TextColor color, char c, boolean wide) {\n TextGraphics text = screen.newTextGraphics();\n text.setForegroundColor(color);\n text.putString(pos.getX() * 2, pos.getY() + 1, String.valueOf(c));\n\n if (wide) {\n text.putString(pos.getX() * 2 + 1, pos.getY() + 1, String.valueOf(c));\n }\n }", "public void draw (Graphics page)\r\n {\n\tpage.drawString(\"(Math.random())\",0,0);\r\n }", "@Override\n public void updateDrawState(TextPaint ds) {\n }", "@Override\t\n public void paint(Graphics g)\n {\n\t char [] chText={'T','a','n','z','e','n','d','e',' ','S','c','h','r','i','f','t'};\n\t \n\t g.setFont (new Font(\"Helvetica\", Font.BOLD, 20));\n\t FontMetrics m=g.getFontMetrics();\n\t int height=m.getHeight ()+5;\n\t int width=m.charWidth(chText[0]);\n\t \n\t //Correct width, if a bigger char exists:\n\t for (int i=1; i < chText.length; i++)\n\t {\n\t\t if(m.charWidth(chText[i])> width)\n\t\t {\n\t\t\t width=m.charWidth(chText[i]);\n\t\t }\n\t }\t\t \n\t \n\t for (int j=0;j<chText.length;j++)\n\t {\n\t\t int start=(int)Math.round(20*Math.random());\n\t\t g.setColor(Palette[start%Palette.length]);\n\t\t g.drawChars(chText,j,1,j*width,height+start);\n\t }\n }", "public TextShape (String str, int x, int y, Color col){\n this.str = str;\n this.x = x;\n this.y = y;\n this.col = col;\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "public void displayText(String message,float x, float y, boolean bottom) {\n\t\tif (! bottom) {\n\t\t\tGlyphLayout layout = new GlyphLayout(bitmapFont, message);\n\t\t\tfloat fontWidth = layout.width;\n\t\t\tfloat fontHight = layout.height;\n\t\t\tfloat position_x = (screenWidth / 2 - fontWidth / 2) + x;\n\t\t\tfloat position_y = (screenHeight / 2 - fontHight / 2) + y;\n\t\t\tbitmapFont.draw(batch, message, position_x, position_y);\n\n\t\t} else {\n\t\t\tbitmapFont.draw(batch, message, x, y);\n\t\t}\n\t}", "private void drawXYZText() {\n\t\t//Draw text X - red\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glRasterPos3f(1,0,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"X\");\n\t\tgl.glEnd();\n\t\t//Draw text -X - red\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glRasterPos3f(-1,0,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-X\");\n\t\tgl.glEnd();\n\t\t\n\t\t//Draw text Y - Green\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glRasterPos3f(0,1,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"Y\");\n\t\tgl.glEnd();\n\t\t//Draw text -Y - Green\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glRasterPos3f(0,-1,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-Y\");\n\t\tgl.glEnd();\n\t\t\n\t\t//Draw text Z - Blue\n\t\tgl.glColor3f(0.0f, 0.0f, 1.0f);\n\t\tgl.glRasterPos3f(0,0,1);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"Z\");\n\t\tgl.glEnd();\n\t\t//Draw text -Z - Blue\n\t\tgl.glColor3f(0.0f, 0.0f, 1.0f);\n\t\tgl.glRasterPos3f(0,0,-1);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-Z\");\n\t\tgl.glEnd();\n\t}" ]
[ "0.8429499", "0.7792092", "0.77363014", "0.77175945", "0.7544196", "0.7495439", "0.74615496", "0.74466044", "0.7377974", "0.73050624", "0.7192366", "0.7175171", "0.71696943", "0.7114689", "0.7107203", "0.70879185", "0.7040844", "0.7025965", "0.70253515", "0.7018911", "0.69876313", "0.6982718", "0.6948008", "0.6925499", "0.69127804", "0.6877684", "0.6842421", "0.6836383", "0.67966986", "0.6759329", "0.67314243", "0.6729916", "0.666079", "0.66491604", "0.6633427", "0.6631101", "0.6624841", "0.6591825", "0.65772545", "0.6571852", "0.654401", "0.6511682", "0.64991194", "0.64904547", "0.64826024", "0.644603", "0.6441845", "0.64239407", "0.64201415", "0.64195204", "0.6389602", "0.63672197", "0.6363998", "0.63158804", "0.63106436", "0.6307652", "0.6299367", "0.62930197", "0.62835026", "0.626088", "0.6248721", "0.6247768", "0.6236224", "0.6234994", "0.622157", "0.62128156", "0.62104565", "0.6197871", "0.61458856", "0.614014", "0.61237484", "0.61178553", "0.6114856", "0.6104464", "0.6084291", "0.6055527", "0.60510033", "0.6037278", "0.6028119", "0.6027188", "0.6022229", "0.60221833", "0.60167974", "0.6011644", "0.6009425", "0.6003367", "0.6001264", "0.5980304", "0.59748197", "0.5973034", "0.59610593", "0.59578604", "0.5948992", "0.5945259", "0.5935393", "0.5932483", "0.5926131", "0.5925814", "0.5892395", "0.58886755" ]
0.7608714
4
Draws the specified string.
@Override public int drawString(String text, float x, float y, int color, boolean dropShadow) { super.enableAlpha(); int textXPos; if (dropShadow) { drawNewString(color, true); textXPos = renderString(text, x + 1.0F, y + 1.0F, color, true); drawNewString(color, false); textXPos = Math.max(textXPos, renderString(text, x, y, color, false)); } else { drawNewString(color, false); textXPos = renderString(text, x, y, color, false); } return textXPos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void drawString(String str, int x, int y);", "public abstract double drawString(AEColor clr, double font_size, String str, double mid_x, double mid_y);", "public void drawString(String str, int x, int y)\r\n\t{\r\n\t\tdrawText(_g2.getFont(), str, x, y);\r\n\t}", "@Override\n public void drawString(String str, int x, int y) {\n graphics.drawString(str, x, y - descent);\n if (bold) {\n graphics.drawString(str, x + 1, y - descent);\n }\n\n if (underline) {\n graphics.drawLine(x, y - 1, x + str.length() * char_width, y - 1);\n }\n\n }", "@Override\n public int drawString(String text, int x, int y, int color) {\n return this.drawString(text, x, y, color, false);\n }", "public void draw(String str, double x, double y, double size, int color) {\n draw(str, x, y, size, color, Align.LEFT);\n }", "public void strokeString(float x, float y, String text);", "private void drawString(Graphics g, String s, int x, int y) {\n g.setColor(colour);\n g.setFont(FONT);\n FontMetrics fm = g.getFontMetrics(FONT);\n g.drawString(s, x * fm.charWidth('W'), y * fm.getAscent());\n }", "public void drawString(String s, float x, float y)\r\n\t{\r\n\t\tdrawText(_g2.getFont(), s, (int) x, (int) y);\r\n\t}", "@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawString(str, 10, 10);\r\n\t\tg.drawLine(10, 20, 110, 20);\r\n\t\tg.drawRect(pX, 30, 100, 100);\r\n\t\t\r\n\t}", "public void drawString(AttributedCharacterIterator iterator, int x, int y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att\");\r\n\t}", "public void drawString(AttributedCharacterIterator iterator, float x, float y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att2\");\r\n\t}", "public void drawMessage(Graphics2D g2d, String s)\r\n\t\t{\r\n\t\t\tint widthR = 100, heightR = 30;\r\n\t\t\tg2d.setColor(new Color(176, 163, 255, 180));\r\n\t\t\tg2d.fillRoundRect(x + (width-widthR)/2, y - height + 20, widthR, heightR, 15, 15);\r\n\t\t\tFont font = new Font(\"Serif\", Font.PLAIN, 18);\r\n\t\t\tg2d.setFont(font);\r\n\t\t\tFontMetrics fm = g2d.getFontMetrics();\r\n\t\t\tg2d.setColor(new Color(0,0,0, 140));\r\n\t\t\tg2d.drawString(s,x + (width-fm.stringWidth(s))/2, y - height + 40);\r\n\t\t}", "public void drawString( String s,double x,double y ) {\n\t\tgraphics.drawString( s,(int)(x * scale),(int)(y * scale) );\n\t}", "public void render (DrawingCanvas canvas){\n //System.out.println(\"drawing \"+wd+\"*\"+ht+\" at (\"+x+\",\"+y+\")\");\n canvas.setForeground(col);\n canvas.drawString(str, x, y, false);\n canvas.setForeground(Color.lightGray);\n canvas.drawRect(x,y-13,(str.length()*8),16);\n }", "void drawMessage(String message);", "private void drawString( Graphics2D g2, String str, Point2D.Double p, Color colour )\r\n {\r\n double x = translateX( p.getX() );\r\n double y = translateY( p.getY() );\r\n \r\n Font f = g2.getFont().deriveFont( FONT_SIZE );\r\n g2.setFont( f );\r\n \r\n g2.setColor( colour );\r\n g2.drawString( str, (float)x, (float)y );\r\n }", "public void setDrawString(int drawStringX, int drawStringY){\n this.drawStringX = drawStringX;\n this.drawStringY = drawStringY;\n }", "void RenderString(GameContainer gameContainer, Graphics graphics)\r\n\t{\n\t\t\r\n\t}", "void drawOutput(String output);", "public void draw(String str, double x, double y, double size, int color, Align align) {\n GL11.glEnable(GL11.GL_BLEND);\n //GL11.glDepthMask(false);\n double scale = size / mcFont().FONT_HEIGHT;\n GL11.glPushMatrix(); {\n GL11.glTranslated(x, y, 0);\n GL11.glScaled(scale, scale, 1);\n String[] ss = str.split(\"\\n\");\n for(int i = 0; i < ss.length; ++i) {\n GL11.glPushMatrix(); {\n double dy = i * mcFont().FONT_HEIGHT;\n GL11.glTranslated(0, dy, 0);\n drawSingleLine(ss[i], color, align);\n } GL11.glPopMatrix();\n }\n } GL11.glPopMatrix();\n }", "public void drawText(Font theFont, String str, int x, int y)\r\n\t{\n\t\tFont ft = g.getFont();\r\n\r\n\t\tg.setFont(theFont);\r\n\r\n\t\t// @@@ IM ignore the WMFGraphics method, since it relies on JDK1.2 code\r\n\t\t// (AttributedIterator)\r\n\t\t// g.drawString(str, x, y);\r\n\t\twmf.textOut(x, y, str);\r\n\r\n\t\t// restore the font\r\n\t\tg.setFont(ft);\r\n\t\tif (DEBUG_OUTPUT)\r\n\t\t\tMWC.Utilities.Errors.Trace.trace(\"drawText\");\r\n\t}", "public void draw(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "public void renderText(String text, int x, int y)\n {\n renderText(text, x, y, 0x00000000);\n }", "@Override\n\tpublic void paint(Graphics e) {\n\t\tsuper.paint(e);\n\t\te.drawString(text, 20, 20);\n\t}", "public void drawString(String str, int x, int y, int col) {\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tdrawToArr(letters[fongLegend.indexOf(str.charAt(i))], x + (i << 3),\n\t\t\t\t\ty, 8, 8, col);\n\t\t}\n\t}", "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "public void displayToScreen(String str){\r\n textPane1.setText(str);\r\n paintDiamond();\r\n }", "public void fillString(float x, float y, String text);", "public static final void drawInto(final Graphics2D g,\n final String text, final Rectangle2D rect) {\n final Graphics2D gfx = (Graphics2D) g.create();\n final StringDrawer sd = new StringDrawer(gfx, text);\n final double width = sd.getWidth();\n final Rectangle2D fit = PaintUtil.fitInto(rect, width, sd.getHeight());\n final double scale = fit.getWidth() / width;\n gfx.translate(fit.getCenterX(), fit.getCenterY());\n gfx.scale(scale, scale);\n sd.draw(ORIGIN, CENTER_H, CENTER_V);\n gfx.dispose();\n }", "private void draw (String printable, StringBuffer canvas) {\r\n \t\t\tcanvas.append(\"| \");\r\n \t\t\t\r\n \t\t\tcanvas.append(printable);\r\n \t\t\tfor (int i=printable.length(); i<width-4; i++) //Fill in the spaces.\r\n \t\t\t{\r\n \t\t\t\tcanvas.append(' ');\r\n \t\t\t}\r\n \t\t\tcanvas.append(\" |\\n\");\r\n \t\t}", "private void addText(Graphics g, Font font, Color frontColor, Rectangle rectangle, Color backColor, String str, int xPos, int yPos) {\n g.setFont(font);\n g.setColor(frontColor);\n if (rectangle != null) {\n g.drawRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n }\n g.setColor(backColor);\n if (rectangle != null) {\n g.fillRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n }\n g.setColor(frontColor);\n g.drawString(str, xPos, yPos);\n }", "public int drawString(Graphics g, String text, int x, int y, int anchors) {\r\n\t\treturn drawSubstring(g,text,0,text.length(),x,y,anchors);\r\n\t}", "public void drawString(final String msg, final int xPos, final int yPos, final Color color) {\n font.setColor(color);\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.draw(batch, msg, xPos, yPos);\n batch.end();\n }", "public void draw(Graphics2D g2d) {\r\n g2d.setFont(new Font(font, Font.BOLD, size));\r\n g2d.drawString(text, x, y);\r\n }", "public void drawString(final String msg, final int xPos, final int yPos) {\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.draw(batch, msg, xPos, yPos);\n batch.end();\n }", "public void renderText(String text, int x, int y, int color)\n {\n renderText(text, x, y, color, 1.0f);\n }", "private void drawStringX(String s, int x, int y, Graphics g)\r\n {\r\n int strW = fm.stringWidth( s );\r\n int strH = 10; //right?\r\n g.drawString( s, x - strW/2, y + strH);\r\n }", "private void drawString(final Graphics2D gfx, final List<String> lines) {\n for (int offset = 0; offset < lines.size(); ++offset) {\n gfx.setPaint(Color.BLACK);\n gfx.drawString(\n lines.get(offset),\n 0, gfx.getFontMetrics().getHeight() * (offset + 1)\n );\n }\n }", "public void drawText(String text, float x, float y, float size) {\n\t\tTextLoader.addLargeText(text, x, y, size, this);\n\t}", "private void rectangle(final Graphics2D theG2d, final double theX, \r\n final double theY, final double theWidth, \r\n final double theHeight, final String theString) { \r\n final Rectangle2D rect = \r\n new Rectangle2D.Double(theX, theY, theWidth, theHeight); \r\n if (DRAW.equals(theString)) { \r\n theG2d.draw(rect); \r\n } else { \r\n theG2d.fill(rect); \r\n } \r\n }", "public void drawCenteredText(String text, int x, int y);", "public void draw() {\n\t\tGL11.glColor3f(0.5f,0.5f,1.0f);\n\t\n\t\t// draw quad\n\t\tGL11.glBegin(GL11.GL_QUADS);\n\t\t\tGL11.glVertex2f(x,y);\n\t\t\tGL11.glVertex2f(x+width,y);\n\t\t\tGL11.glVertex2f(x+width,y+height);\n\t\t\tGL11.glVertex2f(x,y+height);\n\t\tGL11.glEnd();\n\t\t\n\t\tif(text != null || !text.equals(\"\"))\n\t\t\tfont.drawString(text, x, y);\n\t\n\t}", "@Override\n public void drawBytes(byte[] buf, int s, int len, int x, int y) {\n graphics.drawBytes(buf, s, len, x, y - descent);\n if (bold) {\n graphics.drawBytes(buf, s, len, x + 1, y - descent);\n }\n\n if (underline) {\n graphics.drawLine(x, y - 1, x + len * char_width, y - 1);\n }\n\n }", "public void drawFrame(int x, int y, String s, boolean k) {\n if (!k) {\n Font font1 = new Font(\"Monaco\", Font.BOLD, 15);\n StdDraw.setPenColor(StdDraw.WHITE);\n StdDraw.setFont(font1);\n int centX = x;\n int centY = y;\n StdDraw.text(centX, centY, s);\n StdDraw.show();\n } else {\n StdDraw.clear(Color.BLACK);\n StdDraw.show();\n drawFrame(x, y, s, false);\n\n }\n }", "private void drawText(Graphics2D g2, String text, String fontName) {\n\n int fontSize = Math.round(getHeight() * factor);\n\n Font baseFont = new Font(fontName, Font.PLAIN, fontSize);\n Font font = baseFont.deriveFont(attr);\n\n GlyphVector gv = font.createGlyphVector(frc, text);\n Rectangle pixelBounds = gv.getPixelBounds(frc, 0, 0);\n\n int centerX = getWidth() / 2;\n int centerY = getHeight() / 2;\n\n float offsetX = pixelBounds.x + (pixelBounds.width / 2);\n float offsetY = pixelBounds.y + (pixelBounds.height / 2);\n\n AffineTransform at = new AffineTransform();\n at.translate(centerX - offsetX, centerY - offsetY);\n Shape outline = gv.getOutline();\n outline = at.createTransformedShape(outline);\n g2.fill(outline);\n }", "public void paint(Graphics g) {\n\t\tg.drawRect(0, 0, getWidth() - 1, getHeight() - 1);\n\n\t\t/* display the string inside the rectangle. */\n\t\tg.drawString(strBuffer.toString(), 10, 20);\n\t}", "private void drawStrings(Graphics g, int wid, int hei) {\n Font f = new Font(\"Font.PLAIN\", Font.BOLD, hei / 20);\n g.setFont(f);\n g.setColor(Color.white);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 - 2, hei / 10 - 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 5, hei / 10 * 3 - 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 - 2, hei / 2 - 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 - 2, hei / 2 + hei / 20 + 3);\n g.setColor(Color.black);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 + 2, hei / 10 + 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 9, hei / 10 * 3 + 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 + 2, hei / 2 + 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 + 2, hei / 2 + hei / 20 + 7);\n g.setColor(Color.red);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20, hei / 10);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 7, hei / 10 * 3);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20, hei / 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63, hei / 2 + hei / 20 + 5);\n }", "public void drawStringWithShadow(String text, float x, float y, int color) {\n/* 36 */ drawString(text, x, y, color, true);\n/* */ }", "void draw_text(int x, int y, char[][] _display, String txt) {\n for (int i = 0; i < txt.length(); i++)\n {\n draw_char(x + i, y, _display, txt.charAt(i));\n }\n }", "public static final void drawBitmapString( SpriteBatch batch, String str, float x, float y, LibAnchor ank, float alpha )\n {\n int frame = 0;\n int frameWidth = NUMBERS.getImage().getFrameWidth();\n int stringWidth = ( str.length() * frameWidth );\n float drawX = x;\n float drawY = y;\n\n //consider anchor\n switch( ank )\n {\n case ELeftTop: { drawX -= 0; drawY -= 0; break; }\n case ECenterTop: { drawX -= stringWidth / 2; drawY -= 0; break; }\n case ERightTop: { drawX -= stringWidth; drawY -= 0; break; }\n case ELeftMiddle: { drawX -= 0; drawY -= NUMBERS.getImage().getTotalHeight() / 2; break; }\n case ECenterMiddle: { drawX -= stringWidth / 2; drawY -= NUMBERS.getImage().getTotalHeight() / 2; break; }\n case ERightMiddle: { drawX -= stringWidth; drawY -= NUMBERS.getImage().getTotalHeight() / 2; break; }\n case ELeftBottom: { drawX -= 0; drawY -= NUMBERS.getImage().getTotalHeight(); break; }\n case ECenterBottom: { drawX -= stringWidth / 2; drawY -= NUMBERS.getImage().getTotalHeight(); break; }\n case ERightBottom: { drawX -= stringWidth; drawY -= NUMBERS.getImage().getTotalHeight(); break; }\n }\n\n //browse all chars\n for ( int i = 0; i < str.length(); ++i )\n {\n switch ( str.charAt( i ) )\n {\n case ' ': frame = -1; break;\n case '%': frame = 10; break;\n default: frame = 0 + Integer.parseInt( String.valueOf( str.charAt( i ) ) ); break;\n }\n\n //draw frame if desired\n if ( frame == -1 )\n {\n drawX += frameWidth / 2;\n }\n else\n {\n NUMBERS.setCurrentFrameIndex( frame );\n NUMBERS.draw\n (\n batch,\n drawX,\n drawY,\n LibAnchor.ELeftTop,\n alpha,\n false,\n LibUI.SCALATION_NONE,\n LibUI.SCALATION_NONE,\n LibUI.ROTATION_NONE\n );\n\n drawX += frameWidth;\n }\n }\n }", "public void drawWrapped(String str, double x, double y, double size, int color, double limit) {\n double scale = size / mcFont().FONT_HEIGHT;\n FontRenderer font = mcFont();\n List<String> list = split(str, limit * font.FONT_HEIGHT / size);\n //System.out.println(\"---{\" + list.size());\n for(String s : list) {\n //System.out.println(str);\n draw(s, x, y, size, color);\n y += size;\n } \n //System.out.println(\"---}\");\n }", "void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color);", "void renderString(Graphics2D graphic, double x, double y, double dx, double dy, GlyphVector gv,\n Feature feature, Fill fill, double rotation) {\n AffineTransform temp = graphic.getTransform();\n AffineTransform labelAT = new AffineTransform();\n \n Point2D mapCentre = new java.awt.geom.Point2D.Double(x, y);\n Point2D graphicCentre = new java.awt.geom.Point2D.Double();\n temp.transform(mapCentre, graphicCentre);\n labelAT.translate(graphicCentre.getX(), graphicCentre.getY());\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"rotation \" + rotation);\n }\n \n double shearY = temp.getShearY();\n double scaleY = temp.getScaleY();\n double scaleX = temp.getScaleX();\n double originalRotation = Math.atan(shearY / scaleY);\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"originalRotation \" + originalRotation);\n }\n \n labelAT.rotate(rotation - originalRotation);\n \n double xToyRatio = Math.abs(scaleX / scaleY);\n labelAT.scale(xToyRatio, 1.0 / xToyRatio);\n graphic.setTransform(labelAT);\n \n applyFill(graphic, fill, feature);\n \n // we move this to the centre of the image.\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"about to draw at \" + x + \",\" + y + \" with the start of the string at \"\n + (x + dx) + \",\" + (y + dy));\n }\n \n graphic.drawGlyphVector(gv, (float) dx, (float) dy);\n // tl.draw(graphic, (float) dx, (float) dy);\n \n //graphics.drawString(label,(float)x,(float)y);\n resetFill(graphic);\n graphic.setTransform(temp);\n \n return;\n }", "private void drawStrings(Canvas canvas)\n\t{\n\t\tPaint dark = new Paint();\n\t\tdark.setARGB(255, 15, 74, 0);\n\t\tdark.setTextAlign(Paint.Align.CENTER);\n\t\tfloat cellWidth = (Math.min(getMeasuredHeight(), getMeasuredWidth()) - PADDING);\n\t\tcellWidth = cellWidth/(float)_height;\n\t\tdark.setTextSize(cellWidth / 4 * 3);\n\n\t\tTypeface font = Typeface.createFromAsset(getContext().getAssets(), \n\t\t\t\t\"fonts/Roboto.ttf\");\n\t\tdark.setTypeface(font);\n\t\tfor ( int i = 0; i < _board.getSize(); ++i ) \n\t\t{\n\t\t\tString letter = _board.getElementAt(i);\n\t\t\tint x = i % _height;\n\t\t\tint y = i / _height;\n\t\t\tcanvas.drawText(letter, x * (cellWidth) + cellWidth / 2, y * (cellWidth) + cellWidth / 4 * 3, dark);\n\t\t}\n\t}", "public GLGraphics drawText(String text, float x, float y, float w, float h) {\n\t\treturn drawText(text, x, y, w, h, VAlign.LEFT);\n\t}", "public void drawText(final String text, final int xPos, final int yPos, final Color color){\n font.setColor(Color.BLACK);\n font.setScale(0.51f);\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n \n font.setColor(Color.WHITE);\n font.setScale(0.5f);\n batch.begin();\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n font.setScale(1f);\n }", "@Override\n public void fillText(String text, double x, double y) {\n graphicsEnvironmentImpl.fillText(canvas, text, x, y);\n }", "public void drawString(String text, CustomFont font, int RGB, int x, int y) {\n\t\tchar[] charArray = text.toCharArray();\n\n\t\tint x_off = 0;\n\t\tint y_off = 0;\n\n\t\t\n\t\tfor (int i = 0; i < charArray.length; i++) {\n\t\t\tchar c = charArray[i];\n\t\t\tSprite char_sprite = font.getCharacter(c);\n\n\t\t\t/*\n\t\t\t * New Line padding.\n\t\t\t */\n\t\t\tif (c == '\\n') {\n\t\t\t\ty_off += 16;\n\t\t\t\tx_off = 0;\n\t\t\t}\n\n\t\t\tif (char_sprite == null)\n\t\t\t\tcontinue;\n\n\t\t\t/*\n\t\t\t * Padding right.\n\t\t\t */\n\t\t\tif (c == '!' || c == '?') {\n\t\t\t\tx_off += 2;\n\t\t\t}\n\n\t\t\tdrawRenderable(char_sprite, RGB, x + x_off, y + y_off);\n\n\t\t\t/*\n\t\t\t * Padding left.\n\t\t\t */\n\n\t\t\tint next_char_index = i + 1;\n\n\t\t\tif (next_char_index < charArray.length) {\n\t\t\t\tchar next_char = charArray[next_char_index];\n\n\t\t\t\tif (next_char == '!' || next_char == '.') {\n\t\t\t\t\tx_off += 4;\n\t\t\t\t} else if (next_char == (next_char | 32)) {\n\t\t\t\t\tx_off += 6;\n\t\t\t\t} else {\n\t\t\t\t\tx_off += 7;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void draw(Graphics2D gc){\r\n\r\n Font curFont = gc.getFont();\r\n gc.setFont(font);\r\n Paint curColor = gc.getPaint();\r\n gc.setPaint(textColor);\r\n //gc.drawString(text, x, y); // This would look better but doesn't seem to work with hit testing.\r\n\r\n FontRenderContext frc = gc.getFontRenderContext();\r\n TextLayout textLayout = new TextLayout(text, font, frc);\r\n AffineTransform moveTo = AffineTransform.getTranslateInstance(x, y);\r\n textShape = textLayout.getOutline(moveTo);\r\n gc.fill(textShape);\r\n gc.setFont(curFont);\r\n gc.setPaint(curColor);\r\n }", "public void renderText(float x ,float y ){\n ttf.drawString(x, y, text);\n }", "@Override\n public int drawStringWithShadow(String text, float x, float y, int color) {\n if (Minecraft.getMinecraft().currentScreen instanceof GuiChat && color == 14737632) {\n doPreviewColor = true;\n }\n \n int returnInt = this.drawString(text, x, y, color, true);\n doPreviewColor = false;\n \n return returnInt;\n }", "private void renderTypeString() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(Color.BLACK);\n StdDraw.setPenColor(Color.WHITE);\n StdDraw.enableDoubleBuffering();\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2, \"Typed the seed and end with letter S\");\n StdDraw.show();\n }", "@Override\n public void draw( Graphics g )\n {\n g.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\n g.setColor( Color.BLUE );\n g.fillOval( baseX, baseY, myWidth, myHeight );\n g.setColor( Color.BLACK );\n g.drawString( card, baseX + 7, baseY + 20 ); }", "public void paint(Graphics g) {\r\n g.drawString(message, 5, 15);\r\n }", "private static void drawOutlineText(Canvas canvas, Paint textPaint, String str,\n float x, float y) {\n // Is there a better way to do this?\n textPaint.setColor(0xff000000);\n canvas.drawText(str, x-1, y, textPaint);\n canvas.drawText(str, x+1, y, textPaint);\n canvas.drawText(str, x, y-1, textPaint);\n canvas.drawText(str, x, y+1, textPaint);\n canvas.drawText(str, x-0.7f, y-0.7f, textPaint);\n canvas.drawText(str, x+0.7f, y-0.7f, textPaint);\n canvas.drawText(str, x-0.7f, y+0.7f, textPaint);\n canvas.drawText(str, x+0.7f, y+0.7f, textPaint);\n textPaint.setColor(0xffffffff);\n canvas.drawText(str, x, y, textPaint);\n }", "private void drawStringY(String s, int x, int y, Graphics g)\r\n {\r\n int strW = fm.stringWidth( s );\r\n int strH = 10; //right?\r\n g.drawString( s, x - strW, y + strH/2);\r\n }", "@Override\n public void strokeText(String text, double x, double y) {\n graphicsEnvironmentImpl.strokeText(canvas, text, x, y);\n }", "private void renderCardStat(Graphics2D g,String str,int yOffset) {\n\t\twhile((currentCardBounds.x + currentCardBounds.width/2 - this.makeRectangleWidth(g.getFont(), str)/2) + (this.makeRectangleWidth(g.getFont(), str)) > (this.displayCardBounds.x + this.displayCardBounds.width)) {\r\n\t\t\tg.setFont(new Font(g.getFont().getFamily(),g.getFont().getStyle(),g.getFont().getSize()-1));\r\n\t\t}\r\n\t\tg.drawString(str, currentCardBounds.x + currentCardBounds.width/2 - this.makeRectangleWidth(g.getFont(), str)/2, currentCardBounds.y + currentCardBounds.height + this.makeRectangleHeight(g.getFont(), str) + (yOffset));\r\n\t\t//g.setFont(originalFont);\r\n\t}", "public static void drawStringMultiLine(MatrixStack matrixStack, FontRenderer fontRenderer, String string, int x, int y, int color) \n {\n String[] lines = string.split(\"\\\\\\\\n\");\n for (int i = 0; i < lines.length; i++) \n {\n String line = lines[i];\n fontRenderer.drawString(matrixStack, line, x, y + (fontRenderer.FONT_HEIGHT * i), color);\n }\n }", "public static void draw() {\n\t\tStdDraw.clear();\n\t\tStdDraw.text(.5, .90, hint);\n\t\tStdDraw.text(.5, .5, label);\n\t\tStdDraw.text(0.5, 0.3, textBeingEntered);\n\t\tStdDraw.show(0);\n\n\t}", "private void drawCenteredString(final String theString, final Graphics2D theGraphics) {\n final String str = theString;\n int strWidth = 0;\n int strAscent = 0;\n int x = 0;\n int y = 0;\n final FontMetrics fm = theGraphics.getFontMetrics();\n\n strWidth = fm.stringWidth(str);\n strAscent = fm.getAscent();\n x = myWidth / 2 - strWidth / 2;\n y = myHeight / 2 + strAscent / 2;\n theGraphics.drawString(str, x, y);\n }", "@Override\n\tpublic void draw(FontRenderer fontRenderer, int x, int y, int backgroundColor, int foregroundColor) {\n\t\tfontRenderer.drawString(this.displayName, x, y, foregroundColor);\n\t}", "public int drawSubstring(Graphics g, String text, int offset, int length, int x, int y, int anchors) {\r\n\t\tint xx = getX(substringWidth(text, offset, length), x, anchors);\r\n\t\tint yy = getY(y, anchors);\r\n\t\tsetColor(g.getColor());\r\n\t\tfor (int i = offset; i < offset + length; i++) {\r\n\t\t\txx = drawOneChar(g, text.charAt(i), xx, yy);\r\n\t\t}\r\n\t\tif ((style & Font.STYLE_UNDERLINED) != 0) {\r\n\t\t\tint yU = y + this.baseline + 2;\r\n\t\t\tg.drawLine(x, yU, xx - 1, yU);\r\n\t\t}\r\n\t\treturn xx;\r\n\t}", "@Override\r\n\tpublic void onCustomDraw(Graphics2D g) {\n\t\tg.setColor(Color.black);\r\n\t\tg.fillRect(x, y, width, height);\r\n\t\tg.setColor(Color.green);\r\n\t\tfor(int i = 0; i < 50; i++){\r\n\t\t\tif(text[i] != null){\r\n\t\t\t\tg.drawString(text[i], 11, (i*10)+20);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void renderText(String text, int x, int y, float scale)\n {\n renderText(text, x, y, 0x00000000, scale);\n }", "@Override\r\n\tprotected void draw(PGraphics pg) {\r\n\t\tif(font == null) {\r\n\t\t\tfont = rootContainer.getPApplet().createFont(\"Arial\", ((int)this.height * 0.8F));\r\n\t\t}\r\n\t\tpg.stroke(0);\r\n\t\tpg.strokeWeight(3);\r\n\t\tpg.noFill();\r\n\t\tif(activated == false) {\r\n\t\t}else {\r\n\t\t\tpg.line(x, y, x+height, y+height);\r\n\t\t\tpg.line(x+height, y, x, y+height);\r\n\t\t}\r\n\t\tpg.rect(x, y, height, height);\r\n\t\tpg.textAlign(PApplet.LEFT, PApplet.CENTER);\r\n\t\tpg.textFont(font);\r\n\t\tpg.fill(this.textColor.red, textColor.green, textColor.blue, textColor.alpha);\r\n\t\tpg.text(this.text, x+height+(height/2), y-3, width-height, height);\r\n\t}", "private void drawNumber(Font f,String s,int x,int y){\r\n // finds width of the string when drawn\r\n FontMetrics metrics=g.getFontMetrics(f);\r\n int n=(int)metrics.stringWidth(s); \r\n g.drawString(s,x-n/2,y); \r\n \r\n }", "@Override\n\tpublic String drawForConsole() {\n\t\tString[][] output = new String[this.getWidth()][this.getHeight()];\n\t\tString image = \"\";\n\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\t\tif (x == 0 || x == this.getWidth() - 1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (y == 0 || y == this.getHeight() -1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (this.isFilledIn()) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\toutput[x][y] = \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\t\timage += output[x][y];\n\t\t\t\tif (x == this.getWidth() - 1) {\n\t\t\t\t\timage += \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn image;\n\t}", "public void printASCIIArt(String string) {\n\t\tint width = 500;\n int height = 30;\n\n BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n java.awt.Graphics g = image.getGraphics();\n g.setFont(new Font(\"SansSerif\", Font.CENTER_BASELINE, 16));\n\n Graphics2D graphics = (Graphics2D) g;\n graphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n graphics.drawString(string, 10, 20);\n\n //save this image\n //ImageIO.write(image, \"png\", new File(\"/users/mkyong/ascii-art.png\"));\n\n for (int y = 0; y < height; y++) {\n StringBuilder sb = new StringBuilder();\n for (int x = 0; x < width; x++) {\n\n sb.append(image.getRGB(x, y) == -16777216 ? \" \" : \"$\");\n\n }\n\n if (sb.toString().trim().isEmpty()) {\n continue;\n }\n\n System.out.println(sb);\n }\n\t}", "private void drawCenteredString(Graphics g2d, String text, Rectangle rect, Font font) {\r\n FontMetrics metrics = g2d.getFontMetrics(font);\r\n int x = rect.x + (rect.width - metrics.stringWidth(text)) / 2;\r\n int y = rect.y + ((rect.height - metrics.getHeight()) / 2) + metrics.getAscent();\r\n g2d.setFont(font);\r\n g2d.drawString(text, x, y);\r\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y);", "protected void drawCenterString(String s,int y,Graphics g,Font font){\n Dimension size = getSize();\n FontMetrics metrics = g.getFontMetrics(font);\n int x = (size.width - metrics.stringWidth(s))/2;\n g.setFont(font);\n g.drawString(s,x,y - (properties.buttonHeight - metrics.getHeight())/2);\n\n }", "@Override\n\tpublic void draw3dText(Vector3f location, String textString) {\n\n\t}", "@Override\n\tpublic void render(Canvas c) {\n\t\tc.drawText(text,(float)x+width,(float)y+height , paint);\n\t\t\n\t}", "public void writeLine(String theString, int color)\r\n\t{\r\n\t\t/*\r\n\t\t * 0 = system! 1 = User Input 2 = Socket Input 3 = Other\r\n\t\t */\r\n\t\tStyleContext context = new StyleContext();\r\n\t\tstyle = context.getStyle(StyleContext.DEFAULT_STYLE);\r\n\t\tStyleConstants.setFontSize(style, 14);\r\n\t\tStyleConstants.setSpaceAbove(style, 4);\r\n\t\tStyleConstants.setSpaceBelow(style, 4);\r\n\r\n\t\tswitch (color)\r\n\t\t{\r\n\t\tcase 0:\r\n\t\t\tStyleConstants.setForeground(style, Color.GRAY);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLACK);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLUE);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tStyleConstants.setForeground(style, Color.RED);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\ttheString = theString + \"\\n\";\r\n\r\n\t\ttry\r\n\t\t{\r\n\r\n\t\t\tdoc.insertString(doc.getLength(), theString, style);\r\n\r\n\t\t}\r\n\t\tcatch (BadLocationException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// scroll to the bottom\r\n\t\ttxtDisplayArea.setCaretPosition(txtDisplayArea.getDocument()\r\n\t\t\t\t.getLength());\r\n\r\n\t}", "public void renderText(String text, int x, int y, int color, float scale)\n {\n renderText(text, x, y, color, scale, 1.0f);\n }", "public static void drawText(String text, double[] color, double rasterPosX, double rasterPosY) {\n gl.glColor3d(color[0], color[1], color[2]);\n gl.glRasterPos2d(rasterPosX, rasterPosY);\n glut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, text);\n }", "void drawError(String message);", "public void draw(Graphics g){\n g.setColor (colour);\n g.fillOval (x,y,DIAMETER, DIAMETER);\n g.setColor (Color.black);\n g.drawString(name, x+5, y+30);\n g.setFont (new Font (\"Times New Roman\", Font.PLAIN, 16) );\n g.setColor (Color.black);\n g.drawString (Integer.toString(seatNum), x+13 ,y+18) ;\n \n \n \n \n \n \n }", "@Override\n\tpublic void paint(Graphics g, String text, Dimension d) {\n\t\tif (needsRegeneratedImage || image==null){\n\t\t\timage = generateImage(g, text, d);\n\t\t\t// Now we don't need to regenerate for a while\n\t\t\tneedsRegeneratedImage=false;\n\t\t}\n\t\tg.drawImage(image, 0, 0, null);\n\t}", "public String createDrawTextString(int width, int height, int fontSize, String message) {\n\t\tint size = (int) Math.ceil(fontSize * height / 1080D);\n\t\tint borderw = (int) Math.ceil(size * 7D / fontSize);\n\t\ttry (Writer writer = new BufferedWriter(\n\t\t\t\tnew OutputStreamWriter(new FileOutputStream(tempOverlayFile), Charset.forName(\"UTF-8\")))) {\n\t\t\twriter.write(message);\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn \"\";\n\t\t}\n\t\tString drawText = \"drawtext=x=(w-tw)*0.5:y=0.935*(h-0.5*\" + size\n\t\t\t\t+ \"):bordercolor=black:fontcolor=white:borderw=\" + borderw + \":fontfile=\" + getFontFile() + \":fontsize=\"\n\t\t\t\t+ size + \":textfile=\" + tempOverlayFilename;\n\t\treturn drawText;\n\t}", "public GraphicsText(String text, float x, float y){\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n textColor = Color.BLACK;\r\n font = new Font(\"SanSerif\", Font.PLAIN, 14);\r\n }", "private void drawPosition(Position pos, TextColor color, char c, boolean wide) {\n TextGraphics text = screen.newTextGraphics();\n text.setForegroundColor(color);\n text.putString(pos.getX() * 2, pos.getY() + 1, String.valueOf(c));\n\n if (wide) {\n text.putString(pos.getX() * 2 + 1, pos.getY() + 1, String.valueOf(c));\n }\n }", "public void draw (Graphics page)\r\n {\n\tpage.drawString(\"(Math.random())\",0,0);\r\n }", "@Override\n public void updateDrawState(TextPaint ds) {\n }", "@Override\t\n public void paint(Graphics g)\n {\n\t char [] chText={'T','a','n','z','e','n','d','e',' ','S','c','h','r','i','f','t'};\n\t \n\t g.setFont (new Font(\"Helvetica\", Font.BOLD, 20));\n\t FontMetrics m=g.getFontMetrics();\n\t int height=m.getHeight ()+5;\n\t int width=m.charWidth(chText[0]);\n\t \n\t //Correct width, if a bigger char exists:\n\t for (int i=1; i < chText.length; i++)\n\t {\n\t\t if(m.charWidth(chText[i])> width)\n\t\t {\n\t\t\t width=m.charWidth(chText[i]);\n\t\t }\n\t }\t\t \n\t \n\t for (int j=0;j<chText.length;j++)\n\t {\n\t\t int start=(int)Math.round(20*Math.random());\n\t\t g.setColor(Palette[start%Palette.length]);\n\t\t g.drawChars(chText,j,1,j*width,height+start);\n\t }\n }", "public TextShape (String str, int x, int y, Color col){\n this.str = str;\n this.x = x;\n this.y = y;\n this.col = col;\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "public void displayText(String message,float x, float y, boolean bottom) {\n\t\tif (! bottom) {\n\t\t\tGlyphLayout layout = new GlyphLayout(bitmapFont, message);\n\t\t\tfloat fontWidth = layout.width;\n\t\t\tfloat fontHight = layout.height;\n\t\t\tfloat position_x = (screenWidth / 2 - fontWidth / 2) + x;\n\t\t\tfloat position_y = (screenHeight / 2 - fontHight / 2) + y;\n\t\t\tbitmapFont.draw(batch, message, position_x, position_y);\n\n\t\t} else {\n\t\t\tbitmapFont.draw(batch, message, x, y);\n\t\t}\n\t}", "private void drawXYZText() {\n\t\t//Draw text X - red\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glRasterPos3f(1,0,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"X\");\n\t\tgl.glEnd();\n\t\t//Draw text -X - red\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glRasterPos3f(-1,0,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-X\");\n\t\tgl.glEnd();\n\t\t\n\t\t//Draw text Y - Green\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glRasterPos3f(0,1,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"Y\");\n\t\tgl.glEnd();\n\t\t//Draw text -Y - Green\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glRasterPos3f(0,-1,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-Y\");\n\t\tgl.glEnd();\n\t\t\n\t\t//Draw text Z - Blue\n\t\tgl.glColor3f(0.0f, 0.0f, 1.0f);\n\t\tgl.glRasterPos3f(0,0,1);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"Z\");\n\t\tgl.glEnd();\n\t\t//Draw text -Z - Blue\n\t\tgl.glColor3f(0.0f, 0.0f, 1.0f);\n\t\tgl.glRasterPos3f(0,0,-1);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-Z\");\n\t\tgl.glEnd();\n\t}" ]
[ "0.8429499", "0.7792092", "0.77363014", "0.77175945", "0.7608714", "0.7544196", "0.7495439", "0.74615496", "0.74466044", "0.7377974", "0.73050624", "0.7192366", "0.7175171", "0.71696943", "0.7114689", "0.7107203", "0.70879185", "0.7040844", "0.7025965", "0.70253515", "0.7018911", "0.69876313", "0.6982718", "0.6948008", "0.6925499", "0.69127804", "0.6877684", "0.6842421", "0.6836383", "0.67966986", "0.6759329", "0.67314243", "0.6729916", "0.666079", "0.66491604", "0.6633427", "0.6631101", "0.6624841", "0.6591825", "0.65772545", "0.6571852", "0.654401", "0.6511682", "0.64991194", "0.64904547", "0.64826024", "0.644603", "0.6441845", "0.64239407", "0.64201415", "0.64195204", "0.6389602", "0.63672197", "0.6363998", "0.63158804", "0.63106436", "0.6307652", "0.6299367", "0.62930197", "0.62835026", "0.626088", "0.6248721", "0.6247768", "0.6236224", "0.6234994", "0.622157", "0.62128156", "0.62104565", "0.6197871", "0.61458856", "0.614014", "0.61237484", "0.61178553", "0.6114856", "0.6104464", "0.6084291", "0.6055527", "0.60510033", "0.6037278", "0.6028119", "0.6027188", "0.6022229", "0.60221833", "0.60167974", "0.6011644", "0.6009425", "0.6003367", "0.6001264", "0.5980304", "0.59748197", "0.5973034", "0.59610593", "0.59578604", "0.5948992", "0.5945259", "0.5935393", "0.5932483", "0.5926131", "0.5925814", "0.5892395", "0.58886755" ]
0.0
-1
Apply Unicode Bidirectional Algorithm to string and return a new possibly reordered string for visual rendering.
private String bidirectionalReorder(String text) { try { Bidi bidi = new Bidi((new ArabicShaping(8)).shape(text), 127); bidi.setReorderingMode(0); return bidi.writeReordered(2); } catch (ArabicShapingException exception) { return text; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String stringReverser( String inputString) {\n\t\t// Create an char array of given String \n char[] ch = inputString.toCharArray();\n // Initialize outputString; \n String outputString = \"\";\n // Go through the characters within the given input string, from last to first, and concatinate it to the output String\n for (int i = ch.length -1; (i >= 0) ; i--) {\n \toutputString += ch[i]; \n }\n\t\treturn outputString;\n\t}", "public String transformString( String inputString) {\n char c[]=inputString.toCharArray();\n String transformedString=\"\";\n \n for (int i =c.length-1; i>=0; i--) { \n transformedString +=c[i];\n }\n return transformedString;\n }", "private String c(String paramString)\r\n/* 261: */ {\r\n/* 262: */ try\r\n/* 263: */ {\r\n/* 264:268 */ Bidi localBidi = new Bidi(new ArabicShaping(8).shape(paramString), 127);\r\n/* 265:269 */ localBidi.setReorderingMode(0);\r\n/* 266:270 */ return localBidi.writeReordered(2);\r\n/* 267: */ }\r\n/* 268: */ catch (ArabicShapingException localArabicShapingException) {}\r\n/* 269:274 */ return paramString;\r\n/* 270: */ }", "public static String normalize0(String in) {\n\n Map<String, String> ruleMap = getArabicIBMNormalizerMap(); //Get the IBM Normalization rules\n\n ruleMap.putAll(presToLogicalMap()); // Get the presentation to logical form rules\n\n Set<Map.Entry<String, String>> rules = ruleMap.entrySet();\n\n Iterator<Map.Entry<String, String>> ruleIter = rules.iterator();\n\n String out = in;\n\n //Iteratively apply each rule to the string.\n while (ruleIter.hasNext()) {\n Map.Entry<String, String> thisRule = ruleIter.next();\n out = out.replaceAll(thisRule.getKey(), thisRule.getValue());\n }\n\n return out;\n }", "public static void reverseUsingCustomizedLogic(String str) {\n\t\tint strLength = str.length();\n\n\t\tStringBuilder strBuilder = new StringBuilder();\n\n\t\tfor (int i = strLength - 1; i >= 0; i--) {\n\t\t\tstrBuilder = strBuilder.append(str.charAt(i));\n\t\t}\n\t\tSystem.out.println(\"str value after reverse using customized logic : \" + strBuilder.toString());\n\t}", "public static String BiPol(String input) {\n ArrayList<String> out = new ArrayList<>();\n String OnePreviousState = \"DOWN\";\n for (int i = 0; i < input.length(); i++) {\n if ((Character.toString(input.charAt(i))).equals(\"0\")) {\n out.add(\"MIDDLE\");\n } else {\n out.add(inverse(OnePreviousState));\n OnePreviousState = inverse(OnePreviousState);\n }\n }\n String output = ArraytoString(out);\n return output;\n }", "@Override\n\tpublic String reverse() {\n\t\tint len = theString.length();\n\t\tString s1 = \"\";\n\t\tfor (int i = len - 1; i >= 0; i--) {\n\t\t\ts1 = s1 + theString.charAt(i);\n\t\t}\n\t\t// System.out.println(s1);\n\n\t\treturn s1;\n\t}", "private static String convertToLatin(String word)\n {\n return word.substring(1) + word.substring(0,1) + \"ay\";\n }", "public static void inverseTransform()\r\n {\r\n \tint first = BinaryStdIn.readInt();\r\n \tString s = BinaryStdIn.readString();\r\n \tBinaryStdIn.close();\r\n \t\r\n \tchar[] t = s.toCharArray();\r\n \r\n \tchar[] firstCharacters = t.clone();\r\n \tArrays.sort(firstCharacters);\r\n \t\r\n \t// Construction next[] using t[] and first\r\n \tint[] next = constructNext(t, firstCharacters, first);\r\n \t\r\n \t// Writing original string to StdOut using next[] and first\r\n \tint index = first;\r\n \tfor (int i = 0; i < t.length; i++)\r\n \t{\r\n \t\tBinaryStdOut.write(firstCharacters[index]);\r\n \t\tindex = next[index];\r\n \t}\r\n \tBinaryStdOut.close();\r\n }", "static String reverse3(String s)\n\t{\n\t\tString reverseStr = new StringBuffer(s).reverse().toString();\n\t\treturn reverseStr;\n \n\t}", "public static String reverse(String str){\n String result=\"\";//\"CBA\"\n\n for (int i = str.length()-1; i>=0; i--) {\n result+=str.charAt(i);\n }\n return result;\n }", "public static void inverseTransform() {\n int first = BinaryStdIn.readInt();\n List<Integer> chars = new ArrayList<>();\n Map<Integer, Queue<Integer>> charPosition = new HashMap<>();\n int currentIndex = 0;\n\n while (!BinaryStdIn.isEmpty()) {\n int i = BinaryStdIn.readInt(8);\n chars.add(i);\n Queue<Integer> position = charPosition.get(i);\n\n if (position == null) {\n position = new Queue<>();\n charPosition.put(i, position);\n }\n\n position.enqueue(currentIndex);\n currentIndex += 1;\n }\n\n int N = chars.size();\n int R = 256;\n int[] count = new int[R + 1];\n\n for (int i = 0; i < N; i++) {\n count[chars.get(i) + 1]++;\n }\n\n for (int r = 0; r < R; r++) {\n count[r + 1] += count[r];\n }\n\n int[] h = new int[N];\n\n for (int i = 0; i < N; i++) {\n h[count[chars.get(i)]++] = chars.get(i);\n }\n\n int[] next = new int[N];\n\n for (int i = 0; i < N; i++) {\n int index = charPosition.get(h[i]).dequeue();\n next[i] = index;\n }\n\n int current = first;\n\n for (int i = 0; i < N; i++) {\n BinaryStdOut.write(h[current], 8);\n current = next[current];\n }\n\n BinaryStdOut.flush();\n }", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "public static String convertText(String s) {\r\n StringCharacterIterator stringcharacteriterator = new StringCharacterIterator(s);\r\n StringBuffer stringbuffer = new StringBuffer();\r\n int ai[] = new int[s.length()];\r\n int i = 0;\r\n int j = 0;\r\n for(char c = stringcharacteriterator.first(); c != '\\uFFFF'; c = stringcharacteriterator.next())\r\n if(c == '%')\r\n {\r\n c = stringcharacteriterator.next();\r\n if(c != '%')\r\n {\r\n stringbuffer.append('%');\r\n c = stringcharacteriterator.previous();\r\n } else\r\n {\r\n c = stringcharacteriterator.next();\r\n switch(c)\r\n {\r\n case 37: // '%'\r\n stringbuffer.append('%');\r\n break;\r\n\r\n case 80: // 'P'\r\n case 112: // 'p'\r\n stringbuffer.append('\\361');\r\n break;\r\n\r\n case 67: // 'C'\r\n case 99: // 'c'\r\n stringbuffer.append('\\355');\r\n break;\r\n\r\n case 68: // 'D'\r\n case 100: // 'd'\r\n stringbuffer.append('\\u00b0');\r\n break;\r\n\r\n case 85: // 'U'\r\n case 117: // 'u'\r\n ai[stringbuffer.length()] ^= 1;\r\n i++;\r\n break;\r\n\r\n case 79: // 'O'\r\n case 111: // 'o'\r\n ai[stringbuffer.length()] ^= 2;\r\n j++;\r\n break;\r\n\r\n default:\r\n if(c >= '0' && c <= '9')\r\n {\r\n int k = 3;\r\n char c1 = (char)(c - 48);\r\n for(c = stringcharacteriterator.next(); c >= '0' && c <= '9' && --k > 0; c = stringcharacteriterator.next())\r\n c1 = (char)(10 * c1 + (c - 48));\r\n\r\n stringbuffer.append(c1);\r\n }\r\n c = stringcharacteriterator.previous();\r\n break;\r\n }\r\n }\r\n } else\r\n if(c == '^')\r\n {\r\n c = stringcharacteriterator.next();\r\n if(c == ' ')\r\n stringbuffer.append('^');\r\n } else\r\n {\r\n stringbuffer.append(c);\r\n }\r\n s = Unicode.char2DOS437(stringbuffer, 2, '?');\r\n\r\n\t\tString ss = s;\r\n\t\treturn ss;\r\n\t}", "String str(String strR) {\n\t\tString rev = \"\";\n\t\tfor (int i = strR.length(); i >0; i--) {\n\t\t\trev = rev + strR.substring(i - 1, i);\n\t\t}\n\t\treturn rev;\n\t}", "private String reverseString(String s) {\n char[] c = s.toCharArray();\n int i = 0, j = s.length() - 1;\n while (i < j) {\n if (c[i] != c[j]) {\n c[i] ^= c[j];\n c[j] ^= c[i];\n c[i] ^= c[j];\n }\n ++i;\n --j;\n }\n return new String(c);\n }", "private static String reverse(String in){\n\t\tString reversed = \"\";\n\t\tfor(int i = in.length() - 1; i >= 0; i--){\n\t\t\treversed += in.charAt(i);\n\t\t}\n\t\treturn reversed;\n\t}", "private String decode(String puzzle) {\n\t\tString solution = \"\";\n\t\tfor (int i = 0; i < puzzle.length(); i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tif (puzzle.charAt(i) == 'Z') {\n\t\t\t\t\tsolution += 'A';\n\t\t\t\t} else {\n\t\t\t\t\tsolution += (char) ((int) puzzle.charAt(i) + 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (puzzle.charAt(i) == 'A') {\n\t\t\t\t\tsolution += 'Z';\n\t\t\t\t} else {\n\t\t\t\t\tsolution += (char) ((int) puzzle.charAt(i) - 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn solution;\n\t}", "static String reverseWordsInStringInPlace(StringBuffer input_string){\n //step 1\n int j = -1;\n for(int i = 0; i <input_string.length() ;i++ ){\n if(' ' == input_string.charAt(i)){\n reverseString(input_string,j+1,i-1);\n j=i;\n }\n //for last word\n if(i == input_string.length()-1){\n reverseString(input_string,j+1,i);\n }\n }\n //step 2\n reverseString(input_string,0,input_string.length()-1);\n return input_string.toString();\n\n }", "public static void Rev_Str_Fn(){\r\n\t\r\n\tString x=\"ashu TATA\";\r\n\t\r\n\tStringBuilder stb=new StringBuilder();\r\n\tstb.append(x);\r\n\tstb.reverse();\r\n\tSystem.out.println(stb);\r\n}", "public CharSequence ZawGyiToUni(String myString1, Boolean unicode) {\n\t\t String uni = \"[\"\n\t + \" {\\\"from\\\": \\\"(\\u103D|\\u1087)\\\",\\\"to\\\":\\\"\\u103E\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\\",\\\"to\\\":\\\"\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103B|\\u107E|\\u107F|\\u1080|\\u1081|\\u1082|\\u1083|\\u1084)\\\",\\\"to\\\":\\\"\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103A|\\u107D)\\\",\\\"to\\\":\\\"\\u103B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1039\\\",\\\"to\\\":\\\"\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106A\\\",\\\"to\\\":\\\"\\u1009\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106B\\\",\\\"to\\\":\\\"\\u100A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106C\\\",\\\"to\\\":\\\"\\u1039\\u100B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106D\\\",\\\"to\\\":\\\"\\u1039\\u100C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106E\\\",\\\"to\\\":\\\"\\u100D\\u1039\\u100D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106F\\\",\\\"to\\\":\\\"\\u100D\\u1039\\u100E\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1070\\\",\\\"to\\\":\\\"\\u1039\\u100F\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u1071|\\u1072)\\\",\\\"to\\\":\\\"\\u1039\\u1010\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1060\\\",\\\"to\\\":\\\"\\u1039\\u1000\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1061\\\",\\\"to\\\":\\\"\\u1039\\u1001\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1062\\\",\\\"to\\\":\\\"\\u1039\\u1002\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1063\\\",\\\"to\\\":\\\"\\u1039\\u1003\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1065\\\",\\\"to\\\":\\\"\\u1039\\u1005\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1068\\\",\\\"to\\\":\\\"\\u1039\\u1007\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1069\\\",\\\"to\\\":\\\"\\u1039\\u1008\\\"},\"\n\t + \" {\\\"from\\\": \\\"/(\\u1073|\\u1074)/g\\\",\\\"to\\\":\\\"\\u1039\\u1011\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1075\\\",\\\"to\\\":\\\"\\u1039\\u1012\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1076\\\",\\\"to\\\":\\\"\\u1039\\u1013\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1077\\\",\\\"to\\\":\\\"\\u1039\\u1014\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1078\\\",\\\"to\\\":\\\"\\u1039\\u1015\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1079\\\",\\\"to\\\":\\\"\\u1039\\u1016\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u107A\\\",\\\"to\\\":\\\"\\u1039\\u1017\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u107C\\\",\\\"to\\\":\\\"\\u1039\\u1019\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1085\\\",\\\"to\\\":\\\"\\u1039\\u101C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1033\\\",\\\"to\\\":\\\"\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1034\\\",\\\"to\\\":\\\"\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103F\\\",\\\"to\\\":\\\"\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1086\\\",\\\"to\\\":\\\"\\u103F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1088\\\",\\\"to\\\":\\\"\\u103E\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1089\\\",\\\"to\\\":\\\"\\u103E\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108A\\\",\\\"to\\\":\\\"\\u103D\\u103E\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u1064\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108B\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u102D\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108C\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u102E\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108D\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108E\\\",\\\"to\\\":\\\"\\u102D\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108F\\\",\\\"to\\\":\\\"\\u1014\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1090\\\",\\\"to\\\":\\\"\\u101B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1091\\\",\\\"to\\\":\\\"\\u100F\\u1039\\u1091\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1019\\u102C(\\u107B|\\u1093)\\\",\\\"to\\\":\\\"\\u1019\\u1039\\u1018\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u107B|\\u1093)\\\",\\\"to\\\":\\\"\\u103A\\u1018\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u1094|\\u1095)\\\",\\\"to\\\":\\\"\\u1037\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1096\\\",\\\"to\\\":\\\"\\u1039\\u1010\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1097\\\",\\\"to\\\":\\\"\\u100B\\u1039\\u100B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C([\\u1000-\\u1021])([\\u1000-\\u1021])?\\\",\\\"to\\\":\\\"$1\\u103C$2\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u103C\\u103A\\\",\\\"to\\\":\\\"\\u103C$1\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031([\\u1000-\\u1021])(\\u103E)?(\\u103B)?\\\",\\\"to\\\":\\\"$1$2$3\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u1031(\\u103B|\\u103C|\\u103D)\\\",\\\"to\\\":\\\"$1$2\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1032\\u103D\\\",\\\"to\\\":\\\"\\u103D\\u1032\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103D\\u103B\\\",\\\"to\\\":\\\"\\u103B\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103A\\u1037\\\",\\\"to\\\":\\\"\\u1037\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102F(\\u102D|\\u102E|\\u1036|\\u1037)\\u102F\\\",\\\"to\\\":\\\"\\u102F$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102F\\u102F\\\",\\\"to\\\":\\\"\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u102F|\\u1030)(\\u102D|\\u102E)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103E)(\\u103B|\\u1037)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025(\\u103A|\\u102C)\\\",\\\"to\\\":\\\"\\u1009$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025\\u102E\\\",\\\"to\\\":\\\"\\u1026\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1005\\u103B\\\",\\\"to\\\":\\\"\\u1008\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1036(\\u102F|\\u1030)\\\",\\\"to\\\":\\\"$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u1037\\u103E\\\",\\\"to\\\":\\\"\\u103E\\u1031\\u1037\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u103E\\u102C\\\",\\\"to\\\":\\\"\\u103E\\u1031\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u105A\\\",\\\"to\\\":\\\"\\u102B\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u103B\\u103E\\\",\\\"to\\\":\\\"\\u103B\\u103E\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u102D|\\u102E)(\\u103D|\\u103E)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102C\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\u1004\\u103A\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1039\\u103C\\u103A\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u103A\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1036\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1092\\\",\\\"to\\\":\\\"\\u100B\\u1039\\u100C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u104E\\\",\\\"to\\\":\\\"\\u104E\\u1004\\u103A\\u1038\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1040(\\u102B|\\u102C|\\u1036)\\\",\\\"to\\\":\\\"\\u101D$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025\\u1039\\\",\\\"to\\\":\\\"\\u1009\\u1039\\\"}\" + \"]\";\n\t\t \n\t\t String zawgyi = \"[ { \\\"from\\\": \\\"င်္\\\", \\\"to\\\": \\\"ၤ\\\" }, { \\\"from\\\": \\\"္တွ\\\", \\\"to\\\": \\\"႖\\\" }, { \\\"from\\\": \\\"န(?=[ူွှု္])\\\", \\\"to\\\": \\\"ႏ\\\" }, { \\\"from\\\": \\\"ါ်\\\", \\\"to\\\": \\\"ၚ\\\" }, { \\\"from\\\": \\\"ဋ္ဌ\\\", \\\"to\\\": \\\"႒\\\" }, { \\\"from\\\": \\\"ိံ\\\", \\\"to\\\": \\\"ႎ\\\" }, { \\\"from\\\": \\\"၎င်း\\\", \\\"to\\\": \\\"၎\\\" }, { \\\"from\\\": \\\"[ဥဉ](?=[္ုူ])\\\", \\\"to\\\": \\\"ၪ\\\" }, { \\\"from\\\": \\\"[ဥဉ](?=[်])\\\", \\\"to\\\": \\\"ဥ\\\" }, { \\\"from\\\": \\\"ည(?=[္ုူွ])\\\", \\\"to\\\": \\\"ၫ\\\" }, { \\\"from\\\": \\\"(္[က-အ])ု\\\", \\\"to\\\": \\\"$1ဳ\\\" }, { \\\"from\\\": \\\"(္[က-အ])ူ\\\", \\\"to\\\": \\\"$1ဴ\\\" }, { \\\"from\\\": \\\"္က\\\", \\\"to\\\": \\\"ၠ\\\" }, { \\\"from\\\": \\\"္ခ\\\", \\\"to\\\": \\\"ၡ\\\" }, { \\\"from\\\": \\\"္ဂ\\\", \\\"to\\\": \\\"ၢ\\\" }, { \\\"from\\\": \\\"္ဃ\\\", \\\"to\\\": \\\"ၣ\\\" }, { \\\"from\\\": \\\"္စ\\\", \\\"to\\\": \\\"ၥ\\\" }, { \\\"from\\\": \\\"္ဆ\\\", \\\"to\\\": \\\"ၦ\\\" }, { \\\"from\\\": \\\"္ဇ\\\", \\\"to\\\": \\\"ၨ\\\" }, { \\\"from\\\": \\\"္ဈ\\\", \\\"to\\\": \\\"ၩ\\\" }, { \\\"from\\\": \\\"ည(?=[္ုူ])\\\", \\\"to\\\": \\\"ၫ\\\" }, { \\\"from\\\": \\\"္ဋ\\\", \\\"to\\\": \\\"ၬ\\\" }, { \\\"from\\\": \\\"္ဌ\\\", \\\"to\\\": \\\"ၭ\\\" }, { \\\"from\\\": \\\"ဍ္ဍ\\\", \\\"to\\\": \\\"ၮ\\\" }, { \\\"from\\\": \\\"ဎ္ဍ\\\", \\\"to\\\": \\\"ၯ\\\" }, { \\\"from\\\": \\\"္ဏ\\\", \\\"to\\\": \\\"ၰ\\\" }, { \\\"from\\\": \\\"္တ\\\", \\\"to\\\": \\\"ၱ\\\" }, { \\\"from\\\": \\\"္ထ\\\", \\\"to\\\": \\\"ၳ\\\" }, { \\\"from\\\": \\\"္ဒ\\\", \\\"to\\\": \\\"ၵ\\\" }, { \\\"from\\\": \\\"္ဓ\\\", \\\"to\\\": \\\"ၶ\\\" }, { \\\"from\\\": \\\"္ဓ\\\", \\\"to\\\": \\\"ၶ\\\" }, { \\\"from\\\": \\\"္န\\\", \\\"to\\\": \\\"ၷ\\\" }, { \\\"from\\\": \\\"္ပ\\\", \\\"to\\\": \\\"ၸ\\\" }, { \\\"from\\\": \\\"္ဖ\\\", \\\"to\\\": \\\"ၹ\\\" }, { \\\"from\\\": \\\"္ဗ\\\", \\\"to\\\": \\\"ၺ\\\" }, { \\\"from\\\": \\\"္ဘ\\\", \\\"to\\\": \\\"ၻ\\\" }, { \\\"from\\\": \\\"္မ\\\", \\\"to\\\": \\\"ၼ\\\" }, { \\\"from\\\": \\\"္လ\\\", \\\"to\\\": \\\"ႅ\\\" }, { \\\"from\\\": \\\"ဿ\\\", \\\"to\\\": \\\"ႆ\\\" }, { \\\"from\\\": \\\"(ြ)ှ\\\", \\\"to\\\": \\\"$1ႇ\\\" }, { \\\"from\\\": \\\"ွှ\\\", \\\"to\\\": \\\"ႊ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ိ\\\", \\\"to\\\": \\\"$2$3$4ႋ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ီ\\\", \\\"to\\\": \\\"$2$3$4ႌ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ံ\\\", \\\"to\\\": \\\"$2$3$4ႍ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])\\\", \\\"to\\\": \\\"$2$3$4$1\\\" }, { \\\"from\\\": \\\"ရ(?=[ုူွႊ])\\\", \\\"to\\\": \\\"႐\\\" }, { \\\"from\\\": \\\"ဏ္ဍ\\\", \\\"to\\\": \\\"႑\\\" }, { \\\"from\\\": \\\"ဋ္ဋ\\\", \\\"to\\\": \\\"႗\\\" }, { \\\"from\\\": \\\"([က-အႏဩ႐])([ၠ-ၩၬၭၰ-ၼႅႊ])?([ျ-ှ]*)?ေ\\\", \\\"to\\\": \\\"ေ$1$2$3\\\" }, { \\\"from\\\": \\\"([က-အဩ])([ၠ-ၩၬၭၰ-ၼႅ])?(ြ)\\\", \\\"to\\\": \\\"$3$1$2\\\" }, { \\\"from\\\": \\\"်\\\", \\\"to\\\": \\\"္\\\" }, { \\\"from\\\": \\\"ျ\\\", \\\"to\\\": \\\"်\\\" }, { \\\"from\\\": \\\"ြ\\\", \\\"to\\\": \\\"ျ\\\" }, { \\\"from\\\": \\\"ွ\\\", \\\"to\\\": \\\"ြ\\\" }, { \\\"from\\\": \\\"ှ\\\", \\\"to\\\": \\\"ွ\\\" }, { \\\"from\\\": \\\"ွု\\\", \\\"to\\\": \\\"ႈ\\\" }, { \\\"from\\\": \\\"([ုူနရြႊွႈ])([ဲံ]{0,1})့\\\", \\\"to\\\": \\\"$1$2႕\\\" }, { \\\"from\\\": \\\"ု႕\\\", \\\"to\\\": \\\"ု႔\\\" }, { \\\"from\\\": \\\"([နရ])([ဲံိီႋႌႍႎ])့\\\", \\\"to\\\": \\\"$1$2႕\\\" }, { \\\"from\\\": \\\"႕္\\\", \\\"to\\\": \\\"႔္\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])([ံိီႋႌႍႎ]?)ု\\\", \\\"to\\\": \\\"$1$2$3ဳ\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])([ံိီႋႌႍႎ]?)ူ\\\", \\\"to\\\": \\\"$1$2$3ဴ\\\" }, { \\\"from\\\": \\\"်ု\\\", \\\"to\\\": \\\"်ဳ\\\" }, { \\\"from\\\": \\\"်([ံိီႋႌႍႎ])ု\\\", \\\"to\\\": \\\"်$1ဳ\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])ူ\\\", \\\"to\\\": \\\"$1$2ဴ\\\" }, { \\\"from\\\": \\\"်ူ\\\", \\\"to\\\": \\\"်ဴ\\\" }, { \\\"from\\\": \\\"်([ံိီႋႌႍႎ])ူ\\\", \\\"to\\\": \\\"်$1ဴ\\\" }, { \\\"from\\\": \\\"ွူ\\\", \\\"to\\\": \\\"ႉ\\\" }, { \\\"from\\\": \\\"ျ([ကဃဆဏတထဘယလယသဟ])\\\", \\\"to\\\": \\\"ၾ$1\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ြႊ])([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႄ$1$2$3\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ြႊ])\\\", \\\"to\\\": \\\"ႂ$1$2\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ဳဴ]?)([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႀ$1$2$3\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ြႊ])([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႃ$1$2$3\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ြႊ])\\\", \\\"to\\\": \\\"ႁ$1$2\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ဳဴ]?)([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ၿ$1$2$3\\\" }, { \\\"from\\\": \\\"်ွ\\\", \\\"to\\\": \\\"ွ်\\\" }, { \\\"from\\\": \\\"်([ြႊ])\\\", \\\"to\\\": \\\"$1ၽ\\\" }, { \\\"from\\\": \\\"([ဳဴ])႔\\\", \\\"to\\\": \\\"$1႕\\\" }, { \\\"from\\\": \\\"ႏၱ\\\", \\\"to\\\" : \\\"ႏၲ\\\" }, { \\\"from\\\": \\\"([က-အ])([ၻၦ])ာ\\\", \\\"to\\\": \\\"$1ာ$2\\\" }, { \\\"from\\\": \\\"ာ([ၻၦ])့\\\", \\\"to\\\": \\\"ာ$1႔\\\" }]\";\n\t\t \n\t\t if(unicode==true) {\n\t\treturn replacewithUni(uni, myString1);\n\t\t } else {\n\t\t\t return replacewithZawgyi(zawgyi, myString1);\n\t\t }\n\t}", "static String convert(String str)\n {\n char ch[] = str.toCharArray();\n for (int i = 0; i < str.length(); i++) {\n \n // If first character of a word is found\n if (i == 0 && ch[i] != ' ' || \n ch[i] != ' ' && ch[i - 1] == ' ') {\n \n // If it is in lower-case\n if (ch[i] >= 'a' && ch[i] <= 'z') {\n \n // Convert into Upper-case\n ch[i] = (char)(ch[i] - 'a' + 'A');\n }\n }\n \n // If apart from first character\n // Any one is in Upper-case\n else if (ch[i] >= 'A' && ch[i] <= 'Z') \n \n // Convert into Lower-Case\n ch[i] = (char)(ch[i] + 'a' - 'A'); \n }\n \n // Convert the char array to equivalent String\n String st = new String(ch);\n return st;\n }", "private static String reverseString(char[] str, int begin, int end) {\n\t\tfor(int i = 0; i < (end-begin)/2; i++){\n\t\t\tchar temp = str[begin+i];\n\t\t\tstr[begin+i] = str[end-i-1];\n\t\t\tstr[end-i-1] = temp;\n\t\t}\n\t\treturn new String(str);\n\t}", "public String reverse(String input) {\n \n // if there is no string, send it back\n if (input == null) {\n return input;\n }\n // string to return\n String output = \"\";\n // go from the back of input and put its last character at the front of the new string\n for (int i = input.length() - 1; i >= 0; i--) {\n output = output + input.charAt(i);\n }\n \n return output;\n}", "private String replaceUlauts(String str) {\n\t\treturn str.replace(\"ä\", \"ae\").replace(\"ö\", \"oe\").replace(\"ü\", \"ue\").replace(\"ß\", \"ss\").replace(\"Ä\", \"Ae\").replace(\"Ö\", \"Oe\").replace(\"Ü\", \"Ue\");\n\t}", "public String reverse(String input) \n {\n \tString outputt = \"\";\n \t//Finds the length of the string input\n \tint i = input.length();\n \t\n \tif (input == \"\")\n \t{\n \t\treturn outputt;\n \t}\n \telse\n \t{\n \t\t//Goes letter by letter building the string backwards\n \t\tfor (int c = 0; c < i; c++)\n \t\t{\n \t\tString a_letter = Character.toString(input.charAt((i - c -1)));\n \t\toutputt = (outputt + a_letter);\n \t\t}\n \t\treturn outputt;\n \t\t//return new StringBuffer(input).reverse().toString();\n \t}\n }", "public String alternateWordSwap() {\n\t\tString output=\"\";\r\n\t\tString arr[]=this.str.split(\" \");\r\n\t\tfor(int i=0,j=1;i<arr.length;i+=2,j+=2){\r\n\t\t\tString temp=arr[i];\r\n\t\t\tarr[i]=arr[j];\r\n\t\t\tarr[j]=temp;\r\n\t\t}\r\n\t\t\r\n\t\tfor(String s:arr){\r\n\t\t\toutput+=s+\" \";\r\n\t\t}\r\n\t\treturn output.trim();\r\n\t}", "public static void encode () {\n // read the input\n s = BinaryStdIn.readString();\n char[] input = s.toCharArray();\n\n int[] indices = new int[input.length];\n for (int i = 0; i < indices.length; i++) {\n indices[i] = i;\n }\n \n Quick.sort(indices, s);\n \n // create t[] and find where original ended up\n char[] t = new char[input.length]; // last column in suffix sorted list\n int inputPos = 0; // row number where original String ended up\n \n for (int i = 0; i < indices.length; i++) {\n int index = indices[i];\n \n // finds row number where original String ended up\n if (index == 0)\n inputPos = i;\n \n if (index > 0)\n t[i] = s.charAt(index-1);\n else\n t[i] = s.charAt(indices.length-1);\n }\n \n \n // write t[] preceded by the row number where orginal String ended up\n BinaryStdOut.write(inputPos);\n for (int i = 0; i < t.length; i++) {\n BinaryStdOut.write(t[i]);\n BinaryStdOut.flush();\n } \n }", "String reverseMyInput(String input);", "public static void reverser(String word) {\n String newStr = \"\";\n for (int i = word.length(); i > 0; i--) {\n newStr += word.substring(i - 1, i);\n }\n System.out.println(newStr);\n }", "public static String Converterback(String z)\n\t{\n\n\t\t\n\t\tswitch(z)\n\t\t{\n\t\tcase \"10\":\n\t\t\treturn \"A\";\n\t\tcase \"11\":\n\t\t\treturn \"B\";\n\t\tcase \"12\":\n\t\t\treturn \"C\";\n\t\tcase \"13\":\n\t\t\treturn \"D\";\n\t\tcase \"14\":\n\t\t\treturn \"E\";\n\t\tcase \"15\":\n\t\t\treturn \"F\";\n\t\t}\n\t\treturn z;\n\t}", "private static String normalize(String s) {\r\n\t\t//return Normalizer.normalize(s, Normalizer.Form.NFC);\r\n\t\treturn s;\r\n\t}", "static void reverse(StringBuffer str)\n\t {\n\t\t Stack<Character> s = new Stack<Character>();\n\t\t int len = str.length();\n\t\t for(int i= 0; i<len ;i ++)\n\t\t {\n\t\t\t s.push(str.charAt(i));\n\t\t }\n\t\t \n\t\t //pop the string and print it\n\t\t for(int i= 0; i<len ;i ++)\n\t\t {\n\t\t\t System.out.print(s.pop());\n\t\t }\n\t }", "public String rearrangeString(String str) {\n\t\t Map<Character, Integer> freqMap = new HashMap<>();\n\t\t \n\t\t for(int i = 0; i < str.length(); ++i) {\n\t\t\t char ch = str.charAt(i);\n\t\t\t freqMap.put(ch, freqMap.getOrDefault(ch, 0)+1);\n\t\t }\n\t\t \n\t\t PriorityQueue<Map.Entry<Character, Integer>> maxHeap = \n\t\t\t\t new PriorityQueue<>((a,b) -> Integer.compare(b.getValue(), a.getValue()));\n\t\t \n\t\t for(Map.Entry<Character, Integer> val : freqMap.entrySet()) {\n\t\t\t maxHeap.add(val);\n\t\t }\n\t\t \n\t\t StringBuilder res = new StringBuilder();\n\t\t Map.Entry<Character, Integer> prevEntry = null;\n\t\t while(!maxHeap.isEmpty()) {\n\t\t\t Entry<Character, Integer> currEntry = maxHeap.poll();\n\t\t\t res.append(currEntry.getKey());\n\t\t\t \n\t\t\t if(prevEntry != null && prevEntry.getValue() > 0) {\n\t\t\t\t maxHeap.offer(prevEntry);\n\t\t\t }\n\t\t\t \n\t\t\t currEntry.setValue(currEntry.getValue()-1);\n\t\t\t prevEntry = currEntry;\n\t\t }\n\t\t \n\t\t return res.length() == str.length() ? res.toString() : \"\";\n\t\t \n\t\t\t \n\t\t }", "private String shiftingBack(String s) {\n int diff = s.charAt(0) - 'a';\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < s.length(); i ++) {\n if (s.charAt(i) - 'a' >= diff) {\n char c = (char) (s.charAt(i) - diff);\n sb.append(c);\n } else {\n char c = (char) (s.charAt(i) - diff + 26);\n sb.append(c);\n }\n }\n return new String(sb);\n }", "void VNItoUnicode()\r\n\t{\r\n\t\tif (html) {\r\n\t\t\tHTMLtoANSI();\r\n\t\t\tprepareMetaTag();\r\n\r\n\t\t\t// Replace fonts\r\n\t\t\tstr = replaceString(str, \"VNI Times\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Times\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Couri\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Centur\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Brush\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Helve\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Helve\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Aptima\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Aptima\", SANS_SERIF);\r\n\t\t}\r\n\r\n\t\t// Part 1\r\n\t\tstr = str.replace('\\u00D1', '\\u0110'); // DD\r\n\t\tstr = str.replace('\\u00F1', '\\u0111'); // dd\r\n\t\tstr = str.replace('\\u00D3', '\\u0128'); // I~\r\n\t\tstr = str.replace('\\u00F3', '\\u0129'); // i~\r\n\t\tstr = str.replace('\\u00D2', '\\u1ECA'); // I.\r\n\t\tstr = str.replace('\\u00F2', '\\u1ECB'); // i.\r\n\t\tstr = str.replace('\\u00C6', '\\u1EC8'); // I?\r\n\t\tstr = str.replace('\\u00E6', '\\u1EC9'); // i?\r\n\t\tstr = str.replace('\\u00CE', '\\u1EF4'); // Y.\r\n\t\tstr = str.replace('\\u00EE', '\\u1EF5'); // y.\r\n\r\n\t\t// Part 2\r\n\t\t// Transform \"O\\u00C2\" -> \"\\u00C6\" to later transform back to \"\\u00D4\" in Part 3\r\n\t\tfinal String[] VNI_char = {\"O\\u00C2\", \"o\\u00E2\", \"y\\u00F5\", \"Y\\u00D5\",\r\n\t\t\t\t\"y\\u00FB\", \"Y\\u00DB\", \"y\\u00F8\", \"Y\\u00D8\", \"\\u00F6\\u00EF\",\r\n\t\t\t\t\"\\u00D6\\u00CF\", \"\\u00F6\\u00F5\", \"\\u00D6\\u00D5\", \"\\u00F6\\u00FB\",\r\n\t\t\t\t\"\\u00D6\\u00DB\", \"\\u00F6\\u00F8\", \"\\u00D6\\u00D8\", \"\\u00F6\\u00F9\",\r\n\t\t\t\t\"\\u00D6\\u00D9\", \"u\\u00FB\", \"U\\u00DB\", \"u\\u00EF\", \"U\\u00CF\",\r\n\t\t\t\t\"\\u00F4\\u00EF\", \"\\u00D4\\u00CF\", \"\\u00F4\\u00F5\", \"\\u00D4\\u00D5\",\r\n\t\t\t\t\"\\u00F4\\u00FB\", \"\\u00D4\\u00DB\", \"\\u00F4\\u00F8\", \"\\u00D4\\u00D8\",\r\n\t\t\t\t\"\\u00F4\\u00F9\", \"\\u00D4\\u00D9\", \"o\\u00E4\", \"O\\u00C4\",\r\n\t\t\t\t\"o\\u00E3\", \"O\\u00C3\", \"o\\u00E5\", \"O\\u00C5\", \"o\\u00E0\",\r\n\t\t\t\t\"O\\u00C0\", \"o\\u00E1\", \"O\\u00C1\", \"o\\u00FB\", \"O\\u00DB\",\r\n\t\t\t\t\"o\\u00EF\", \"O\\u00CF\", \"e\\u00E4\", \"E\\u00C4\", \"e\\u00E3\",\r\n\t\t\t\t\"E\\u00C3\", \"e\\u00E5\", \"E\\u00C5\", \"e\\u00E0\", \"E\\u00C0\",\r\n\t\t\t\t\"e\\u00E1\", \"E\\u00C1\", \"e\\u00F5\", \"E\\u00D5\", \"e\\u00FB\",\r\n\t\t\t\t\"E\\u00DB\", \"e\\u00EF\", \"E\\u00CF\", \"a\\u00EB\", \"A\\u00CB\",\r\n\t\t\t\t\"a\\u00FC\", \"A\\u00DC\", \"a\\u00FA\", \"A\\u00DA\", \"a\\u00E8\",\r\n\t\t\t\t\"A\\u00C8\", \"a\\u00E9\", \"A\\u00C9\", \"a\\u00E4\", \"A\\u00C4\",\r\n\t\t\t\t\"a\\u00E3\", \"A\\u00C3\", \"a\\u00E5\", \"A\\u00C5\", \"a\\u00E0\",\r\n\t\t\t\t\"A\\u00C0\", \"a\\u00E1\", \"A\\u00C1\", \"a\\u00FB\", \"A\\u00DB\",\r\n\t\t\t\t\"a\\u00EF\", \"A\\u00CF\", \"u\\u00F5\", \"U\\u00D5\", \"a\\u00EA\",\r\n\t\t\t\t\"A\\u00CA\", \"y\\u00F9\", \"u\\u00F9\", \"u\\u00F8\", \"o\\u00F5\",\r\n\t\t\t\t\"o\\u00F9\", \"o\\u00F8\", \"e\\u00E2\", \"e\\u00F9\", \"e\\u00F8\",\r\n\t\t\t\t\"a\\u00F5\", \"a\\u00E2\", \"a\\u00F9\", \"a\\u00F8\", \"Y\\u00D9\",\r\n\t\t\t\t\"U\\u00D9\", \"U\\u00D8\", \"O\\u00D5\", \"O\\u00D9\", \"O\\u00D8\",\r\n\t\t\t\t\"E\\u00C2\", \"E\\u00D9\", \"E\\u00D8\", \"A\\u00D5\", \"A\\u00C2\",\r\n\t\t\t\t\"A\\u00D9\", \"A\\u00D8\"};\r\n\t\tfinal String[] Unicode_char = {\"\\u00C6\", \"\\u00E6\", \"\\u1EF9\", \"\\u1EF8\",\r\n\t\t\t\t\"\\u1EF7\", \"\\u1EF6\", \"\\u1EF3\", \"\\u1EF2\", \"\\u1EF1\", \"\\u1EF0\",\r\n\t\t\t\t\"\\u1EEF\", \"\\u1EEE\", \"\\u1EED\", \"\\u1EEC\", \"\\u1EEB\", \"\\u1EEA\",\r\n\t\t\t\t\"\\u1EE9\", \"\\u1EE8\", \"\\u1EE7\", \"\\u1EE6\", \"\\u1EE5\", \"\\u1EE4\",\r\n\t\t\t\t\"\\u1EE3\", \"\\u1EE2\", \"\\u1EE1\", \"\\u1EE0\", \"\\u1EDF\", \"\\u1EDE\",\r\n\t\t\t\t\"\\u1EDD\", \"\\u1EDC\", \"\\u1EDB\", \"\\u1EDA\", \"\\u1ED9\", \"\\u1ED8\",\r\n\t\t\t\t\"\\u1ED7\", \"\\u1ED6\", \"\\u1ED5\", \"\\u1ED4\", \"\\u1ED3\", \"\\u1ED2\",\r\n\t\t\t\t\"\\u1ED1\", \"\\u1ED0\", \"\\u1ECF\", \"\\u1ECE\", \"\\u1ECD\", \"\\u1ECC\",\r\n\t\t\t\t\"\\u1EC7\", \"\\u1EC6\", \"\\u1EC5\", \"\\u1EC4\", \"\\u1EC3\", \"\\u1EC2\",\r\n\t\t\t\t\"\\u1EC1\", \"\\u1EC0\", \"\\u1EBF\", \"\\u1EBE\", \"\\u1EBD\", \"\\u1EBC\",\r\n\t\t\t\t\"\\u1EBB\", \"\\u1EBA\", \"\\u1EB9\", \"\\u1EB8\", \"\\u1EB7\", \"\\u1EB6\",\r\n\t\t\t\t\"\\u1EB5\", \"\\u1EB4\", \"\\u1EB3\", \"\\u1EB2\", \"\\u1EB1\", \"\\u1EB0\",\r\n\t\t\t\t\"\\u1EAF\", \"\\u1EAE\", \"\\u1EAD\", \"\\u1EAC\", \"\\u1EAB\", \"\\u1EAA\",\r\n\t\t\t\t\"\\u1EA9\", \"\\u1EA8\", \"\\u1EA7\", \"\\u1EA6\", \"\\u1EA5\", \"\\u1EA4\",\r\n\t\t\t\t\"\\u1EA3\", \"\\u1EA2\", \"\\u1EA1\", \"\\u1EA0\", \"\\u0169\", \"\\u0168\",\r\n\t\t\t\t\"\\u0103\", \"\\u0102\", \"\\u00FD\", \"\\u00FA\", \"\\u00F9\", \"\\u00F5\",\r\n\t\t\t\t\"\\u00F3\", \"\\u00F2\", \"\\u00EA\", \"\\u00E9\", \"\\u00E8\", \"\\u00E3\",\r\n\t\t\t\t\"\\u00E2\", \"\\u00E1\", \"\\u00E0\", \"\\u00DD\", \"\\u00DA\", \"\\u00D9\",\r\n\t\t\t\t\"\\u00D5\", \"\\u00D3\", \"\\u00D2\", \"\\u00CA\", \"\\u00C9\", \"\\u00C8\",\r\n\t\t\t\t\"\\u00C3\", \"\\u00C2\", \"\\u00C1\", \"\\u00C0\"};\r\n\r\n\t\tstr = replaceString(str, VNI_char, Unicode_char);\r\n\r\n\t\t// Part 3\r\n\t\tstr = str.replace('\\u00D4', '\\u01A0'); // O+\r\n\t\tstr = str.replace('\\u00F4', '\\u01A1'); // o+\r\n\t\tstr = str.replace('\\u00D6', '\\u01AF'); // U+\r\n\t\tstr = str.replace('\\u00F6', '\\u01B0'); // u+\r\n\t\tstr = str.replace('\\u00C6', '\\u00D4'); // O^\r\n\t\tstr = str.replace('\\u00E6', '\\u00F4'); // o^\r\n\t}", "public String reverse(String s) {\n String ret = \"\";\n for(int i = 0; i < s.length; i+= 1) {\n ret = s.charAt(i) + ret; //this will go in reverse as the next character will appear before the previously placed ret character.\n }\n return ret;\n}", "private String prepare(String originStr)\r\n {\r\n String result=originStr.toLowerCase();\r\n result = result.replace('ä','a');\r\n result = result.replace('ö','o');\r\n result = result.replace('ü','u');\r\n// result = result.replace(':',' ');\r\n// result = result.replace(';',' ');\r\n// result = result.replace('<',' ');\r\n// result = result.replace('>',' ');\r\n// result = result.replace('=',' ');\r\n// result = result.replace('?',' ');\r\n// result = result.replace('[',' ');\r\n// result = result.replace(']',' ');\r\n// result = result.replace('/',' ');\r\n return result;\r\n }", "public static String reverser(String line) {\n String result=\"\";\n for (int i = line.length()-1; i >=0 ; i--) {\n result += line.charAt(i);\n }\n return result;\n}", "private static String zzgr(String string2) {\n int n = string2.length();\n StringBuilder stringBuilder = new StringBuilder(n);\n int n2 = 0;\n while (n2 < n) {\n char c = string2.charAt(n2);\n if (c >= ' ' && c <= '~' && c != '\\\"' && c != '\\'') {\n stringBuilder.append(c);\n } else {\n stringBuilder.append(String.format(\"\\\\u%04x\", c));\n }\n ++n2;\n }\n return stringBuilder.toString();\n }", "public IDnaStrand reverse();", "public String decryptUnicode(String input, int key) {\n StringBuilder decrypted = new StringBuilder(input);\n for (int i = 0; i < input.length(); i++) {\n char newChar = (char) (decrypted.charAt(i) - key);\n decrypted.setCharAt(i, newChar);\n }\n return decrypted.toString();\n }", "public String normalize(String word);", "public static String transliterate(String text) {\n char[] chars = text.toCharArray();\n StringBuilder result = new StringBuilder(chars.length);\n for (char ch : chars) {\n if (Character.isLetterOrDigit(ch)) {\n if (TRANSLIT_MAP.containsKey(String.valueOf(Character.toLowerCase(ch)))) {\n String value = TRANSLIT_MAP.get(String.valueOf(Character.toLowerCase(ch)));\n if (Character.isUpperCase(ch)) {\n if (value.length() > 1) {\n value = Character.toUpperCase(value.charAt(0)) + value.substring(1);\n } else {\n value = value.toUpperCase();\n }\n } \n result.append(value);\n } else {\n result.append(ch);\n }\n } else if (Character.isWhitespace(ch)) {\n result.append(\"_\");\n } else if (ALLOWED_CHARS.contains(ch)) {\n result.append(ch);\n }\n }\n return result.toString();\n }", "protected String normalize(String s) \n{\n StringBuffer str = new StringBuffer();\n\n int len = (s != null) ? s.length() : 0;\n for (int i = 0; i < len; i++) \n {\n char ch = s.charAt(i);\n switch (ch) \n {\n case '<': \n {\n str.append(\"&lt;\");\n break;\n }\n case '>': \n {\n str.append(\"&gt;\");\n break;\n }\n case '&': \n {\n str.append(\"&amp;\");\n break;\n }\n case '\"': \n {\n str.append(\"&quot;\");\n break;\n }\n case '\\r':\n case '\\n': \n {\n if (canonical) \n {\n str.append(\"&#\");\n str.append(Integer.toString(ch));\n str.append(';');\n break;\n }\n // else, default append char\n }\n default: \n {\n str.append(ch);\n }\n }\n }\n\n return (str.toString());\n\n}", "public String translate(String text) {\n StringBuilder builder = new StringBuilder();\n char [] from = text.toCharArray();\n char [] to = new char[from.length];\n final char upper = (char)table.length;\n for(int i = 0; i < from.length; i++) {\n char c = from[i];\n if (c < upper) {\n c = table[c];\n }\n to[i] = c;\n }\n return new String(to);\n }", "private static String flipEndChars(String str) {\n if (str.length() < 2) {\n return \"Incompatible.\";\n }\n char firstChar = str.charAt(0);\n char lastChar = str.charAt(str.length() - 1);\n if (firstChar == lastChar) {\n return \"Two\\'s a pair.\";\n }\n return lastChar + str.substring(1, str.length() - 1) + firstChar;\n }", "private static String zzty(String string2) {\n StringBuffer stringBuffer = new StringBuffer();\n int n = 0;\n while (n < string2.length()) {\n char c = string2.charAt(n);\n if (n == 0) {\n stringBuffer.append(Character.toLowerCase(c));\n } else if (Character.isUpperCase(c)) {\n stringBuffer.append('_').append(Character.toLowerCase(c));\n } else {\n stringBuffer.append(c);\n }\n ++n;\n }\n return stringBuffer.toString();\n }", "public String reverse(String input) {\n if (input == null || input.length() <= 1) {\n return input;\n }\n char[] array = input.toCharArray();\n int slow = 0;\n int fast = array.length - 1;\n while (slow < fast) {\n swap(array, slow, fast);\n slow++;\n fast--;\n }\n return new String(array);\n }", "public static String NRZi(String input) {\n ArrayList<String> out = new ArrayList<>();\n out.add(\"UP\");\n for (int i = 0; i < input.length(); i++) {\n if ((Character.toString(input.charAt(i))).equals(\"0\")) {\n String before = out.get(out.size() - 1);\n out.add(before);\n } else {\n String before = out.get(out.size() - 1);\n out.add(inverse(before));\n }\n }\n out.remove(out.size()-1);\n String output = ArraytoString(out);\n return output;\n }", "String decodeString();", "public static String remove(String str){\n\t\tString str2 = str.trim();\n\t\tstr2 = str2.replaceAll(\"à|á|ả|ã|ạ|â|ầ|ấ|ẩ|ẫ|ậ|ằ|ắ|ẳ|ẵ|ặ|ă\", \"a\");\n\t\tstr2 = str2.replaceAll(\"í|ì|ỉ|ĩ|ị\",\"i\");\n\t\tstr2 = str2.replaceAll(\"ư|ứ|ừ|ử|ữ|ự|ú|ù|ủ|ũ|ụ\",\"u\");\n\t\tstr2 = str2.replaceAll(\"ế|ề|ể|ễ|ệ|é|è|ẻ|ẽ|ẹ|ê\",\"e\");\n\t\tstr2 = str2.replaceAll(\"ố|ồ|ổ|ỗ|ộ|ớ|ờ|ở|ỡ|ợ|ó|ò|ỏ|õ|ọ|ô|ơ\",\"o\");\n\t\tstr2= str2.replaceAll(\"ý|ỳ|ỷ|ỹ|ỵ\",\"y\");\n\t\t\n\t\tstr2 = str2.replaceAll(\"Ấ|Ầ|Ẩ|Ẫ|Ậ|Ắ|Ằ|Ẳ|Ẵ|Ặ|Á|À|Ả|Ã|Ạ|Â|Ă\",\"A\");\n\t\tstr2 = str2.replaceAll(\"Í|Ì|Ỉ|Ĩ|Ị\",\"I\");\n\t\tstr2 = str2.replaceAll(\"Ứ|Ừ|Ử|Ữ|Ự|Ú|Ù|Ủ|Ũ|Ụ|Ư\",\"U\");\n\t\tstr2 = str2.replaceAll(\"Ế|Ề|Ể|Ễ|Ệ|É|È|Ẻ|Ẽ|Ẹ|Ê\",\"E\");\n\t\tstr2 = str2.replaceAll(\"Ố|Ồ|Ổ|Ô|Ộ|Ớ|Ờ|Ở|Ỡ|Ợ|Ó|Ò|Ỏ|Õ|Ọ|Ô|Ơ\",\"O\");\n\t\tstr2= str2.replaceAll(\"Ý|Ỳ|Ỷ|Ỹ|Ỵ\",\"Y\");\n\t\tstr2 = str2.replaceAll(\"đ\",\"d\");\n\t\tstr2 = str2.replaceAll(\"Đ\",\"D\");\n\t\t\n\t\tstr2 = str2.replaceAll(\"ò\", \"\");\n\t\treturn str2;\n\t}", "private static String cup(String str) {\n\t\treturn str.substring(0,1).toLowerCase() + str.substring(1); \n\t}", "public static String toEscapedUnicode(String unicodeString)\n\t{\n\t\tint len = unicodeString.length();\n\t\tint bufLen = len * 2;\n\t\tStringBuffer outBuffer = new StringBuffer(bufLen);\n\t\tfor (int x = 0; x < len; x++)\n\t\t{\n\t\t\tchar aChar = unicodeString.charAt(x);\n\t\t\t// Handle common case first, selecting largest block that\n\t\t\t// avoids the specials below\n\t\t\tif ((aChar > 61) && (aChar < 127))\n\t\t\t{\n\t\t\t\tif (aChar == '\\\\')\n\t\t\t\t{\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\toutBuffer.append(aChar);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tswitch (aChar)\n\t\t\t{\n\t\t\t\tcase ' ' :\n\t\t\t\t\tif (x == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\t}\n\t\t\t\t\toutBuffer.append(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\t' :\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\toutBuffer.append('t');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\n' :\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\toutBuffer.append('n');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\r' :\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\toutBuffer.append('r');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\f' :\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\toutBuffer.append('f');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '=' : // Fall through\n\t\t\t\tcase ':' : // Fall through\n\t\t\t\tcase '#' : // Fall through\n\t\t\t\tcase '!' :\n\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\toutBuffer.append(aChar);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tif ((aChar < 0x0020) || (aChar > 0x007e))\n\t\t\t\t\t{\n\t\t\t\t\t\toutBuffer.append('\\\\');\n\t\t\t\t\t\toutBuffer.append('u');\n\t\t\t\t\t\toutBuffer.append(toHex((aChar >> 12) & 0xF));\n\t\t\t\t\t\toutBuffer.append(toHex((aChar >> 8) & 0xF));\n\t\t\t\t\t\toutBuffer.append(toHex((aChar >> 4) & 0xF));\n\t\t\t\t\t\toutBuffer.append(toHex(aChar & 0xF));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\toutBuffer.append(aChar);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn outBuffer.toString();\n\t}", "public static void main(String[] args) {\n\n testUnicode();\n\n String str = \"1024\";\n // int num = Integer.parseInt(str);\n int num = Integer.valueOf(str, 16);// ??str?��????????16????????????????int\n System.out.println(num);\n\n String s1 = \"???\";\n try {\n String s2 = new String(s1.getBytes(\"GB2312\"), \"ISO-8859-1\");\n } catch (UnsupportedEncodingException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n System.out.println(str.substring(1));\n\n System.out.println(reverse(str));\n }", "public static String toggleCase(String str){\n\t\tStringBuilder sb = new StringBuilder(str);\n\t\tfor(int i=0;i<str.length() ;i++ ){\n\t\t char ch = str.charAt(i);\n\t\t if(ch>='a' && ch<='z')\n\t\t {\n\t\t char upr = (char)('A'+ch-'a');\n\t\t sb.setCharAt(i,upr);\n\t\t }\n\t\t else if(ch>='A' && ch<='Z')\n\t\t {\n\t\t char upr = (char)('a'+ch-'A');\n\t\t sb.setCharAt(i,upr);\n\t\t }\n\t\t}\n\t\t\n\n\t\treturn sb.toString();\n\t}", "public static String decode (String original){\n\n // WRITE YOUR RECURSIVE CODE HERE\n int length = original.length();\n if (length == 0){\n\t\t\treturn \"\";\n\t\t}\n String decodeString = new String();\n\t\tchar a = original.charAt(0);\n\t\tif (Character.isDigit(a)){\n\t\t\tint index = a-'0';\n\t\t\tif (index == 0){\n\t\t\t\treturn decode(original.substring(2));\n\t\t\t}else{\n\t\t\t\tint preIndex = index-1; \n\t\t\t\treturn original.charAt(1)+decode(preIndex+original.substring(1));\t\n\t\t\t}\n\t\t}else{\n\t\t\treturn a + decode(original.substring(1));\n\t\t\t}\n\t\t}", "public String translate(String input, String direction) throws Exception {\n\t\tString[] lines = input.split(\"\\n\");\n\t\tString trans = \"\";\n\t\tfor (int j = 0; j < lines.length; j++) {\n\t\t\tString[] words = lines[j].split(\" \");\n\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\ttrans = trans.concat(dictionary.translate(words[i], direction) + \" \");\n\t\t\t}\n\t\t\ttrans = trans.concat(\"\\n\");\n\t\t}\n\t\treturn trans;\n\t}", "private static void reverseWord(String word) {\n // StringBuild.reverse()\n System.out.println(new StringBuilder(word).reverse().toString());\n\n // Add char one by one iteration method\n StringBuilder reversed = new StringBuilder();\n char[] chars = word.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n reversed.append(chars[chars.length - i - 1]);\n }\n System.out.println(reversed.toString());\n }", "public static void main(String[] args) {\n\t\r\n\t\r\n\tString str=\"Welcome\";\r\n\t\r\n\tchar[] arr=str.toCharArray();\r\n\tList<Character> l=new LinkedList<>();\r\n\tfor (Character c1 : arr) {\r\n\t\tl.add(c1);\r\n\t}\r\n\tCollections.reverse(l);\r\n\tListIterator<Character> i=l.listIterator();\r\n\twhile (i.hasNext()) {\r\n\t\tSystem.out.print(i.next());\r\n\t\t\r\n\t}\r\n\t\r\n\t\r\n\t\r\n}", "private void reverse(StringBuffer s)\n {\n s.reverse();\n String k = s.toString();\n String tokens[] = k.split(\" \");\n for(int i=0;i<tokens.length;i++)\n {\n StringBuffer temp = new StringBuffer(tokens[i]);\n System.out.print(temp.reverse()+\" \");\n }\n //Normal method\n /*String[] words = s.split(\" \");\n int i = words.length-1;\n while(i>=0)\n {\n System.out.print(words[i]+\" \");\n i--;\n }*/\n }", "public String reverse()\n {\n Stack<String> words = new Stack<String>() ;\n char[] r = s.toCharArray() ;\n StringBuffer sb = new StringBuffer() ; \n String[] w = s.split(\" \");\n \n for(String c : w)\n {\n words.push(c) ;\n }\n while(!words.isEmpty())\n {\n \n \tsb.append(words.pop()) ;\n \n sb.append(\" \") ;\n }\n return sb.substring(0, s.length()) .toString();\n }", "public static final String reverseString2(final String inString){\n\t\tif (inString==null || inString.length()==0) return inString;\r\n\t\tchar[] cStringArray=inString.toCharArray();\r\n\t\tchar first;\r\n\t\tfor (int i=0;i<(cStringArray.length/2);i++){\r\n\t\t\tfirst = cStringArray[ i ];\r\n\t\t\tcStringArray[ i ] = cStringArray[ cStringArray.length - i - 1 ];\r\n\t\t\tcStringArray[ cStringArray.length - i - 1 ] = first;\r\n\t\t}\r\n\t\treturn String.valueOf(cStringArray);\r\n\t}", "public static void main(String[] args) {\n String input = \"Lukman\";\n StringBuilder input1 = new StringBuilder();\n\n // append a string into StringBuilder input1\n //input1.append(input);\n\n // reverse StringBuilder input1\n //input1 = input1.reverse();\n\n // print reversed String\n int len = input.length() - 1;\n for (int i = len; i >= 0; --i) {\n input1.append(input.charAt(i));\n }\n System.out.println(\"Reverse:\" + input1);\n }", "public static String reverseString2(String s) {\n\t\tint length = s.length();\n\t\tchar[] arr = s.toCharArray();\n\t\t\n\t\tfor(int i=0; i< length / 2; i++){\n\t\t\tchar temp = arr[i];\n\t\t\tarr[i] = arr[length-1-i];\n\t\t\tarr[length-1-i] = temp;\n\t\t}\n\t\t\n\t\n\t\treturn new String(arr);\n\t\t\t\n\t}", "public static void main(String[] args) {\n String input = \"DXC technologies limited\";\n\n String revr = \"\";\n for (int z = input.length() - 1; z >= 0; z--) {\n revr = revr + input.charAt(z);\n }\n System.out.println(revr);\n\n\n String splitwords[] = input.split(\" \");\n String reverseword = \"\";\n\n for (int i = 0; i < splitwords.length; i++) {\n String word = splitwords[i];\n String reversewords = \"\";\n\n for (int j = word.length() - 1; j >= 0; j--) {\n reversewords = reversewords + word.charAt(j);\n }\n reverseword = reverseword + reversewords + \" \";\n\n }\n System.out.println(\"traditional method is \" +trim(reverseword));\n\n //return reverseword;\n\n }", "public static String reverseWordsAlt(String str){\r\n\t\t\r\n\t\tstr = reverse(str, 0,str.length()-1);\r\n\t\t\r\n\t\tint start=0;\r\n\t\tint end =0;\r\n\t\t\r\n\t\twhile(end < str.length()){\r\n\t\t\t\r\n\t\t\twhile(end<str.length() && str.charAt(end)!=' '){\r\n\t\t\t\tend++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(start<end){\r\n\t\t\t\tstr=reverse(str,start,end-1);\r\n\t\t\t\tstart=end+1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tend++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tstr = reverse(str,start,end-1);\r\n\t\t\r\n\t\treturn str;\r\n\t}", "public static void main(String[] args) {\n String str = null;\n //String str = \"My Name Is Aakash\";\n //String str = \"!@@#$%^&*()+_)(*&^%$#@!@#$%^&*(_)(*&^%$%^&**&^%$#$%^&*&^%$##$%^&*&^%$\";\n //String str = \"_sakdkjashdksahkdhjksahdkjakjshdkjahsdkaskdkasdjhasjhckhagcuagskdjkasdjkaskjdhjkashdkjhakjdjkasdkaskjdajksdhjkashdjkahsjkdhjkasckjackhaduihcadlcdjcbkjsbdcjksdjkckjsdcjksdnjkcnjksdhckjsdhjkvsdjvnkjdsbvjkdsvkjdshkhsdkfheklwjfbjkwegfwegfiuwekjfbewjkhfgwejyfguiwejfbwekhfgywegfkjewbhjfgewjfgewhjfjhewgf\";\n\n System.out.println(reverseString(str));\n }", "public String decode(String encoding) {\n\t\tString decoded = \"\";\n\t\tString currCode = \"\";\n\t\tMap<String, Character> revMap = new HashMap<String, Character>();\n\t\t\n\t\t// Build hashmap from value to key\n\t\tfor (Character code: this.mapping.keySet()) {\n\t\t\trevMap.put(this.mapping.get(code), code);\n\t\t}\n\t\t\n\t\tfor (Character c: encoding.toCharArray()) {\n\t\t\tcurrCode += c;\n\t\t\tCharacter toAdd = revMap.get(currCode);\n\t\t\tif (toAdd != null) {\n\t\t\t\tdecoded += toAdd;\n\t\t\t\tcurrCode = \"\";\n\t\t\t}\n\t\t}\n\n\t\treturn decoded;\n\t}", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "private String toLowerCyrillic(String word) {\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = 0; i < word.length(); i++) {\n char curChar = word.charAt(i);\n if (curChar >= 'А' && curChar <= 'Я') {\n curChar += 0x20;\n } else if (curChar == 'Ё') {\n curChar = 'ё';\n }\n stringBuilder.append(curChar);\n }\n return stringBuilder.toString();\n }", "public String deAccent(String str) {\n String nfdNormalizedString = Normalizer.normalize(str, Normalizer.Form.NFD);\n Pattern pattern = Pattern.compile(\"\\\\p{InCombiningDiacriticalMarks}+\");\n return pattern.matcher(nfdNormalizedString).replaceAll(\"\");\n }", "public String reverse(String input) {\n char[] carr = input.toCharArray();\n reverse(carr, 0 ,carr[carr.length - 1]);\n return String.valueOf(carr);\n }", "public static String reverseString(String input) {\n\t\tStringBuffer output=new StringBuffer();\n\t\tchar[] charArray = input.toCharArray();\n\t\tfor (int i = charArray.length-1; i >= 0; i--) {\n\t\t\toutput.append(charArray[i]);\n\t\t}\n return output.toString();\n\t}", "public static String reverseString(String str) {\n\n // Check if the string is null, empty, or 1 character only\n if (str == null || str.isEmpty() || str.length() <= 1)\n return str;\n\n /**\n * Convert the string to bytes.\n *\n * This uses the default JVM character encoding\n */\n byte[] originalByteArrayStr = str.getBytes();\n\n // Get the left and right positions of the byte array\n int right = originalByteArrayStr.length - 1;\n int left = 0;\n\n // Swap bytes in place using temporary storage\n while (left < right) {\n\n // Temporarily store the value of the left and right byte, so we can swap them\n byte rightByte = originalByteArrayStr[right];\n byte leftByte = originalByteArrayStr[left];\n\n // Perform the byte position swap\n originalByteArrayStr[left] = rightByte;\n originalByteArrayStr[right] = leftByte;\n\n // Increment and decrement our left and right position respectively\n left++;\n right--;\n }\n\n // Convert the byte array back into a string\n return new String(originalByteArrayStr);\n }", "public static String uuencode (String str) {\n\tStringBuilder ret = new StringBuilder (str.length () * 4 / 3);\n\tchar ch, ch1, ch2, ch3;\n\tint i;\n\t\n\tfor (i = 0; i+2 < str.length (); i+=3) {\t \n\t ch1 = str.charAt (i);\n\t ch2 = str.charAt (i+1);\n\t ch3 = str.charAt (i+2);\n\t ch = uu_base64[((ch1 >> 2) & 077)];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(((ch1 << 4) & 060) | ((ch2 >> 4) & 017))];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(((ch2 << 2) & 074) | ((ch3 >> 6) & 03))];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(ch3 & 077)];\n\t ret.append (ch);\n\t}\n\t\n\t// are we done yet?\n\tif (i == str.length ()) \n\t return ret.toString ();\n\n\t// no so handle the trailing characters.\n\tch1 = str.charAt (i);\n\tch2 = str.length() > i + 1 ? str.charAt (i+1) : (char)0;\n\t\n\tch = uu_base64[((ch1 >> 2) & 077)];\n\tret.append (ch);\n\t\n\tch = uu_base64[(((ch1 << 4) & 060) | ((ch2 >> 4) & 017))];\n\tret.append (ch);\n\t\n\tif (str.length () > i + 1) {\n\t ch = uu_base64[((ch2 << 2) & 074)];\n\t ret.append (ch);\n\t} else {\n\t ret.append ('=');\n\t}\n\tret.append ('=');\n\treturn ret.toString ();\n }", "@Test\n public void reverseString_passString_ReturnReversedString() {\n String output = Java8Streams.reverseString(\"java interview\");\n\n assertThat(output).isEqualTo(\"weivretni avaj\");\n }", "public static String blowup(String str) {\n\t\tif (str.length()==0) return \"\";\n\t\tString myList = new String();\n\t\tfor (int j=0; j < str.length(); j++){\n\t\t\tchar c = str.charAt(j);\n\t\t\tif ((c >= '0' && c <='9') && (j < str.length()-1)){\n\t\t\t\tfor (int i = (int)c-48; i > 0; i--){\n\t\t\t\t\tmyList += str.charAt(j+1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (c < '0' || c > '9') myList += c;\n\t\t\t}\n\t\t}\n\t\treturn myList; // TODO ADD YOUR CODE HERE\n\t}", "public void biStringToAl(String s){\n\t\tint i=0, j=0, num=0;\n\t\twhile(i<s.length() - 1){ //avoid index out of range exception\t\t\t\n\t\t\twhile(i < s.length()){\n\t\t\t\ti++;\n\t\t\t\tif(s.charAt(i) == ' ' || i == s.length()-1){ //a word ends\n\t\t\t\t\tnum++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\twhile(num >2 && i < s.length()){\n\t\t\t\tj++;\n\t\t\t\tif(s.charAt(j) == ' '){ // j is 2 words slower than i\n\t\t\t\t\tj = j + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tString temp;\n\t\t\tif(num >= 2){\n\t\t\t\tif(i == s.length() - 1){\n\t\t\t\t\ttemp =s.substring(j,i+1);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttemp =s.substring(j,i);\n\t\t\t\t}\n\t\t\t\tbiWords.add(temp);\n\t\t\t\t//System.out.println(\"temp:\"+temp);\n\t\t\t}\n\t\t}\n\t}", "public void reverseString(char[] s) {\n for(int i = 0; i < s.length/2; i++){\n char temp = s[i];\n s[i] = s[s.length-(i+1)];\n s[s.length-(i+1)] = temp;\n \n }\n \n \n }", "@Test\n\tpublic void RevStr() {\n\n\t\tString str = \"i am the tester\";\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\n\t\t\tSystem.out.println(str.charAt(i));\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tString str = \"Bangalore is capital of Karnataka where\";\n\t\tString[] words = str.split(\" \");\n\t\tString newString=\"\";\n\t\t\t\n\t\tfor(String word: words) {\n\t\n\t\t\t\tnewString= newString+reverse(word);\n\t\t}\n\t\t\n\t\tSystem.out.println(newString);\n\t}", "public String transform(String str) {\n char[] char_array = str.toCharArray();\n // 2. Caret is set to the first element of the character array.\n // This ensures the first element as visited in the array.\n char caret = char_array[0];\n // 3. Captures the occurrences of the character.\n // Since we defaulted current character to the first element, current counter is set to 1.\n int current_counter = 1;\n StringBuilder sb = new StringBuilder();\n\n // 4. Start from the second element in the character array\n for(int i = 1; i < char_array.length; i++) {\n // 4.1 IF: Increment the current counter if the current element matches with the caret\n // This means we are still seeing the occurrences of the caret.\n if(char_array[i] == caret) {\n current_counter += 1;\n }\n // 4.2 ELSE: If the current element does not match with the caret, push the number of occurrences and the caret to the string builder.\n else {\n sb.append(Integer.toString(current_counter));\n sb.append(caret);\n // 4.3 Initialize the caret to the current element and increment the current_counter.\n caret = char_array[i];\n current_counter = 1;\n }\n }\n\n // 5. Last element will be unvisited from 4.3.\n // Capturing the caret and current counter as it is.\n sb.append(Integer.toString(current_counter));\n sb.append(caret);\n\n // 6. Form a string.\n return sb.toString();\n }", "public static String reverseString(String input) {\r\n\t\tif(input==null)\r\n\t\t\t\treturn null;\r\n\t\t\r\n\t\tchar [] inputCharacter = input.toCharArray();\r\n\t\tint inputLength = inputCharacter.length;\r\n\t\t\r\n\t\tfor(int i=0; i<inputLength/2 ;i++){\r\n\t\t\tchar temp = inputCharacter[i];\r\n\t\t\tinputCharacter[i] = inputCharacter[inputLength-1-i];\r\n\t\t\tinputCharacter[inputLength-1-i] = temp;\r\n\t\t}\r\n\t\treturn new String(inputCharacter);\r\n\t}", "public void reverseString(char[] s) {\n for(int i = 0, j = s.length - 1; i < s.length / 2; i++,j--){\n //temporary holder\n char temp = s[j];\n //swap characters\n s[j] = s[i];\n s[i] = temp;\n }\n }", "void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}", "private String normalizeTmapText(String text) {\n return text.substring(1, text.length() - 1);\n }", "@Override\n public String postprocess ( String input ) {\n if (input == null || input.length() == 0)\n return input;\n \n \n char[] car = input.toCharArray();\n int maxLen = (allCharFixMaps.size() <= car.length) ? allCharFixMaps.size() : car.length;\n for(int i = 0; i < maxLen; i++) {\n HashMap<Character, Character> fixes = allCharFixMaps.get( i );\n if (fixes.containsKey( car[i] ))\n car[i] = fixes.get( car[i] );\n }\n return String.valueOf( car ).replaceAll( \" \", \"\" );\n }", "static void reverseWordInMyString(String str) {\r\n\t\tString[] words = str.split(\" \");\r\n\t\tString reversedString = \"\";\r\n\t\tfor (int i = 0; i < words.length; i++) {\r\n\t\t\tString word = words[i];\r\n\t\t\tString reverseWord = \"\";\r\n\t\t\tfor (int j = word.length() - 1; j >= 0; j--) {\r\n\t\t\t\t/*\r\n\t\t\t\t * The charAt() function returns the character at the given position in a string\r\n\t\t\t\t */\r\n\t\t\t\treverseWord = reverseWord + word.charAt(j);\r\n\t\t\t}\r\n\t\t\treversedString = reversedString + reverseWord + \" \";\r\n\t\t}\r\n\t\tSystem.out.println(str);\r\n\t\tSystem.out.println(reversedString);\r\n\t}", "public static void transform()\r\n {\r\n \t\r\n \tString in = BinaryStdIn.readString();\r\n \tint length = in.length();\r\n \t\t\t\r\n \tchar[] characters = new char[length];\r\n \tcharacters[0] = in.charAt(length-1);\r\n \tfor (int i = 1; i < length ; i++)\r\n \t\tcharacters[i] = in.charAt(i-1);\r\n \t\r\n \tCircularSuffixArray sortedSuffixes = new CircularSuffixArray(in);\r\n \t\r\n \tStringBuilder out = new StringBuilder();\r\n \tint first = -1;\r\n \tfor (int i = 0; i < length; i++)\r\n \t{\r\n \t\tint index = sortedSuffixes.index(i);\r\n \t\tout = out.append(characters[index]);\r\n \t\tif (index == 0)\r\n \t\t\tfirst = i;\r\n \t}\r\n \t\r\n \tBinaryStdOut.write(first);\r\n \tBinaryStdOut.write(out.toString());\r\n \tBinaryStdOut.close();\r\n\r\n }", "public static String reverseComplementSequence(String sequence) {\n\t\tStringBuilder buffer = new StringBuilder(sequence);\n\t\tbuffer.reverse();\n\t\tfor (int i = 0; i < buffer.length(); ++i) {\n\t\t\tswitch (buffer.charAt(i)) {\n\t\t\tcase 'A':\n\t\t\t\tbuffer.setCharAt(i, 'T');\n\t\t\t\tbreak;\n\t\t\tcase 'C':\n\t\t\t\tbuffer.setCharAt(i, 'G');\n\t\t\t\tbreak;\n\t\t\tcase 'G':\n\t\t\t\tbuffer.setCharAt(i, 'C');\n\t\t\t\tbreak;\n\t\t\tcase 'T':\n\t\t\t\tbuffer.setCharAt(i, 'A');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn buffer.toString();\n\t}", "private void normalize()\n {\n if (m_unnormalized_ == null) {\n m_unnormalized_ = new StringBuilder();\n m_n2Buffer_ = new Normalizer2Impl.ReorderingBuffer(m_nfcImpl_, m_buffer_, 10);\n } else {\n m_unnormalized_.setLength(0);\n m_n2Buffer_.remove();\n }\n int size = m_FCDLimit_ - m_FCDStart_;\n m_source_.setIndex(m_FCDStart_);\n for (int i = 0; i < size; i ++) {\n m_unnormalized_.append((char)m_source_.next());\n }\n m_nfcImpl_.decomposeShort(m_unnormalized_, 0, size, m_n2Buffer_);\n }", "static String PalindromDecomposition_Helper(String str, String result, int num) {\n\n if (str.isEmpty()) return result;\n\n if (str.length() == 1) {\n result += \"|\"+str;\n str = \"\";\n return result;\n }\n \n if (str.length() >= num && isPalindrome(str.substring(0, num))) {\n result += \"|\"+str.substring(0, num); \n\n str = str.substring(1, str.length());\n } else {\n result += \"|\"+str.charAt(0);\n str = str.substring(1, str.length());\n }\n\n \n\n return PalindromDecomposition_Helper(str, result, num);\n }", "public static String reverseString(String input) {\r\n\t\tString reversed = \"\";\r\n\t\tfor (int i = input.length() - 1; i >= 0; i--) {\r\n\t\t\treversed += input.charAt(i);\r\n\t\t}\r\n\t\treturn reversed;\r\n\t}", "public void reverse() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n newSeq.add(seq.get(seq.size() - 1 - i));\n }\n seq = newSeq;\n }", "private static String scramble(final String byte_, final boolean reverse)\n\t{\n\t\tStringBuilder builder = new StringBuilder(byte_);\n\t\tfor( int i = 0; i < byte_.length(); i ++)\n\t\t\tif(byte_.charAt(i) == ( !reverse ? BIT_ONE : BIT_ZERO))\n\t\t\t{\n\t\t\t\tbuilder.setCharAt(i, ( !reverse ? BIT_ZERO : BIT_ONE));\n\t\t\t\treturn builder.toString();\n\t\t\t}\n\t\treturn null;\n\t}", "private static void decodeString(String in){\n\t\t//reverse anything done in encoded string\n\t\tString demess = decrypt(in);\n\t\tString decodeMessage = bigIntDecode(demess);\n\n\t\tSystem.out.println(\"Decoded message: \" + decodeMessage + \"***make function to actually decode!\");\n\t}", "public String decompress(String input) {\n if (input == null || input.length() < 1) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n char[] inputs = input.toCharArray();\n char currChar = ' ';\n int freq = 0;\n \n for (int i = 0; i < inputs.length; i++) {\n if (inputs[i] >= 'a' && inputs[i] <= 'z') {\n appendChar(sb, currChar, freq); // previous char.\n currChar = inputs[i];\n freq = 0;\n } else {\n freq = freq * 10 + (inputs[i] - '0');\n }\n }\n appendChar(sb, currChar, freq);\n \n return sb.toString();\n }", "public void conversionTest(){\n String test = \"ABCDEFabcdef123!#\";\n for(int k=0; k < test.length(); k++){\n char ch = test.charAt(k);\n char uch = Character.toUpperCase(ch);\n char lch = Character.toLowerCase(ch);\n System.out.println(ch+\" \"+uch+\" \"+lch);\n }\n }", "private static String alterString(String string) {\n\t\t/*\n\t\t * creating the character array by converting string to charArry()\n\t\t */\n\t\t char name[]=string.toCharArray();\n\t\t /*\n\t\t * creating character array for storing elements\n\t\t */\n\t\t\t char arr[]=new char[name.length];\n\t\t\t \n\t\t\t /*\n\t\t\t * Creating character array for alphabets\n\t\t\t */\n\t\t\t char alphabets[]= {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\t\t \n\t\t\t for(int i=0;i<name.length;i++) {\n\t\t\t\t /*\n\t\t\t\t * if vowels are present add it to storing array\n\t\t\t\t */\n\t\t\t\t if(name[i]=='a' || name[i]=='e' || name[i]=='i' || name[i]=='o' || name[i]=='u') {\n\t\t\t\t\t arr[i]=name[i];\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t for(int j=0;j<alphabets.length;j++) {\n\t\t\t\t\t\t /*\n\t\t\t\t\t\t * after looping through alphabet array if the element consonant is found replace it next element in alphabet array \n\t\t\t\t\t\t */\n\t\t\t\t\t\t if(name[i]==alphabets[j]) {\n\t\t\t\t\t\t\t arr[i]=alphabets[j+1];\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\t /*\n\t\t\t * converting character array to string;\n\t\t\t */\n\t\t\t String string1=new String(arr); \n\t\t\t /*\n\t\t\t * returning the string\n\t\t\t */\n\t\t\treturn string1;\n\t}" ]
[ "0.62137336", "0.5957854", "0.5726392", "0.56879115", "0.553412", "0.54804516", "0.54221267", "0.5420942", "0.54170024", "0.5392107", "0.5390685", "0.53706133", "0.53638345", "0.5353679", "0.5353147", "0.5337846", "0.53377825", "0.5332882", "0.53325254", "0.5330692", "0.5323331", "0.5320256", "0.53169614", "0.53076553", "0.53068644", "0.5303136", "0.52969563", "0.5294491", "0.5280587", "0.5279531", "0.5267156", "0.5266235", "0.5256633", "0.5252398", "0.52464956", "0.52434975", "0.52365667", "0.52328587", "0.52248436", "0.52059764", "0.51993096", "0.51985675", "0.51952267", "0.5183662", "0.51697123", "0.51576614", "0.51554775", "0.5154727", "0.51520926", "0.51144344", "0.51088756", "0.5103781", "0.50823903", "0.5077668", "0.5073972", "0.5063337", "0.5058195", "0.50577563", "0.5056451", "0.50520265", "0.5050731", "0.5049879", "0.5048085", "0.50470465", "0.5044415", "0.5044402", "0.50427765", "0.5042675", "0.50347227", "0.5033018", "0.5026275", "0.5021531", "0.5018699", "0.5012132", "0.50050706", "0.5004565", "0.500438", "0.5003531", "0.49989423", "0.49978927", "0.499598", "0.4995932", "0.4994409", "0.4994174", "0.49892315", "0.49862322", "0.49826887", "0.4973526", "0.49724564", "0.4969091", "0.49685028", "0.49656132", "0.49645323", "0.49626592", "0.49619633", "0.4961816", "0.49544826", "0.49532336", "0.49518389", "0.49500477" ]
0.6487796
0
Render a single line string at the current (posX,posY) and update posX
private void renderStringAtPos(String text, boolean textShadow) { boolean resetTextColor = true; boolean ignoreColorCodes = false; for (int stringIndex = 0; stringIndex < text.length(); stringIndex++) { char stringChar = text.charAt(stringIndex); //If the character is a color character and it is not the end of the text String, //set the text color. if (stringChar == 167 && stringIndex + 1 < text.length()) { if (!ignoreColorCodes) { char colorCodeChar = String.valueOf(text.charAt(stringIndex + 1)).toLowerCase(Locale.ROOT).charAt(0); int colorCodeId = "0123456789abcdefklmnor".indexOf(colorCodeChar); //Color code: &* if (colorCodeChar == '*') { //Toggles color code blending. doColorBlending = !doColorBlending; colorCodeId = -1; } //Color code: &v if (colorCodeChar == 'v') { ignoreColorCodes = true; colorCodeId = -1; } if (colorCodeId != -1) { if (colorCodeId < 16) { if (resetTextColor) { resetTextColor = false; resetColor(); } this.randomStyle = false; this.boldStyle = false; this.strikethroughStyle = false; this.underlineStyle = false; this.italicStyle = false; if (colorCodeId < 0) { colorCodeId = 15; } if (textShadow) { colorCodeId += 16; } int colorCodeColor = this.colorCode[colorCodeId]; //If color blending is not on, reset the text color. if (!doColorBlending) { resetColor(); } addColor(colorCodeColor >> 16, colorCodeColor >> 8 & 255, colorCodeColor & 255); updateColor(); } else { resetTextColor = true; //Color Code: &k if (colorCodeId == 16) { this.randomStyle = true; //Color Code: &l } else if (colorCodeId == 17) { this.boldStyle = true; //Color Code: &m } else if (colorCodeId == 18) { this.strikethroughStyle = true; //Color Code: &n } else if (colorCodeId == 19) { this.underlineStyle = true; //Color Code: &o } else if (colorCodeId == 20) { this.italicStyle = true; //Color Code: &r } else if (colorCodeId == 21) { this.randomStyle = false; this.boldStyle = false; this.strikethroughStyle = false; this.underlineStyle = false; this.italicStyle = false; resetColor(); colorCodeCount = 1; totalRColor = baseTextColor >> 16 & 255; totalGColor = baseTextColor & 255; totalBColor = baseTextColor >> 8 & 255; alphaColor = 100; updateColor(); } } } } stringIndex++; } else { resetTextColor = true; ignoreColorCodes = false; int stringCharIndex = "\u00c0\u00c1\u00c2\u00c8\u00ca\u00cb\u00cd\u00d3\u00d4\u00d5\u00da\u00df\u00e3\u00f5\u011f\u0130\u0131\u0152\u0153\u015e\u015f\u0174\u0175\u017e\u0207\u0000\u0000\u0000\u0000\u0000\u0000\u0000 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u0000\u00c7\u00fc\u00e9\u00e2\u00e4\u00e0\u00e5\u00e7\u00ea\u00eb\u00e8\u00ef\u00ee\u00ec\u00c4\u00c5\u00c9\u00e6\u00c6\u00f4\u00f6\u00f2\u00fb\u00f9\u00ff\u00d6\u00dc\u00f8\u00a3\u00d8\u00d7\u0192\u00e1\u00ed\u00f3\u00fa\u00f1\u00d1\u00aa\u00ba\u00bf\u00ae\u00ac\u00bd\u00bc\u00a1\u00ab\u00bb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\u03b2\u0393\u03c0\u03a3\u03c3\u03bc\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u2205\u2208\u2229\u2261\u00b1\u2265\u2264\u2320\u2321\u00f7\u2248\u00b0\u2219\u00b7\u221a\u207f\u00b2\u25a0\u0000".indexOf(stringChar); if (this.randomStyle && stringCharIndex != -1) { int stringCharWidth = this.getCharWidth(stringChar); char randomChar; //Randomly chooses characters until a character of the same width is found. do { stringCharIndex = super.fontRandom.nextInt("\u00c0\u00c1\u00c2\u00c8\u00ca\u00cb\u00cd\u00d3\u00d4\u00d5\u00da\u00df\u00e3\u00f5\u011f\u0130\u0131\u0152\u0153\u015e\u015f\u0174\u0175\u017e\u0207\u0000\u0000\u0000\u0000\u0000\u0000\u0000 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u0000\u00c7\u00fc\u00e9\u00e2\u00e4\u00e0\u00e5\u00e7\u00ea\u00eb\u00e8\u00ef\u00ee\u00ec\u00c4\u00c5\u00c9\u00e6\u00c6\u00f4\u00f6\u00f2\u00fb\u00f9\u00ff\u00d6\u00dc\u00f8\u00a3\u00d8\u00d7\u0192\u00e1\u00ed\u00f3\u00fa\u00f1\u00d1\u00aa\u00ba\u00bf\u00ae\u00ac\u00bd\u00bc\u00a1\u00ab\u00bb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\u03b2\u0393\u03c0\u03a3\u03c3\u03bc\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u2205\u2208\u2229\u2261\u00b1\u2265\u2264\u2320\u2321\u00f7\u2248\u00b0\u2219\u00b7\u221a\u207f\u00b2\u25a0\u0000".length()); randomChar = "\u00c0\u00c1\u00c2\u00c8\u00ca\u00cb\u00cd\u00d3\u00d4\u00d5\u00da\u00df\u00e3\u00f5\u011f\u0130\u0131\u0152\u0153\u015e\u015f\u0174\u0175\u017e\u0207\u0000\u0000\u0000\u0000\u0000\u0000\u0000 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u0000\u00c7\u00fc\u00e9\u00e2\u00e4\u00e0\u00e5\u00e7\u00ea\u00eb\u00e8\u00ef\u00ee\u00ec\u00c4\u00c5\u00c9\u00e6\u00c6\u00f4\u00f6\u00f2\u00fb\u00f9\u00ff\u00d6\u00dc\u00f8\u00a3\u00d8\u00d7\u0192\u00e1\u00ed\u00f3\u00fa\u00f1\u00d1\u00aa\u00ba\u00bf\u00ae\u00ac\u00bd\u00bc\u00a1\u00ab\u00bb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\u03b2\u0393\u03c0\u03a3\u03c3\u03bc\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u2205\u2208\u2229\u2261\u00b1\u2265\u2264\u2320\u2321\u00f7\u2248\u00b0\u2219\u00b7\u221a\u207f\u00b2\u25a0\u0000".charAt(stringCharIndex); } while (stringCharWidth != this.getCharWidth(randomChar)); stringChar = randomChar; } float charShadowOffset = stringCharIndex == -1 || super.getUnicodeFlag() ? 0.5f : 1f; boolean doCharShadow = (stringChar == 0 || stringCharIndex == -1 || super.getUnicodeFlag()) && textShadow; if (doCharShadow) { super.posX -= charShadowOffset; super.posY -= charShadowOffset; } float renderOffset = renderChar(stringChar, italicStyle); if (doCharShadow) { super.posX += charShadowOffset; super.posY += charShadowOffset; } if (boldStyle) { super.posX += charShadowOffset; if (doCharShadow) { super.posX -= charShadowOffset; super.posY -= charShadowOffset; } this.renderChar(stringChar, italicStyle); super.posX -= charShadowOffset; if (doCharShadow) { super.posX += charShadowOffset; super.posY += charShadowOffset; } renderOffset++; } doDraw(renderOffset); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawMultiLine(SpriteBatch batch, String text, float x, float y);", "public void draw(String str, double x, double y, double size, int color, Align align) {\n GL11.glEnable(GL11.GL_BLEND);\n //GL11.glDepthMask(false);\n double scale = size / mcFont().FONT_HEIGHT;\n GL11.glPushMatrix(); {\n GL11.glTranslated(x, y, 0);\n GL11.glScaled(scale, scale, 1);\n String[] ss = str.split(\"\\n\");\n for(int i = 0; i < ss.length; ++i) {\n GL11.glPushMatrix(); {\n double dy = i * mcFont().FONT_HEIGHT;\n GL11.glTranslated(0, dy, 0);\n drawSingleLine(ss[i], color, align);\n } GL11.glPopMatrix();\n }\n } GL11.glPopMatrix();\n }", "@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawString(str, 10, 10);\r\n\t\tg.drawLine(10, 20, 110, 20);\r\n\t\tg.drawRect(pX, 30, 100, 100);\r\n\t\t\r\n\t}", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, float alignWidth, HAlignment alignment);", "@Override\n public void render(Graphics g) {\n\n int x = g.repositionX((int) _coordOrigin._x + (int) _pos._x);\n int y = g.repositionY((int) _coordOrigin._y + ((int) _pos._y * (-1)));\n\n g.newFont(_f, g.repositionX(_lineThickness), _b);\n g.setColor(_c);\n g.drawText(_t, g.getCanvas().getX() + x, g.getCanvas().getY() + y);\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "public abstract void drawString(String str, int x, int y);", "public static void drawStringMultiLine(MatrixStack matrixStack, FontRenderer fontRenderer, String string, int x, int y, int color) \n {\n String[] lines = string.split(\"\\\\\\\\n\");\n for (int i = 0; i < lines.length; i++) \n {\n String line = lines[i];\n fontRenderer.drawString(matrixStack, line, x, y + (fontRenderer.FONT_HEIGHT * i), color);\n }\n }", "public void drawLine(float x, float y, float x2, float y2, float width, float u, float v, float texW, float texH) {\n throw new NotImplementedException(); // TODO Implement\n }", "@Override\n public void drawString(String str, int x, int y) {\n graphics.drawString(str, x, y - descent);\n if (bold) {\n graphics.drawString(str, x + 1, y - descent);\n }\n\n if (underline) {\n graphics.drawLine(x, y - 1, x + str.length() * char_width, y - 1);\n }\n\n }", "private void drawPosition(Position pos, TextColor color, char c, boolean wide) {\n TextGraphics text = screen.newTextGraphics();\n text.setForegroundColor(color);\n text.putString(pos.getX() * 2, pos.getY() + 1, String.valueOf(c));\n\n if (wide) {\n text.putString(pos.getX() * 2 + 1, pos.getY() + 1, String.valueOf(c));\n }\n }", "public void update() {\n textBuffer.resetLineInfo();\n textBuffer.resetTraversalMan();\n x_pos = X_INIT;\n y_pos = 0;\n queue = new LinkedList<>();\n auxQueue = new LinkedList<>();\n cursorPos = null;\n\n renderFlag = Math.max(renderFlag-1, -1);\n if (renderFlag == 0) {\n root.getChildren().removeAll(renderPieces);\n renderPieces.clear();\n }\n\n Text text;\n while ((text = textBuffer.advance()) != null) {\n if (textBuffer.isCurrentPos()) {\n cursorPos = text;\n }\n if (x_pos == X_INIT) {\n textBuffer.putLineNo_StartNode_mapping(textBuffer.getCurrentNode());\n }\n if (text.getText().equals(\"\\n\")) {\n if (cursorPos == text) {\n cursor.setX(X_INIT);\n cursor.setY((textBuffer.getMaxLine() - 1) * lineHeight);\n }\n\n x_pos = X_INIT;\n y_pos += lineHeight;\n queue.clear();\n auxQueue.clear();\n } else if (text.getText().equals(\" \")) {\n queue.clear();\n auxQueue.clear();\n setText(text, x_pos, y_pos);\n x_pos += round(text.getLayoutBounds().getWidth());\n\n if (cursorPos == text) {\n if (x_pos > span) {\n cursor.setX(span);\n cursor.setY(y_pos);\n } else {\n cursor.setX(x_pos+1);\n cursor.setY(y_pos);\n }\n }\n } else {\n queue.addLast(text);\n auxQueue.addLast(textBuffer.getCurrentNode());\n setText(text, x_pos, y_pos);\n x_pos += round(text.getLayoutBounds().getWidth());\n if (x_pos > span) {\n if (round(queue.getFirst().getX()) == X_INIT) {\n text = queue.getLast();\n queue.clear();\n queue.addLast(text);\n textBuffer.putLineNo_StartNode_mapping(textBuffer.getCurrentNode());\n x_pos = X_INIT;\n y_pos += lineHeight;\n setText(text, x_pos, y_pos);\n x_pos += round(text.getLayoutBounds().getWidth());\n } else {\n x_pos = X_INIT;\n y_pos += lineHeight;\n for (Text t : queue) {\n setText(t, x_pos, y_pos);\n x_pos += round(t.getLayoutBounds().getWidth());\n }\n textBuffer.putLineNo_StartNode_mapping(auxQueue.getFirst());\n auxQueue.clear();\n }\n }\n }\n }\n\n if (cursorPos == null) {\n cursor.setX(X_INIT);\n cursor.setY(0);\n }\n\n updateScrollBarSize();\n updateRootPos();\n }", "private void drawTextDirect(Canvas canvas, float offsetX, int color, int startLine){\n mPaint.setColor(color);\n mPaint.setTypeface(mTypefaceText);\n int last = getLastVisibleLine();\n for(int i = startLine;i <= last;i++){\n if(mText.getColumnCount(i) == 0){\n continue;\n }\n prepareLine(i);\n drawText(canvas, mChars, 0, mText.getColumnCount(i), offsetX, getLineBaseLine(i) - getOffsetY());\n float width = measureText(mChars,0,mText.getColumnCount(i)) + offsetX;\n if(width > mMaxPaintX) {\n mMaxPaintX = width;\n }\n }\n }", "public void setLinePos(int linePos) {\n this.linePos = linePos;\n }", "public void drawLine(Position scanPos, Position mypos)// in\n \t\t// ver�nderter\n \t\t// Form von\n \t\t// http://www-lehre.informatik.uni-osnabrueck.de\n \t\t\t{\n \t\t\t\tint x, y, error, delta, schritt, dx, dy, inc_x, inc_y;\n \n \t\t\t\tx = mypos.getX(); // \n \t\t\t\ty = mypos.getY(); // As i am center\n \n \t\t\t\tdx = scanPos.getX() - x;\n \t\t\t\tdy = scanPos.getY() - y; // Hoehenzuwachs\n \n \t\t\t\t// Schrittweite\n \n \t\t\t\tif (dx > 0) // Linie nach rechts?\n \t\t\t\t\tinc_x = 1; // x inkrementieren\n \t\t\t\telse\n \t\t\t\t\t// Linie nach links\n \t\t\t\t\tinc_x = -1; // x dekrementieren\n \n \t\t\t\tif (dy > 0) // Linie nach oben ?\n \t\t\t\t\tinc_y = 1; // y inkrementieren\n \t\t\t\telse\n \t\t\t\t\t// Linie nach unten\n \t\t\t\t\tinc_y = -1; // y dekrementieren\n \n \t\t\t\tif (Math.abs(dy) < Math.abs(dx))\n \t\t\t\t\t{ // flach nach oben oder unten\n \t\t\t\t\t\terror = -Math.abs(dx); // Fehler bestimmen\n \t\t\t\t\t\tdelta = 2 * Math.abs(dy); // Delta bestimmen\n \t\t\t\t\t\tschritt = 2 * error; // Schwelle bestimmen\n \t\t\t\t\t\twhile (x != scanPos.getX())\n \t\t\t\t\t\t\t{\n \n \t\t\t\t\t\t\t\tif (x != mypos.getX())\n \t\t\t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\t\tincPix(x + mypos.getX(), y + mypos.getY()); // Fuer\n \t\t\t\t\t\t\t\t\t\t// jede\n \t\t\t\t\t\t\t\t\t\t// x-Koordinate\n \t\t\t\t\t\t\t\t\t\t// System.out.println(\"inc pos \"+ (x +\n \t\t\t\t\t\t\t\t\t\t// mypos.getX()));\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t// Pixel\n \t\t\t\t\t\t\t\tx += inc_x; // naechste x-Koordinate\n \t\t\t\t\t\t\t\terror = error + delta; // Fehler aktualisieren\n \t\t\t\t\t\t\t\tif (error > 0)\n \t\t\t\t\t\t\t\t\t{ // neue Spalte erreicht?\n \t\t\t\t\t\t\t\t\t\ty += inc_y; // y-Koord. aktualisieren\n \t\t\t\t\t\t\t\t\t\terror += schritt; // Fehler\n \t\t\t\t\t\t\t\t\t\t// aktualisieren\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t} else\n \t\t\t\t\t{ // steil nach oben oder unten\n \t\t\t\t\t\terror = -Math.abs(dy); // Fehler bestimmen\n \t\t\t\t\t\tdelta = 2 * Math.abs(dx); // Delta bestimmen\n \t\t\t\t\t\tschritt = 2 * error; // Schwelle bestimmen\n \t\t\t\t\t\twhile (y != scanPos.getY())\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tif (y != mypos.getY())\n \t\t\t\t\t\t\t\t\t{// fuer jede y-Koordinate\n \t\t\t\t\t\t\t\t\t\tincPix(x + mypos.getX(), y + mypos.getY());\n \t\t\t\t\t\t\t\t\t}// setze\n \t\t\t\t\t\t\t\t// Pixel\n \t\t\t\t\t\t\t\ty += inc_y; // naechste y-Koordinate\n \t\t\t\t\t\t\t\terror = error + delta; // Fehler aktualisieren\n \t\t\t\t\t\t\t\tif (error > 0)\n \t\t\t\t\t\t\t\t\t{ // neue Zeile erreicht?\n \t\t\t\t\t\t\t\t\t\tx += inc_x; // x-Koord. aktualisieren\n \t\t\t\t\t\t\t\t\t\terror += schritt; // Fehler\n \t\t\t\t\t\t\t\t\t\t// aktualisieren\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\tif ((x != scanPos.getX() && y != scanPos.getY()))\n \t\t\t\t\t{\n \t\t\t\t\t\tdecPix(scanPos.getX() + x, scanPos.getY() + y);\n \t\t\t\t\t}\n \t\t\t}", "private void drawTextMarker(Graphics g, String message, int yLine) {\n\t\tint xCenter = getGameWidthPixels() / 2;\n\t\tVector2DLong position0Inverted = new Vector2DLong(xCenter, yLine),\n\t\t\t\tposition1NonInverted = new Vector2DLong(xCenter, getGameHeightPhysics() - yLine);\n\t\tdrawScoreMarker(g, new ScoreMarker(message, position0Inverted, null, true));\n\t\tdrawScoreMarker(g, new ScoreMarker(message, position1NonInverted, null, false));\n\t}", "public void drawText(final String text, final int xPos, final int yPos, final Color color){\n font.setColor(Color.BLACK);\n font.setScale(0.51f);\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n \n font.setColor(Color.WHITE);\n font.setScale(0.5f);\n batch.begin();\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n font.setScale(1f);\n }", "public int getLinePos() {\n return linePos;\n }", "public void renderText(String text, int x, int y)\n {\n renderText(text, x, y, 0x00000000);\n }", "void render() {\n\t\tif (!dragLock)\n\t\t\tfucusLocks();\n\n\t\t// display help information\n\t\tString selected = isSelected ? \" [selected]\" : \"\";\n\t\tmyParent.text(id + selected, anchor.x + 10, anchor.y);\n\n\t\t// display points and lines with their colourings\n\t\tfor (int i = 0; i < amount; i++) {\n\n\t\t\tpoint[i].render();\n\n\t\t\tif (state == State.DRAG_AREA)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\n\t\t\tline[i].draw();\n\n\t\t}\n\n\t\t// display rotation ellipse in anchor position\n\t\tif (state == State.ROTATE && isSelected) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.ellipse(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display drag area rectangle in anchor position\n\t\tif (state == State.DRAG_AREA) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.rect(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display anchor point\n\t\tmyParent.rect(anchor.x, anchor.y, 5, 5);\n\n\t\t// display line centres\n\t\tmyParent.noFill();\n\t\tmyParent.stroke(150);\n\t\tmyParent.rectMode(PConstants.CENTER);\n\t\tmyParent.rect(X.x, X.y, 5, 5);\n\t\tmyParent.rect(Y.x, Y.y, 5, 5);\n\t\tmyParent.rect(Z.x, Z.y, 5, 5);\n\t\tmyParent.rect(Q.x, Q.y, 5, 5);\n\t}", "public void drawString(final String msg, final int xPos, final int yPos) {\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.draw(batch, msg, xPos, yPos);\n batch.end();\n }", "public void setLinePosition(int pos) {\n this.linePosition = pos;\n }", "public void draw(final Point2D pos, final int hpos, final int vpos) {\n final Graphics2D g2 = (Graphics2D) g.create();\n g2.translate(pos.getX() + getHorizontalOffset(hpos),\n pos.getY() - bbox.getHeight() + getVerticalOffset(vpos, false));\n g2.drawString(str, 0, 0);\n g2.dispose();\n }", "public void render (DrawingCanvas canvas){\n //System.out.println(\"drawing \"+wd+\"*\"+ht+\" at (\"+x+\",\"+y+\")\");\n canvas.setForeground(col);\n canvas.drawString(str, x, y, false);\n canvas.setForeground(Color.lightGray);\n canvas.drawRect(x,y-13,(str.length()*8),16);\n }", "public void renderText(float x ,float y ){\n ttf.drawString(x, y, text);\n }", "public void drawString(final String msg, final int xPos, final int yPos, final Color color) {\n font.setColor(color);\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.draw(batch, msg, xPos, yPos);\n batch.end();\n }", "public void draw(Graphics2D g2d) {\r\n for (int i = 0; i < lines.size(); ++i) {\r\n int deltaX = (width - getGlobalFontMetrics().stringWidth(lines.elementAt(i))) / 2;\r\n int deltaY = getGlobalFontMetrics().getHeight() * (i + 1) - getGlobalFontMetrics().getDescent();\r\n g2d.drawString(lines.elementAt(i), x + deltaX + 1, y + deltaY);\r\n }\r\n }", "public void draw(String str, double x, double y, double size, int color) {\n draw(str, x, y, size, color, Align.LEFT);\n }", "public void displayLeft(String text, int x, int y) {\n\t\tgc.setFont(vector); //set the font \n\t\tgc.setFill(Color.WHITE); //set the color of the text\n\t\tgc.fillText(text, x, y); //draw the text\n\t}", "public static void drawLString(String l) {\n\t\tdouble move = computeScale(l);\n\n\t\tdouble xpos = 0.5;\n\t\tdouble ypos = 0.5;\n\t\tdouble xdir = 1*move;\n\t\tdouble ydir = 0*move;\n\n\t\tfor (int i = 0; i < l.length(); i++) {\n\t\t\tif (l.charAt(i) == 'F' || l.charAt(i) == 'H') {\n\n\t\t\t\tStdDraw.line(xpos, ypos, xpos+xdir, ypos+ydir);\n\t\t\t\txpos = xpos+xdir;\n\t\t\t\typos = ypos+ydir;\n\t\t\t}\n\t\t\tif (l.charAt(i) == '+') {\n\t\t\t\tdouble temp = 0;\n\t\t\t\ttemp = xdir;\n\t\t\t\txdir = ydir;\n\t\t\t\tydir = -temp;\n\n\t\t\t}\n\t\t\tif (l.charAt(i) == '-') {\n\t\t\t\tdouble temp = 0;\n\t\t\t\ttemp = xdir;\n\t\t\t\txdir = -ydir;\n\t\t\t\tydir = temp;\n\n\t\t\t}\n\t\t}\n\t}", "public void drawLine(float x, float y, float x2, float y2, float width) {\n throw new NotImplementedException(); // TODO Implement\n }", "private void lineJumpHelper(int curX) {\n int accX = 0;\n while (true) {\n if (textBuffer.isEnd()) {\n textBuffer.decreCurrent(false);\n return;\n }\n if (textBuffer.currentPos_current().getText().equals(\"\\n\")) {\n textBuffer.decreCurrent(false);\n return;\n }\n Text text = textBuffer.currentPos_current();\n accX += round(text.getLayoutBounds().getWidth());\n if (accX > curX) {\n textBuffer.decreCurrent(false);\n return;\n }\n textBuffer.increCurrent(false);\n }\n }", "public void drawWrapped(String str, double x, double y, double size, int color, double limit) {\n double scale = size / mcFont().FONT_HEIGHT;\n FontRenderer font = mcFont();\n List<String> list = split(str, limit * font.FONT_HEIGHT / size);\n //System.out.println(\"---{\" + list.size());\n for(String s : list) {\n //System.out.println(str);\n draw(s, x, y, size, color);\n y += size;\n } \n //System.out.println(\"---}\");\n }", "public void strokeString(float x, float y, String text);", "public abstract double drawString(AEColor clr, double font_size, String str, double mid_x, double mid_y);", "private void drawLineInfoPanel(Canvas canvas,float centerY,float rightX) {\n if(!mDisplayLnPanel) {\n return;\n }\n float expand = mDpUnit * 3;\n String text = mLnTip + ((2 + getFirstVisibleLine() + getLastVisibleLine() / 2));\n float textWidth = mPaint.measureText(text);\n mRect.top = centerY - getLineHeight() / 2f - expand;\n mRect.bottom = centerY + getLineHeight() / 2f + expand;\n mRect.right = rightX;\n mRect.left = rightX - expand * 2 - textWidth;\n drawColor(canvas,mColors.getColor(ColorScheme.LINE_NUMBER_PANEL),mRect);\n float baseline = centerY - getLineHeight()/2 + getLineBaseLine(0);\n float centerX = (mRect.left + mRect.right) / 2;\n mPaint.setColor(mColors.getColor(ColorScheme.LINE_NUMBER_PANEL_TEXT));\n Paint.Align align = mPaint.getTextAlign();\n mPaint.setTextAlign(Paint.Align.CENTER);\n canvas.drawText(text,centerX,baseline,mPaint);\n mPaint.setTextAlign(align);\n }", "public void drawEntry(int p_148279_1_, int xPosition, int yPosition, int p_148279_4_, int p_148279_5_,\n\t\t\t\tint p_148279_7_, int p_148279_8_, boolean p_148279_9_) {\n\t\t\txPosition = xPosition - 16;\n\n\t\t\tGuiSnitchList.this.mc.fontRendererObj.drawString(this.xHeader, xPosition + GuiSnitchList.this.coordWidth\n\t\t\t\t\t- mc.fontRendererObj.getStringWidth(this.xHeader) / 2, yPosition + p_148279_5_\n\t\t\t\t\t- GuiSnitchList.this.mc.fontRendererObj.FONT_HEIGHT - 1, 16777215);\n\t\t\tGuiSnitchList.this.mc.fontRendererObj.drawString(this.yHeader, xPosition + GuiSnitchList.this.coordWidth\n\t\t\t\t\t- mc.fontRendererObj.getStringWidth(this.yHeader) / 2 + GuiSnitchList.this.coordWidth, yPosition\n\t\t\t\t\t+ p_148279_5_ - GuiSnitchList.this.mc.fontRendererObj.FONT_HEIGHT - 1, 16777215);\n\t\t\tGuiSnitchList.this.mc.fontRendererObj.drawString(this.zHeader, xPosition + GuiSnitchList.this.coordWidth\n\t\t\t\t\t- mc.fontRendererObj.getStringWidth(this.zHeader) / 2 + GuiSnitchList.this.coordWidth * 2,\n\t\t\t\t\tyPosition + p_148279_5_ - GuiSnitchList.this.mc.fontRendererObj.FONT_HEIGHT - 1, 16777215);\n\t\t\tGuiSnitchList.this.mc.fontRendererObj.drawString(this.groupHeader, xPosition\n\t\t\t\t\t+ GuiSnitchList.this.ctGroupWidth - mc.fontRendererObj.getStringWidth(this.groupHeader) / 2\n\t\t\t\t\t+ GuiSnitchList.this.coordWidth * 3, yPosition + p_148279_5_\n\t\t\t\t\t- GuiSnitchList.this.mc.fontRendererObj.FONT_HEIGHT - 1, 16777215);\n\t\t\tGuiSnitchList.this.mc.fontRendererObj.drawString(this.nameHeader, xPosition + GuiSnitchList.this.nameWidth\n\t\t\t\t\t- mc.fontRendererObj.getStringWidth(this.nameHeader) / 2 + GuiSnitchList.this.coordWidth * 3\n\t\t\t\t\t+ GuiSnitchList.this.ctGroupWidth, yPosition + p_148279_5_\n\t\t\t\t\t- GuiSnitchList.this.mc.fontRendererObj.FONT_HEIGHT - 1, 16777215);\n\t\t}", "private void drawLine(Vector3 point1, Vector3 point2, Node n) {\n\n Node nodeForLine= new Node();\n nodeForLine.setName(LINE_STRING);\n //First, find the vector extending between the two points and define a look rotation\n //in terms of this Vector.\n final Vector3 difference = Vector3.subtract(point1, point2);\n final Vector3 directionFromTopToBottom = difference.normalized();\n final Quaternion rotationFromAToB =\n Quaternion.lookRotation(directionFromTopToBottom, Vector3.up());\n MaterialFactory.makeTransparentWithColor(getApplicationContext(), new Color(this.colorLine.x, this.colorLine.y, this.colorLine.z,this.alphaColor))\n .thenAccept(\n material -> {\n /* Then, create a rectangular prism, using ShapeFactory.makeCube() and use the difference vector\n to extend to the necessary length. */\n ModelRenderable model = ShapeFactory.makeCube(\n new Vector3(this.sizeLine, this.sizeLine, difference.length()),\n Vector3.zero(), material);\n /* Last, set the world rotation of the node to the rotation calculated earlier and set the world position to\n the midpoint between the given points . */\n\n nodeForLine.setParent(n);\n\n\n nodeForLine.setRenderable(model);\n nodeForLine.setWorldPosition(Vector3.add(point1, point2).scaled(.5f));\n nodeForLine.setWorldRotation(rotationFromAToB);\n }\n );\n\n }", "public void draw(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "private void drawStringX(String s, int x, int y, Graphics g)\r\n {\r\n int strW = fm.stringWidth( s );\r\n int strH = 10; //right?\r\n g.drawString( s, x - strW/2, y + strH);\r\n }", "public static void writeLine(Model model, int x1, int y1, int x2, int y2, char colour) {\n int xLength = model.getWidth();\n int yLength = model.getHeight();\n\n if (x1 > xLength || x2 > xLength || y1 > yLength || y2 > yLength) {\n System.out.println(String.format(\"Couldn't create line inside current simpleCanvas width: %d, height: %d\", xLength, yLength));\n return;\n }\n\n // Simple optimization if the line are orthogonal x or y.\n if (x1 == x2 || y1 == y2) {\n for (int i = Math.min(x1, x2); i <= Math.max(x1, x2); i++)\n for (int j = Math.min(y1, y2); j <= Math.max(y1, y2); j++)\n model.set(i, j, colour);\n } else {\n // try to draw line from left to write\n // To do this we should find min x coordinate\n int startx, starty, endx, endy;\n if (x1 < x2) {\n startx = x1;\n starty = y1;\n endx = x2;\n endy = y2;\n } else {\n startx = x2;\n starty = y2;\n endx = x1;\n endy = y1;\n }\n\n model.set(startx, starty, colour);\n model.set(endx, endy, colour);\n\n if (y1 < y2) {\n // Find line equation of the line\n // (y - y1)/(y2-y1) = (x - x1)/(x2 - x1)\n // y - y1 = (x - x1)(y2-y1)/(x2 - x1)\n // y = y1 + (x - x1)(y2-y1)/(x2 - x1)\n int newX = startx;\n int newY = starty;\n while (newX < endx && newY <= endy) {\n //TODO optimize coefficient\n double newYcompare = findY(newX + 1, startx, starty, endx, endy);\n\n if (newYcompare == newY + 1) {\n newY++;\n newX++;\n model.set(newX, newY, colour);\n model.set(newX, newY - 1, colour);\n } else if (newYcompare < newY + 1) {\n newX++;\n model.set(newX, newY, colour);\n } else {\n newY++;\n model.set(newX, newY, colour);\n }\n }\n } else {\n // Find line equation of the line\n // (x - x1)/(x2 - x1) = (y - y1)/(y2-y1)\n // (x - x1) = (y - y1)(x2 - x1)/(y2-y1)\n // x = x1 + (y - y1)(x2 - x1)/(y2-y1)\n int newX = startx;\n int newY = starty;\n while (newX <= endx && newY > endy) {\n //TODO optimize coefficient\n double newXcompare = findX(newY - 1, startx, starty, endx, endy);\n\n if (newXcompare == newX + 1) {\n newY--;\n newX++;\n model.set(newX, newY, colour);\n // array[newX - 2][newY - 1] = colour;\n model.set(newX, newY + 1, colour);\n } else if (newXcompare < newX + 1) {\n newY--;\n model.set(newX, newY, colour);\n } else {\n newX++;\n model.set(newX, newY, colour);\n }\n }\n }\n }\n }", "Line createLine();", "public void drawLine() {\n for(int i=0; i < nCols; i++) {\n System.out.print(\"----\");\n }\n System.out.println(\"\");\n }", "public void createLine(int _loc, StringBuilder _sb) {\r\n if (_sb.charAt(_loc) == ' ') {\r\n _sb.insert(_loc, \"<br>\");\r\n }\r\n else {\r\n _loc--;\r\n createLine(_loc, _sb);\r\n }\r\n }", "public static void text(TextRenderer tr, Viewport vp, String text, int x, int y)\n\t{\n\t\tString[] lines = text.split(\"\\n\");\n\n\t\ttr.beginRendering(vp.getW(), vp.getH());\n\t\t// for (int i = 0; i < lines.length; i++)\n\t\t// tr.draw(lines[i], x - 1, y - tr.getFont().getSize() * i - 1);\n\t\tfor (int i = 0; i < lines.length; i++)\n\t\t\ttr.draw(lines[i], x, y - tr.getFont().getSize() * i);\n\t\ttr.endRendering();\n\t}", "public static void drawStringWithLineBreaks(String text, int x, int y) {\r\n\t\t//Store default application color\r\n\t\tColor color = Application.getGame().getGraphics().getColor();\r\n\t\t\r\n\t\t//Splits the string by newlines and draws each with a vertical offset from the previous\r\n\t\tfor (String line : text.split(\"\\n\"))\r\n\t\t\tApplication.getGame().getGraphics().drawString(line, x,\r\n\t\t\t\t\ty += Application.getGame().getGraphics().getFontMetrics().getHeight());\r\n\t\t\r\n\t\t//Restore default application color.\r\n\t\tApplication.getGame().getGraphics().setColor(color);\r\n\t}", "public void drawLine(int x1, int y1, int x2, int y2);", "private void draw(){\n\t\t\t Point level = new Point(txtBoard_top_left.x, txtBoard_top_left.y);\n\t\t\t level_info = new TextInfo(g, level, txt_width, size*4, LEVEL, this.level);\n\t\t\t level_info.drawTextInfo();\n\t\t\t \n\t\t\t // draw 2nd text info\n\t\t\t Point lines = new Point(level.x, level.y+size*2);\n\t\t\t lines_info = new TextInfo(g, lines, txt_width, size*4, LINES, this.lines);\n\t\t\t lines_info.drawTextInfo();\n\t\t\t \n\t\t\t // draw 3rd text info\n\t\t\t Point score = new Point(lines.x, lines.y+size*2);\n\t\t\t score_info = new TextInfo(g, score, txt_width, size*4, SCORE, this.score);\n\t\t\t score_info.drawTextInfo();\t\t\n\t\t}", "private int renderString(String text, float x, float y, int color, boolean dropShadow) {\n if (super.getBidiFlag()) {\n text = bidirectionalReorder(text);\n }\n \n updateColor();\n super.posX = x;\n super.posY = y;\n renderStringAtPos(text, dropShadow);\n return (int) super.posX;\n }", "private void drawLine(int x1, int y1, int x2, int y2)\n {\n System.out.println(\"Draw a line from x of \" + x1 + \" and y of \" + y1);\n System.out.println(\"to x of \" + x2 + \" and y of \" + y2);\n System.out.println(\"The line color is \" + lineColor);\n System.out.println(\"The width of the line is \" + lineWidth);\n System.out.println(\"Then length of the line is \" + df.format(getLength()) + \"\\n\" );\n }", "public void drawLine(int x, int y, int x2, int y2, int color);", "@Override\n public void drawBytes(byte[] buf, int s, int len, int x, int y) {\n graphics.drawBytes(buf, s, len, x, y - descent);\n if (bold) {\n graphics.drawBytes(buf, s, len, x + 1, y - descent);\n }\n\n if (underline) {\n graphics.drawLine(x, y - 1, x + len * char_width, y - 1);\n }\n\n }", "private void drawTextMarker(Graphics g, String[] messages, int yLine, Player owner) {\n\t\tint xCenter = getGameWidthPixels() / 2;\n\t\tVector2DLong position0Inverted = new Vector2DLong(xCenter, yLine),\n\t\t\t\tposition1NonInverted = new Vector2DLong(xCenter, getGameHeightPixels() - yLine);\n\t\tdrawScoreMarker(g, new ScoreMarker(messages[0], position0Inverted, owner, true));\n\t\tdrawScoreMarker(g, new ScoreMarker(messages[1], position1NonInverted, owner, false));\n\t}", "@Override\n public int drawString(String text, int x, int y, int color) {\n return this.drawString(text, x, y, color, false);\n }", "void addLine(int index, Coordinate start, Coordinate end);", "private void drawTextBySpansModified(Canvas canvas, float offsetX , int startLine, int endLine ,int index, List<Span> spans){\n int maxIndex = spans.size() - 1;\n Indexer indexer = getCursor().getIndexer();\n int line = startLine;\n int st = indexer.getCharIndex(line,0);\n int line_st = st;\n while(index <= maxIndex) {\n prepareLine(line);\n float off = offsetX;\n int line_ed = getLineEnd(line,indexer) - 1;\n while(st < line_ed){\n while(index <= maxIndex && getSpanEnd(index,spans) < st) index++;\n int ed = Math.min(getSpanEnd(index,spans),line_ed);\n float advance = off > getWidth() ? 0 : measureText(mChars,st - line_st,ed - st);\n if(off + advance > 0 && off < getWidth()) {\n mPaint.setColor(mColors.getColor(spans.get(index).colorId));\n drawText(canvas,mChars,st - line_st,ed - st,off,getLineBaseLine(line) - getOffsetY());\n }\n off += advance;\n st = ed;\n if(ed < line_ed) {\n index++;\n }else{\n break;\n }\n }\n line++;\n if(line > endLine) {\n break;\n }\n st = line_st = indexer.getCharIndex(line,0);\n }\n }", "@Override\n\tpublic void render() {\n\t\tif (this.hidden) {\n\t\t\treturn;\n\t\t}\n\n\t\tsuper.render();\n\n\t\tthis.font.draw(Graphics.batch, this.label, this.getX(),\n\t\t\tthis.getY() + (this.getHeight() - this.font.getLineHeight()) / 2);\n\t}", "public void fillString(float x, float y, String text);", "public static void addLine(String string, int line) {\r\n\t\tif(string.length() > lineLength)\r\n\t\t\tstring = string.substring(0, lineLength);\r\n\t\telse if(string.length() < lineLength)\r\n\t\t\tstring = string + repeatString(\" \", lineLength - string.length());\r\n\t\tLCD.drawString(string, 0, line);\r\n\t}", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, float alignWidth, HAlignment alignment, GameContainer c,\n\t\t\tStyledText style);", "public int getLinePosition() {\n return linePosition;\n }", "private void draw (String printable, StringBuffer canvas) {\r\n \t\t\tcanvas.append(\"| \");\r\n \t\t\t\r\n \t\t\tcanvas.append(printable);\r\n \t\t\tfor (int i=printable.length(); i<width-4; i++) //Fill in the spaces.\r\n \t\t\t{\r\n \t\t\t\tcanvas.append(' ');\r\n \t\t\t}\r\n \t\t\tcanvas.append(\" |\\n\");\r\n \t\t}", "@Override\n\tpublic void render(Canvas c) {\n\t\tc.drawText(text,(float)x+width,(float)y+height , paint);\n\t\t\n\t}", "private static Text createOffset(int line) {\n String offset = Integer.toHexString(line * 16);\n StringBuilder stringBuilder = new StringBuilder();\n for (int j = 0; j < (8 - offset.length()); j++) {\n stringBuilder.append(0);\n }\n stringBuilder.append(offset).append(' ');\n Text result = new Text(stringBuilder.toString());\n //noinspection HardCodedStringLiteral\n result.getStyleClass().add(\"normal\");\n return result;\n }", "@Override\n\tpublic void render(Canvas canvas) {\n\t\tPaint paint = new Paint();\n\t\tpaint.setColor(Color.parseColor(\"#D95B43\"));\n\t\tpaint.setTextSize(50 * Globals.scaleY);\n\t\tint width = (int)paint.measureText(this.toString(), 0, this.toString().length());\n\t\t\n\t\tthis.x = (int) ((gamePanel.width - width) / 2.0f);\n\t\t\n\t\tcanvas.drawText(this.toString(), x, y, paint);\n\t}", "public void printNextChar()\n\t{\n\t\tif(line < linesSize)\n\t\t{\n\t\t\tString nextChar = Character.toString(lines[line].charAt(charIndex));\n\t\t\t\n\t\t\t// Prints our desired character\n\t\t\ttry\n\t\t\t{\n\t\t\t\tGraphics g = messageCanvas.getGraphics();\n\t\t\t\tg.setColor(Color.white);\n\t\t\t\tg.drawString(nextChar, rowWidth, line * font.getLineHeight());\n\t\t\t\tg.flush();\n\t\t\t}\n\t\t\tcatch(SlickException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcharIndex ++;\n\t\t\tif(charIndex > lines[line].length()-1)\n\t\t\t{\n\t\t\t\tcharIndex = rowWidth = 0;\n\t\t\t\tline ++;\n\t\t\t}\n\t\t\telse\n\t\t\t\trowWidth += font.getWidth(nextChar);\n\t\t}\n\t}", "public void drawString(String str, int x, int y)\r\n\t{\r\n\t\tdrawText(_g2.getFont(), str, x, y);\r\n\t}", "public int getPositionWithinLine() {\n\t\treturn positionWithinLine;\n\t}", "public void markLine(int x1, int y1, int x2, int y2) {\n for (int row = y1 - 1; row <= y2 - 1 && row < height; row++) {\n for (int col = x1 - 1; col <= x2 - 1 && col < width; col++) {\n pixels[row][col] = DRAWING_CHAR;\n }\n }\n }", "public void drawString(AttributedCharacterIterator iterator, float x, float y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att2\");\r\n\t}", "public TextPos() {\n lineNumber = -1;\n linePos = -1; \n }", "public void setDrawString(int drawStringX, int drawStringY){\n this.drawStringX = drawStringX;\n this.drawStringY = drawStringY;\n }", "private void drawLine(int x, int y, int x1, int y1, int count, Color color) {\n\n // draw a line if count is greater than 0\n if (count > 0) {\n\n NscLine newLine = new NscLine(x+count, y, x1+count, y1);\n newLine.setForeground(color);\n add(newLine);\n \n // ensure we repaint the window\n repaint();\n\n // recursively call this method, decreasing count each time\n drawLine(x, y, x1, y1, count-1, color);\n\n }\n\n }", "protected void paintErrorLine(Graphics gfx, int line, int x) {\n \n if (errorCheckerService == null) {\n return;\n }\n \n if (errorCheckerService.problemsList == null) {\n return;\n }\n \n boolean notFound = true;\n boolean isWarning = false;\n \n // Check if current line contains an error. If it does, find if it's an\n // error or warning\n for (ErrorMarker emarker : errorCheckerService.getEditor().errorBar.errorPoints) {\n if (emarker.problem.lineNumber == line + 1) {\n notFound = false;\n if (emarker.type == ErrorMarker.Warning) {\n isWarning = true;\n }\n break;\n }\n }\n \n if (notFound) {\n return;\n }\n \n // Determine co-ordinates\n // System.out.println(\"Hoff \" + ta.getHorizontalOffset() + \", \" +\n // horizontalAdjustment);\n int y = ta.lineToY(line);\n y += fm.getLeading() + fm.getMaxDescent();\n int height = fm.getHeight();\n int start = ta.getLineStartOffset(line);\n \n try {\n String linetext = null;\n \n try {\n linetext = ta.getDocument().getText(start,\n ta.getLineStopOffset(line) - start\n - 1);\n } catch (BadLocationException bl) {\n // Error in the import statements or end of code.\n // System.out.print(\"BL caught. \" + ta.getLineCount() + \" ,\"\n // + line + \" ,\");\n // System.out.println((ta.getLineStopOffset(line) - start - 1));\n return;\n }\n \n // Take care of offsets\n int aw = fm.stringWidth(trimRight(linetext)) + ta.getHorizontalOffset(); // apparent width. Whitespaces\n // to the left of line + text\n // width\n int rw = fm.stringWidth(linetext.trim()); // real width\n int x1 = 0 + (aw - rw), y1 = y + fm.getHeight() - 2, x2 = x1 + rw;\n // Adding offsets for the gutter\n x1 += 20;\n x2 += 20;\n \n // gfx.fillRect(x1, y, rw, height);\n \n // Let the painting begin!\n gfx.setColor(errorMarkerColor);\n if (isWarning) {\n gfx.setColor(warningMarkerColor);\n }\n gfx.fillRect(1, y + 2, 3, height - 2);\n \n gfx.setColor(errorColor);\n if (isWarning) {\n gfx.setColor(warningColor);\n }\n int xx = x1;\n \n // Draw the jagged lines\n while (xx < x2) {\n gfx.drawLine(xx, y1, xx + 2, y1 + 1);\n xx += 2;\n gfx.drawLine(xx, y1 + 1, xx + 2, y1);\n xx += 2;\n }\n } catch (Exception e) {\n System.out\n .println(\"Looks like I messed up! XQTextAreaPainter.paintLine() : \"\n + e);\n //e.printStackTrace();\n }\n \n // Won't highlight the line. Select the text instead.\n // gfx.setColor(Color.RED);\n // gfx.fillRect(2, y, 3, height);\n }", "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tPoint p = this.getP();\r\n\t\tint start_point = p.getX();\r\n\t\tint end_point = p.getY();\r\n\t\t\r\n\t\tint width = this.getWidth();\r\n\t\tint height = this.getHeight();\r\n\t\t\r\n\t\tSystem.out.println(\"�l�p�`��`�� �_(\" + start_point +\",\"+ end_point + \")����Ƃ��āA��\"+ width +\"����\"+ height +\"�̎l�p�`\");\r\n\t}", "public void drawString(AttributedCharacterIterator iterator, int x, int y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att\");\r\n\t}", "private void drawNumber(Font f,String s,int x,int y){\r\n // finds width of the string when drawn\r\n FontMetrics metrics=g.getFontMetrics(f);\r\n int n=(int)metrics.stringWidth(s); \r\n g.drawString(s,x-n/2,y); \r\n \r\n }", "public TextPos(int lineNumber, int linePos) {\n this.lineNumber = lineNumber;\n this.linePos = linePos;\n }", "@Override\n public void onLineInserted(int y, String line) {\n if (cursor.getY() == file.getLineCount() - 1) {\n if (file.getLineCount() > 1) {\n throw new IllegalStateException();\n }\n return;\n }\n if (y <= cursor.getY()) {\n cursor.moveBy(1, 0);\n }\n fireSizeChanged();\n }", "public ChatWin(String recordTxt, final float pX, final float pY, final int lineNum, VertexBufferObjectManager vbo) {\n\n\tthis.vbo = vbo;\n\tthis.startXY = new PointF(pX + 5, pY);\n\tthis.recVal = Float.valueOf(recordTxt);\n\tthis.lineNum = lineNum;\n\tthis.curLastLine = lineNum - 1;\n\n\n\tif (this.recVal < 0) {\n\t this.recVal = 1000;\n\t recordTxt = \"----\";\n\t}\n\n\ttxtTitle = new Text(pX, pY, resourcesManager.font_pix_kir, context.getString(R.string.game_hud_per_progress), tOpt, vbo);\n\ttxtTitle.setPosition(this.startXY.x, pY - txtTitle.getHeight() * 0.4f);\n\ttxtTitle.setAnchorCenter(0, 0);\n\ttxtTitle.setColor(Color.WHITE);\n\ttxtTitle.setScale(0.45f);\n\n\ttxtRecord = new Text(pX, pY, resourcesManager.font_pix_kir, \"-0.1234567890\", tOpt, vbo);\n\ttxtRecord.setPosition(this.startXY.x, pY - (txtRecord.getHeight() * 0.4f + txtTitle.getHeight() * 0.5f));\n\ttxtRecord.setAnchorCenter(0, 0);\n\ttxtRecord.setText(recordTxt);\n\ttxtRecord.setColor(Color.CYAN);\n\ttxtRecord.setScale(0.5f);\n\t// txtTitle.setAnchorCenter(0, 0);\n\n\ttxtDivider = new Text(this.startXY.x + 3, pY - (2 * txtRecord.getHeight() * 0.4f + txtTitle.getHeight() * 0.4f), resourcesManager.font_pix_kir, \"<><><><><>\", tOpt, vbo);\n\ttxtDivider.setAnchorCenter(0, 0);\n\ttxtDivider.setColor(Color.YELLOW);\n\ttxtDivider.setScale(0.4f);\n\t// txtDivider.setAnchorCenter(0, 0);\n\n\tchatBg = new Sprite(pX, pY, resourcesManager.gameGraf.get(\"hud_element_chat_fon\"), vbo);\n\tchatBg.setScale(1f, 1f);\n\tchatBg.setPosition(pX + chatBg.getWidth() / 2, pY - chatBg.getHeight() / 2);\n\tthis.attachChild(chatBg);\n\n\tfor (int i = 2; i < this.lineNum + 2; i++) {\n\t txtLines.add(new Text(this.startXY.x, pY - i * txtRecord.getHeight() * 0.4f - 2 * txtTitle.getHeight() * 0.4f, resourcesManager.font_pix_kir, \"-0.1234567890\", tOpt,\n\t\t vbo));\n\t txtLines.get(i - 2).setText(\"----\");\n\t txtLines.get(i - 2).setAnchorCenter(0, 0);\n\t txtLines.get(i - 2).setColor(0.8f, 0.99f, 0.8f);\n\t txtLines.get(i - 2).setScale(0.4f);\n\t this.attachChild(txtLines.get(i - 2));\n\t}\n\n\tthis.attachChild(txtTitle);\n\tthis.attachChild(txtRecord);\n\tthis.attachChild(txtDivider);\n\n }", "private void drawString(final Graphics2D gfx, final List<String> lines) {\n for (int offset = 0; offset < lines.size(); ++offset) {\n gfx.setPaint(Color.BLACK);\n gfx.drawString(\n lines.get(offset),\n 0, gfx.getFontMetrics().getHeight() * (offset + 1)\n );\n }\n }", "public void insertAtCurrentPos(String part)\n {\n StringBuffer newLine = new StringBuffer( this.getLine() );\n\n newLine.insert( this.getPos(), part + ' ' );\n this.line = newLine.toString();\n }", "public void drawString(String s, float x, float y)\r\n\t{\r\n\t\tdrawText(_g2.getFont(), s, (int) x, (int) y);\r\n\t}", "public static void displayLine( char lineChar, int lineType ) \r\n {\n }", "public void renderLine (Graphics g)\r\n {\r\n if (glyph.getContourBox()\r\n .intersects(g.getClipBounds())) {\r\n getLine(); // To make sure the line has been computed\r\n\r\n Point start = glyph.getLag()\r\n .switchRef(\r\n new Point(\r\n getStart(),\r\n (int) Math.rint(line.yAt((double) getStart()))),\r\n null);\r\n Point stop = glyph.getLag()\r\n .switchRef(\r\n new Point(\r\n getStop() + 1,\r\n (int) Math.rint(line.yAt((double) getStop() + 1))),\r\n null);\r\n g.drawLine(start.x, start.y, stop.x, stop.y);\r\n }\r\n }", "public static void renderLine(double startx , double starty , double endx , double endy) {\n\t\t//Find out what rendering mode to use\n\t\tif (! Settings.Android && Settings.Video.OpenGL)\n\t\t\t//Render a line using OpenGL\n\t\t\tBasicRendererOpenGL.renderLine(startx , starty , endx , endy);\n\t\telse if (! Settings.Android && ! Settings.Video.OpenGL)\n\t\t\t//Render a line using Java\n\t\t\tBasicRendererJava.renderLine(startx , starty , endx , endy);\n\t\telse if (Settings.Android && ! Settings.Video.OpenGL)\n\t\t\t//Render a line using Android\n\t\t\tBasicRendererAndroid.renderLine(startx , starty , endx , endy);\n\t}", "public void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawString(\"(\" + p.x + \", \" + p.y + \")\", p.x, p.y);\n }", "public void updateCoords() {\n line.setLine(parent.getFullBounds().getCenter2D(), child.getFullBounds().getCenter2D());\n Rectangle2D r = line.getBounds2D();\n // adding 1 to the width and height prevents the bounds from\n // being marked as empty and is much faster than createStrokedShape()\n setBounds(r.getX(), r.getY(), r.getWidth() + 1, r.getHeight() + 1);\n invalidatePaint();\n }", "private static void addLine(String[] input) throws NumberFormatException, IncorrectParametersException{\n if (input.length == 5){\n try{\n int x1 = Integer.parseInt(input[1]); \n int y1 = Integer.parseInt(input[2]);\n int x2 = Integer.parseInt(input[3]); \n int y2 = Integer.parseInt(input[4]);\n try{\n canvas.createLine(x1, y1, x2, y2);\n System.out.println(canvas.render());\n } catch (NullPointerException ex) {\n System.out.println(\"Initialise a new canvas first!\");\n }\n } catch (NumberFormatException ex) {\n System.out.println(\"HELP: to create a new line enter `L x1 y1 x2 y2`\");\n }\n } else {\n System.out.println(\"HELP: to create a new line enter `L x1 y1 x2 y2`\");\n throw new IncorrectParametersException(\"\");\n }\n }", "public String getLine() {\r\n\t\treturn currentString;\r\n\t}", "public void paintComponent(Graphics g){\n super.paintComponent(g);\n\n //casting the Graphics g to Graphics2D which is the updated version\n Graphics2D g2d = (Graphics2D)g;\n g2d.setFont(new Font(\"Times new Roman,\", Font.PLAIN,20));\n g2d.setColor(Color.white);\n //class rendering hints attribute to specify whether you want objects to be rendered as quickly as possible\n g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\n int y = textY;\n\n for(String line : text.split(\"\\n\")){\n int stringLength = (int)g2d.getFontMetrics().getStringBounds(line,g2d).getWidth();\n int x = getWidth()/2 - stringLength/2;\n g2d.drawString(line,x, y +=28);\n }\n }", "public void draw()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tfor(int i = lines.size()-1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tlines.get(i).draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "private void drawTextBySpans(Canvas canvas, float offsetX, TextColorProvider.TextColors colors){\n mPaint.setTypeface(mTypefaceText);\n ColorScheme cs = mColors;\n List<Span> spans = colors.getSpans();\n int first = getFirstVisibleLine();\n int last = getLastVisibleLine();\n int index = 0,copy;\n if(mMinModifiedLine != -1 && mMinModifiedLine <= first) {\n index = binarySearchByIndex(spans,mText.getCharIndex(first,0));\n drawTextBySpansModified(canvas,offsetX,first,last,index,spans);\n return;\n }\n for(int i = first;i <= last;i++){\n index = seekTo(spans, i, index);\n if(mMinModifiedLine != -1 && mMinModifiedLine <= i) {\n drawTextBySpansModified(canvas,offsetX,i,last,binarySearchByIndex(spans,mText.getCharIndex(i,0)),spans);\n break;\n }\n copy = index;\n float off = offsetX;\n prepareLine(i);\n float y = getLineBaseLine(i) - getOffsetY();\n try{\n while(true){\n Span span = spans.get(copy),next = null;\n if(copy + 1 < spans.size()){\n next = spans.get(copy + 1);\n }\n int st = span.getLine() == i ? span.getColumn() : 0;\n int ed = next == null ? mText.getColumnCount(i) : (next.getLine() == i ? next.getColumn() : mText.getColumnCount(i));\n float width = measureText(mChars, st, ed - st);\n if(off + width > 0 && off < getWidth()) {\n mPaint.setColor(cs.getColor(span.colorId));\n drawText(canvas, mChars, st, ed - st, off, y);\n if(span.colorId == ColorScheme.HEX_COLOR) {\n int color = parseColor(st,ed);\n mRect.bottom = getLineBottom(i) - getOffsetY() - mDpUnit * 1;\n mRect.top = mRect.bottom - mDpUnit * 4;\n mRect.left = off;\n mRect.right = off + width;\n drawColor(canvas,color,mRect);\n }\n }\n off += width;\n if(off - offsetX > mMaxPaintX){\n mMaxPaintX = off - offsetX;\n }\n if(next == null || next.getLine() != i){\n break;\n }\n copy++;\n }\n }catch(IndexOutOfBoundsException e){\n drawTextDirect(canvas, offsetX, mColors.getColor(ColorScheme.TEXT_NORMAL), i);\n break;\n }\n }\n }", "public void display()\n\t{\n\t\tfor(Character characher : characterAdded)\n\t\t{\t\n\t\t\tif(!characher.getIsDragging())\n\t\t\t{ \n\t\t\t\t//when dragging, the mouse has the exclusive right of control\n\t\t\t\tcharacher.x = (float)(circleX + Math.cos(Math.PI * 2 * characher.net_index/net_num) * radius);\n\t\t\t\tcharacher.y = (float)(circleY + Math.sin(Math.PI * 2 * characher.net_index/net_num) * radius);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tint lineWeight = 0;\n\t\t//draw the line between the characters on the circle\n\t\tif(characterAdded.size() > 0)\n\t\t{\n\t\t\tfor(Character characher : characterAdded)\n\t\t\t{\n\t\t\t\tfor(Character ch : characher.getTargets())\n\t\t\t\t{\n\t\t\t\t\tif(ch.net_index != -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int i = 0; i < links.size(); i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJSONObject tem = links.getJSONObject(i);\n\t\t\t\t\t\t\tif((tem.getInt(\"source\") == characher.index) && \n\t\t\t\t\t\t\t\t\t\t\t\t(tem.getInt(\"target\") == ch.index))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlineWeight = tem.getInt(\"value\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tparent.strokeWeight(lineWeight/4 + 1);\t\t\n\t\t\t\t\t\tparent.noFill();\n\t\t\t\t\t\tparent.stroke(0);\n\t\t\t\t\t\tparent.line(characher.x, characher.y, ch.x, ch.y);\n\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}", "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 }", "private void drawXYZText() {\n\t\t//Draw text X - red\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glRasterPos3f(1,0,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"X\");\n\t\tgl.glEnd();\n\t\t//Draw text -X - red\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glRasterPos3f(-1,0,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-X\");\n\t\tgl.glEnd();\n\t\t\n\t\t//Draw text Y - Green\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glRasterPos3f(0,1,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"Y\");\n\t\tgl.glEnd();\n\t\t//Draw text -Y - Green\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glRasterPos3f(0,-1,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-Y\");\n\t\tgl.glEnd();\n\t\t\n\t\t//Draw text Z - Blue\n\t\tgl.glColor3f(0.0f, 0.0f, 1.0f);\n\t\tgl.glRasterPos3f(0,0,1);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"Z\");\n\t\tgl.glEnd();\n\t\t//Draw text -Z - Blue\n\t\tgl.glColor3f(0.0f, 0.0f, 1.0f);\n\t\tgl.glRasterPos3f(0,0,-1);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-Z\");\n\t\tgl.glEnd();\n\t}", "public void drawCenteredText(String text, int x, int y);", "public void lineLayout(ME_ENUM me_enum, MouseEvent me) {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n switch (me_enum) {\n case PRESSED: initializeDragVars(me); ui_inter = UI_INTERACTION.LINE_LAYOUT; repaint(); break;\n case DRAGGED: updateDragVars(me, true); repaint(); break;\n case RELEASED: updateDragVars(me, true); ui_inter = UI_INTERACTION.NONE;\n Set<String> set = myrc.filterEntities(getRTParent().getSelectedEntities());\n\t\t if (set != null && set.size() > 0) {\n\t\t // Calculate the line equation\n double dx = m_wx1 - m_wx0, dy = m_wy1 - m_wy0;\n\t\t double t = 0.0, inc = 1.0 / (set.size() - 1);\n\t\t // Sort the elements\n\t\t List<StrCountSorter> sorter = new ArrayList<StrCountSorter>();\n\t\t Iterator<String> it = set.iterator();\n\t\t while (it.hasNext()) {\n\t\t String entity = it.next();\n int total = (int) myrc.entity_counter_context.total(entity); \n\t\t\t sorter.add(new StrCountSorter(entity,total));\n\t\t }\n\t\t Collections.sort(sorter);\n\t\t // Do the layout\n\t\t for (int i=0;i<sorter.size();i++) {\n\t\t String entity = sorter.get(i).toString();\n\t\t entity_to_wxy.put(entity, new Point2D.Double(m_wx0 + t*dx, m_wy0 + t*dy));\n\t\t\t transform(entity);\n\t\t\t t += inc;\n\t\t }\n\t\t getRTComponent().render();\n\t\t }\n\t\t repaint(); break;\n\tcase CLICKED:\n\t\tbreak;\n\tcase MOVED:\n\t\tbreak;\n\tcase WHEEL:\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n }\n }", "public void Render(){\n //player rect\n glPushMatrix();\n glTranslatef(px, py, 0.0f);\n glBegin(GL_TRIANGLES);\n glColor3f(1.0f, 1.0f, 1.0f);\n glVertex2f(-sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, sy);\n glVertex2f(sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, -sy);\n glEnd();\n glPopMatrix();\n \n if(debug){\n glPushMatrix();\n glBegin(GL_LINES);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py+sy/2);\n glVertex2f(px+sx, py+sy/2);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py-sy/2);\n glVertex2f(px+sx, py-sy/2);\n glEnd();\n glPopMatrix();\n }\n \n }" ]
[ "0.69602615", "0.67778635", "0.66992235", "0.65935177", "0.65736645", "0.6543741", "0.647155", "0.6397853", "0.636294", "0.6248209", "0.6211171", "0.61977565", "0.6129198", "0.60809183", "0.60683644", "0.60403174", "0.60371184", "0.60331744", "0.60151225", "0.60120726", "0.59902185", "0.59798926", "0.59363365", "0.5921334", "0.59200287", "0.59158576", "0.59131676", "0.5907777", "0.5863389", "0.5815419", "0.5812599", "0.58086365", "0.57857376", "0.5779671", "0.5768516", "0.5753354", "0.5747334", "0.5720717", "0.57176244", "0.5711004", "0.57090485", "0.57080895", "0.5696082", "0.569355", "0.5683055", "0.56800324", "0.5679225", "0.56776875", "0.56622624", "0.56506515", "0.56472903", "0.56461704", "0.56460506", "0.5644609", "0.56406057", "0.5639536", "0.56328493", "0.5630152", "0.562971", "0.56295365", "0.5628096", "0.5624498", "0.5622455", "0.5616071", "0.56108016", "0.55806106", "0.557986", "0.5574441", "0.5556139", "0.5555973", "0.55509156", "0.55433524", "0.5540822", "0.5540259", "0.55386174", "0.5536941", "0.5514875", "0.5510035", "0.5509678", "0.5506794", "0.5505839", "0.5504791", "0.55035275", "0.5502255", "0.54981756", "0.5497937", "0.549574", "0.54956466", "0.5495561", "0.54892147", "0.54883146", "0.54763854", "0.54692453", "0.5467474", "0.5464871", "0.54630136", "0.5460224", "0.54543567", "0.5452851", "0.545072", "0.54484844" ]
0.0
-1
Render string either left or right aligned depending on bidiFlag
private void renderStringAligned(String text, int textX, int textY, int width, int color) { if (super.getBidiFlag()) { int stringWidth = super.getStringWidth(bidirectionalReorder(text)); textX = textX + width - stringWidth; } renderString(text, textX, textY, color, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean rightJustified(){\n return justification.equals(FormatAlignment.RIGHT_JUSTIFY);\n }", "boolean getAligning();", "public void justifyRight() {\n\t\tleft.right();\n\t}", "private static String doLayoutCompoundLabel(final FontMetrics fm, final String text, final Icon icon,\n final int verticalAlignment, final int horizontalAlignment,\n final int verticalTextPosition, final int horizontalTextPosition,\n final Rectangle viewR, final Rectangle iconR, final Rectangle textR,\n final int textIconGap) {\n\n final int gap = icon != null && !Utilities.isEmptyString(text) ? textIconGap : 0;\n\n if (icon != null) {\n iconR.setSize(icon.getIconWidth(), icon.getIconHeight());\n } else {\n iconR.setSize(0, 0);\n }\n\n String clippedText = \"\";\n if (!Utilities.isEmptyString(text)) {\n final int adjust = horizontalTextPosition != CENTER ? iconR.width + gap : 0;\n final int availableLength = viewR.width - adjust;\n clippedText = Utilities.clipString(fm, text, availableLength);\n textR.setSize(Utilities.getStringSize(clippedText, fm));\n } else {\n textR.setSize(0, 0);\n }\n\n layoutRects(verticalAlignment, horizontalAlignment,\n verticalTextPosition, horizontalTextPosition, viewR, iconR,\n textR, gap);\n\n return clippedText;\n }", "public void setTextAlign(TEXT_ALIGN align);", "TextLayout getTextLayout(String line, int lineOffset, int[] bidiSegments, StyleRange[] styles) {\n\tTextLayout layout = createTextLayout(lineOffset);\n\tlayout.setFont(regularFont);\n\tlayout.setAscent(ascent);\n\tlayout.setDescent(descent);\n\tlayout.setText(line);\n\tlayout.setOrientation(getOrientation());\n\tlayout.setSegments(bidiSegments);\n\tlayout.setTabs(new int[]{tabWidth});\n\tlayout.setWidth(getWidth());\n\tint length = line.length();\n\tint lastOffset = 0;\n\tif (styles != null) {\n\t\tfor (int styleIndex = 0; styleIndex < styles.length; styleIndex++) {\n\t\t\tStyleRange style = styles[styleIndex];\n\t\t\tif (style.isUnstyled()) continue;\n\t\t\tint start, end;\n\t\t\tif (lineOffset > style.start) {\n\t\t\t\tstart = 0;\n\t\t\t\tend = Math.min (length, style.length - lineOffset + style.start);\n\t\t\t} else {\n\t\t\t\tstart = style.start - lineOffset;\n\t\t\t\tend = Math.min(length, start + style.length);\n\t\t\t}\n\t\t\tif (start >= length) break;\n\t\t\tif (lastOffset < start) {\n\t\t\t\tlayout.setStyle(null, lastOffset, start - 1);\t\n\t\t\t}\n\t\t\tTextStyle textStyle = new TextStyle(getFont(style), style.foreground, style.background);\n\t\t\ttextStyle.underline = style.underline;\n\t\t\ttextStyle.strikeout = style.strikeout;\n\t\t\ttextStyle.rise = style.rise;\n\t\t\tEmbeddedObject object = style.object;\n\t\t\tif (object != null) {\n\t\t\t\ttextStyle.metrics = new GlyphMetrics(object.getAscent(), object.getDescent(), object.getAdvance());\n\t\t\t}\n\t\t\tlayout.setStyle(textStyle, start, end - 1);\n\t\t\tlastOffset = Math.max(lastOffset, end);\n\t\t}\n\t}\n\tif (lastOffset < length) layout.setStyle(null, lastOffset, length);\n\treturn layout;\n}", "public static String leftAlignFormat() {\n String leftAlignFormat = \"\\n\\t\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(5) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(40) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(60) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\" //string\r\n + \"|\"\r\n + \" %-\" + Integer.toString(24) + \"s\" \r\n + \"|\\n\";\r\n return leftAlignFormat;\r\n }", "TextDirection textDirection();", "@Override\n public String getTextAlign() {\n return graphicsEnvironmentImpl.getTextAlign(canvas);\n }", "public String getDirection(){\n\t\tif(this.toRight)\n\t\t\treturn \"RIGHT\";\n\t\telse\n\t\t\treturn \"LEFT\";\n\t}", "private static void printCenter(String str, int fieldWidth, boolean newLine){\n int rightAlign = (int)(Math.floor(fieldWidth/2) + Math.ceil(str.length()/2));\n System.out.printf(\"%\" + rightAlign + \"s%\" + (fieldWidth - rightAlign) + \"s\" + (newLine ? \"%n\" : \"\"), str, \"\");\n }", "public abstract void doAlignment(String sq1, String sq2);", "public ArabicShaping(int options) {\n this.options = options;\n if ((options & DIGITS_MASK) > 0x80) {\n throw new IllegalArgumentException(\"bad DIGITS options\");\n }\n\n isLogical = ( (options & TEXT_DIRECTION_MASK) == TEXT_DIRECTION_LOGICAL );\n /* Validate options */\n spacesRelativeToTextBeginEnd = ( (options & SPACES_RELATIVE_TO_TEXT_MASK) == SPACES_RELATIVE_TO_TEXT_BEGIN_END );\n if ( (options&SHAPE_TAIL_TYPE_MASK) == SHAPE_TAIL_NEW_UNICODE){\n tailChar = NEW_TAIL_CHAR;\n } else {\n tailChar = OLD_TAIL_CHAR;\n }\n }", "public String[] getStrAlign() {\n if (state) return new String[]{alignB, alignA};\n return new String[]{alignA, alignB};\n }", "public void displayRight(String text, int x, int y) {\n\t\tgc.setFont(vector); //set the font of the text \n\t\tgc.setFill(Color.WHITE); //set the color of the text\n\t\tgc.setTextAlign(TextAlignment.RIGHT); //set the alignment to right \n\t\tgc.fillText(text, x, y); //draw the text \n\t}", "public boolean requiresRightMarking() {\n return false;\n }", "Bidi(byte[] dirs, byte[] levels, boolean ltr) {\n applyBidiRules(dirs, levels, ltr); // save the input dirs\n this.ltr = ltr;\n this.dirs = dirs;\n this.levels = levels;\n }", "private String c(String paramString)\r\n/* 261: */ {\r\n/* 262: */ try\r\n/* 263: */ {\r\n/* 264:268 */ Bidi localBidi = new Bidi(new ArabicShaping(8).shape(paramString), 127);\r\n/* 265:269 */ localBidi.setReorderingMode(0);\r\n/* 266:270 */ return localBidi.writeReordered(2);\r\n/* 267: */ }\r\n/* 268: */ catch (ArabicShapingException localArabicShapingException) {}\r\n/* 269:274 */ return paramString;\r\n/* 270: */ }", "@JSProperty(\"textAlign\")\n void setTextAlign(String value);", "public void printAlignment(SWGAlignment alignment){\n\t\t\tString \torigSeq1 = alignment.getOriginalSequence1().toString(),\n\t\t\t\t\torigSeq2 = alignment.getOriginalSequence2().toString(),\n\t\t\t\t\talnSeq1 = new String(alignment.getSequence1()),\n\t\t\t\t\talnSeq2 = new String(alignment.getSequence2());\n\t\t\tint \tstart1 = alignment.getStart1(),\n\t\t\t\t\tstart2 = alignment.getStart2(),\n\t\t\t\t\tgap1 = alignment.getGaps1(),\n\t\t\t\t\tgap2 = alignment.getGaps2();\n\t\t\t\n\t\t\tString seq1, seq2, mark;\n\t\t\tif(start1>=start2){\n\t\t\t\tseq1=origSeq1.substring(0, start1) + alnSeq1 + origSeq1.substring(start1+alnSeq1.length()-gap1);\n\t\t\t\tString \tseq2Filler = start1==start2?\"\":String.format(\"%\"+(start1-start2)+\"s\", \"\"),\n\t\t\t\t\t\tmarkFiller = start1==0?\"\":String.format(\"%\"+start1+\"s\", \"\");\n\t\t\t\tseq2= seq2Filler + origSeq2.substring(0, start2) + alnSeq2 + origSeq2.substring(start2+alnSeq2.length()-gap2);\n\t\t\t\tmark= markFiller+String.valueOf(alignment.getMarkupLine());\n\t\t\t}else{\n\t\t\t\tseq2=origSeq2.substring(0, start2) + alnSeq2 + origSeq2.substring(start2+alnSeq2.length()-gap2);\n\t\t\t\tString \tmarkFiller = start2==0?\"\":String.format(\"%\"+start2+\"s\", \"\");\n\t\t\t\tseq1=String.format(\"%\"+(start2-start1)+\"s\", \"\") + origSeq1.substring(0, start1) + alnSeq1 + origSeq1.substring(start1+alnSeq1.length()-gap1);\n\t\t\t\tmark=markFiller+String.valueOf(alignment.getMarkupLine());\n\t\t\t}\n\t\t\tSystem.out.println(alignment.getSummary());\n\t\t\tSystem.out.println(seq1);\n\t\t\tSystem.out.println(mark);\n\t\t\tSystem.out.println(seq2);\n\t\t}", "@Override\n protected void contributeBidi(BidiProcessor proc) {\n bidiInfo = null;\n proc.add(this, getText());\n }", "boolean hasAligning();", "Bidi(char[] text, byte[] embs, boolean ltr) {\n byte[] dirs = getDirectionCodeArray(text, embs);\n for (int i = 0; i < embs.length; i++) {\n if ((embs[i] & 0x10) != 0) {\n embs[i] &= 0x0f;\n dirs[i] = (byte)(embs[i] & 0x01); // L, R\n }\n }\n\n applyBidiRules(dirs, embs, ltr); // save the input dirs\n\n this.ltr = ltr;\n this.dirs = dirs;\n this.levels = embs;\n }", "public boolean isRightJustify() {\n return getHorizontalAlignment()==JTextField.RIGHT;\n }", "public boolean leftJustified(){\n return justification.equals(FormatAlignment.LEFT_JUSTIFY);\n }", "public String toString(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif(isFlag()==true){\n\t\t\t\tif(isDownBlock()==true){\n\t\t\t\t\tsb.append(\"g\"); //use G represent the goal\n\t\t\t\t\t\t\t\t\t\t// if down block is a block use small letter\n\t\t\t\t}\n\t\t\t\telse if(isRobot()==true){\n\t\t\t\t\tsb.append(\"V\"); //flag and robot on same position VICTORY!\n\t\t\t\t}\n\t\t\t\telse sb.append(\"G\"); \t\t\n\t\t\t}\n\t\telse if(isRobot()==true){\n\t\t\tif(isDownBlock()==true){\n\t\t\t\tsb.append(\"r\");//use R represent the Robot\n\t\t\t\t\t// if down move is a block use small letter\n\t\t\t}\n\t\t\telse sb.append(\"R\");\n\t\t}\n\t\telse{\n\t\t\tif(isDownBlock()==true){\n\t\t\t\tsb.append(\"_\"); \n\t\t\t\t//if down move is blocked then use underline\n\t\t\t}\n\t\t\telse sb.append(\"O\"); // use o represent the grid\n\t\t}\n\t\t\t\n\t\tif(isRightBlock()==true){\n\t\t\tsb.append(\"|\"); //best way to represent right block\n\t\t}\n\t\telse{\n\t\t\tsb.append(\" \"); // if no block just a space\n\t\t}\n\t\treturn sb.toString();\n\t}", "public interface BooleanFormatStrategy extends FormatStrategy\n{\n String UPPER_CASE_FORMAT = \"UPPER_CASE\";\n String UPPER_CASE_FORMAT_DESC = \"Upper Case\";\n String CAPITALIZED_FORMAT = \"CAPITALIZED\";\n String CAPITALIZED_FORMAT_DESC = \"Capitalized\";\n String TRUE_STRING = \"True\";\n String FALSE_STRING = \"False\";\n\n String format(Short aShort);\n\n String format(Short aShort, String styleName);\n}", "@XmlElement(\"IsAligned\")\n boolean IsAligned();", "public static String toString(int dir) {\n switch(dir)\n {\n case LEFT_TO_RIGHT :\n return \"Left-to-Right\";\n case RIGHT_TO_LEFT :\n return \"Right-to-Left\";\n case EUROPEAN_NUMBER :\n return \"European Number\";\n case EUROPEAN_NUMBER_SEPARATOR :\n return \"European Number Separator\";\n case EUROPEAN_NUMBER_TERMINATOR :\n return \"European Number Terminator\";\n case ARABIC_NUMBER :\n return \"Arabic Number\";\n case COMMON_NUMBER_SEPARATOR :\n return \"Common Number Separator\";\n case BLOCK_SEPARATOR :\n return \"Paragraph Separator\";\n case SEGMENT_SEPARATOR :\n return \"Segment Separator\";\n case WHITE_SPACE_NEUTRAL :\n return \"Whitespace\";\n case OTHER_NEUTRAL :\n return \"Other Neutrals\";\n case LEFT_TO_RIGHT_EMBEDDING :\n return \"Left-to-Right Embedding\";\n case LEFT_TO_RIGHT_OVERRIDE :\n return \"Left-to-Right Override\";\n case RIGHT_TO_LEFT_ARABIC :\n return \"Right-to-Left Arabic\";\n case RIGHT_TO_LEFT_EMBEDDING :\n return \"Right-to-Left Embedding\";\n case RIGHT_TO_LEFT_OVERRIDE :\n return \"Right-to-Left Override\";\n case POP_DIRECTIONAL_FORMAT :\n return \"Pop Directional Format\";\n case DIR_NON_SPACING_MARK :\n return \"Non-Spacing Mark\";\n case BOUNDARY_NEUTRAL :\n return \"Boundary Neutral\";\n }\n return \"Unassigned\";\n }", "public boolean isRightJustify() {\n return rightJustify;\n }", "private String bidirectionalReorder(String text) {\n try {\n Bidi bidi = new Bidi((new ArabicShaping(8)).shape(text), 127);\n bidi.setReorderingMode(0);\n return bidi.writeReordered(2);\n } catch (ArabicShapingException exception) {\n return text;\n }\n }", "public AlignX getAlignmentX() { return AlignX.Left; }", "public static String formatAsAVLBody(AVLBody body) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"BODY\").append(\"\\n\");\n\t\tsb.append(body.getDescription()).append(\"\\n\");\n\t\n\t\t// wing main data\n\t\tsb.append(String.format(Locale.ROOT, \"%1$-11s %2$-11s\", \n\t\t\t\t\"#Nbody\", \"Bspace\")\n\t\t\t\t).append(\"\\n\");\n\t\tsb.append(\n\t\t\tString.format(Locale.ROOT, \"%1$-11d %2$-11.5g\", \n\t\t\t\tbody.getNBody(), body.getBSpace())\n\t\t\t\t).append(\"\\n\");\n\n\t\tif (body.isDuplicated()) {\n\t\t\tsb.append(\"YDUPLICATE\\n\");\n\t\t\tsb.append(body.getYDupl()).append(\"\\n\");\n\t\t}\n\n\t\tsb.append(\"#\\n\")\n\t\t .append(\"# x,y,z scale factors for whole body\\n\")\n\t\t .append(\"SCALE\\n\");\n\t\tsb.append(\n\t\t\t\tString.format(Locale.ROOT, \"%1$-11.5g %2$-11.5g %3$-11.5g\", \n\t\t\t\t\tbody.getScale()[0], body.getScale()[1], body.getScale()[2])\n\t\t\t\t\t).append(\"\\n\");\n\t\t\n\t\tsb.append(\"#\\n\")\n\t\t .append(\"# x,y,z bias for whole body\\n\")\n\t\t .append(\"TRANSLATE\\n\");\n\t\tsb.append(\n\t\t\t\tString.format(Locale.ROOT, \"%1$-11.5g %2$-11.5g %3$-11.5g\", \n\t\t\t\t\tbody.getOrigin()[0], body.getOrigin()[1], body.getOrigin()[2])\n\t\t\t\t\t).append(\"\\n\");\n\n\t\t// in case a body-section file is given\n\t\tif (body.getBodyCoordFile().isPresent()) {\n\t\t\tsb.append(\"BFIL\").append(\"\\n\");\n\t\t\tsb.append(body.getBodyCoordFile().get().getName()).append(\"\\n\");\t\t\t\n\t\t} \n\n\t\t// in case a body-section is given inline\n\t\tif (body.getBodySectionInline().isPresent()) {\n\t\t\tsb.append(\"AIRFOIL\").append(\"\\n\");\n\t\t\tArrays.asList(body.getBodySectionInline().get().getData()).stream()\n\t\t\t\t.forEach(pair -> \n\t\t\t\t\tsb.append(\n\t\t\t\t\t\tString.format(Locale.ROOT, \"%1$-11.5g %2$-11.5g\", pair[0], pair[1])\n\t\t\t\t\t).append(\"\\n\")\n\t\t\t\t);\n\t\t} \n\t\t\n\t\tsb.append(\"#\\n\")\n\t\t .append(\"#==============================================================\\n\")\n\t\t .append(\"#\\n\");\n\t\t\n\t\treturn sb.toString();\n\t}", "private int renderString(String text, float x, float y, int color, boolean dropShadow) {\n if (super.getBidiFlag()) {\n text = bidirectionalReorder(text);\n }\n \n updateColor();\n super.posX = x;\n super.posY = y;\n renderStringAtPos(text, dropShadow);\n return (int) super.posX;\n }", "@Override\n public void layout(LayoutContext lc) {\n //String s = new String(text);\n setFont(style.getFont());\n\n if (style.hasInitialValues()) {\n if (style.isDisjoint) {\n lc.disjoin();\n }\n Style.Header h = style.getHeader();\n if (h != null) {\n h.setFont(font);\n if (openIdent) {\n lc.setIdentation(style.indent, true);\n }\n parent.add((Control) h, lc.nextX, lc.nextY);\n lc.update(h.getWidth());\n }\n }\n\n boolean isPRE = style.alignment == Style.ALIGN_NONE;\n if (isPRE) {\n makePreformattedLines(lc);\n } else {\n makeLines(lc);\n }\n\n boolean disjoin = isPRE;\n boolean wasDisjoin = lc.lastStyle != null && lc.lastStyle.alignment == Style.ALIGN_NONE;\n lc.lastStyle = style;\n\n if (disjoin && wasDisjoin) {\n disjoin = false;\n } else if (!disjoin && wasDisjoin) {\n disjoin = true;\n }\n\n //debug(lc,style,new String(text));\n if (disjoin) {\n lc.disjoin();\n } else if (!disjoin && wasDisjoin) {\n lc.update(0);\n }\n if (finishIdent) {\n lc.setIdentation(0, false);\n }\n }", "public short getHorizontalAlignment()\n {\n return halign;\n }", "@Override\n\t\tpublic float getBoldOffset() {\n\t\t\treturn 0.5F;\n\t\t}", "Bidi(char[] text) {\n this(text, defaultIsLTR(text, 0, text.length));\n }", "public String right() {\n if (!(this.styledValueElements instanceof ShiftedText)) {\n this.styledValueElements = new ShiftedText(this.styledValue);\n } else {\n ((ShiftedText) this.styledValueElements).shiftRight();\n }\n\n this.value = this.styledValueElements.stringify();\n return this.value;\n }", "private void setFondAndSizen(WritableCell lb) throws WriteException {\n\t\tWritableFont font1 = new WritableFont(WritableFont.TIMES,10); \n\t\tCellFormat format = lb.getCellFormat();\n\t\tif (format == null || !format.getClass().equals(WritableCellFormat.class)) {\n\t\t\tWritableCellFormat format0=new WritableCellFormat(font1); \n\t\t\tlb.setCellFormat(format0);\n\t\t}\n\t\tWritableCellFormat format1 = (WritableCellFormat)lb.getCellFormat();\n\t\t//把水平对齐方式指定为靠左\n\t\t format1.setAlignment(Alignment.LEFT); \n\t\t//把垂直对齐方式指定为居中\n\t\t format1.setVerticalAlignment(jxl.format.VerticalAlignment.BOTTOM);\n\t\t //设置自动换行\n\t\t format1.setWrap(true); \n\t}", "int getAlignValue();", "public void setRightJustify(boolean rightJustify) {\n this.rightJustify = rightJustify;\n }", "public void justifyLeft() {\n\t\tleft.left();\n\t}", "Bidi(char[] text, boolean ltr) {\n this(text, getEmbeddingArray(text, ltr), ltr);\n }", "static boolean requiresBidi(char c) {\n if (c < '\\u0591') return false;\n if (c > '\\u202e') return false; // if contains arabic extended data, presume already ordered\n byte dc = getDirectionCode(c);\n return dc == R || dc == AR || dc == F;\n }", "public static String getAlignedWord(String word, int length) {\n SpreedWord pivot = new SpreedWord();// to get the pivot.\n String alignWord = \"<html>\"; // get the align word.\n double align; // get number of spaces\n double count = 0; // count the number of spaces\n double leftSpace; // geting left space\n double rightSpace = 0; // get right space\n int getPivot; // get pivot number\n // this check to see if the length is even add one\n if (length % 2 == 0) {\n length = length + 1;\n }\n // this checks for commas and semicolons and periods.\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) == '.') {\n word = word.substring(0, word.length() - 1);\n break;\n } else if (word.charAt(i) == ';') {\n word = word.substring(0, word.length() - 1);\n break;\n } else if (word.charAt(i) == ',') {\n word = word.substring(0, word.length() - 1);\n break;\n }\n }\n // this gets the pivot\n getPivot = pivot.getPivot(word);\n // takes half the length\n align = length / 2;\n // gets the numbers space before the pivot.\n char[] letters = word.toCharArray();\n for (int i = 0; i < word.length(); i++) {\n if (!Character.isLetter(letters[i])) {\n count++;\n } else {\n break;\n }\n }\n // get left spaces\n align = align - (getPivot + count);\n\n leftSpace = align;\n\n // adding the left spaces\n for (int i = 0; i < leftSpace; i++) {\n alignWord += \"&nbsp;\";\n }\n // add the word\n alignWord += word.substring(0, getPivot);\n alignWord += \"<font color=\\\"yellow\\\">\";\n alignWord += word.charAt(getPivot);\n alignWord += \"</font>\";\n for (int i = getPivot + 1; i < word.length(); i++)\n alignWord += word.charAt(i);\n //alignWord += word.substring(getPivot + 1, word.length() - getPivot + 1);\n // adding the right space or truncate\n if (alignWord.length() > length) {\n\n } else {\n rightSpace = length - alignWord.length();\n for (int j = 0; j < rightSpace; j++) {\n alignWord += \" \";\n }\n }\n\n alignWord += \"</html>\";\n System.out.println(alignWord);\n\n return alignWord;\n }", "private float drawText(Graphics2D g2d) {\n float yOffset = 0; // 1\" top margin\r\n for (TextLayout tl : textLayouts) {\r\n yOffset += tl.getAscent();\r\n tl.draw(g2d, 0, yOffset);\r\n yOffset += tl.getDescent();\r\n yOffset += tl.getLeading();\r\n }\r\n return yOffset;\r\n }", "int getVerticalAlignValue();", "@JSProperty(\"textAlign\")\n @Nullable\n String getTextAlign();", "private float renderChar(char renderChar, boolean italic) {\n if (renderChar == 160) {\n return 4.0F; // forge: display nbsp as space. MC-2595\n }\n \n if (renderChar == ' ') {\n return 4.0F;\n } else {\n int charIndex = \"\\u00c0\\u00c1\\u00c2\\u00c8\\u00ca\\u00cb\\u00cd\\u00d3\\u00d4\\u00d5\\u00da\\u00df\\u00e3\\u00f5\\u011f\\u0130\\u0131\\u0152\\u0153\\u015e\\u015f\\u0174\\u0175\\u017e\\u0207\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000 !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\\u0000\\u00c7\\u00fc\\u00e9\\u00e2\\u00e4\\u00e0\\u00e5\\u00e7\\u00ea\\u00eb\\u00e8\\u00ef\\u00ee\\u00ec\\u00c4\\u00c5\\u00c9\\u00e6\\u00c6\\u00f4\\u00f6\\u00f2\\u00fb\\u00f9\\u00ff\\u00d6\\u00dc\\u00f8\\u00a3\\u00d8\\u00d7\\u0192\\u00e1\\u00ed\\u00f3\\u00fa\\u00f1\\u00d1\\u00aa\\u00ba\\u00bf\\u00ae\\u00ac\\u00bd\\u00bc\\u00a1\\u00ab\\u00bb\\u2591\\u2592\\u2593\\u2502\\u2524\\u2561\\u2562\\u2556\\u2555\\u2563\\u2551\\u2557\\u255d\\u255c\\u255b\\u2510\\u2514\\u2534\\u252c\\u251c\\u2500\\u253c\\u255e\\u255f\\u255a\\u2554\\u2569\\u2566\\u2560\\u2550\\u256c\\u2567\\u2568\\u2564\\u2565\\u2559\\u2558\\u2552\\u2553\\u256b\\u256a\\u2518\\u250c\\u2588\\u2584\\u258c\\u2590\\u2580\\u03b1\\u03b2\\u0393\\u03c0\\u03a3\\u03c3\\u03bc\\u03c4\\u03a6\\u0398\\u03a9\\u03b4\\u221e\\u2205\\u2208\\u2229\\u2261\\u00b1\\u2265\\u2264\\u2320\\u2321\\u00f7\\u2248\\u00b0\\u2219\\u00b7\\u221a\\u207f\\u00b2\\u25a0\\u0000\".indexOf(renderChar);\n return charIndex != -1 && !super.getUnicodeFlag() ? super.renderDefaultChar(charIndex, italic) : super.renderUnicodeChar(renderChar, italic);\n }\n }", "private void m25387a(Canvas canvas, String str, int i, int i2) {\n canvas.drawText(str, (((float) i) - this.f20604O.measureText(str)) * 0.5f, (((float) i2) * 0.5f) - ((this.f20604O.ascent() + this.f20604O.descent()) * 0.5f), this.f20604O);\n }", "public TextJustification getJustification();", "private static String mateString(Breakend right) {\n int pos = right.startOnStrandWithCoordinateSystem(Strand.POSITIVE, CoordinateSystem.FULLY_CLOSED);\n char mateEndStrand = right.strand() == Strand.POSITIVE ? '[' : ']';\n return mateEndStrand + right.contigName() + ':' + pos + mateEndStrand;\n }", "@Override\n public Text addInstrText(String value, boolean noProofRPr, boolean createR) {\n R r = createR ? createR() : getR();\n\n if (noProofRPr) {\n RPr rpr = getRPr();\n rpr.setNoProof(new BooleanDefaultTrue());\n }\n\n Text text = myFactory.createText();\n if (value.startsWith(\" \") || value.endsWith(\" \")) text.setSpace(RunFormatProvider.SPACE_PRESERVE);\n text.setValue(value);\n r.getContent().add(myFactory.createRInstrText(text));\n return text;\n }", "private String getTileOriententation(int marker) { return (marker>CONCEALED && marker<CONCEALED_END)? \" concealed\" : \"\"; }", "public abstract String getRightButtonText();", "void renderString(Graphics2D graphic, double x, double y, double dx, double dy, GlyphVector gv,\n Feature feature, Fill fill, double rotation) {\n AffineTransform temp = graphic.getTransform();\n AffineTransform labelAT = new AffineTransform();\n \n Point2D mapCentre = new java.awt.geom.Point2D.Double(x, y);\n Point2D graphicCentre = new java.awt.geom.Point2D.Double();\n temp.transform(mapCentre, graphicCentre);\n labelAT.translate(graphicCentre.getX(), graphicCentre.getY());\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"rotation \" + rotation);\n }\n \n double shearY = temp.getShearY();\n double scaleY = temp.getScaleY();\n double scaleX = temp.getScaleX();\n double originalRotation = Math.atan(shearY / scaleY);\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"originalRotation \" + originalRotation);\n }\n \n labelAT.rotate(rotation - originalRotation);\n \n double xToyRatio = Math.abs(scaleX / scaleY);\n labelAT.scale(xToyRatio, 1.0 / xToyRatio);\n graphic.setTransform(labelAT);\n \n applyFill(graphic, fill, feature);\n \n // we move this to the centre of the image.\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"about to draw at \" + x + \",\" + y + \" with the start of the string at \"\n + (x + dx) + \",\" + (y + dy));\n }\n \n graphic.drawGlyphVector(gv, (float) dx, (float) dy);\n // tl.draw(graphic, (float) dx, (float) dy);\n \n //graphics.drawString(label,(float)x,(float)y);\n resetFill(graphic);\n graphic.setTransform(temp);\n \n return;\n }", "public boolean chkRTL()\n\t{\n\t\treturn (orientation == ORIENT_RTL);\n\t}", "ILetterView getLetterView(String username, String inLetterText, String dateText, boolean alignLeft);", "private String getFinalText(Unit units, int lowerBound, int upperBound) {\n if (shouldUseUpToFormat(lowerBound)) return useUpToFormat(units, upperBound);\n return useRangeFormat(units, lowerBound, upperBound);\n }", "private void updateLabelText() {\n /*\n r18 = this;\n android.view.View r13 = r18.getNativeView()\n android.widget.TextView r13 = (android.widget.TextView) r13\n if (r13 != 0) goto L_0x0009\n L_0x0008:\n return\n L_0x0009:\n boolean r7 = r18.isSingleLine()\n r0 = r18\n float r0 = r0.minimumFontSizeInPixels\n r16 = r0\n r17 = 1036831949(0x3dcccccd, float:0.1)\n int r16 = (r16 > r17 ? 1 : (r16 == r17 ? 0 : -1))\n if (r16 < 0) goto L_0x00f6\n r3 = 1\n L_0x001b:\n r8 = r3\n r13.setSingleLine(r7)\n r0 = r18\n int r0 = r0.viewHeightInLines\n r16 = r0\n if (r16 <= 0) goto L_0x00f9\n r0 = r18\n int r0 = r0.viewHeightInLines\n r16 = r0\n r0 = r16\n r13.setLines(r0)\n L_0x0032:\n if (r7 == 0) goto L_0x0102\n r16 = 1\n r0 = r16\n r13.setMaxLines(r0)\n L_0x003b:\n r0 = r18\n java.lang.CharSequence r11 = r0.originalText\n if (r11 != 0) goto L_0x0135\n android.text.SpannableStringBuilder r11 = new android.text.SpannableStringBuilder\n java.lang.String r16 = \"\"\n r0 = r16\n r11.<init>(r0)\n r12 = r11\n L_0x004b:\n if (r8 == 0) goto L_0x0132\n int r16 = r12.length()\n if (r16 <= 0) goto L_0x0132\n r2 = 0\n L_0x0054:\n int r16 = r12.length()\n r0 = r16\n if (r2 >= r0) goto L_0x006c\n char r10 = r12.charAt(r2)\n r16 = 13\n r0 = r16\n if (r10 == r0) goto L_0x006c\n r16 = 10\n r0 = r16\n if (r10 != r0) goto L_0x012b\n L_0x006c:\n int r16 = r12.length()\n r0 = r16\n if (r2 >= r0) goto L_0x0132\n android.text.SpannableStringBuilder r11 = new android.text.SpannableStringBuilder\n r16 = 0\n r0 = r16\n r11.<init>(r12, r0, r2)\n L_0x007d:\n boolean r0 = r11 instanceof android.text.Spannable\n r16 = r0\n if (r16 != 0) goto L_0x0089\n android.text.SpannableStringBuilder r12 = new android.text.SpannableStringBuilder\n r12.<init>(r11)\n r11 = r12\n L_0x0089:\n r1 = 0\n r0 = r18\n int r0 = r0.autoLinkFlags\n r16 = r0\n if (r16 == 0) goto L_0x00a0\n r16 = r11\n android.text.Spannable r16 = (android.text.Spannable) r16\n r0 = r18\n int r0 = r0.autoLinkFlags\n r17 = r0\n boolean r1 = android.text.util.Linkify.addLinks(r16, r17)\n L_0x00a0:\n if (r1 == 0) goto L_0x012f\n android.text.method.MovementMethod r9 = android.text.method.LinkMovementMethod.getInstance()\n L_0x00a6:\n android.text.method.MovementMethod r16 = r13.getMovementMethod()\n r0 = r16\n if (r9 == r0) goto L_0x00c6\n boolean r5 = r13.isFocusable()\n boolean r4 = r13.isClickable()\n boolean r6 = r13.isLongClickable()\n r13.setMovementMethod(r9)\n r13.setFocusable(r5)\n r13.setClickable(r4)\n r13.setLongClickable(r6)\n L_0x00c6:\n r0 = r18\n android.text.TextUtils$TruncateAt r14 = r0.ellipsize\n if (r9 == 0) goto L_0x00da\n android.text.TextUtils$TruncateAt r16 = android.text.TextUtils.TruncateAt.START\n r0 = r16\n if (r14 == r0) goto L_0x00d8\n android.text.TextUtils$TruncateAt r16 = android.text.TextUtils.TruncateAt.MIDDLE\n r0 = r16\n if (r14 != r0) goto L_0x00da\n L_0x00d8:\n android.text.TextUtils$TruncateAt r14 = android.text.TextUtils.TruncateAt.END\n L_0x00da:\n r13.setEllipsize(r14)\n android.text.TextUtils$TruncateAt r16 = android.text.TextUtils.TruncateAt.MARQUEE\n r0 = r16\n if (r14 != r0) goto L_0x00ea\n r16 = 1\n r0 = r16\n r13.setSelected(r0)\n L_0x00ea:\n android.widget.TextView$BufferType r16 = android.widget.TextView.BufferType.NORMAL\n r0 = r16\n r13.setText(r11, r0)\n r13.requestLayout()\n goto L_0x0008\n L_0x00f6:\n r3 = 0\n goto L_0x001b\n L_0x00f9:\n r16 = 0\n r0 = r16\n r13.setMinLines(r0)\n goto L_0x0032\n L_0x0102:\n r0 = r18\n int r0 = r0.maxLines\n r16 = r0\n if (r16 <= 0) goto L_0x0129\n r0 = r18\n int r15 = r0.maxLines\n L_0x010e:\n r0 = r18\n int r0 = r0.viewHeightInLines\n r16 = r0\n if (r16 <= 0) goto L_0x0124\n r0 = r18\n int r0 = r0.viewHeightInLines\n r16 = r0\n r0 = r16\n if (r15 <= r0) goto L_0x0124\n r0 = r18\n int r15 = r0.viewHeightInLines\n L_0x0124:\n r13.setMaxLines(r15)\n goto L_0x003b\n L_0x0129:\n r15 = 1\n goto L_0x010e\n L_0x012b:\n int r2 = r2 + 1\n goto L_0x0054\n L_0x012f:\n r9 = 0\n goto L_0x00a6\n L_0x0132:\n r11 = r12\n goto L_0x007d\n L_0x0135:\n r12 = r11\n goto L_0x004b\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p006ti.modules.titanium.p007ui.widget.TiUILabel.updateLabelText():void\");\n }", "public boolean getAligning() {\n return aligning_;\n }", "public com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.TextStyleBiDirectional getBiDirectional() {\r\n return biDirectional;\r\n }", "private void m27466c() {\n switch (this.f25258E) {\n case 1:\n this.f25288c.setTextAlign(Align.LEFT);\n return;\n case 2:\n this.f25288c.setTextAlign(Align.RIGHT);\n return;\n default:\n this.f25288c.setTextAlign(Align.CENTER);\n return;\n }\n }", "public int getAlignment() {\n/* */ return this.newAlign;\n/* */ }", "public String row(int i)\n //centered block works differently when you give separate textlines vs. text blocks \n throws Exception\n {\n int spacing = ((this.width - this.text.width()) / 2);\n //set right and left indent\n StringBuffer output = new StringBuffer(this.width);\n for (int count = 0; count < this.width; count++)\n {\n output.append(\" \");\n } //for loop to create indents\n try\n {\n output.replace(spacing, this.text.width() + spacing, this.text.row(i));\n }\n catch (Exception e)\n {\n throw new Exception(\"Can only update once\");\n }\n return output.toString();\n }", "default HtmlFormatter wrapWith(String left, String right) {\n return andThen(s -> String.join(\n \"\",\n left,\n s,\n right\n ));\n }", "public boolean getAligning() {\n return aligning_;\n }", "public static StringBuilder format(StringBuilder sb, String chars, int length, int alignment, char preFieldCharacter, char postFieldCharacter)\n\t{\n\t\t// find the length of our string \n\t\tint charsCount = chars.length();\n\n\t\t// position within the field\n\t\tint startAt = 0;\n\t\tif (alignment == ALIGN_RIGHT)\n\t\t\tstartAt = length - charsCount;\n\t\telse if (alignment == ALIGN_CENTER)\n\t\t\tstartAt = (length - charsCount)/2;\n\n\t\t// force to right it off edge\n\t\tif (startAt < 0)\n\t\t\tstartAt = 0;\n\n\t\t// truncate it\n\t\tif ((startAt + charsCount) > length)\n\t\t\tcharsCount = length-startAt;\n\n\t\t// now add the pre-field if any\n\t\tfor(int i=0; i<startAt; i++)\n\t\t\tsb.append(preFieldCharacter);\n\n\t\t// the content\n\t\tsb.append(chars.substring(0, charsCount));\n\n\t\t// post field if any\n\t\tfor(int i=startAt+charsCount; i<length; i++)\n\t\t\tsb.append(postFieldCharacter);\n\n\t\treturn sb;\n\t}", "String updateSliderLabel() {\n if (this.direction.equals(\"H\"))\n return \"Percentage of Width : \";\n if (this.direction.equals(\"V\"))\n return \"Percentage of Height : \";\n return \"/!\\\\ Direction issue! Please relaunch the App /!\\\\\";\n }", "public boolean isLtr() {\n return mStaticLayout.getParagraphDirection(0) == Layout.DIR_LEFT_TO_RIGHT;\n }", "public static String leftAlignFormatTitulo() {\n String leftAlignFormat = \"\\t\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(5) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(40) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(60) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\" //string\r\n + \"|\"\r\n + \" %-\" + Integer.toString(24) + \"s\" \r\n + \"|\\n\";\r\n return leftAlignFormat;\r\n }", "public static synchronized PdfPCell getFormattedCellRight(String string, int fontSize, boolean isBold, int border, int iPad) \r\n\t{\r\n\t\tPdfPCell ppcWork = new PdfPCell(getFormattedCell(string,fontSize,isBold, border));\r\n\t\tppcWork.setHorizontalAlignment(2);\r\n\t\tif (iPad != 0)\r\n\t\t{ppcWork.setPaddingRight(iPad);}\r\n\t\treturn ppcWork;\r\n\t}", "public void format(List<Alignment> alignmentList);", "public String left() {\n if (!(this.styledValueElements instanceof ShiftedText)) {\n this.styledValueElements = new ShiftedText(this.styledValue);\n } else {\n ((ShiftedText) this.styledValueElements).shiftLeft();\n }\n\n this.value = this.styledValueElements.stringify();\n return this.value;\n }", "public CustomLabel(String text){\n setHorizontalAlignment(JLabel.LEFT);\n Font font = new Font(\"Bold\", Font.BOLD, 20);\n setFont(font);\n setText(\" \" + text);\n }", "private void numberDisplayAlignment() {\n numberDisplay.setAlignment(Pos.CENTER_RIGHT);\n numberDisplay.setPrefSize(20, 10);\n }", "public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}", "public BidiInfo getBidiInfo() {\n return bidiInfo;\n }", "public void setRightJustify(boolean rightJustify) {\n setHorizontalAlignment(rightJustify ? JTextField.RIGHT : JTextField.LEFT);\n }", "@Test\n public void bidiOutline() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // The BIDIOUTLINE field numbers paragraphs like the AUTONUM/LISTNUM fields,\n // but is only visible when a right-to-left editing language is enabled, such as Hebrew or Arabic.\n // The following field will display \".1\", the RTL equivalent of list number \"1.\".\n FieldBidiOutline field = (FieldBidiOutline) builder.insertField(FieldType.FIELD_BIDI_OUTLINE, true);\n builder.writeln(\"שלום\");\n\n Assert.assertEquals(\" BIDIOUTLINE \", field.getFieldCode());\n\n // Add two more BIDIOUTLINE fields, which will display \".2\" and \".3\".\n builder.insertField(FieldType.FIELD_BIDI_OUTLINE, true);\n builder.writeln(\"שלום\");\n builder.insertField(FieldType.FIELD_BIDI_OUTLINE, true);\n builder.writeln(\"שלום\");\n\n // Set the horizontal text alignment for every paragraph in the document to RTL.\n for (Paragraph para : (Iterable<Paragraph>) doc.getChildNodes(NodeType.PARAGRAPH, true)) {\n para.getParagraphFormat().setBidi(true);\n }\n\n // If we enable a right-to-left editing language in Microsoft Word, our fields will display numbers.\n // Otherwise, they will display \"###\".\n doc.save(getArtifactsDir() + \"Field.BIDIOUTLINE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.BIDIOUTLINE.docx\");\n\n for (Field fieldBidiOutline : doc.getRange().getFields())\n TestUtil.verifyField(FieldType.FIELD_BIDI_OUTLINE, \" BIDIOUTLINE \", \"\", fieldBidiOutline);\n }", "private String m9532a(int i) {\n String str = \"embeded_ad\";\n return i != 1 ? i != 2 ? (i == 5 || i != 9) ? str : \"draw_ad\" : \"interaction\" : \"banner_ad\";\n }", "public void AlignStrB(String B) {\n this.B = B.toLowerCase();\n this.Align();\n }", "TickAlign getAlign();", "public short getTextOrientation()\n {\n return field_2_textOrientation;\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, float alignWidth, HAlignment alignment);", "protected abstract String format();", "private static final String formatTextAsHtml(String text) {\n StringBuffer html = new StringBuffer();\n html.append(\"<tt>\");\n for (int idx = 0; idx < text.length(); idx++) {\n if (text.charAt(idx) == ' ') {\n html.append(\"&nbsp;\");\n } else if (text.charAt(idx) == '\\t') {\n html.append(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n } else if (text.charAt(idx) == '\\n') {\n html.append(\"<br>\");\n } else {\n html.append(text.charAt(idx));\n }\n }\n html.append(\"</tt>\");\n return html.toString();\n }", "public String getAlign() {\n return align;\n }", "@Override\r\n\tpublic void render(GameContainer gc, Renderer r) {\n\t\tr.drawTextInBox(posX, posY, width, height, color1, text);\r\n\t\t//r.noiseGen();\r\n\t}", "private void drawStrings(Graphics g, int wid, int hei) {\n Font f = new Font(\"Font.PLAIN\", Font.BOLD, hei / 20);\n g.setFont(f);\n g.setColor(Color.white);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 - 2, hei / 10 - 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 5, hei / 10 * 3 - 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 - 2, hei / 2 - 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 - 2, hei / 2 + hei / 20 + 3);\n g.setColor(Color.black);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 + 2, hei / 10 + 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 9, hei / 10 * 3 + 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 + 2, hei / 2 + 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 + 2, hei / 2 + hei / 20 + 7);\n g.setColor(Color.red);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20, hei / 10);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 7, hei / 10 * 3);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20, hei / 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63, hei / 2 + hei / 20 + 5);\n }", "public String toString()\n\t{\n\t\tString result\t= \"\";\n\n\t\tif ( isBold )\n\t\t{\n\t\t\tresult\t= \"bold\";\n\t\t}\n\n\t\tif ( isItalic )\n\t\t{\n\t\t\tif ( result.length() > 0 )\n\t\t\t{\n\t\t\t\tresult\t+= \" \";\n\t\t\t}\n\n\t\t\tresult\t+= \"italic\";\n\t\t}\n\n\t\tif ( result.length() == 0 )\n\t\t{\n\t\t\tresult\t= \"normal\";\n\t\t}\n\n\t\treturn result;\n\t}", "public abstract double drawString(AEColor clr, double font_size, String str, double mid_x, double mid_y);", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "public boolean isRtl() {\n return this.mLayoutManager.getLayoutDirection() == 1;\n }", "boolean getArmedMark();", "public void setHorizontalTextAlignment(short value)\n {\n field_1_options = HorizontalTextAlignment.setShortValue(field_1_options, value);\n }", "public String getFormattedReceiptLabel() {\t \n\t String receiptLabel = res.getString(getReceiptLabel().getKey());\t \n\t int numberOfSpaces = ((totalLength - receiptLabel.length()) / 2);\t \n\t String prefix = \"\";\n\t String postfix = \"\";\n\t for(int i = 0; i < numberOfSpaces; i++) {\n\t\t prefix += \" \";\n\t\t postfix += \" \";\n\t }\n\t receiptLabel = prefix + receiptLabel + postfix;\t \n\t return receiptLabel;\n }", "public int getAlignment()\n {\n return align;\n }", "@Override\r\n\tpublic void render() {\n\t\tv.textFont(BODY_FONT);\r\n\t\tv.textAlign(LEFT);\r\n\t\tv.textSize(16);\r\n\r\n\t\tfor(Overlay overlay : overlays) {\r\n\t\t\toverlay.render();\r\n\t\t}\r\n\t}" ]
[ "0.54022074", "0.5377525", "0.5363048", "0.5341959", "0.53343767", "0.525466", "0.52510977", "0.52104634", "0.51442826", "0.51434517", "0.51344484", "0.50201666", "0.5020122", "0.5004555", "0.49761796", "0.49683437", "0.49549282", "0.4928665", "0.49068284", "0.4883987", "0.48794642", "0.48603097", "0.4855735", "0.48493516", "0.48455286", "0.48444793", "0.4842425", "0.483297", "0.48306757", "0.48296285", "0.48150486", "0.48139435", "0.48073477", "0.47994143", "0.47965986", "0.47911453", "0.47901937", "0.47794425", "0.47715312", "0.47691855", "0.47660944", "0.4760383", "0.47465712", "0.47433025", "0.47353867", "0.47192082", "0.47145122", "0.47132182", "0.4700336", "0.4697078", "0.46954438", "0.46936122", "0.46905768", "0.4678157", "0.467085", "0.46703595", "0.4660111", "0.46500015", "0.46395284", "0.46361247", "0.46356112", "0.46297997", "0.46192795", "0.46101993", "0.45969868", "0.4591217", "0.45835713", "0.45813817", "0.45808575", "0.45766562", "0.45755044", "0.45699486", "0.45618343", "0.45606476", "0.4533538", "0.45318106", "0.45293045", "0.45265716", "0.45160204", "0.4507082", "0.44873703", "0.4486296", "0.44784093", "0.4458987", "0.44562304", "0.4454048", "0.4444436", "0.44442752", "0.4443903", "0.44418722", "0.44416916", "0.44297963", "0.44281957", "0.4426522", "0.44256052", "0.4423964", "0.44182456", "0.44147214", "0.44103077", "0.44099376" ]
0.5544388
0
Render single line string by setting GL color, current (posX,posY), and calling renderStringAtPos()
private int renderString(String text, float x, float y, int color, boolean dropShadow) { if (super.getBidiFlag()) { text = bidirectionalReorder(text); } updateColor(); super.posX = x; super.posY = y; renderStringAtPos(text, dropShadow); return (int) super.posX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw(String str, double x, double y, double size, int color, Align align) {\n GL11.glEnable(GL11.GL_BLEND);\n //GL11.glDepthMask(false);\n double scale = size / mcFont().FONT_HEIGHT;\n GL11.glPushMatrix(); {\n GL11.glTranslated(x, y, 0);\n GL11.glScaled(scale, scale, 1);\n String[] ss = str.split(\"\\n\");\n for(int i = 0; i < ss.length; ++i) {\n GL11.glPushMatrix(); {\n double dy = i * mcFont().FONT_HEIGHT;\n GL11.glTranslated(0, dy, 0);\n drawSingleLine(ss[i], color, align);\n } GL11.glPopMatrix();\n }\n } GL11.glPopMatrix();\n }", "public static void drawStringMultiLine(MatrixStack matrixStack, FontRenderer fontRenderer, String string, int x, int y, int color) \n {\n String[] lines = string.split(\"\\\\\\\\n\");\n for (int i = 0; i < lines.length; i++) \n {\n String line = lines[i];\n fontRenderer.drawString(matrixStack, line, x, y + (fontRenderer.FONT_HEIGHT * i), color);\n }\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y);", "public void drawText(final String text, final int xPos, final int yPos, final Color color){\n font.setColor(Color.BLACK);\n font.setScale(0.51f);\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n \n font.setColor(Color.WHITE);\n font.setScale(0.5f);\n batch.begin();\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n font.setScale(1f);\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "public void drawString(final String msg, final int xPos, final int yPos, final Color color) {\n font.setColor(color);\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.draw(batch, msg, xPos, yPos);\n batch.end();\n }", "public abstract void drawString(String str, int x, int y);", "public void display(GL2 gl)\r\n {\n\tgl.glColor3f(0,1,0);\r\n\tgl.glBegin(GL2.GL_LINES);\r\n\tPoint2d c = R.getPosition();\r\n\tgl.glVertex2d(c.x, c.y);\r\n\tgl.glVertex2d(x.x, x.y);\r\n\tgl.glEnd();\t\r\n }", "public void renderText(String text, int x, int y, int color)\n {\n renderText(text, x, y, color, 1.0f);\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, float alignWidth, HAlignment alignment);", "public void render (DrawingCanvas canvas){\n //System.out.println(\"drawing \"+wd+\"*\"+ht+\" at (\"+x+\",\"+y+\")\");\n canvas.setForeground(col);\n canvas.drawString(str, x, y, false);\n canvas.setForeground(Color.lightGray);\n canvas.drawRect(x,y-13,(str.length()*8),16);\n }", "private void drawXYZText() {\n\t\t//Draw text X - red\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glRasterPos3f(1,0,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"X\");\n\t\tgl.glEnd();\n\t\t//Draw text -X - red\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glRasterPos3f(-1,0,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-X\");\n\t\tgl.glEnd();\n\t\t\n\t\t//Draw text Y - Green\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glRasterPos3f(0,1,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"Y\");\n\t\tgl.glEnd();\n\t\t//Draw text -Y - Green\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glRasterPos3f(0,-1,0);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-Y\");\n\t\tgl.glEnd();\n\t\t\n\t\t//Draw text Z - Blue\n\t\tgl.glColor3f(0.0f, 0.0f, 1.0f);\n\t\tgl.glRasterPos3f(0,0,1);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"Z\");\n\t\tgl.glEnd();\n\t\t//Draw text -Z - Blue\n\t\tgl.glColor3f(0.0f, 0.0f, 1.0f);\n\t\tgl.glRasterPos3f(0,0,-1);\n\t\tglut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, \"-Z\");\n\t\tgl.glEnd();\n\t}", "@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawString(str, 10, 10);\r\n\t\tg.drawLine(10, 20, 110, 20);\r\n\t\tg.drawRect(pX, 30, 100, 100);\r\n\t\t\r\n\t}", "public void drawLines(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 drawLines: 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 -- lines: 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, lineVertexBuffer);\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] * 0.9f,color[1] * 0.9f,color[2] * 0.9f,color[3]);\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, lineDrawListBuffer.capacity(),\n\t\t\t\t\t\t\t GLES20.GL_UNSIGNED_INT, lineDrawListBuffer);\n int drawError = GLES20.glGetError();\n if (drawError != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper: Line 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 render(Graphics g) {\n\n int x = g.repositionX((int) _coordOrigin._x + (int) _pos._x);\n int y = g.repositionY((int) _coordOrigin._y + ((int) _pos._y * (-1)));\n\n g.newFont(_f, g.repositionX(_lineThickness), _b);\n g.setColor(_c);\n g.drawText(_t, g.getCanvas().getX() + x, g.getCanvas().getY() + y);\n }", "@Override\n public int drawString(String text, int x, int y, int color) {\n return this.drawString(text, x, y, color, false);\n }", "public void draw(GL2 gl)\r\n\t{\r\n\t\tdouble width = menu.getController().getWidth(), height = menu.getController().getHeight();\r\n\t\ttextRenderer.beginRendering((int)width, (int)height);\r\n\t\tif (mouseInBounds())\r\n\t\t\ttextRenderer.setColor(1f, 1f, 0f, 1f);\r\n\t\telse\r\n\t\t\ttextRenderer.setColor(1f, 1f, 1f, 1f);\r\n\t\tif (align == 0)\r\n\t\t\tdrawStringLeft(textRenderer, message, (int)(width*x), (int)(height*y));\r\n\t\tif (align == 1)\r\n\t\t\tdrawStringCenter(textRenderer, message, (int)(width*x), (int)(height*y));\r\n\t\tif (align == 2)\r\n\t\t\tdrawStringRight(textRenderer, message, (int)(width*x), (int)(height*y));\r\n\t\ttextRenderer.endRendering();\r\n\t}", "public void draw(String str, double x, double y, double size, int color) {\n draw(str, x, y, size, color, Align.LEFT);\n }", "public abstract double drawString(AEColor clr, double font_size, String str, double mid_x, double mid_y);", "public void renderText(String text, int x, int y)\n {\n renderText(text, x, y, 0x00000000);\n }", "public void drawLine(float x, float y, float x2, float y2, float width, float u, float v, float texW, float texH) {\n throw new NotImplementedException(); // TODO Implement\n }", "public void draw() {\n\t\t\tfloat[] vertices = new float[mVertices.size()];\n\t\t\tfor (int i = 0; i < vertices.length; i++)\n\t\t\t\tvertices[i] = mVertices.get(i);\n\t\t\t\n\t\t\tfloat[] textureCoords = null;\n\t\t\tif (mTextureID != 0) {\n\t\t\t\ttextureCoords = new float[mTextureCoords.size()];\n\t\t\t\tfor (int i = 0; i < textureCoords.length; i++)\n\t\t\t\t\ttextureCoords[i] = mTextureCoords.get(i);\n\t\t\t}\n\t\t\t\n\t\t\tshort[] indices = new short[mIndices.size()];\n\t\t\tfor (int i = 0; i < indices.length; i++)\n\t\t\t\tindices[i] = mIndices.get(i);\n\t\t\t\n\t\t\t// Get OpenGL\n\t\t\tGL10 gl = GameGraphics2D.this.mGL;\n\t\t\t\n\t\t\t// Set render state\n\t\t\tgl.glDisable(GL10.GL_LIGHTING);\n\t\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\n\t\t\tgl.glEnable(GL10.GL_BLEND);\n\n\t\t\tif (mBlendingMode == BLENDING_MODE.ALPHA)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\telse if (mBlendingMode == BLENDING_MODE.ADDITIVE)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);\n\t\t\t\n\t\t\tif (mTextureID != 0)\n\t\t\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t\telse\n\t\t\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\t\t\n\t\t\t// Draw the batch of textured triangles\n\t\t\tgl.glColor4f(Color.red(mColour) / 255.0f,\n\t\t\t\t\t\t Color.green(mColour) / 255.0f,\n\t\t\t\t\t\t Color.blue(mColour) / 255.0f,\n\t\t\t\t\t\t Color.alpha(mColour) / 255.0f);\n\t\t\t\n\t\t\tif (mTextureID != 0) {\n\t\t\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);\n\t\t\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords));\n\t\t\t}\n\t\t\t\n\t\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices));\n\t\t\tgl.glDrawElements(GL10.GL_TRIANGLES, indices.length,\n\t\t\t\t\tGL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices));\n\t\t}", "@Override\n public void render() {\n Gdx.gl.glClearColor(0, 0, 0, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n // Then we start our shapeRenderer batch, this time with ShapeType.Line\n shapeRenderer.begin(ShapeType.Line);\n // A Simple white line\n shapeRenderer.setColor(Color.WHITE);\n shapeRenderer.line(0, 0, 100, 100);\n // We can set different colors using two methods. We can use constants like so.\n shapeRenderer.setColor(Color.MAGENTA);\n shapeRenderer.line(10, 0, 110, 100);\n // We can also set a color using RGBA values\n shapeRenderer.setColor(0, 1, 0, 1);\n shapeRenderer.line(20, 0, 120, 100);\n // We can also do fancy things like gradients\n shapeRenderer.line(30, 0, 130, 100, Color.BLUE, Color.RED);\n // The last interesting thing we can do is draw a bunch of connected line segments using polyline\n // First we set up the list of vertices, where the even positions are x coordinates, and the odd positions are the y coordinates\n float[] verticies = {100, 200, 300, 300, 200, 300, 300, 200};\n shapeRenderer.polyline(verticies);\n // Finally, as always, we end the batch\n shapeRenderer.end();\n }", "public void drawString(final String msg, final int xPos, final int yPos) {\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.draw(batch, msg, xPos, yPos);\n batch.end();\n }", "public void draw() {\n\t\tGL11.glColor3f(0.5f,0.5f,1.0f);\n\t\n\t\t// draw quad\n\t\tGL11.glBegin(GL11.GL_QUADS);\n\t\t\tGL11.glVertex2f(x,y);\n\t\t\tGL11.glVertex2f(x+width,y);\n\t\t\tGL11.glVertex2f(x+width,y+height);\n\t\t\tGL11.glVertex2f(x,y+height);\n\t\tGL11.glEnd();\n\t\t\n\t\tif(text != null || !text.equals(\"\"))\n\t\t\tfont.drawString(text, x, y);\n\t\n\t}", "@Override\r\n\tpublic void render(GameContainer gc, Renderer r) {\n\t\tr.drawTextInBox(posX, posY, width, height, color1, text);\r\n\t\t//r.noiseGen();\r\n\t}", "public void strokeString(float x, float y, String text);", "public void writeLine(String theString, int color)\r\n\t{\r\n\t\t/*\r\n\t\t * 0 = system! 1 = User Input 2 = Socket Input 3 = Other\r\n\t\t */\r\n\t\tStyleContext context = new StyleContext();\r\n\t\tstyle = context.getStyle(StyleContext.DEFAULT_STYLE);\r\n\t\tStyleConstants.setFontSize(style, 14);\r\n\t\tStyleConstants.setSpaceAbove(style, 4);\r\n\t\tStyleConstants.setSpaceBelow(style, 4);\r\n\r\n\t\tswitch (color)\r\n\t\t{\r\n\t\tcase 0:\r\n\t\t\tStyleConstants.setForeground(style, Color.GRAY);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLACK);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLUE);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tStyleConstants.setForeground(style, Color.RED);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\ttheString = theString + \"\\n\";\r\n\r\n\t\ttry\r\n\t\t{\r\n\r\n\t\t\tdoc.insertString(doc.getLength(), theString, style);\r\n\r\n\t\t}\r\n\t\tcatch (BadLocationException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// scroll to the bottom\r\n\t\ttxtDisplayArea.setCaretPosition(txtDisplayArea.getDocument()\r\n\t\t\t\t.getLength());\r\n\r\n\t}", "@Override\n\tpublic void drawLine(Vector3f from, Vector3f to, Vector3f color) {\n\n\t\tfloat[] positions = new float[6];\n\t\tpositions[0] = from.x;\n\t\tpositions[1] = from.y;\n\t\tpositions[2] = from.z;\n\n\t\tpositions[3] = to.x;\n\t\tpositions[4] = to.y;\n\t\tpositions[5] = to.z;\n\n\t\t// Create a rawmodel to store the line\n\t\tRawModel model = Globals.getLoader().loadToVAO(positions, 3);\n\n\t\tshader.start();\n\t\tshader.loadProjectionMatrix(Globals.getRenderer().getProjectionMatrix());\n\t\tshader.loadViewMatrix(Globals.getActiveCamera());\n\t\tGL30.glBindVertexArray(model.getVaoID());\n\n\t\tGL20.glEnableVertexAttribArray(0);\n\t\tGL11.glDrawArrays(GL11.GL_LINES, 0, 6);\n\t\tGL20.glDisableVertexAttribArray(0);\n\t\tGL30.glBindVertexArray(0);\n\t\tshader.stop();\n\t\tmodel.cleanUp();\n\n\t}", "public void renderText(float x ,float y ){\n ttf.drawString(x, y, text);\n }", "public static void drawLString(String l) {\n\t\tdouble move = computeScale(l);\n\n\t\tdouble xpos = 0.5;\n\t\tdouble ypos = 0.5;\n\t\tdouble xdir = 1*move;\n\t\tdouble ydir = 0*move;\n\n\t\tfor (int i = 0; i < l.length(); i++) {\n\t\t\tif (l.charAt(i) == 'F' || l.charAt(i) == 'H') {\n\n\t\t\t\tStdDraw.line(xpos, ypos, xpos+xdir, ypos+ydir);\n\t\t\t\txpos = xpos+xdir;\n\t\t\t\typos = ypos+ydir;\n\t\t\t}\n\t\t\tif (l.charAt(i) == '+') {\n\t\t\t\tdouble temp = 0;\n\t\t\t\ttemp = xdir;\n\t\t\t\txdir = ydir;\n\t\t\t\tydir = -temp;\n\n\t\t\t}\n\t\t\tif (l.charAt(i) == '-') {\n\t\t\t\tdouble temp = 0;\n\t\t\t\ttemp = xdir;\n\t\t\t\txdir = -ydir;\n\t\t\t\tydir = temp;\n\n\t\t\t}\n\t\t}\n\t}", "private void drawString(final Graphics2D gfx, final List<String> lines) {\n for (int offset = 0; offset < lines.size(); ++offset) {\n gfx.setPaint(Color.BLACK);\n gfx.drawString(\n lines.get(offset),\n 0, gfx.getFontMetrics().getHeight() * (offset + 1)\n );\n }\n }", "private void drawTextDirect(Canvas canvas, float offsetX, int color, int startLine){\n mPaint.setColor(color);\n mPaint.setTypeface(mTypefaceText);\n int last = getLastVisibleLine();\n for(int i = startLine;i <= last;i++){\n if(mText.getColumnCount(i) == 0){\n continue;\n }\n prepareLine(i);\n drawText(canvas, mChars, 0, mText.getColumnCount(i), offsetX, getLineBaseLine(i) - getOffsetY());\n float width = measureText(mChars,0,mText.getColumnCount(i)) + offsetX;\n if(width > mMaxPaintX) {\n mMaxPaintX = width;\n }\n }\n }", "public static void renderLine(double startx , double starty , double endx , double endy) {\n\t\t//Find out what rendering mode to use\n\t\tif (! Settings.Android && Settings.Video.OpenGL)\n\t\t\t//Render a line using OpenGL\n\t\t\tBasicRendererOpenGL.renderLine(startx , starty , endx , endy);\n\t\telse if (! Settings.Android && ! Settings.Video.OpenGL)\n\t\t\t//Render a line using Java\n\t\t\tBasicRendererJava.renderLine(startx , starty , endx , endy);\n\t\telse if (Settings.Android && ! Settings.Video.OpenGL)\n\t\t\t//Render a line using Android\n\t\t\tBasicRendererAndroid.renderLine(startx , starty , endx , endy);\n\t}", "void render() {\n\t\tif (!dragLock)\n\t\t\tfucusLocks();\n\n\t\t// display help information\n\t\tString selected = isSelected ? \" [selected]\" : \"\";\n\t\tmyParent.text(id + selected, anchor.x + 10, anchor.y);\n\n\t\t// display points and lines with their colourings\n\t\tfor (int i = 0; i < amount; i++) {\n\n\t\t\tpoint[i].render();\n\n\t\t\tif (state == State.DRAG_AREA)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\n\t\t\tline[i].draw();\n\n\t\t}\n\n\t\t// display rotation ellipse in anchor position\n\t\tif (state == State.ROTATE && isSelected) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.ellipse(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display drag area rectangle in anchor position\n\t\tif (state == State.DRAG_AREA) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.rect(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display anchor point\n\t\tmyParent.rect(anchor.x, anchor.y, 5, 5);\n\n\t\t// display line centres\n\t\tmyParent.noFill();\n\t\tmyParent.stroke(150);\n\t\tmyParent.rectMode(PConstants.CENTER);\n\t\tmyParent.rect(X.x, X.y, 5, 5);\n\t\tmyParent.rect(Y.x, Y.y, 5, 5);\n\t\tmyParent.rect(Z.x, Z.y, 5, 5);\n\t\tmyParent.rect(Q.x, Q.y, 5, 5);\n\t}", "public void drawOneLine(float x1, float y1,float x2,float y2){\n \tGL11.glBegin(GL11.GL_LINES);\n \tGL11.glVertex2f(x1,y1);\n \tGL11.glVertex2f(x2,y2);\n \tGL11.glEnd();\n }", "public void Render(){\n //player rect\n glPushMatrix();\n glTranslatef(px, py, 0.0f);\n glBegin(GL_TRIANGLES);\n glColor3f(1.0f, 1.0f, 1.0f);\n glVertex2f(-sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, sy);\n glVertex2f(sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, -sy);\n glEnd();\n glPopMatrix();\n \n if(debug){\n glPushMatrix();\n glBegin(GL_LINES);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py+sy/2);\n glVertex2f(px+sx, py+sy/2);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py-sy/2);\n glVertex2f(px+sx, py-sy/2);\n glEnd();\n glPopMatrix();\n }\n \n }", "@Override\n public void drawLine(String id, Location start, Location end, double weight, Color color, boolean screenCoords) {\n drawLine(id, start, end, weight, color, false, screenCoords);\n }", "private void drawText(GL gl, GLUT glut, double t)\n {\n\tString message;\n\tDecimalFormat twodigit = new DecimalFormat(\"00\");\n\n\t// Put orthographic matrix on projection stack\n\tgl.glMatrixMode(GL.GL_PROJECTION);\n\tgl.glPushMatrix();\n\tgl.glLoadIdentity();\n\tgl.glOrtho(0, 1, 0, 1, -1, 1);\n\tgl.glMatrixMode(GL.GL_MODELVIEW);\n\n\t// Form text\n\tmessage = new String((int)t/60 + \":\" + \n\t\t\t twodigit.format((int)t % 60) + \".\" +\n\t\t\t twodigit.format((int)(100 * (t - (int)t))));\n\n\t// Add on frame rate to message if it has a valid value\n\tdouble fps = computeFPS(t);\n\tif (fps != 0) {\n\t DecimalFormat fpsFormat = new DecimalFormat(\"0.0\");\n\n\t message = message + \" (\" + fpsFormat.format(fps) + \" fps)\";\n\n fpsFormat = null;\n\t}\n\n\tgl.glDisable(GL.GL_LIGHTING);\n\tgl.glDisable(GL.GL_DEPTH_TEST);\n\n\tgl.glPushMatrix();\n\tgl.glLoadIdentity();\n\n\t// Draw text \n\tgl.glColor3d(0.8, 0.2, 0.2);\n\tgl.glRasterPos2d(0.01, 0.01);\n glut.glutBitmapString(glut.BITMAP_HELVETICA_18, message);\n message = null;\n\n\t// Draw bug cam label \n\tif (drawBugView.value) {\n\t message = new String(\"BUG CAM\");\n\t gl.glRasterPos2d(0.45, 0.01);\n \t gl.glColor3d(1.0, 1.0, 1.0);\n glut.glutBitmapString(glut.BITMAP_HELVETICA_18, message);\n message = null;\n\t}\n\t\n\tglut.glutBitmapString(glut.BITMAP_HELVETICA_10, new String(goal.toString()));\n\tmessage = new String(Double.toString(mainBug.dist));\n\tglut.glutBitmapString(glut.BITMAP_HELVETICA_10, message);\n\n\tgl.glPopMatrix();\n\n\tgl.glEnable(GL.GL_DEPTH_TEST);\n\n\t// Put back original viewing matrix\n\tgl.glMatrixMode(GL.GL_PROJECTION);\n\tgl.glPopMatrix();\n\tgl.glMatrixMode(GL.GL_MODELVIEW);\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, float alignWidth, HAlignment alignment, GameContainer c,\n\t\t\tStyledText style);", "private void drawPosition(Position pos, TextColor color, char c, boolean wide) {\n TextGraphics text = screen.newTextGraphics();\n text.setForegroundColor(color);\n text.putString(pos.getX() * 2, pos.getY() + 1, String.valueOf(c));\n\n if (wide) {\n text.putString(pos.getX() * 2 + 1, pos.getY() + 1, String.valueOf(c));\n }\n }", "void RenderString(GameContainer gameContainer, Graphics graphics)\r\n\t{\n\t\t\r\n\t}", "public void draw(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "@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 final void drawHoveringText(Minecraft mc, List<String> textLines, int x, int y)\n\t{\n\t\tif (!textLines.isEmpty())\n\t\t{\n\t\t\tGlStateManager.disableRescaleNormal();\n\t\t\tGlStateManager.disableDepth();\n\t\t\tint i = 0;\n\n\t\t\tfor (String s : textLines)\n\t\t\t{\n\t\t\t\tint j = mc.fontRendererObj.getStringWidth(s);\n\n\t\t\t\tif (j > i)\n\t\t\t\t{\n\t\t\t\t\ti = j;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint l1 = x + 12;\n\t\t\tint i2 = y - 12;\n\t\t\tint k = 8;\n\n\t\t\tif (textLines.size() > 1)\n\t\t\t{\n\t\t\t\tk += 2 + (textLines.size() - 1) * 10;\n\t\t\t}\n\n\t\t\tif (l1 + i > guiScreenParent.width)\n\t\t\t{\n\t\t\t\tl1 -= 28 + i;\n\t\t\t}\n\n\t\t\tif (i2 + k + 6 > guiScreenParent.height)\n\t\t\t{\n\t\t\t\ti2 = guiScreenParent.height - k - 6;\n\t\t\t}\n\n\t\t\tthis.zLevel = 300.0F;\n\t\t\tint l = -267386864;\n\t\t\tthis.drawGradientRect(l1 - 3, i2 - 4, l1 + i + 3, i2 - 3, -267386864, -267386864);\n\t\t\tthis.drawGradientRect(l1 - 3, i2 + k + 3, l1 + i + 3, i2 + k + 4, -267386864, -267386864);\n\t\t\tthis.drawGradientRect(l1 - 3, i2 - 3, l1 + i + 3, i2 + k + 3, -267386864, -267386864);\n\t\t\tthis.drawGradientRect(l1 - 4, i2 - 3, l1 - 3, i2 + k + 3, -267386864, -267386864);\n\t\t\tthis.drawGradientRect(l1 + i + 3, i2 - 3, l1 + i + 4, i2 + k + 3, -267386864, -267386864);\n\t\t\tint i1 = 1347420415;\n\t\t\tint j1 = 1344798847;\n\t\t\tthis.drawGradientRect(l1 - 3, i2 - 3 + 1, l1 - 3 + 1, i2 + k + 3 - 1, 1347420415, 1344798847);\n\t\t\tthis.drawGradientRect(l1 + i + 2, i2 - 3 + 1, l1 + i + 3, i2 + k + 3 - 1, 1347420415, 1344798847);\n\t\t\tthis.drawGradientRect(l1 - 3, i2 - 3, l1 + i + 3, i2 - 3 + 1, 1347420415, 1347420415);\n\t\t\tthis.drawGradientRect(l1 - 3, i2 + k + 2, l1 + i + 3, i2 + k + 3, 1344798847, 1344798847);\n\n\t\t\tfor (int k1 = 0; k1 < textLines.size(); ++k1)\n\t\t\t{\n\t\t\t\tString s1 = textLines.get(k1);\n\t\t\t\tmc.fontRendererObj.drawStringWithShadow(s1, (float)l1, (float)i2, -1);\n\n\t\t\t\tif (k1 == 0)\n\t\t\t\t{\n\t\t\t\t\ti2 += 2;\n\t\t\t\t}\n\n\t\t\t\ti2 += 10;\n\t\t\t}\n\n\t\t\tthis.zLevel = 0.0F;\n\t\t\tGlStateManager.enableDepth();\n\t\t\tGlStateManager.enableRescaleNormal();\n\t\t}\n\t}", "public static void writeLine(Model model, int x1, int y1, int x2, int y2, char colour) {\n int xLength = model.getWidth();\n int yLength = model.getHeight();\n\n if (x1 > xLength || x2 > xLength || y1 > yLength || y2 > yLength) {\n System.out.println(String.format(\"Couldn't create line inside current simpleCanvas width: %d, height: %d\", xLength, yLength));\n return;\n }\n\n // Simple optimization if the line are orthogonal x or y.\n if (x1 == x2 || y1 == y2) {\n for (int i = Math.min(x1, x2); i <= Math.max(x1, x2); i++)\n for (int j = Math.min(y1, y2); j <= Math.max(y1, y2); j++)\n model.set(i, j, colour);\n } else {\n // try to draw line from left to write\n // To do this we should find min x coordinate\n int startx, starty, endx, endy;\n if (x1 < x2) {\n startx = x1;\n starty = y1;\n endx = x2;\n endy = y2;\n } else {\n startx = x2;\n starty = y2;\n endx = x1;\n endy = y1;\n }\n\n model.set(startx, starty, colour);\n model.set(endx, endy, colour);\n\n if (y1 < y2) {\n // Find line equation of the line\n // (y - y1)/(y2-y1) = (x - x1)/(x2 - x1)\n // y - y1 = (x - x1)(y2-y1)/(x2 - x1)\n // y = y1 + (x - x1)(y2-y1)/(x2 - x1)\n int newX = startx;\n int newY = starty;\n while (newX < endx && newY <= endy) {\n //TODO optimize coefficient\n double newYcompare = findY(newX + 1, startx, starty, endx, endy);\n\n if (newYcompare == newY + 1) {\n newY++;\n newX++;\n model.set(newX, newY, colour);\n model.set(newX, newY - 1, colour);\n } else if (newYcompare < newY + 1) {\n newX++;\n model.set(newX, newY, colour);\n } else {\n newY++;\n model.set(newX, newY, colour);\n }\n }\n } else {\n // Find line equation of the line\n // (x - x1)/(x2 - x1) = (y - y1)/(y2-y1)\n // (x - x1) = (y - y1)(x2 - x1)/(y2-y1)\n // x = x1 + (y - y1)(x2 - x1)/(y2-y1)\n int newX = startx;\n int newY = starty;\n while (newX <= endx && newY > endy) {\n //TODO optimize coefficient\n double newXcompare = findX(newY - 1, startx, starty, endx, endy);\n\n if (newXcompare == newX + 1) {\n newY--;\n newX++;\n model.set(newX, newY, colour);\n // array[newX - 2][newY - 1] = colour;\n model.set(newX, newY + 1, colour);\n } else if (newXcompare < newX + 1) {\n newY--;\n model.set(newX, newY, colour);\n } else {\n newX++;\n model.set(newX, newY, colour);\n }\n }\n }\n }\n }", "@Override\n public void drawString(String str, int x, int y) {\n graphics.drawString(str, x, y - descent);\n if (bold) {\n graphics.drawString(str, x + 1, y - descent);\n }\n\n if (underline) {\n graphics.drawLine(x, y - 1, x + str.length() * char_width, y - 1);\n }\n\n }", "public void drawLine(int x, int y, int x2, int y2, int color);", "void renderString(Graphics2D graphic, double x, double y, double dx, double dy, GlyphVector gv,\n Feature feature, Fill fill, double rotation) {\n AffineTransform temp = graphic.getTransform();\n AffineTransform labelAT = new AffineTransform();\n \n Point2D mapCentre = new java.awt.geom.Point2D.Double(x, y);\n Point2D graphicCentre = new java.awt.geom.Point2D.Double();\n temp.transform(mapCentre, graphicCentre);\n labelAT.translate(graphicCentre.getX(), graphicCentre.getY());\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"rotation \" + rotation);\n }\n \n double shearY = temp.getShearY();\n double scaleY = temp.getScaleY();\n double scaleX = temp.getScaleX();\n double originalRotation = Math.atan(shearY / scaleY);\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"originalRotation \" + originalRotation);\n }\n \n labelAT.rotate(rotation - originalRotation);\n \n double xToyRatio = Math.abs(scaleX / scaleY);\n labelAT.scale(xToyRatio, 1.0 / xToyRatio);\n graphic.setTransform(labelAT);\n \n applyFill(graphic, fill, feature);\n \n // we move this to the centre of the image.\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"about to draw at \" + x + \",\" + y + \" with the start of the string at \"\n + (x + dx) + \",\" + (y + dy));\n }\n \n graphic.drawGlyphVector(gv, (float) dx, (float) dy);\n // tl.draw(graphic, (float) dx, (float) dy);\n \n //graphics.drawString(label,(float)x,(float)y);\n resetFill(graphic);\n graphic.setTransform(temp);\n \n return;\n }", "public void drawWrapped(String str, double x, double y, double size, int color, double limit) {\n double scale = size / mcFont().FONT_HEIGHT;\n FontRenderer font = mcFont();\n List<String> list = split(str, limit * font.FONT_HEIGHT / size);\n //System.out.println(\"---{\" + list.size());\n for(String s : list) {\n //System.out.println(str);\n draw(s, x, y, size, color);\n y += size;\n } \n //System.out.println(\"---}\");\n }", "public static void text(TextRenderer tr, Viewport vp, String text, int x, int y)\n\t{\n\t\tString[] lines = text.split(\"\\n\");\n\n\t\ttr.beginRendering(vp.getW(), vp.getH());\n\t\t// for (int i = 0; i < lines.length; i++)\n\t\t// tr.draw(lines[i], x - 1, y - tr.getFont().getSize() * i - 1);\n\t\tfor (int i = 0; i < lines.length; i++)\n\t\t\ttr.draw(lines[i], x, y - tr.getFont().getSize() * i);\n\t\ttr.endRendering();\n\t}", "void drawOutput(String output);", "public static void drawText(String text, double[] color, double rasterPosX, double rasterPosY) {\n gl.glColor3d(color[0], color[1], color[2]);\n gl.glRasterPos2d(rasterPosX, rasterPosY);\n glut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, text);\n }", "public void drawString(String s, float x, float y)\r\n\t{\r\n\t\tdrawText(_g2.getFont(), s, (int) x, (int) y);\r\n\t}", "private void renderTypeString() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(Color.BLACK);\n StdDraw.setPenColor(Color.WHITE);\n StdDraw.enableDoubleBuffering();\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2, \"Typed the seed and end with letter S\");\n StdDraw.show();\n }", "public static void drawLine(IRenderTypeBuffer bufferIn, MatrixStack stack, Vector3d vec, int argb) {\n DrawHelper.drawLine(bufferIn.getBuffer(RenderType.lines()), stack, (float) vec.x(), (float) vec.y(), (float) vec.z(), (float) vec.x(), (float) vec.y() + 16, (float) vec.z(), argb);\n }", "public void renderText(String text, int x, int y, int color, float scale)\n {\n renderText(text, x, y, color, scale, 1.0f);\n }", "public GLGraphics drawText(String text, float x, float y, float w, float h) {\n\t\treturn drawText(text, x, y, w, h, VAlign.LEFT);\n\t}", "public static void drawLine(IRenderTypeBuffer bufferIn, MatrixStack stack, Vector3f vec, int argb) {\n DrawHelper.drawLine(bufferIn.getBuffer(RenderType.lines()), stack, vec.x(), vec.y(), vec.z(), vec.x(), vec.y() + 16, vec.z(), argb);\n }", "public void renderSelectedRegion() {\n textBuffer.renderInit();\n renderFlag = 2;\n Text text;\n root.getChildren().removeAll(renderPieces);\n renderPieces.clear();\n if (!reversed) {\n while ((text = textBuffer.getTextToRender()) != null) {\n addRenderPieces(text);\n }\n } else {\n while ((text = textBuffer.getPreToRender()) != null) {\n addRenderPieces(text);\n }\n }\n\n }", "private void drawLine(Vector3 point1, Vector3 point2, Node n) {\n\n Node nodeForLine= new Node();\n nodeForLine.setName(LINE_STRING);\n //First, find the vector extending between the two points and define a look rotation\n //in terms of this Vector.\n final Vector3 difference = Vector3.subtract(point1, point2);\n final Vector3 directionFromTopToBottom = difference.normalized();\n final Quaternion rotationFromAToB =\n Quaternion.lookRotation(directionFromTopToBottom, Vector3.up());\n MaterialFactory.makeTransparentWithColor(getApplicationContext(), new Color(this.colorLine.x, this.colorLine.y, this.colorLine.z,this.alphaColor))\n .thenAccept(\n material -> {\n /* Then, create a rectangular prism, using ShapeFactory.makeCube() and use the difference vector\n to extend to the necessary length. */\n ModelRenderable model = ShapeFactory.makeCube(\n new Vector3(this.sizeLine, this.sizeLine, difference.length()),\n Vector3.zero(), material);\n /* Last, set the world rotation of the node to the rotation calculated earlier and set the world position to\n the midpoint between the given points . */\n\n nodeForLine.setParent(n);\n\n\n nodeForLine.setRenderable(model);\n nodeForLine.setWorldPosition(Vector3.add(point1, point2).scaled(.5f));\n nodeForLine.setWorldRotation(rotationFromAToB);\n }\n );\n\n }", "@Override\n public void onDrawFrame(GL10 glUnused) {\n // Clear the rendering surface.\n glClear(GL_COLOR_BUFFER_BIT);\n\n\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_LINES, 0, 108);\n\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_LINES, 108, 40);\n\t\t\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 0.0f, 0.0f);\n\t\tglDrawArrays(GL_TRIANGLES, 148, 988);\n\t\t\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_TRIANGLES, 988, 997);\n\t\t\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_TRIANGLES, 997, 6);\n\t\n\t\tglUniform4f(uColorLocation, 0.0f, 0.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_TRIANGLES, 1003, 6);\n\t\t\n\t\tglUniform4f(uColorLocation, 0.5f, 0.5f, 0.5f, 0.5f);\n\t\tglDrawArrays(GL_TRIANGLES, 1009, 9);\n }", "private void lineColor() {\n\n\t}", "protected void drawHoveringText( List<String> descriptionLines, int posX, int posY, FontRenderer fontrenderer )\n\t{\n\t\tif( !descriptionLines.isEmpty() )\n\t\t{\n\t\t\tGL11.glDisable( GL_RESCALE_NORMAL );\n\n\t\t\tGL11.glDisable( GL11.GL_LIGHTING );\n\n\t\t\tGL11.glDisable( GL11.GL_DEPTH_TEST );\n\n\t\t\tint maxStringLength = 0;\n\n\t\t\tfor( String string : descriptionLines )\n\t\t\t{\n\n\t\t\t\tint stringLen = fontrenderer.getStringWidth( string );\n\n\t\t\t\tif( stringLen > maxStringLength )\n\t\t\t\t{\n\t\t\t\t\tmaxStringLength = stringLen;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint offsetX = posX + 12;\n\n\t\t\tint offsetY = posY - 12;\n\n\t\t\tint tooltipHeight = 8;\n\n\t\t\tif( descriptionLines.size() > 1 )\n\t\t\t{\n\t\t\t\ttooltipHeight += 2 + ( ( descriptionLines.size() - 1 ) * 10 );\n\t\t\t}\n\n\t\t\tthis.zLevel = 300.0F;\n\n\t\t\tint drawColor = 0xF0100010;\n\t\t\tthis.drawGradientRect( offsetX - 3, offsetY - 4, offsetX + maxStringLength + 3, offsetY - 3, drawColor, drawColor );\n\t\t\tthis.drawGradientRect( offsetX - 3, offsetY + tooltipHeight + 3, offsetX + maxStringLength + 3, offsetY + tooltipHeight + 4, drawColor,\n\t\t\t\tdrawColor );\n\t\t\tthis.drawGradientRect( offsetX - 3, offsetY - 3, offsetX + maxStringLength + 3, offsetY + tooltipHeight + 3, drawColor, drawColor );\n\t\t\tthis.drawGradientRect( offsetX - 4, offsetY - 3, offsetX - 3, offsetY + tooltipHeight + 3, drawColor, drawColor );\n\t\t\tthis.drawGradientRect( offsetX + maxStringLength + 3, offsetY - 3, offsetX + maxStringLength + 4, offsetY + tooltipHeight + 3, drawColor,\n\t\t\t\tdrawColor );\n\n\t\t\tdrawColor = 0x505000FF;\n\t\t\tint fadeColor = ( ( drawColor & 0xFEFEFE ) >> 1 ) | ( drawColor & 0xFF000000 );\n\t\t\tthis.drawGradientRect( offsetX - 3, ( offsetY - 3 ) + 1, ( offsetX - 3 ) + 1, ( offsetY + tooltipHeight + 3 ) - 1, drawColor, fadeColor );\n\t\t\tthis.drawGradientRect( offsetX + maxStringLength + 2, ( offsetY - 3 ) + 1, offsetX + maxStringLength + 3,\n\t\t\t\t( offsetY + tooltipHeight + 3 ) - 1, drawColor, fadeColor );\n\t\t\tthis.drawGradientRect( offsetX - 3, offsetY - 3, offsetX + maxStringLength + 3, ( offsetY - 3 ) + 1, drawColor, drawColor );\n\t\t\tthis.drawGradientRect( offsetX - 3, offsetY + tooltipHeight + 2, offsetX + maxStringLength + 3, offsetY + tooltipHeight + 3, fadeColor,\n\t\t\t\tfadeColor );\n\n\t\t\tfor( int descriptionIndex = 0; descriptionIndex < descriptionLines.size(); descriptionIndex++ )\n\t\t\t{\n\t\t\t\tString s1 = descriptionLines.get( descriptionIndex );\n\t\t\t\tfontrenderer.drawStringWithShadow( s1, offsetX, offsetY, -1 );\n\t\t\t\tif( descriptionIndex == 0 )\n\t\t\t\t{\n\t\t\t\t\toffsetY += 2;\n\t\t\t\t}\n\t\t\t\toffsetY += 10;\n\t\t\t}\n\t\t\tthis.zLevel = 0.0F;\n\n\t\t\tGL11.glEnable( GL11.GL_LIGHTING );\n\n\t\t\tGL11.glEnable( GL11.GL_DEPTH_TEST );\n\n\t\t\tGL11.glEnable( GL_RESCALE_NORMAL );\n\t\t}\n\t}", "public static void drawLine(IRenderTypeBuffer bufferIn, MatrixStack stack, Vector3i vec, int argb) {\n DrawHelper.drawLine(bufferIn.getBuffer(RenderType.lines()), stack, vec.getX(), vec.getY(), vec.getZ(), vec.getX(), vec.getY() + 16, vec.getZ(), argb);\n }", "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "private void renderText(CharSequence source) {\n \n }", "private void drawString( Graphics2D g2, String str, Point2D.Double p, Color colour )\r\n {\r\n double x = translateX( p.getX() );\r\n double y = translateY( p.getY() );\r\n \r\n Font f = g2.getFont().deriveFont( FONT_SIZE );\r\n g2.setFont( f );\r\n \r\n g2.setColor( colour );\r\n g2.drawString( str, (float)x, (float)y );\r\n }", "@Override\n\tpublic void draw3dText(Vector3f location, String textString) {\n\n\t}", "public void SRU() {\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glLineWidth(1.0f);\n\t\tgl.glBegin( GL.GL_LINES );\n\t\t\tgl.glVertex2f( -200.0f, 0.0f );\n\t\t\tgl.glVertex2f( 200.0f, 0.0f );\n\t\t\tgl.glEnd();\n\t\t// eixo y\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glBegin( GL.GL_LINES);\n\t\t\tgl.glVertex2f( 0.0f, -200.0f);\n\t\t\tgl.glVertex2f( 0.0f, 200.0f );\n\t\tgl.glEnd();\n\t}", "void glShaderSource(int shader, String string);", "public void drawString(String str, int x, int y)\r\n\t{\r\n\t\tdrawText(_g2.getFont(), str, x, y);\r\n\t}", "public void renderPart(String part, PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {\n }", "private void drawTextMarker(Graphics g, String message, int yLine) {\n\t\tint xCenter = getGameWidthPixels() / 2;\n\t\tVector2DLong position0Inverted = new Vector2DLong(xCenter, yLine),\n\t\t\t\tposition1NonInverted = new Vector2DLong(xCenter, getGameHeightPhysics() - yLine);\n\t\tdrawScoreMarker(g, new ScoreMarker(message, position0Inverted, null, true));\n\t\tdrawScoreMarker(g, new ScoreMarker(message, position1NonInverted, null, false));\n\t}", "public void update() {\n textBuffer.resetLineInfo();\n textBuffer.resetTraversalMan();\n x_pos = X_INIT;\n y_pos = 0;\n queue = new LinkedList<>();\n auxQueue = new LinkedList<>();\n cursorPos = null;\n\n renderFlag = Math.max(renderFlag-1, -1);\n if (renderFlag == 0) {\n root.getChildren().removeAll(renderPieces);\n renderPieces.clear();\n }\n\n Text text;\n while ((text = textBuffer.advance()) != null) {\n if (textBuffer.isCurrentPos()) {\n cursorPos = text;\n }\n if (x_pos == X_INIT) {\n textBuffer.putLineNo_StartNode_mapping(textBuffer.getCurrentNode());\n }\n if (text.getText().equals(\"\\n\")) {\n if (cursorPos == text) {\n cursor.setX(X_INIT);\n cursor.setY((textBuffer.getMaxLine() - 1) * lineHeight);\n }\n\n x_pos = X_INIT;\n y_pos += lineHeight;\n queue.clear();\n auxQueue.clear();\n } else if (text.getText().equals(\" \")) {\n queue.clear();\n auxQueue.clear();\n setText(text, x_pos, y_pos);\n x_pos += round(text.getLayoutBounds().getWidth());\n\n if (cursorPos == text) {\n if (x_pos > span) {\n cursor.setX(span);\n cursor.setY(y_pos);\n } else {\n cursor.setX(x_pos+1);\n cursor.setY(y_pos);\n }\n }\n } else {\n queue.addLast(text);\n auxQueue.addLast(textBuffer.getCurrentNode());\n setText(text, x_pos, y_pos);\n x_pos += round(text.getLayoutBounds().getWidth());\n if (x_pos > span) {\n if (round(queue.getFirst().getX()) == X_INIT) {\n text = queue.getLast();\n queue.clear();\n queue.addLast(text);\n textBuffer.putLineNo_StartNode_mapping(textBuffer.getCurrentNode());\n x_pos = X_INIT;\n y_pos += lineHeight;\n setText(text, x_pos, y_pos);\n x_pos += round(text.getLayoutBounds().getWidth());\n } else {\n x_pos = X_INIT;\n y_pos += lineHeight;\n for (Text t : queue) {\n setText(t, x_pos, y_pos);\n x_pos += round(t.getLayoutBounds().getWidth());\n }\n textBuffer.putLineNo_StartNode_mapping(auxQueue.getFirst());\n auxQueue.clear();\n }\n }\n }\n }\n\n if (cursorPos == null) {\n cursor.setX(X_INIT);\n cursor.setY(0);\n }\n\n updateScrollBarSize();\n updateRootPos();\n }", "public final void render(Surface surface, Shape clip, AffineTransform tx, CharSequence str,\n final int x, final int y, Color color) {\n if (str == null || str.length() == 0)\n return;\n\n int charsCount = str.length();\n\n if ((bdfFont != null) && (charsCount > 0)) {\n int offset = 0;\n final int bdfFontDepth = bdfFont.getDepth();\n\n float f_max = (1 << bdfFontDepth) - 1;\n if (f_max == 0) f_max = 1;\n\n BDFParser.Rectangle glyph_box = new BDFParser.Rectangle();\n final Point2D src = new Point2D.Double();\n final Point2D dst = new Point2D.Double();\n\n int x_min = Integer.MAX_VALUE;\n int y_min = Integer.MAX_VALUE;\n int x_max = Integer.MIN_VALUE;\n int y_max = Integer.MIN_VALUE;\n\n for (int i = 0; i < charsCount; i++) {\n BDFGlyph glyph = bdfFont.getGlyph(str.charAt(i));\n if (glyph == null) {\n continue;\n }\n\n glyph_box = glyph.getBbx(glyph_box);\n\n final int fHeight = glyph_box.height;\n final int[] fData = glyph.getData();\n final int scan = fData.length / fHeight;\n\n int fg_r = color.getRed();\n int fg_g = color.getGreen();\n int fg_b = color.getBlue();\n\n //box location\n final int bx = x + offset + glyph_box.x;\n final int by = y - fHeight - glyph_box.y;\n\n for (int k = 0; k < fHeight; k++) {\n final int offsetLine = k * scan;\n for (int j = 0; j < scan; j++) {\n int fPixel = fData[offsetLine + j];\n if (fPixel != 0) {\n\n //pixel location\n int px = bx + j;\n int py = by + k;\n\n if (tx != null) {\n src.setLocation(px, py);\n tx.transform(src, dst);\n px = (int) dst.getX();\n py = (int) dst.getY();\n }\n\n //clip\n if (clip == null || clip.contains(px, py)) {\n //compute color\n int bg_color = surface.getRGBPixel(px, py);\n\n int bg_r = (bg_color & 0x00FF0000) >> 16;\n int bg_g = (bg_color & 0x0000FF00) >> 8;\n int bg_b = (bg_color & 0x000000FF);\n\n //todo improve this pixel composition\n\n float alpha = fPixel / f_max;\n\n int r = bg_r + ((int) ((fg_r - bg_r) * alpha)) & 0xFF;\n int g = bg_g + ((int) ((fg_g - bg_g) * alpha)) & 0xFF;\n int b = bg_b + ((int) ((fg_b - bg_b) * alpha)) & 0xFF;\n\n fPixel = (((r << 16) + (g << 8) + b) | 0xFF000000);\n\n surface.setRGBPixel(px, py, fPixel);\n\n if (x_min > px) x_min = px;\n if (y_min > py) y_min = py;\n if (x_max < px) x_max = px;\n if (y_max < py) y_max = py;\n }\n }\n }\n }\n offset += glyph.getDWidth().width;\n }\n if (x_min < Integer.MAX_VALUE && y_min < Integer.MAX_VALUE &&\n x_max > Integer.MIN_VALUE && y_max > Integer.MIN_VALUE)\n surface.update(x_min, y_min, x_max - x_min + 1, y_max - y_min + 1);\n }\n }", "public String toString(){\n return (\"TextShape \"+x+\" \"+y+\" \"+col.getRed()+\" \"+col.getGreen()+\" \"+col.getBlue()+\" \"+str);\n }", "public abstract void render(GL2 gl);", "private void addText(Graphics g, Font font, Color frontColor, Rectangle rectangle, Color backColor, String str, int xPos, int yPos) {\n g.setFont(font);\n g.setColor(frontColor);\n if (rectangle != null) {\n g.drawRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n }\n g.setColor(backColor);\n if (rectangle != null) {\n g.fillRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n }\n g.setColor(frontColor);\n g.drawString(str, xPos, yPos);\n }", "@Override\n\tpublic void drawSelf(GL2 gl) {\n\t\tgl.glColor4d(lineColor[0], lineColor[1], lineColor[2], lineColor[3]);\n\t\tgl.glPointSize((float)dotSize);\n\n\t\tgl.glBegin(GL2.GL_POINTS);\n\n\t\tfor (int i = 0; i < explosionPoints; ++i) {\n\t\t\tgl.glVertex2d(Math.sin(i * 2 * Math.PI / explosionPoints) * explosionCurrentSize, Math.cos(i * 2 * Math.PI / explosionPoints) * explosionCurrentSize);\n\t\t}\n\n\t\tgl.glEnd();\n\t}", "public String getLine() {\n \treturn this.lineColor;\n }", "@Override\n\tpublic void render(Canvas c) {\n\t\tc.drawText(text,(float)x+width,(float)y+height , paint);\n\t\t\n\t}", "private void changeTextstr(int currentPoints){\n\n\n switch(currentPoints){\n case 1:\n str.setText(\" very weak\");\n str.setTextColor(Color.RED);\n break;\n case 2:\n str.setText(\" weak\");\n str.setTextColor(Color.parseColor(\"#FF6600\"));\n break;\n case 3:\n str.setText(\" fair\");\n str.setTextColor(Color.parseColor(\"#FFFF66\"));\n break;\n case 4:\n str.setText(\" strong\");\n str.setTextColor(Color.GREEN);\n break;\n case 5:\n str.setText(\" very strong\");\n str.setTextColor(Color.parseColor(\"#2C6700\"));\n }\n\n\n }", "public void render() {\n float theta = velocity.heading2D() + radians(90);\n\n\n fill(255, 0, 0);\n stroke(255, 0, 0);\n strokeWeight(0.5f);\n pushMatrix();\n translate(position.x, position.y);\n rotate(theta);\n beginShape(QUAD);\n fill(255, 0, 0);\n vertex(r, -r*2);\n\n vertex(-r, -r*2);\n vertex(-r, r*2);\n vertex(r, r*2);\n\n endShape();\n beginShape(TRIANGLES);\n vertex(-r, -r*2);\n vertex(r, -r*2);\n vertex(0, -r*4);\n endShape();\n beginShape(TRIANGLES);\n vertex(-r, r*5);\n vertex(r, r*5);\n vertex(0, r*2);\n endShape();\n fill(0);\n stroke(255);\n fill(255);\n strokeWeight(1.7f*r);\n\n point(0, -r*2.5f);\n stroke(0);\n fill(0);\n strokeWeight(0.75f*r);\n point(0, -r*2.5f);\n\n\n popMatrix();\n textSize(6+(this.kidsHad/2));\n textMode(CENTER);\n stroke(0);\n text(\" g:\"+this.gen+\"/\"+kidsHad + \"/id: \" + (this.id+1), this.position.x, this.position.y);\n }", "void write(String str, int x, int y, int color) {\n this.lang.a(str, x, y, color);\n }", "private void renderSplitString(String text, int textX, int textY, int wrapWidth, int color) {\n drawNewString(color, false);\n \n for (String textLine : super.listFormattedStringToWidth(text, wrapWidth)) {\n renderStringAligned(textLine, textX, textY, wrapWidth, color);\n textY += super.FONT_HEIGHT;\n }\n }", "public void fillString(float x, float y, String text);", "@Override\n public void draw(GL2 gl) {\n gl.glPushMatrix();\n float[] translate = GLScene.P(translateX, translateY);\n gl.glTranslatef(translate[0], translate[1], translate[2]);\n gl.glScalef(scaleX, scaleY, scaleZ);\n gl.glRotated(rotation * 180 / Math.PI, 0, 0, 1);\n gl.glBegin(GL2.GL_LINE_STRIP);\n GLPanel.V(gl, controlPoints[1].x, controlPoints[1].y);\n GLPanel.V(gl, controlPoints[0].x, controlPoints[0].y);\n GLPanel.V(gl, controlPoints[2].x, controlPoints[2].y);\n gl.glEnd();\n gl.glPopMatrix();\n }", "@Override\n\tpublic void render(Canvas canvas) {\n\t\tPaint paint = new Paint();\n\t\tpaint.setColor(Color.parseColor(\"#D95B43\"));\n\t\tpaint.setTextSize(50 * Globals.scaleY);\n\t\tint width = (int)paint.measureText(this.toString(), 0, this.toString().length());\n\t\t\n\t\tthis.x = (int) ((gamePanel.width - width) / 2.0f);\n\t\t\n\t\tcanvas.drawText(this.toString(), x, y, paint);\n\t}", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "public void drawScreen(int par1, int par2, float par3)\n {\n\t\tGL11.glClearColor(0.1f, 0.1f, 0.1f, 1.0f);\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n Tessellator var4 = Tessellator.instance;\n short var5 = 274;\n int var6 = (int)((float)(this.width / 2 - var5 / 2) * 1.2f);\n byte var7 = 30;\n GL11.glBindTexture(GL11.GL_TEXTURE_2D, this.mc.renderEngine.getTexture(\"/title/emberlogo.png\"));\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n\t\tthis.drawTexturedModalRect(var6 + 0, var7 + 0, 0, 0, 155, 44);\n\t\tthis.drawTexturedModalRect(var6 + 155, var7 + 0, 0, 45, 155, 44);\n\n String emberTag = \"Ember 0.1.2\";\n String var9 = \"Minecraft 1.4.5\";\n\n this.drawString(this.fontRenderer, var9, 2, this.height - 10, 16777215);\n this.drawString(this.fontRenderer, emberTag, 2, this.height - 20, 16777215);\n String var10 = \"Minecraft is a copyright of Mojang AB.\";\n this.drawString(this.fontRenderer, var10, this.width - this.fontRenderer.getStringWidth(var10) - 2, this.height - 10, 16777215);\n super.drawScreen(par1, par2, par3);\n }", "public void renderLine (Graphics g)\r\n {\r\n if (glyph.getContourBox()\r\n .intersects(g.getClipBounds())) {\r\n getLine(); // To make sure the line has been computed\r\n\r\n Point start = glyph.getLag()\r\n .switchRef(\r\n new Point(\r\n getStart(),\r\n (int) Math.rint(line.yAt((double) getStart()))),\r\n null);\r\n Point stop = glyph.getLag()\r\n .switchRef(\r\n new Point(\r\n getStop() + 1,\r\n (int) Math.rint(line.yAt((double) getStop() + 1))),\r\n null);\r\n g.drawLine(start.x, start.y, stop.x, stop.y);\r\n }\r\n }", "public ChatWin(String recordTxt, final float pX, final float pY, final int lineNum, VertexBufferObjectManager vbo) {\n\n\tthis.vbo = vbo;\n\tthis.startXY = new PointF(pX + 5, pY);\n\tthis.recVal = Float.valueOf(recordTxt);\n\tthis.lineNum = lineNum;\n\tthis.curLastLine = lineNum - 1;\n\n\n\tif (this.recVal < 0) {\n\t this.recVal = 1000;\n\t recordTxt = \"----\";\n\t}\n\n\ttxtTitle = new Text(pX, pY, resourcesManager.font_pix_kir, context.getString(R.string.game_hud_per_progress), tOpt, vbo);\n\ttxtTitle.setPosition(this.startXY.x, pY - txtTitle.getHeight() * 0.4f);\n\ttxtTitle.setAnchorCenter(0, 0);\n\ttxtTitle.setColor(Color.WHITE);\n\ttxtTitle.setScale(0.45f);\n\n\ttxtRecord = new Text(pX, pY, resourcesManager.font_pix_kir, \"-0.1234567890\", tOpt, vbo);\n\ttxtRecord.setPosition(this.startXY.x, pY - (txtRecord.getHeight() * 0.4f + txtTitle.getHeight() * 0.5f));\n\ttxtRecord.setAnchorCenter(0, 0);\n\ttxtRecord.setText(recordTxt);\n\ttxtRecord.setColor(Color.CYAN);\n\ttxtRecord.setScale(0.5f);\n\t// txtTitle.setAnchorCenter(0, 0);\n\n\ttxtDivider = new Text(this.startXY.x + 3, pY - (2 * txtRecord.getHeight() * 0.4f + txtTitle.getHeight() * 0.4f), resourcesManager.font_pix_kir, \"<><><><><>\", tOpt, vbo);\n\ttxtDivider.setAnchorCenter(0, 0);\n\ttxtDivider.setColor(Color.YELLOW);\n\ttxtDivider.setScale(0.4f);\n\t// txtDivider.setAnchorCenter(0, 0);\n\n\tchatBg = new Sprite(pX, pY, resourcesManager.gameGraf.get(\"hud_element_chat_fon\"), vbo);\n\tchatBg.setScale(1f, 1f);\n\tchatBg.setPosition(pX + chatBg.getWidth() / 2, pY - chatBg.getHeight() / 2);\n\tthis.attachChild(chatBg);\n\n\tfor (int i = 2; i < this.lineNum + 2; i++) {\n\t txtLines.add(new Text(this.startXY.x, pY - i * txtRecord.getHeight() * 0.4f - 2 * txtTitle.getHeight() * 0.4f, resourcesManager.font_pix_kir, \"-0.1234567890\", tOpt,\n\t\t vbo));\n\t txtLines.get(i - 2).setText(\"----\");\n\t txtLines.get(i - 2).setAnchorCenter(0, 0);\n\t txtLines.get(i - 2).setColor(0.8f, 0.99f, 0.8f);\n\t txtLines.get(i - 2).setScale(0.4f);\n\t this.attachChild(txtLines.get(i - 2));\n\t}\n\n\tthis.attachChild(txtTitle);\n\tthis.attachChild(txtRecord);\n\tthis.attachChild(txtDivider);\n\n }", "public void drawLine(float[] line) {\n\t\tparent.line(line[0], line[1], line[2], line[3]);\n\t}", "void drawMessage(String message);", "public String toString() {\n\t\treturn \"LINE:(\"+startPoint.getX()+\"-\"+startPoint.getY() + \")->(\" + endPoint.getX()+\"-\"+endPoint.getY()+\")->\"+getColor().toString();\n\t}", "public void draw(GL10 gl) {\n }", "public void draw(GL3 gl, CoordFrame2D frame) {\n Point2DBuffer buffer = new Point2DBuffer(points);\n\n int[] names = new int[1];\n gl.glGenBuffers(1, names, 0);\n gl.glBindBuffer(GL.GL_ARRAY_BUFFER, names[0]);\n gl.glBufferData(GL.GL_ARRAY_BUFFER, points.size() * 2 * Float.BYTES,\n buffer.getBuffer(), GL.GL_STATIC_DRAW);\n\n gl.glVertexAttribPointer(Shader.POSITION, 2, GL.GL_FLOAT, false, 0, 0);\n Shader.setModelMatrix(gl, frame.getMatrix());\n gl.glDrawArrays(GL.GL_LINE_STRIP, 0, points.size());\n\n gl.glDeleteBuffers(1, names, 0);\n }", "private void drawLine(Vector2 vt1, Vector2 vt2, GLayerGroup pGroup){\n DrawLineLaser.DrawLine(vt1,vt2);\n\n }", "public abstract void render(GL2 gl, GLU glu);", "public static void addLine(String string, int line) {\r\n\t\tif(string.length() > lineLength)\r\n\t\t\tstring = string.substring(0, lineLength);\r\n\t\telse if(string.length() < lineLength)\r\n\t\t\tstring = string + repeatString(\" \", lineLength - string.length());\r\n\t\tLCD.drawString(string, 0, line);\r\n\t}" ]
[ "0.73543733", "0.6648435", "0.6637735", "0.654638", "0.6425287", "0.6332407", "0.6280929", "0.6243404", "0.6243179", "0.6233815", "0.62037915", "0.6195628", "0.61634594", "0.6103427", "0.6091761", "0.60828424", "0.60612047", "0.6044523", "0.6023056", "0.60192615", "0.60126036", "0.5998593", "0.5951021", "0.5949902", "0.58857745", "0.58593035", "0.58470607", "0.5824912", "0.58080095", "0.5797433", "0.57800984", "0.5772616", "0.57690394", "0.57556236", "0.571075", "0.5695833", "0.56818116", "0.5679555", "0.5650965", "0.56491214", "0.56461966", "0.5635044", "0.5622261", "0.5618555", "0.5615457", "0.56062317", "0.5593805", "0.5562877", "0.5561749", "0.55384314", "0.55276537", "0.5524033", "0.5515534", "0.5504694", "0.5504188", "0.5503564", "0.5492119", "0.5491683", "0.5490886", "0.5487369", "0.54863", "0.5485311", "0.5477634", "0.5475707", "0.54722863", "0.54703254", "0.5467049", "0.5451036", "0.5443553", "0.54396546", "0.54387563", "0.5436677", "0.54351324", "0.54225713", "0.5415281", "0.5412574", "0.5403229", "0.5399036", "0.5395492", "0.5394672", "0.53900766", "0.5385946", "0.53795475", "0.5376786", "0.53750205", "0.53696877", "0.53635883", "0.53604156", "0.53542477", "0.53542393", "0.5348364", "0.53476924", "0.5347081", "0.5341157", "0.53383505", "0.5336878", "0.5333164", "0.53302145", "0.53236115", "0.53206956", "0.53119606" ]
0.0
-1
Remove all newline characters from the end of the string
private String trimStringNewline(String text) { while (text.endsWith("\n")) { text = text.substring(0, text.length() - 1); } return text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String removeNewline(String content) {\n if (StringUtil.isNotEmpty(content)) {\n content = content.replaceAll(StringConstants.LF, EMPTY);\n content = content.replace(StringConstants.CR, EMPTY);\n return content;\n }\n return content;\n }", "public String removeLineBreak(String text){\n\t\ttext = text.replace(\"\\n\", \"\").replace(\"\\r\", \"\");\n\t\treturn text;\n\t}", "static void trimNL(String s) {\n StringBuilder sb = new StringBuilder(s);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr' || sb.charAt(sb.length() - 1) == '\\u005cn'))\n sb.deleteCharAt(sb.length() - 1);\n }", "public static String trimEndsOfLines(String s) {\n\t\tif (s == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn s.replaceAll(\"\\\\s+\\r?\\n\", \"\\n\");\n\t\t}\n\t}", "static void trimNL() {\n if(outputBuffer.length() > 0 && outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn')\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n if(outputBuffer.length() > 0 && outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr')\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }", "private static String normalizeLineEndings(String input) {\n return NON_UNIX_LINE_ENDING.matcher(input).replaceAll(\"\\n\");\n }", "public static String removeLineBreaks(String string)\n {\n String[] lines = string.split(\"\\r\\n|\\r|\\n\");\n\n String oneLiner = \"\";\n\n for (String line : lines) {\n oneLiner += line;\n }\n\n return oneLiner;\n }", "private static String fixPrintWriterNewLine(String decodedString) {\n StringBuilder fixedString = new StringBuilder();\n for(int i = 0; i < decodedString.length(); i++) {\n\n if(decodedString.charAt(i) == '\\n' ) {\n fixedString.append(\"\\r\\n\");\n }\n else {\n fixedString.append(decodedString.charAt(i));\n }\n }\n return fixedString.toString();\n }", "public static String removeQuebraLinha (String s) {\n\n\t\tif (StringUtils.isNotBlank(s)) {\n\n\t\t\ts = s.replaceAll(\"\\r\", \"\"); \n\t\t\ts = s.replaceAll(\"\\t\", \"\");\n\t\t\ts = s.replaceAll(\"\\n\", \"\");\n\t\t}\n\n\t\treturn s;\n\t}", "private String deleteLastChar(String s) {\n\t\treturn s.substring(0, s.length() - 1); \n\t}", "public String withoutEnd(String str) {\r\n return str.length() > 1 ? str.substring(1, str.length() - 1) : \"\";\r\n }", "public void trimDuplicatedNewline() {\n Utils.limitNewline(builder, 1);\n }", "public static String chomp(String str) {\n return StringUtils.chomp(str);\n }", "private void normalizeNewlines(StringBuffer sb) {\n\n\t\t// State machine states\n\t\tfinal int START = 0;\n\t\tfinal int SEEN_CR = 1;\n\n\t\tint state = START;\n\t\tint i = 0;\n\t\twhile (i < sb.length()) {\n\t\t\t// No simple 'for' here, since we may delete chars\n\n\t\t\tchar c = sb.charAt(i);\n\n\t\t\tswitch (state) {\n\t\t\tcase START:\n\t\t\t\tif (c == '\\r') {\n\t\t\t\t\tstate = SEEN_CR;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t\tbreak;\n\n\t\t\tcase SEEN_CR:\n\t\t\t\tif (c == '\\n') {\n\t\t\t\t\t// CR-LF, just delete the previous CR\n\t\t\t\t\tsb.deleteCharAt(i - 1);\n\t\t\t\t\tstate = START;\n\t\t\t\t\t// no need to advance i, since it's done implicitly\n\t\t\t\t} else if (c == '\\r') {\n\t\t\t\t\t// CR line ending followed by another\n\t\t\t\t\t// Replace the first with a newline...\n\t\t\t\t\tsb.setCharAt(i - 1, '\\n');\n\t\t\t\t\ti++;\n\t\t\t\t\t// ...and stay in the SEEN_CR state\n\t\t\t\t} else {\n\t\t\t\t\t// CR line ending, replace it with a newline\n\t\t\t\t\tsb.setCharAt(i - 1, '\\n');\n\t\t\t\t\ti++;\n\t\t\t\t\tstate = START;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (state == SEEN_CR) {\n\t\t\t// CR line ending, replace it with a newline\n\t\t}\n\t}", "public static String rtrim(String s)\r\n {\r\n if (s == null)\r\n return null;\r\n \r\n for (int k = s.length()-1; k >= 0; k--)\r\n {\r\n if (!Character.isWhitespace(s.charAt(k)))\r\n return (k == s.length() - 1 ? s : s.substring(0, k + 1));\r\n }\r\n return \"\";\r\n }", "public static String stripEnding(final String s, final String ending)\n\t{\n\t\tif (s == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\t// Stripping a null or empty string from the end returns the\n\t\t// original string.\n\t\tif (ending == null || \"\".equals(ending))\n\t\t{\n\t\t\treturn s;\n\t\t}\n\t\tfinal int endingLength = ending.length();\n\t\tfinal int sLength = s.length();\n\n\t\t// When the length of the ending string is larger\n\t\t// than the original string, the original string is returned.\n\t\tif (endingLength > sLength)\n\t\t{\n\t\t\treturn s;\n\t\t}\n\t\tfinal int index = s.lastIndexOf(ending);\n\t\tfinal int endpos = sLength - endingLength;\n\n\t\tif (index == endpos)\n\t\t{\n\t\t\treturn s.substring(0, endpos);\n\t\t}\n\n\t\treturn s;\n\t}", "public static String trimLines(String s) {\n\t\tif (s == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn s.replaceAll(\"[ \\t]*\\r?\\n[ \\t]*\", \"\\n\").trim();\n\t\t}\n\t}", "public static String trimLines(String multilineString) {\n if (StringUtils.isNullOrWhitespaceOnly(multilineString)) {\n return \"\";\n }\n\n return Arrays.stream(multilineString.split(UNIVERSAL_NEW_LINE_REGEXP))\n .map(String::trim)\n .collect(Collectors.joining(System.lineSeparator()));\n }", "public static String convertLineBreak(String input) {\n return input.replace(\"\\r\\n\", \"\\n\").replace('\\r', '\\n').replaceAll(\"[\\000-\\010\\013\\014\\016-\\037]\", \" \");\n }", "public static String replaceInverseBreakLine(String text) {\n\t\treturn text != null ? replace(text, \"<br/>\", \"\\n\") : null;\n\t}", "public static String combineTextWithNewline(String... text) {\r\n return Arrays.asList(text).stream()\r\n .map(content -> content.strip())\r\n .collect(Collectors.joining(NEWLINE));\r\n }", "public static String trimLineSeparator(String line) {\n int n = line.length();\n if (n == 0) {\n return line;\n }\n char ch = line.charAt(n - 1);\n if (ch == '\\n' || ch == '\\r') {\n n--;\n }\n else {\n return line;\n }\n if (n > 0) {\n char ch2 = line.charAt(n - 1);\n if ((ch2 == '\\n' || ch2 == '\\r') && ch2 != ch) {\n n--;\n }\n }\n return line.substring(0, n);\n\n }", "public static CharSequence trimTrailingWhitespace(CharSequence source) {\n\n if(source == null)\n return \"\";\n\n int i = source.length();\n\n // loop back to the first non-whitespace character\n while(--i >= 0 && Character.isWhitespace(source.charAt(i))) {\n }\n\n return source.subSequence(0, i+1);\n }", "public static String convertString(String string) {\n return string.replaceAll(\"\\n\", \"<br>\");\n }", "public void removeSpaceFromEndOfString(ArrayList<String> list) {\n\t\t\n\t\tfor(int i = 0; i < list.size(); ++i) {\n\t\t\tif(list.get(i).charAt(list.get(i).length()-1) == ' ') {\n\t\t\t\tlist.set(i, list.get(i).substring(0, list.get(i).length()-1));\n\t\t\t}\n\t\t}\n\t}", "@Override\n public T removeLast() {\n T lastChar = myQ[myLength - 1];\n myQ[myLength - 1] = (T) \"\\0\";\n myLength--;\n return lastChar;\n }", "public static String simpleBody(final String body) {\n if (body == null || \"\".equals(body)) {\n return Sendmail.CRLF;\n }\n if (!Sendmail.CRLF.equals(body.substring(body.length() - 2, body.length()))) {\n return body + Sendmail.CRLF;\n }\n String ret = body;\n while (\"\\r\\n\\r\\n\".equals(ret.substring(ret.length() - 4, ret.length()))) {\n ret = ret.substring(0, ret.length() - 2);\n }\n return ret;\n }", "private static String clearSpaces(final String old) {\n return old.replace(\" \", \"\").replace(\"\\n\", \"\");\n }", "public static String nl2br(String text) {return text.replaceAll(\"\\n\",\"<br />\");}", "public static String removeLeadingTrailingChar(char c, String s) {\n \tif(s==null) return s;\n \tboolean hasLeading = true;\n \tboolean hasTrailing=true;\n \tString retVal = s;\n \twhile(hasLeading || hasTrailing) {\n\t \tif(hasLeadingChar(c,retVal)) {\n\t \t\tretVal = retVal.substring(1);\n\t \t}\n\t \telse {\n\t \t\thasLeading = false;\n\t \t}\n\t \tif(hasTrailingChar(c,retVal)) {\n\t \t\tretVal = retVal.substring(0,retVal.length()-1);\n\t \t}\n\t \telse {\n\t \t\thasTrailing = false;\n\t \t}\n\t \t\n \t}\n \treturn retVal;\n }", "public static String chompTrim(String str) {\n String rtn = str;\n if (null != rtn) {\n int i = 0;\n int j = str.length() - 1;\n while (i < j) {\n char head = rtn.charAt(i);\n char tail = rtn.charAt(j);\n if (CharacterConstants.SPACE == head || CharacterConstants.LF == head\n || CharacterConstants.CR == head || CharacterConstants.TAB == head) {\n i++;\n } else {\n if (CharacterConstants.SPACE == tail || CharacterConstants.LF == tail\n || CharacterConstants.CR == tail || CharacterConstants.TAB == tail) {\n j--;\n } else {\n break;\n }\n }\n }\n rtn = rtn.substring(i, j + 1);\n }\n return rtn;\n }", "@Test\n\tpublic void removeWhiteSpaceFromNewLine() {\n\t\tString input = \"two tousand sixteen \"\n\t\t\t\t+ \"new \" + \"lines!\" + \"\\n\" + \" \" + \"\\n\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\t\tactualCastedString = stringUtility.removeWhiteSpace(actualCastedString);\n\n\t\tString correctlyCastedString = \"2tousandsixteennewlines!\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}", "public final void setSkipTrailingCharsUntilNewline(boolean skipTrailingCharsUntilNewline) {\n\t\tthis.skipTrailingCharsUntilNewline = skipTrailingCharsUntilNewline;\n\t}", "static String trim(String s) {\n return s.substring(0, s.length() - 1);\n }", "public static String cutSpaces(String s){\n\t\tString res = s;\n\t\t\n\t\twhile ((res.startsWith(\" \")||(res.startsWith(\"\\n\")))&& res.length()>0) {\n\t\t\tres=res.substring(1);\n\t\t}\n\t\treturn res;\n\t}", "public SourceGenerator forceNewline(){\r\n\t\tm_writer.append(m_newline);\r\n\t\treturn this;\r\n\t}", "public static String trimEnds(String input) {\n if (input.length() < 2) {\n return \"\";\n }\n return input.substring(1, input.length() - 1);\n }", "public static String nl() {\n return nl;\n }", "static String m8561a(String str) {\n return str.replaceAll(\"\\r\\n\", \"\\n\").replaceAll(\" *\\n *\", \"\\n\").replaceAll(\"\\n\", \" \").replaceAll(\"[ \\t\\\\x0B\\f\\r]+\", \" \");\n }", "public static String MissingChar(String str, int n) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.deleteCharAt(n);\n return sb.toString();\n}", "public final void mNEWLINE() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.NEWLINE;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:783:5: ( ( ( '\\\\r' )?\n\t\t\t// '\\\\n' ) )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:783:9: ( ( '\\\\r' )?\n\t\t\t// '\\\\n' )\n\t\t\t{\n\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:783:9: ( ( '\\\\r'\n\t\t\t\t// )? '\\\\n' )\n\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:783:10: ( '\\\\r'\n\t\t\t\t// )? '\\\\n'\n\t\t\t\t{\n\t\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:783:10: (\n\t\t\t\t\t// '\\\\r' )?\n\t\t\t\t\tint alt4 = 2;\n\t\t\t\t\tfinal int LA4_0 = this.input.LA(1);\n\n\t\t\t\t\tif ((LA4_0 == '\\r'))\n\t\t\t\t\t{\n\t\t\t\t\t\talt4 = 1;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (alt4)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:783:11:\n\t\t\t\t\t\t// '\\\\r'\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.match('\\r');\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.match('\\n');\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}", "public static String RemoveLastChar(String str) {\r\n\r\n\t\t if (str.length() > 0 && str.charAt(str.length()-1)=='x') {\r\n\t\t str = str.substring(0, str.length()-1);\r\n\t\t }\r\n\t\t return str;\r\n\t\t}", "@Test\n\tpublic void testEmptyLine() {\n\t\tString s = \" \\n\";\n\t\tassertTrue(\"Empty string with line ending\", StringUtil.isEmpty(s));\n\t}", "public static String stripTrailingFs(String s) {\n return s == null ? null : s.replaceAll(\"(?i)f*$\", \"\");\n }", "private static String removeWhitespace(String str)\n {\n // A string buffer to build the result in.\n StringBuffer res;\n\n // Create the result string buffer.\n res = new StringBuffer(str.length());\n\n // Iterate through the input string, appending chars to the\n // result if they are not white space.\n for (int iChar = 0; iChar < str.length(); iChar++) {\n if (!Character.isWhitespace(str.charAt(iChar))) {\n res.append(str.charAt(iChar));\n }\n }\n\n return res.toString();\n }", "static String trimStart(String s) {\n StringBuilder sb = new StringBuilder(s);\n while(sb.length() > 0 && (sb.charAt(0) == '\\u005cr'\n || sb.charAt(0) == '\\u005cn'\n || sb.charAt(0) == '\\u005ct'\n || sb.charAt(0) == ' ')) {\n sb.deleteCharAt(0);\n }\n return sb.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 }", "protected static String showLineSeparators(String string) {\n\tif (string == null) return null;\n\tStringBuffer buffer = new StringBuffer();\n\tint length = string.length();\n\tfor (int i = 0; i < length; i++) {\n\t\tchar car = string.charAt(i);\n\t\tswitch (car) {\n\t\t\tcase '\\n': \n\t\t\t\tbuffer.append(\"\\\\n\\n\"); //$NON-NLS-1$\n\t\t\t\tbreak;\n\t\t\tcase '\\r':\n\t\t\t\tif (i < length-1 && string.charAt(i+1) == '\\n') {\n\t\t\t\t\tbuffer.append(\"\\\\r\\\\n\\n\"); //$NON-NLS-1$\n\t\t\t\t\ti++;\n\t\t\t\t} else {\n\t\t\t\t\tbuffer.append(\"\\\\r\\n\"); //$NON-NLS-1$\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbuffer.append(car);\n\t\t\t\tbreak;\n\t\t}\n\t}\n\treturn buffer.toString();\n}", "private boolean endline() {\r\n return (CHAR('\\r') || true) && CHAR('\\n');\r\n }", "@Override\n public String postProcess(final String line) {\n var lineSeparatorIndex = line.lastIndexOf(RECORD_SEPARATOR_CHARACTER);\n return lineSeparatorIndex >= 0 ? line.substring(0, lineSeparatorIndex) : line;\n }", "public final void mNEWLINE() throws RecognitionException {\n try {\n int _type = NEWLINE;\n // /Users/benjamincoe/HackWars/C.g:168:9: ( ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' ) )\n // /Users/benjamincoe/HackWars/C.g:169:5: ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' )\n {\n // /Users/benjamincoe/HackWars/C.g:169:5: ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' )\n int alt3=3;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0=='\\r') ) {\n int LA3_1 = input.LA(2);\n\n if ( (LA3_1=='\\n') ) {\n alt3=1;\n }\n else {\n alt3=2;}\n }\n else if ( (LA3_0=='\\n') ) {\n alt3=3;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"169:5: ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' )\", 3, 0, input);\n\n throw nvae;\n }\n switch (alt3) {\n case 1 :\n // /Users/benjamincoe/HackWars/C.g:169:6: '\\\\r\\\\n'\n {\n match(\"\\r\\n\"); \n\n\n }\n break;\n case 2 :\n // /Users/benjamincoe/HackWars/C.g:170:9: '\\\\r'\n {\n match('\\r'); \n\n }\n break;\n case 3 :\n // /Users/benjamincoe/HackWars/C.g:171:9: '\\\\n'\n {\n match('\\n'); \n\n }\n break;\n\n }\n\n //input.setLine(input.getLine()+1); \n \tchannel=HIDDEN;\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public String removerAcentos(String str) {\r\n return Normalizer.normalize(str, Normalizer.Form.NFD).replaceAll(\"[^\\\\p{ASCII}]\", \"\");\r\n }", "private String trimRight(String string) {\n String newString = \"\";\n for (int i = 0; i < string.length(); i++) {\n if (string.charAt(i) != ' ') {\n newString = string.substring(0, i) + string.trim();\n break;\n }\n }\n return newString;\n }", "void imprimir(String s){\n\t\ttxtS.append(s+\"\\n\");\n\t}", "public final void mNEWLINE() throws RecognitionException {\n\t\ttry {\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:316:17: ( ( '\\\\r' )? '\\\\n' )\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:316:18: ( '\\\\r' )? '\\\\n'\n\t\t\t{\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:316:18: ( '\\\\r' )?\n\t\t\tint alt2=2;\n\t\t\tint LA2_0 = input.LA(1);\n\t\t\tif ( (LA2_0=='\\r') ) {\n\t\t\t\talt2=1;\n\t\t\t}\n\t\t\tswitch (alt2) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:316:18: '\\\\r'\n\t\t\t\t\t{\n\t\t\t\t\tmatch('\\r'); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tmatch('\\n'); \n\t\t\t}\n\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public static String clearLongWhitespaces(String str) {\r\n\r\n if (str == null) {\r\n str = \"\";\r\n }\r\n String result = \"\";\r\n StringTokenizer st = new StringTokenizer(str);\r\n while (st.hasMoreTokens()) {\r\n String s = st.nextToken();\r\n if (s != null) {\r\n result += s.trim();\r\n }\r\n }\r\n return result.trim();\r\n }", "public static String cleanText(String text)\r\n\t{\r\n\t\ttext = text.replace(\"\\n\", \"\\\\n\");\r\n\t\ttext = text.replace(\"\\t\", \"\\\\t\");\r\n\r\n\t\treturn text;\r\n\t}", "public final void mNEWLINE() throws RecognitionException {\r\n try {\r\n int _type = NEWLINE;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:194:5: ( ( '\\\\r' )? '\\\\n' )\r\n // Satmc.g:194:7: ( '\\\\r' )? '\\\\n'\r\n {\r\n // Satmc.g:194:7: ( '\\\\r' )?\r\n int alt6=2;\r\n int LA6_0 = input.LA(1);\r\n\r\n if ( (LA6_0=='\\r') ) {\r\n alt6=1;\r\n }\r\n switch (alt6) {\r\n case 1 :\r\n // Satmc.g:194:7: '\\\\r'\r\n {\r\n match('\\r'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n match('\\n'); \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "public String extraEnd(String str) {\r\n String lastTwoChars = str.substring(str.length() - 2);\r\n\r\n return lastTwoChars + lastTwoChars + lastTwoChars;\r\n }", "public static String trimEnd(String text, char ch) {\n\t\tint len = text.length();\n\t\tif (text.length() > 0 && text.charAt(len-1) == ch) {\n\t\t\tif (len > 1) {\n\t\t\t\treturn text.substring(0,text.length()-2);\n\t\t\t} else {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t\treturn text;\n\t}", "public static String cleanString(String s) {\n\t\ts = s.trim();\n\t\tString newStr = \"\";\n\t\tboolean lastWasSpace = false;\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif(c == ' ' && lastWasSpace) {\n\t\t\t\t//Ignore\n\t\t\t} else if (c == ' ' && !lastWasSpace) {\n\t\t\t\tnewStr+=c;\n\t\t\t\tlastWasSpace = true;\n\t\t\t} else {\n\t\t\t\tnewStr+=c;\n\t\t\t\tlastWasSpace = false;\n\t\t\t}\n\t\t}\n\t\ts = newStr;\n\t\treturn s;\n\t}", "private void linefeed() {\n try {\n out.write(lineSeparator);\n } catch (java.io.IOException ioe) {\n }\n ;\n }", "public String removeComplexWhiteSpaces(@NotNull String rawText) {\n return rawText.replaceAll(\"(\\\\s)?\\n\\n(\\\\s)?\", \"\\n\").trim();\n }", "private String avoidErrorChar (String original) {\n\t\tStringBuffer modSB = new StringBuffer();\n\t\tfor (int j=0; j < original.length(); j++) {\n\t\t\tchar c = original.charAt(j);\n\t\t\tif (c == '\\n') {\n\t\t\t\tmodSB.append(\"\\\\n\"); // rimpiazzo il ritorno a capo con il simbolo \\n\n\t\t\t} else if (c == '\"') {\n\t\t\t\tmodSB.append(\"''\"); // rimpiazzo le doppie virgolette (\") con due apostofi ('')\n\t\t\t} else if ((int)c > 31 || (int)c !=127){ // non stampo i primi 32 caratteri di controllo\n\t\t\t\tmodSB.append(c);\n\t\t\t}\n\t\t}\n\t\treturn modSB.toString();\n\t}", "public static String trim(String s) {\r\n\t\treturn Escape.collapseWhitespace(Escape.forDoubleQuotedString(s, true).trim());\r\n\t}", "private static String cleanTextContent(String text) {\n text = text.replaceAll(\"[^\\\\x00-\\\\x7F]\", \"\");\n\n // erases all the ASCII control characters\n text = text.replaceAll(\"[\\\\p{Cntrl}&&[^\\r\\n\\t]]\", \"\");\n\n // removes non-printable characters from Unicode\n text = text.replaceAll(\"\\\\p{C}\", \"\");\n \n text = text.replaceAll(\"[\\\\r\\\\n]+\", \" \");\n\n return text.trim();\n }", "private static String removeFirstLastQuotations(String string)\n\t{\n\t\tint firstIndex = string.indexOf('\\\"');\n\t\tint lastIndex = string.lastIndexOf('\\\"');\n\t\tif (firstIndex == 0 && lastIndex == string.length() - 1)\n\t\t\treturn string.substring(1, lastIndex);\n\t\t\n\t\treturn string;\n\t}", "private String cleanString(String data){\n Pattern ptn = Pattern.compile(\"//.*\");\n Matcher mc = ptn.matcher(data);\n while(mc.find())data = data.replace(mc.group(),\"\");\n ptn = Pattern.compile(\"/\\\\*(.|\\n)*?\\\\*/\");\n mc = ptn.matcher(data);\n while(mc.find()) data = data.replace(mc.group(),\"\");\n return data.trim();\n }", "private String removeLeadingWhitespace(String input) {\n for (int index = 0; index < input.length(); index++) {\n if (!Character.isWhitespace(input.charAt(index))) {\n return input.substring(index);\n }\n }\n return input;\n }", "protected static String trimWhitespace(String s) {\n int len = s.length();\n StringBuffer buf = new StringBuffer(len);\n for (int ii = 0; ii < len; ii++) {\n char c = s.charAt(ii);\n if (!Character.isWhitespace(c)) {\n buf.append(c);\n }\n }\n return buf.toString();\n }", "public CharSequence removeTrailingSpace(String rawHtmlText) {\n Spanned rawSpannedText = Html.fromHtml(rawHtmlText);\n CharSequence finalCharSequence = rawSpannedText;\n int totalTextLength = rawSpannedText.length();\n\n for (int i = (totalTextLength - 1); i > 0; i--) {\n /*tempText.charAt(i) == ' '\n * In above line the SPACE character is not a SPACE character,\n * it is a ghost char which is looks like space\n * it is coming from ck-editor(creation side)*/\n if (Character.isWhitespace(rawSpannedText.charAt(i)) || rawSpannedText.charAt(i) == ' ') {\n\n finalCharSequence = rawSpannedText.subSequence(0, i);\n } else {\n break;\n }\n }\n\n return finalCharSequence;\n }", "public static String stripWhiteSpace(String str) {\n if (str != null) {\n StringBuffer stringBuffer = new StringBuffer(str.length());\n for (int i = 0, strLen = str.length(); i < strLen; i++) {\n final char ch = str.charAt(i);\n if (ch != ' ' && ch != '\\r' && ch != '\\n' && ch != '\\t') {\n stringBuffer.append(ch);\n }\n }\n return stringBuffer.toString();\n }\n return str;\n }", "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}", "String remEscapes(String str){\n StringBuilder retval = new StringBuilder();\n\n // remove leading/trailing \" or '\r\n int start = 1, end = str.length() - 1;\n\n if ((str.startsWith(SQ3) && str.endsWith(SQ3)) ||\n (str.startsWith(SSQ3) && str.endsWith(SSQ3))){\n // remove leading/trailing \"\"\" or '''\r\n start = 3;\n end = str.length() - 3;\n }\n\n for (int i = start; i < end; i++) {\n\n if (str.charAt(i) == '\\\\' && i+1 < str.length()){\n i += 1;\n switch (str.charAt(i)){\n\n case 'b':\n retval.append('\\b');\n continue;\n case 't':\n retval.append('\\t');\n continue;\n case 'n':\n retval.append('\\n');\n continue;\n case 'f':\n retval.append('\\f');\n continue;\n case 'r':\n retval.append('\\r');\n continue;\n case '\"':\n retval.append('\\\"');\n continue;\n case '\\'':\n retval.append('\\'');\n continue;\n case '\\\\':\n retval.append('\\\\');\n continue;\n }\n\n }\n else {\n retval.append(str.charAt(i));\n }\n }\n\n return retval.toString();\n }", "public static String rtrim(String strString, String strMatch)\r\n {\r\n int intStringLen = strString.length();\r\n int intMatchLen = strMatch.length();\r\n if (intStringLen == 0 || intMatchLen == 0 || intMatchLen > intStringLen)\r\n {\r\n return strString;\r\n }\r\n int intTrimAt = intStringLen;\r\n int intBegin = intStringLen - intMatchLen;\r\n int intEnd = intStringLen;\r\n while ( intBegin >= 0 \r\n && strString.substring(intBegin, intEnd).equals(strMatch))\r\n {\r\n intTrimAt = intBegin;\r\n intBegin -= intMatchLen;\r\n intEnd -= intMatchLen;\r\n }\r\n if (intTrimAt < intStringLen)\r\n {\r\n strString = strString.substring(0, intTrimAt);\r\n }\r\n return strString;\r\n }", "@Test\n\tpublic void nonEmptyMultiLine() {\n\t\tString s = \" \\n\" + \"Nothing\";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}", "public static String newline() {\n return System.getProperty(JavaSystemProperty.LINE_SEPARATOR);\n }", "private String d(String paramString)\r\n/* 561: */ {\r\n/* 562:566 */ while ((paramString != null) && (paramString.endsWith(\"\\n\"))) {\r\n/* 563:567 */ paramString = paramString.substring(0, paramString.length() - 1);\r\n/* 564: */ }\r\n/* 565:569 */ return paramString;\r\n/* 566: */ }", "public static String removeWhitespace(String s) {\n s = s.replace(\" \",\"\");\n s = s.replace(\"\\n\",\"\");\n s = s.replace(\"\\t\",\"\");\n return s;\n }", "public static String reverser(String line) {\n String result=\"\";\n for (int i = line.length()-1; i >=0 ; i--) {\n result += line.charAt(i);\n }\n return result;\n}", "private String removeTailComment(String line) {\n //remove any comment from this line\n int commentPos = line.indexOf(\",#\");\n if (commentPos != -1) {\n line = line.substring(0, commentPos);\n }\n return line;\n }", "@Override\n\tpublic String spaceRemover(String input) {\n\t\treturn input.replaceAll(\"\\\\s+\",\"\");\n\n\t}", "public static String replaceBreakLines(String text) {\n\t\treturn text != null ? replace(text, \"\\n\", \"<br/>\") : null;\n\t}", "protected String addToMultiLineField(String current, String newline){\n\t\tif(current == null)\n\t\t\tcurrent = \"\";\n\t\t\n\t\tif(newline == null)\n\t\t\tnewline = \"\";\n\t\t\n\t\treturn current +\"\\r\\n\" + newline;\t\n\t}", "public static String trim(CharSequence s) {\n if (s == null) {\n return null;\n }\n\n // Just strip any sequence of whitespace or java space characters from the beginning and end\n Matcher m = sTrimPattern.matcher(s);\n return m.replaceAll(\"$1\");\n }", "public static String clean(String string) {\n\t\tif(!Character.isLetter(string.charAt(string.length() - 1))){\n\t\t\tString str = \"\";\n\t\t\tfor(int i = 0; i < string.length() - 1; i++){\n\t\t\t\tstr += string.charAt(i);\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t\treturn string;\n\t}", "public final void mRULE_NEWLINE() throws RecognitionException {\n try {\n int _type = RULE_NEWLINE;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:16725:14: ( ( '\\\\r' | '\\\\n' )+ )\n // InternalDSL.g:16725:16: ( '\\\\r' | '\\\\n' )+\n {\n // InternalDSL.g:16725:16: ( '\\\\r' | '\\\\n' )+\n int cnt22=0;\n loop22:\n do {\n int alt22=2;\n int LA22_0 = input.LA(1);\n\n if ( (LA22_0=='\\n'||LA22_0=='\\r') ) {\n alt22=1;\n }\n\n\n switch (alt22) {\n \tcase 1 :\n \t // InternalDSL.g:\n \t {\n \t if ( input.LA(1)=='\\n'||input.LA(1)=='\\r' ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt22 >= 1 ) break loop22;\n EarlyExitException eee =\n new EarlyExitException(22, input);\n throw eee;\n }\n cnt22++;\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void addEmptyLine() {\n addLine(\"\");\n }", "public static void writeWithSystemNewlines (BufferedWriter writer, String string)\n\t\t\tthrows IOException {\n\t\tfor (int i=0; i<string.length(); i++) {\n\t\t\tchar c = string.charAt(i);\n\t\t\tif (c == '\\n')\n\t\t\t\twriter.newLine();\n\t\t\telse\n\t\t\t\twriter.write(c);\n\t\t}\n\t}", "private String trimIgnoreChars(StringBuilder tokenBuilder) {\n\t\t\tint lastCharacterIdx = tokenBuilder.length()-1;\n\t\t\twhile(tokenBuilder.length()>0 && \n\t\t\t\t\tIGNORE_CHARS.contains(Character.valueOf(tokenBuilder.charAt(lastCharacterIdx)))) {\n\t\t\t\ttokenBuilder.deleteCharAt(lastCharacterIdx);\n\t\t\t\tlastCharacterIdx--;\n\t\t\t}\n\t\t\n\t\t\twhile(tokenBuilder.length()>0 && \n\t\t\t\t\tIGNORE_CHARS.contains(Character.valueOf(tokenBuilder.charAt(0))))\n\t\t\t\ttokenBuilder.deleteCharAt(0);\n\t\t\t\n\t\t\treturn tokenBuilder.toString();\n\t\t}", "public String withouEnd2(String str) {\r\n return str.length() > 2 ? str.substring(1, str.length() - 1) : \"\";\r\n }", "public static String everythingAfterDot(String str) {\n int index = str.indexOf('.');\n\n if (index > -1) {\n return str.substring(index + 1).trim();\n } else {\n return str;\n }\n }", "@Test\n public final void testNewlineIsNotEmpty() {\n Document testDoc = TestDocHelper.createDocument(\n \"<a>text</a>\");\n \n Node text1 = testDoc.createTextNode(\"\\r\");\n Node text2 = testDoc.createTextNode(\"\\r\\n\");\n Node text3 = testDoc.createTextNode(\"\\n\");\n \n assertFalse(NodeOps.nodeIsEmptyText(text1));\n assertEquals(1, text1.getNodeValue().length());\n assertFalse(NodeOps.nodeIsEmptyText(text2));\n assertEquals(2, text2.getNodeValue().length());\n assertFalse(NodeOps.nodeIsEmptyText(text3));\n assertEquals(1, text3.getNodeValue().length());\n }", "private static String readLine(ResettableInputStream in, int maxLength)\n throws IOException {\n\n StringBuilder s = new StringBuilder();\n int c;\n int i = 1;\n while ((c = in.readChar()) != -1) {\n // FIXME: support \\r\\n\n if (c == '\\n') {\n break;\n }\n //System.out.printf(\"seen char val: %c\\n\", (char)c);\n s.append((char)c);\n\n if (i++ > maxLength) {\n System.out.println(\"Output: >\" + s + \"<\");\n throw new RuntimeException(\"Too far!\");\n }\n }\n if (s.length() > 0) {\n s.append('\\n');\n return s.toString();\n } else {\n return null;\n }\n }", "private static String trim(String s) {\n return s.replace(\" \", \"\");\n }", "private void newline() {}", "public static String ClearJavaScriptTags(String strHTML) {\r\n\t\tstrHTML = strHTML.replaceAll(\"\\n\", \"<br/>\");\r\n\t\tString nohtml = strHTML.replaceAll(\"<script>\", \"\");\r\n\t\tnohtml = nohtml.replaceAll(\"</script>\", \"\");\r\n\t\treturn nohtml;\r\n\t\t// strHTML.rep\r\n\t}", "private static boolean isLineTerminator(final char c) {\r\n\r\n if ((c == '\\n') || (c == '\\r') || (c == '\\u0085') || (c == '\\u2028') || (c == '\\u2029')) {\r\n return true;\r\n }\r\n\r\n return (false);\r\n }", "public static String stripLabel(String s) {\n\t\tint labelEnd = labelEnd(s);\n\t\tif (labelEnd == -1) {\n\t\t\treturn s.trim();\n\t\t} else {\n\t\t\treturn s.substring(labelEnd + 1).trim();\n\t\t}\n\t}", "public static String removeWhiteSpace(String input) {\r\n if (input == null || input.isEmpty()) {\r\n return \"\";\r\n }\r\n StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < input.length(); i++) {\r\n char c = input.charAt(i);\r\n if (!Character.isWhitespace(c)) {\r\n sb.append(c);\r\n }\r\n }\r\n return sb.toString();\r\n }" ]
[ "0.7345072", "0.70247877", "0.69285685", "0.6745271", "0.661443", "0.6331497", "0.6329621", "0.6106329", "0.60855174", "0.6063407", "0.59711367", "0.5935467", "0.5927299", "0.5903327", "0.58426386", "0.57344985", "0.57274616", "0.5666928", "0.5662077", "0.5598469", "0.5576067", "0.5559299", "0.5543585", "0.55201066", "0.5510446", "0.5510103", "0.545785", "0.54528975", "0.53650016", "0.536448", "0.5352446", "0.5320003", "0.5263115", "0.52487034", "0.52443075", "0.5223563", "0.52143174", "0.52102387", "0.5207276", "0.5206215", "0.5197942", "0.51928014", "0.5184114", "0.5176642", "0.51633334", "0.5155485", "0.51471895", "0.5140268", "0.51340926", "0.5122633", "0.5121543", "0.51210433", "0.5117403", "0.5114751", "0.5102511", "0.51006454", "0.5078506", "0.5070935", "0.50499123", "0.5039151", "0.50362945", "0.50353146", "0.5033338", "0.50287646", "0.5016289", "0.50055856", "0.49986407", "0.49980575", "0.49967825", "0.49957478", "0.49739334", "0.49635524", "0.4962612", "0.49440986", "0.49320728", "0.4915745", "0.49020007", "0.4899715", "0.48835835", "0.4876484", "0.48641914", "0.4850437", "0.48362482", "0.48338997", "0.48315245", "0.48275426", "0.48184028", "0.48156387", "0.4803446", "0.48031846", "0.47966775", "0.47928184", "0.47567528", "0.47492024", "0.4748088", "0.47386438", "0.47258103", "0.4723861", "0.47145215", "0.47137278" ]
0.7632736
0
Splits and draws a String with wordwrap (maximum length is parameter k)
@Override public void drawSplitString(String text, int textX, int textY, int wrapWidth, int color) { text = trimStringNewline(text); renderSplitString(text, textX, textY, wrapWidth, color); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String truncateSentence(String s, int k) {\n int j = 0;\n String res = \"\";\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == ' ') {\n j++;\n }\n if (j == k) {\n res = s.substring(0, i);\n break;\n }\n }\n if (j < k) {\n return s;\n }\n return res;\n }", "static public String solution(String message, int k) {\n if (message == null || message.isEmpty()) return message;\n if (k <= 0) return \"\";\n\n // cut out spaces from the input\n message = message.trim();\n\n // split on space for all the words\n String[] words = message.split(\" \");\n\n // For the output\n StringBuilder kLength = new StringBuilder();\n\n // Temporary variable for the word separator\n String separator = \"\";\n for (String iWord : words) {\n if(iWord.trim().isEmpty()) continue;\n if (kLength.length() + 1 + iWord.length() <= k) {\n kLength.append(separator).append(iWord);\n } else {\n break;\n }\n separator = \" \";\n }\n\n // .trim here is to avoid spaces being appended\n return kLength.toString().trim();\n }", "private void makeLines(LayoutContext lc) {\n //String s = new String(text);\n boolean isLastLine = false;\n int tries = 0;\n int curWidth, wordWidth, lineStart, wordEnd, wordStart, newWidth, textLen, beg, maxM2, spaceW;\n curWidth = lineStart = wordEnd = beg = 0;\n char[] text = this.text;\n textLen = text.length;\n maxM2 = textLen - 2;\n spaceW = fm.charWidth(' ');\n boolean glue = false;\n\n do {\n beg = wordEnd;\n\n // find next word\n for (wordStart = beg;; wordStart++) {\n if (wordStart >= textLen) // trailing blanks?\n {\n if (tries > 0) // guich@tc114_81\n {\n lc.disjoin();\n addLine(lineStart, wordEnd, false, lc, false);\n tries = 0;\n }\n wordEnd = wordStart;\n isLastLine = true;\n break;\n }\n if (text[wordStart] != ' ') // is this the first non-space char?\n {\n wordEnd = wordStart;\n do {\n if (++wordEnd >= textLen) {\n isLastLine = true;\n break;\n }\n } while (text[wordEnd] != ' ' && text[wordEnd] != '/'); // loop until the next space/slash char\n // use slashes as word delimiters (useful for URL addresses).\n if (maxM2 > wordEnd && text[wordEnd] == '/' && text[wordEnd + 1] != '/') {\n wordEnd++;\n }\n break;\n }\n }\n if (!lc.atStart() && wordStart > 0 && text[wordStart - 1] == ' ') {\n wordStart--;\n }\n wordWidth = fm.stringWidth(text, wordStart, wordEnd - wordStart);\n if (curWidth == 0) {\n lineStart = beg = wordStart; // no spaces at start of a line\n newWidth = wordWidth;\n } else {\n newWidth = curWidth + wordWidth;\n }\n\n if (lc.x + newWidth <= lc.maxWidth) {\n curWidth = newWidth + spaceW;\n } else // split: line length now exceeds the maximum allowed\n {\n //if (text[wordStart] == ' ') {wordStart++; wordWidth -= spaceW;}\n if (curWidth > 0) {\n // At here, wordStart and wordEnd refer to the word that overflows. So, we have to stop at the previous word\n wordEnd = wordStart;\n if (text[wordEnd - 1] == ' ') {\n wordEnd--;\n }\n if (DEBUG) {\n Vm.debug(\"1. \\\"\" + new String(text, lineStart, wordEnd - lineStart) + \"\\\": \" + curWidth + \" \" + isLastLine);\n }\n addLine(lineStart, wordEnd, true, lc, glue);\n curWidth = 0;\n isLastLine = false; // must recompute the last line, since there's at least a word left.\n } else if (!lc.atStart()) // case of \"this is a text at the end <b>oftheline</b>\" -> oftheline will overflow the screen\n {\n if (++tries == 2) {\n break;\n }\n if (DEBUG) {\n Vm.debug(\"2 \" + isLastLine);\n }\n // Nothing was gathered in, but the current line has characters left by a previous TextSpan. This occurs only once.\n addLine(0, 0, false, lc, glue);\n curWidth = 0;\n isLastLine = false; // must recompute the last line, since there's at least a word left.\n } else {\n // Rare case where we both have nothing gathered in, and the physical line is empty. Had this not been made, then we\n // woud have generated an extra-line at the top of the block.\n if (DEBUG) {\n Vm.debug(\"3. \\\"\" + new String(text, lineStart, wordEnd - lineStart) + '\"');\n }\n if (lineStart != wordEnd) {\n addLine(lineStart, wordEnd, true, lc, glue);\n }\n }\n glue = true;\n }\n } while (!isLastLine);\n\n if (wordEnd != lineStart) {\n //curWidth = fm.stringWidth(text, lineStart, wordEnd-lineStart);\n boolean split = lc.x + curWidth > lc.maxWidth && style.hasInitialValues() && style.isDisjoint;\n if (DEBUG) {\n Vm.debug(\"4. \\\"\" + new String(text, lineStart, wordEnd - lineStart) + \"\\\" \" + split);\n }\n addLine(lineStart, wordEnd, split, lc, glue);\n }\n }", "static String lexography(String s,int k) {\n\t\tString smallest=\"\";\n\t\tString largest=\"\";\n\t\tString temp=\"\";\n\t\tsmallest=largest=s.substring(0, k);\n\t\tint x;\n\t\tfor(int i=1;i<=s.length()-k;i++)\n\t\t{\n\t\t\ttemp=s.substring(i,i+k);\n\t\t\t\n\t\t\tx=temp.compareTo(smallest);\n\t\t\tif(x<0) smallest=temp;\n\t\t\tx=temp.compareTo(largest);\n\t\t\tif(x>0) largest=temp;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t return smallest+\"\\n\"+largest;\n\t}", "public static String groupify(String text, int groupSize) {\r\n String newText = \"\";\r\n int textLength = text.length();\r\n int amountXNeeded = groupSize - (textLength % groupSize);\r\n\r\n for (int i = 0; i < textLength; i += groupSize) {\r\n int range = groupSize + i;\r\n if (range > textLength) {\r\n range = textLength;\r\n }\r\n newText += text.substring(i, range);\r\n if (range != textLength) {\r\n newText += \" \";\r\n }\r\n }\r\n if( amountXNeeded != groupSize){\r\n for (int i = 0; i < amountXNeeded; i++) {\r\n newText += \"x\";\r\n }\r\n }\r\n\r\n return newText;\r\n }", "static String[] wrapLines(String s) {\n if (s.length() <= 80) {\n return new String[]{s};\n }\n int wc = countWrapSep(s);\n if (wc > 0) {\n int[] break_points = new int[wc];\n int offset = 0;\n for (int i = 0; i < wc; i++) {\n int index = s.indexOf('\\u001c', offset);\n break_points[i] = index;\n offset = index + 1;\n }\n\n int first_break = -1;\n for (int i = 0; i < break_points.length; i++) {\n int possible = break_points[i];\n if (possible > 80) {\n break;\n }\n first_break = possible;\n }\n if ( first_break == -1 ) {\n first_break = s.length();\n }\n\n int ws_length = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == ' ')\n ++ws_length;\n else\n break;\n }\n String leading_ws = s.substring(0, ws_length);\n String head = s.substring(0, first_break);\n String tail = s.substring(first_break);\n //head = head.replaceAll(\"[\u001c]\", \"\");\n //tail = tail.replaceAll(\"[\u001c]\", \"\");\n return new String[]{head, leading_ws + double_indent + tail};\n }\n return null;\n }", "public static String wrap ( final String in, final int width )\n {\n final StringBuilder sb;\n\n if (null == in) return null;\n if (width < 1) return in;\n\n sb = new StringBuilder(in);\n\n int i = 0;\n while (i + width < sb.length() && (i = sb.lastIndexOf(\" \", i + width)) != -1) {\n sb.replace(i, i + 1, \"\\n\");\n i++;\n }\n return sb.toString();\n }", "public String breakUp(String m){\n int arrSize = (int)(m.length()/35 + 0.5);\n\n String[] bySpace = m.split(\" \",0);\n String realMessage = \"\";\n int size = 0;\n for(int i = 0; i < bySpace.length;i++){\n size += bySpace[i].length();\n if(size > 35){\n size = 0;\n realMessage += \"\\n\";\n }\n realMessage += bySpace[i];\n }\n return realMessage;\n }", "public static String toFixedWidth(String s, int w) {\n StringTokenizer tokenizer = new StringTokenizer(s);\n StringBuffer buf = new StringBuffer();\n int col = 0;\n\n while (tokenizer.hasMoreTokens()) {\n String token = tokenizer.nextToken();\n if (col + 1 + token.length() > w) {\n buf.append(\"\\n\" + token);\n col = token.length();\n continue;\n }\n else if (col > 0) {\n buf.append(\" \");\n col++;\n }\n buf.append(token);\n col += token.length();\n }\n\n return buf.toString();\n }", "private void renderSplitString(String text, int textX, int textY, int wrapWidth, int color) {\n drawNewString(color, false);\n \n for (String textLine : super.listFormattedStringToWidth(text, wrapWidth)) {\n renderStringAligned(textLine, textX, textY, wrapWidth, color);\n textY += super.FONT_HEIGHT;\n }\n }", "private void wrap_long_words() {\n\t\tif ( printing_status() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tString cur = _current_word.toString();\n\t\tif ( _platform_io.size_text( cur ) >= _wrap_column ) {\n\t\t\t// print out the first bit:\n\t\t\tString trim = cur;\n\t\t\twhile ( _platform_io.size_text( trim ) >= _wrap_column ) {\n\t\t\t\ttrim = trim.substring( 0, trim.length() - 1 );\n\t\t\t}\n\n\t\t\t_platform_io.print_text( trim );\n\t\t\tinc_line();\n\n\t\t\t// then truncate the rest:\n\t\t\tString tail = cur.substring( trim.length() );\n\n\t\t\tif ( _current_word.length() == _wrap_column ) // wrapped exactly?\n\t\t\t{\n\t\t\t\t_last_printed = '\\n';\n\t\t\t}\n\n\t\t\t_current_word = new StringBuffer( tail );\n\t\t}\n\t}", "public static String RemoveDuplicatedLetters(String s, int k) {\n if (s.length() < k) {\n return s;\n }\n String result = \"\";\n int counter = 1;\n Stack<String> stack = new Stack<>();\n for (int i = 0; i < s.length(); i++) {\n stack.push(s.substring(i, i + 1));\n }\n result += stack.pop();\n\n while (!stack.isEmpty()) {\n if (stack.peek().equals(result.charAt(0) + \"\")) {\n counter += 1;\n } else {\n counter = 1;\n }\n result = stack.pop() + result;\n if (counter == k) {\n result = result.length() == k ? \"\" : result.substring(k);\n for (int i = 0; i < s.length(); i++) {\n stack.push(s.substring(i, i + 1));\n }\n counter = 0;\n }\n }\n return result;\n }", "void wrappedText(final int count);", "private String getFitText(String text, float width, Paint paint) {\r\n String newText = text;\r\n int length = text.length();\r\n int diff = 0;\r\n while (paint.measureText(newText) > width && diff < length) {\r\n diff++;\r\n newText = text.substring(0, length - diff) + \"...\";\r\n }\r\n if (diff == length) {\r\n newText = \"...\";\r\n }\r\n return newText;\r\n }", "public static int maxSubStringSizeKDistinctChars(String str, int k) {\n int start = 0;\n int maxLen = 0;\n int localSum = 0;\n HashMap<Character, Integer> hm = new HashMap<>();\n\n for(int end = 0; end < str.length(); end++) {\n\n localSum++;\n if (hm.containsKey(str.charAt(end))) {\n hm.put(str.charAt(end), hm.get(str.charAt(end)) + 1);\n } else {\n hm.put(str.charAt(end), 1);\n }\n\n while(hm.size() > k) {\n // maxLen = Math.max(maxLen, end - start);\n maxLen = Math.max(maxLen, localSum - 1);\n hm.put(str.charAt(start), hm.get(str.charAt(start)) - 1);\n if(hm.get(str.charAt(start)) == 0) {\n hm.remove(str.charAt(start));\n }\n start++;\n localSum--;\n }\n }\n\n return Math.max(maxLen, localSum);\n\n }", "private static String getPermutation(long k, int strlen, Map<Character, CharCount> map, List<Character> chars) {\n if (map.isEmpty()) {\n return \"\";\n }\n long n = getExpectedSize(strlen, map);\n \n if (k > n) return \"\"; // invalid. Should never reach here.\n long f = 0;\n \n \n for (int i = 0; i < chars.size(); i++) {\n Character curChar = chars.get(i);\n CharCount charCount = map.get(curChar);\n charCount.decrementCount();\n strlen--;\n if (charCount.count == 0) {\n map.remove(curChar);\n chars.remove(i);\n }\n \n long temp = getExpectedSize(strlen, map);\n f += temp;\n if(f <= k){\n charCount.incrementCount();\n strlen++;\n if (charCount.count == 1) {\n map.put(curChar, charCount);\n chars.add(i, curChar);\n }\n continue;\n }\n else{\n f = f - temp;\n return curChar + getPermutation(k - f, strlen, map, chars);\n }\n }\n \n //SHould not reach here unless k is too large\n return \"\";\n }", "public static String split(String sentence) {\n StringBuilder result = new StringBuilder();\n int i = 0; // use for create lines <= 4 words\n for (String word : sentence.split(\" \")) {\n result.append(word).append(\" \");\n ++i;\n if (i == 4) {\n result.append(\"\\n\");\n i = 0;\n }\n }\n return result.toString();\n }", "private int preSpace(String s, int k){\n \twhile(k >= 0){\n \t\tif(s.substring(k,k+1).equals(\" \"))\n \t\t\tbreak;\n \t\tk--;\n \t}\n \treturn k;\n }", "public static String reverseStr(String s, int k) {\n\n\t\tchar[] chars = s.toCharArray();\n\n\t\tint i = 0;\n\t\tint j = k - 1;\n\t\tint skip = 2 * k;\n\n\t\tif (j >= chars.length) {\n\t\t\tj = chars.length - 1;\n\t\t}\n\n\t\twhile (j < chars.length) {\n\t\t\t\n\t\t\treverseString(chars, i, j);\n\t\t\ti = i + skip;\n\t\t\tj = i + k - 1;\n\n\t\t\tif (i < chars.length && j >= chars.length) {\n\t\t\t\tj = chars.length - 1;\n\t\t\t}\n\t\t}\n\n\t\treturn new String(chars);\n\t}", "public static String getKthPermuation(String input, long k){\n \n //Boiler plate code to create a list of unique characters from string\n //and a map maintaining the character count for the string\n List<Character> chars = new ArrayList<Character>();\n Map<Character, CharCount> map = new HashMap<Character, CharCount>();\n for (int i = 0; i < input.length(); i++) {\n char charAt = input.charAt(i);\n if (map.containsKey(charAt)) {\n map.get(charAt).incrementCount();\n } else {\n CharCount cc = new CharCount(charAt, 1);\n chars.add(charAt);\n map.put(charAt, cc);\n }\n }\n Collections.sort(chars);\n return getPermutation(k-1, input.length(), map, chars);\n }", "private String removeAlphabets(String s, int k) {\n int windowSize=k;\n Stack<Character>st=new Stack<>();\n Stack<Integer> count=new Stack<>();\n char[] chars = s.toCharArray();\n for (char ch:chars){\n if(st.isEmpty() || !st.isEmpty() && ch!=st.peek()){\n st.push(ch);\n count.push(1);\n }\n else if(!st.isEmpty() && !count.isEmpty() && ch==st.peek()){\n st.push(ch);\n count.push(count.peek()+1);\n if(count.peek()==k){\n while (k>0){\n count.pop();\n st.pop();\n k--;\n }\n k=windowSize;\n }\n }\n\n }\n StringBuffer sb=new StringBuffer();\n while (!st.isEmpty()){\n sb.append(st.pop());\n }\n return sb.reverse().toString();\n }", "public StringWrap(int minWrap, int maxWrap) {\n this.minWrap = minWrap;\n this.maxWrap = maxWrap;\n }", "private void buildString(String input, int k, int[] samp) {\n\r\n\t\tMap<Character, Integer> countermap = new HashMap<Character, Integer>();\r\n\r\n\t\tString out = \"\";\r\n\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tcountermap.put(input.charAt(i), countermap.getOrDefault(input.charAt(i), 0) + 1);\r\n\t\t\tif (countermap.get(input.charAt(i)) <= k) {\r\n\r\n\t\t\t\tif (countermap.get(input.charAt(i)) == 1) {\r\n\t\t\t\t\tout += input.charAt(i);\r\n\t\t\t\t\tsamp[(int) input.charAt(i)] -= 1;\r\n\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tfor (int j = 0; j < i; j++) {\r\n\t\t\t\t\t\tif ((samp[(int) input.charAt(j)] != 0) && (countermap.get(input.charAt(i)) != 1)) {\r\n\t\t\t\t\t\t\tout += input.charAt(j);\r\n\t\t\t\t\t\t\tsamp[(int) input.charAt(j)] -= 1;\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(out);\r\n\t}", "public int characterReplacement2(String s, int k) {\n Set<Character> letters = new HashSet();\n int longest = 0;\n for(int i=0;i<s.length();i++) letters.add(s.charAt(i));\n for(char l: letters){\n int c = 0;\n for(int i=0,j=0;j<s.length();j++){\n if(l==s.charAt(j))c++;\n if((j-i+1)>c+k)\n if(l==s.charAt(i++)) c--;\n longest = Math.max(j-i+1, longest);\n }\n }\n return longest;\n }", "public int minWordBreak(String s, Set<String> dict) {\n Map<String, List<String>> map = new HashMap<String, List<String>>();\n List<String> possibles = wordBreakHelper(s,dict,map);\n int minCut = s.length();\n for (String possible: possibles) {\n int cut = possible.split(\" \").length;\n if (minCut > cut)\n minCut = cut;\n }\n return minCut;\n}", "public static String getNWordsStr(String text, int n) {\n\t\treturn getUntilNChar(text, ' ', n);\n\t}", "static String richieRich(String s, int n, int k){\n // Complete this function\n StringBuilder left;\n StringBuilder right;\n left = new StringBuilder(s.substring(0,s.length()/2));\n if(s.length()%2 == 0){\n right = new StringBuilder(s.substring(s.length()/2));\n }else{\n right = new StringBuilder(s.substring(s.length()/2+1));\n }\n \n StringBuilder reverseRight = new StringBuilder();\n int j=0;\n for(int i=right.length()-1;i>=0;i--){\n reverseRight.append(right.charAt(i));\n j++;\n }\n \n right = reverseRight;\n int diff = 0;\n for(int i=0;i<left.length();i++){\n if(left.charAt(i) != right.charAt(i)){\n diff++;\n }\n }\n int availableChanges = k;\n //int changesMade = 0;\n if(diff > k){\n return \"-1\";\n }\n for(int i=0;i<left.length();i++){\n char leftChar = left.charAt(i);\n char rightChar = right.charAt(i);\n if(leftChar != rightChar){\n if(leftChar == '9'){\n k--;\n diff--;\n right.setCharAt(i,'9');\n }else if(rightChar == '9'){\n k--;\n diff--;\n left.setCharAt(i,'9');\n }else{\n if(k-2 < diff-1){\n k--;\n diff--;\n if(leftChar > rightChar){\n right.setCharAt(i,leftChar);\n }else{\n left.setCharAt(i,rightChar);\n }\n }else{\n k -=2;\n diff--;\n left.setCharAt(i,'9');\n right.setCharAt(i,'9');\n }\n }\n \n \n }else{\n if(k > diff){\n if(leftChar!= '9'){\n if(k-2 >= diff){\n k -=2;\n left.setCharAt(i,'9');\n right.setCharAt(i,'9');\n \n } \n }\n }\n }\n }\n \n reverseRight = new StringBuilder(\"\");\n int j_i=0;\n for(int i=right.length()-1;i>=0;i--){\n reverseRight.append(right.charAt(i));\n j_i++;\n }\n \n \n right = reverseRight;\n if(s.length()%2 == 0){\n return left.toString()+right.toString(); \n }else{\n if(k > 0){\n return left.toString()+ '9' +right.toString();\n }else{\n return left.toString()+ s.charAt(s.length()/2) +right.toString();\n }\n }\n \n }", "public int lengthOfLongestSubstringKDistinctImprvd(String s, int k) {\n if (s == null || s.length() == 0) {\n return 0;\n }\n \n int[] map = new int[256];\n int j = 0;\n int distinctCt = 0;\n int maxLen = 0;\n\n for (int i = 0; i < s.length(); i++) {\n while (j < s.length()) {\n map[s.charAt(j)] += 1;\n if (map[s.charAt(j)] == 1) {\n distinctCt++;\n }\n j++;\n if (distinctCt > k) {\n break;\n }\n maxLen = Math.max(j- i, maxLen);\n }\n map[s.charAt(i)] -= 1;\n if (map[s.charAt(i)] == 0) {\n distinctCt--;\n }\n }\n\n return maxLen;\n}", "static String encryption(String s) {\n\n s = s.replaceAll(\" \",\"\");\n StringBuffer sb = new StringBuffer(s);\n int len = sb.length();\n int L = (int)Math.floor(Math.sqrt(len));\n int M = (int)Math.ceil(Math.sqrt(len));\n int p = M;\n List<String> list = new ArrayList<>();\n for (int i = 0; i < sb.length();) {\n if(i+M < sb.length()){\n list.add(sb.substring(i, i+M));\n }else{\n list.add(sb.substring(i, len));\n }\n i=i+M;\n }\n\n StringBuffer[] tps = new StringBuffer[M];\n for (int i = 0; i < M ; i++) {\n StringBuffer tpsi = new StringBuffer();\n for (String str:\n list) {\n if(i < str.length())\n tpsi.append(str.charAt(i));\n }\n tps[i] = tpsi;\n }\n\n StringBuffer ans = new StringBuffer();\n for (StringBuffer str:\n tps) {\n ans.append(str.toString()+\" \");\n }\n return ans.toString();\n }", "private static String formNewLineWithSpaces(String words[], int startIndex, int endIndex, int amountOfSpaces) {\n int numWordsCurrLine = endIndex - startIndex + 1;\n StringBuilder line = new StringBuilder();\n\n for (int i = startIndex; i < endIndex; ++i) {\n line.append(words[i]);\n --numWordsCurrLine ;\n int numCurrSpace = (int) Math.ceil((double)amountOfSpaces / numWordsCurrLine);\n\n for (int j = 0; j < numCurrSpace; j++) {\n line.append(\" \");\n }\n\n amountOfSpaces -= numCurrSpace;\n }\n\n line.append(words[endIndex]);\n for (int i = 0; i < amountOfSpaces; i++) line.append(\" \");\n\n return line.toString();\n }", "public int lengthOfLongestSubstringKDistinct(String s, int k) {\n Map<Character, Integer> map = new HashMap<>();\n int maxLenght = 0;\n\n int i = 0;\n int j = 0;\n int n = s.length();\n\n while (j < s.length()) {\n\n char c = s.charAt(j);\n if (map.containsKey(c)) {\n map.put(c, map.get(c) + 1);\n } else {\n map.put(c, 1);\n }\n\n if (map.size() <= k) {\n maxLenght = Math.max(maxLenght, j - i + 1);\n }\n\n if (map.size() > k) {\n\n while (map.size() > k && i < j) {\n char cx = s.charAt(i);\n map.put(cx, map.get(cx) - 1);\n if (map.get(cx) == 0) {\n map.remove(cx);\n }\n i++;\n }\n }\n\n j++;\n }\n\n return maxLenght;\n }", "private static String justifyLine(String text, int totalSpacesToInsert) {\n String[] wordArray = text.split(\"\\\\s\");\n String toAppend = \" \";\n\n while ((totalSpacesToInsert) >= (wordArray.length - 1)) {\n toAppend = toAppend + \" \";\n totalSpacesToInsert = totalSpacesToInsert - (wordArray.length - 1);\n }\n int i = 0;\n String justifiedText = \"\";\n for (String word : wordArray) {\n if (i < totalSpacesToInsert)\n justifiedText = justifiedText + word + \" \" + toAppend;\n\n else\n justifiedText = justifiedText + word + toAppend;\n\n i++;\n }\n\n return justifiedText;\n }", "public String getSequenceForSpace(int k) {\n\t\tif (k <= 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tfinal int scale = (int) Math.pow(10, k);\n\t\tchar[] visited = new char[scale];\n\t\tint num = scale - 1;\n\t\tvisited[num] = 1;\n\t\tint left = num;\n\t\tStringBuilder seq = new StringBuilder(Integer.toString(num));\n\t\twhile (left > 0) {\n\t\t\tint digit = 0;\n\t\t\tint tmp = (num * 10) % scale;\n\t\t\twhile (digit < 10) {\n\t\t\t\tif (visited[tmp + digit] == 0) {\n\t\t\t\t\tnum = tmp + digit;\n\t\t\t\t\tseq.append(digit);\n\t\t\t\t\tvisited[num] = 1;\n\t\t\t\t\t--left;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t++digit;\n\t\t\t}\n\t\t\tif (digit == 10) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\t\t}\n\t\treturn seq.toString();\n\t}", "public void fillLine(String[] words, int start, int end, int len, int maxWidth) {\n StringBuilder sb = new StringBuilder();\n // calc total spaces\n int spaces = maxWidth - len;\n // if only 1 word, fill right with spaces.\n if (start == end) {\n sb.append(words[start]);\n while (spaces > 0) {\n sb.append(\" \");\n spaces--;\n }\n res.add(sb.toString());\n return;\n }\n // more than 1 word.\n // spaces in between = totalSpaces / (words-1);\n int between = spaces / (end - start);\n // extra spaces, if cannot evenly divide. \n int extra = spaces % (end - start);\n \n // last line case.\n if (end == words.length - 1) {\n for (int i = start; i <= end; i++) {\n if (i == end) {\n // at last word. add word and fill spaces right\n sb.append(words[i]);\n while (spaces > 0) {\n sb.append(\" \");\n spaces--;\n }\n break;\n }\n // if not at last word. add 1 space.\n sb.append(words[i] + \" \");\n spaces--;\n }\n } else {\n // not last line and not only 1 word.\n for (int i = start; i <= end; i++) {\n // append word, calc space.\n sb.append(words[i]);\n // if last word in line, no need for space.\n if (i == end) {\n break;\n }\n // fill between spaces.\n for (int b = 0; b < between; b++) {\n sb.append(\" \");\n spaces--;\n }\n // add extra spaces, if there is extra leftover.\n if (extra > 0) {\n sb.append(\" \");\n extra--;\n spaces--;\n }\n } \n }\n // add curLine to res.\n res.add(sb.toString());\n }", "public static void main(String[] args) {\n \n String s = \"aaa bb c ccc ee\";\n String[] wordsT = s.split(\" \");\n List<String> words = new ArrayList<String>();\n for(int i = 0; i < wordsT.length; i++){\n words.add(wordsT[i]);\n }\n \n int[] palavras = {3,2,1,3,2};\n solveWordWrap(palavras,5,6);\n //System.out.println(ss);\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint k = input.nextInt();\n\t\tString s = input.next();\n\t\tString smallest = \" \";\n\t\tString largest = \" \";\n\t\tList<String> SubStringsOf_k_Length = new ArrayList<String>();\n\t\tfor(int i=0;(i+k)<=s.length();i++) {\n\t\t\tSubStringsOf_k_Length.add(s.substring(i,i+k));\n\t\t}\n//\t\tSystem.out.println(\"Before Sorting\");\n\t\tSystem.out.println(SubStringsOf_k_Length);\n\t\tSystem.out.println(SubStringsOf_k_Length.size());\n//\t\tCollections.sort(SubStringsOf_k_Length);\n//\t\tSystem.out.println(\"After Sorting\");\n//\t\tSystem.out.println(SubStringsOf_k_Length);\n\t\t\n//\t\tIterator itr = SubStringsOf_k_Length.iterator();\n//\t\t\n//\t\twhile(itr.hasNext()) {\n//\t\t\t\n//\t\t}\n\t\tString temp_largest = SubStringsOf_k_Length.get(0);\n\t\tString temp_smallest = SubStringsOf_k_Length.get(0);\n\t\tfor(int i=0;i<SubStringsOf_k_Length.size();i++) {\n\t\t\tif(temp_largest.compareTo(SubStringsOf_k_Length.get(i))>0 || temp_smallest.compareTo(SubStringsOf_k_Length.get(i))<0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(int j=i+1;j<SubStringsOf_k_Length.size();j++) {\n\t\t\t\t\tif(SubStringsOf_k_Length.get(i).compareTo(SubStringsOf_k_Length.get(j))>0) {\n\t\t\t\t\t\tlargest = SubStringsOf_k_Length.get(i);\n\t\t\t\t\t\tsmallest=SubStringsOf_k_Length.get(j);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//smallest = SubStringsOf_k_Length.get(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp_largest = largest;\n\t\t\t\ttemp_smallest = smallest;\n\t\t\t\t\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println(largest);\n\t\tSystem.out.println(smallest);\n//\t\tfor(int i=1;i<subStrings_Of_k_Length.length;i++) {\n//\t\t\tSystem.out.println(subStrings_Of_k_Length[i-1]);\n//\t\t\tsmallest = subStrings_Of_k_Length[i-1];\n//\t\t\tif((subStrings_Of_k_Length[i].compareTo(smallest))<0) {\n//\t\t\t\tlargest = subStrings_Of_k_Length[i-1];\n//\t\t\t\tsmallest = subStrings_Of_k_Length[i];\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println(\"Smallest:\" +smallest);\n//\t\tSystem.out.println(\"Largest:\" +largest);\n\t}", "private void printLine(int n, int k) {\n System.out.printf(\"%4d- \", n + 1);\n for (int i = 0; i < k; i++) {\n if (i % 10 == 0) System.out.printf(\" \");\n System.out.printf(\"%c\", seq.get(i + n));\n }\n for (int i = k; i < printLength; i++) {\n if (i % 10 == 0) System.out.printf(\" \");\n System.out.printf(\" \");\n }\n System.out.printf(\" -%4d\\n\", n + printLength);\n }", "protected static String padString(String string, UIFont font, double width) {\n StringBuilder sb = new StringBuilder();\n CGSize size = new CGSize(Float.MAX_VALUE, Float.MAX_VALUE);\n NSStringDrawingOptions options = NSStringDrawingOptions.with(NSStringDrawingOptions.TruncatesLastVisibleLine,\n NSStringDrawingOptions.UsesLineFragmentOrigin);\n NSAttributedStringAttributes attr = new NSAttributedStringAttributes().setFont(font);\n while (true) {\n sb.append(\" \");\n CGSize resultSize = NSString.getBoundingRect(sb.toString(), size, options, attr, null).getSize();\n if (resultSize.getWidth() >= width) {\n break;\n }\n }\n\n // Add final spaces to be ready for first word\n sb.append(String.format(\" %s\", string));\n return sb.toString();\n }", "private void append(String text) {\n // Reset counter if starts with a newline. only from formats above, not in natural text\n if (text.startsWith(\"\\n\")) {\n mWidth = 0;\n }\n\n // Don't accumulate long runs of empty spaces\n if (text.equals(\" \") && (mAccum.length() == 0 || StringUtil.in(\n mAccum.substring(mAccum.length() - 1), \" \", \"\\n\"))) {\n return;\n }\n\n // Won't fit, needs to wrap\n if (text.length() + mWidth > mMaxWidth) {\n String[] words = text.split(\"\\\\s+\");\n\n for (int i = 0; i < words.length; i++) {\n String word = words[i];\n boolean last = i == words.length - 1;\n\n // Insert a space if not the last word\n if (!last) {\n word = word + \" \";\n }\n\n // Wrap and reset counter\n if (word.length() + mWidth > mMaxWidth) {\n mAccum.append(\"\\n\").append(word);\n mWidth = word.length();\n } else {\n mAccum.append(word);\n mWidth += word.length();\n }\n }\n } else {\n // Fits as is, without need to wrap text\n mAccum.append(text);\n mWidth += text.length();\n }\n }", "private void computeWidth(Graphics2D g2)\n\t{\n\t\tfinal int PADDING = 5;\n\t\tfinal Rectangle bounds = getBounds();\n\t\tfinal String[] texts = getText().split(\"\\\\ \");\n\n\t\tfinal Font effectiveFont = font.deriveFont(font.getSize() * parent.getZoom());\n\n\t\tfinal FontMetrics metrics = g2.getFontMetrics(effectiveFont);\n\n\t\tfinal int hgt = metrics.getHeight();\n\t\tint adv, offsetY = bounds.y + PADDING + hgt, offsetX = PADDING;\n\t\tint nbLines = 1;\n\n\t\tint newWidth = bounds.width;\n\n\t\tfor (final String text2 : texts)\n\t\t{\n\t\t\tfinal String currentText = text2 + \" \";\n\t\t\tadv = metrics.stringWidth(currentText);\n\n\t\t\tif (offsetX + adv > bounds.width - PADDING * 2)\n\t\t\t{\n\t\t\t\toffsetY += hgt; // new line\n\t\t\t\toffsetX = PADDING;\n\t\t\t\tnbLines++;\n\n\t\t\t\tif (offsetX + adv > newWidth - PADDING)\n\n\t\t\t\t\tnewWidth = adv + PADDING * 4;\n\n\t\t\t}\n\n\t\t\toffsetX += adv;\n\t\t}\n\n\t\tfinal int newHeight = offsetY + PADDING * 2 - bounds.y;\n\n\t\tif (nbLines == 1)\n\n\t\t\tnewWidth = offsetX + PADDING * 4;\n\n\t\tif (bounds.width != newWidth || bounds.height != newHeight)\n\n\t\t\tsetBounds(new Rectangle(bounds.x, bounds.y, newWidth, newHeight));\n\t}", "public static String solution(String S, int K) {\n StringBuilder string = new StringBuilder();\n for (int i = 0; i < S.length(); i++) {\n char character = S.charAt(i);\n if (character == '-') continue;\n string.append(character);\n }\n // Builds a new string with hyphens between characters,\n // separating string into substrings of size K.\n StringBuilder output = new StringBuilder(string.length());\n for (int i = 0; i < string.length(); i++) {\n char character = string.charAt(i);\n if (i != 0 && i % K == 0) {\n output.append('-');\n output.append(character);\n } else {\n output.append(character);\n }\n }\n\n char character = output.charAt(output.length() - 1);\n int count = 0;\n while (character != '-') {\n count++;\n character = output.charAt(output.length() - (count + 1));\n }\n\n String result = output.toString();\n while (count < 3) {\n result = moveHypensLeft(result);\n count++;\n }\n\n return result;\n }", "private String method2(char[] arr, int k) {\n StringBuilder sb = new StringBuilder();\n for (char c : arr) {\n while (k > 0 && sb.length() > 0 && sb.charAt(sb.length() - 1) > c) {\n sb.deleteCharAt(sb.length() - 1);\n k--;\n }\n sb.append(c);\n }\n while (k > 0) {\n sb.deleteCharAt(sb.length() - 1);\n k--;\n }\n return sb.toString();\n }", "public static String cutToSize(String textIn, float targetWidth, BitmapFont fontIn){\n String out=textIn;\n for(int i = textIn.length();i>0;i--) {\n String cutText = out.substring(0, i);\n if (textWidth(fontIn, cutText) <= targetWidth) {\n return cutText;\n }\n }\n return \"\";\n }", "private String pad(String s, int l){ String p=\"\"; for(int i=0; i<l-s.length();i++)p+=\" \"; return \" \"+p+s; }", "public static String getSmallestAndLargest(String s, int k)\n {\n /*\n Create Strings for the largest and smalletst substrings, also a temporary String which will be used\n while searching for the largest and smallest substrings.\n\n The first loops iterates over the input String s for the largest substring. As a substring must be contiguous\n it's as simple as comparing subsequent substrings e.g. 0-3 compared to 1-4 etc. until the upperbound is equal\n to the final index of the String s.\n\n As the largest String starts off as empty then any substring will be larger than it when using .compareTo. Once this\n loop finishes the largest substring of size k will be found. The smallest substring can be found the same way by\n inverting the boolean condition to update temp. Smallest is set to largest initially to insure that it will be updated\n by a substring of s.\n */\n String smallest = \"\", largest = \"\", temp = \"\";\n for(int i = 0; i + k <= s.length(); i++)\n {\n temp = s.substring(i, i+k);\n if(temp.compareTo(largest) >= 0) largest = temp;\n }\n smallest = largest;\n for(int i = 0; i + k <= s.length(); i++)\n {\n temp = s.substring(i, i+k);\n if(temp.compareTo(smallest) < 0) smallest = temp;\n }\n\n return smallest + \"\\n\" + largest;\n }", "public static List<String> getNWords(String text, int n) {\n\t\treturn splitNChar(text, ' ', n);\n\t}", "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 void genPerms(String pre, String str, int k, int len, Set<String> hSet) {\n if (k == len) {\n hSet.add(pre + str);\n }\n\n for (int i = 0; i < str.length(); i++) {\n String x = pre + str.charAt(i);\n String y = str.substring(0, i) + str.substring(i + 1);\n genPerms(x, y, k + 1, len, hSet);\n }\n }", "private static String makeCorrectSize(String s, int length){\n\t\tStringBuilder sb = new StringBuilder(s); \n\t\tfor(int i = sb.length(); i<length; i++){\n sb.append(\" \");\n }\n\t\treturn sb.toString(); \n\n\t}", "private void splitText(ArrayList<TextLayout> chunks, String str){\n if(str.length() == 0){\n str = \" \";\n }\n FontRenderContext frc = getFontRenderContext();\n TextLayout textLayout = new TextLayout(str,\n TEXT_FONT, frc);\n Rectangle2D textRect = textLayout.getBounds();\n // does text need to be split?\n if(textRect.getWidth() > TEXT_WIDTH){\n\n AttributedString asText = new AttributedString(str);\n asText.addAttribute(TextAttribute.FONT, TEXT_FONT);\n AttributedCharacterIterator asItr = asText.getIterator();\n\n int start = asItr.getBeginIndex();\n int end = asItr.getEndIndex();\n\n LineBreakMeasurer line = new LineBreakMeasurer(asItr, frc);\n line.setPosition(start);\n // Get lines from lineMeasurer until the entire\n // paragraph has been displayed.\n while (line.getPosition() < end) {\n\n // Retrieve next layout.\n // width = maximum line width\n TextLayout layout = line.nextLayout(TEXT_WIDTH);\n chunks.add(layout);\n }\n }\n else{\n chunks.add(textLayout);\n }\n }", "protected int addMultilineTextElement(Element canvas, double x, double y, double width, double lineHeight,\n String text, float fontSize, String anchor, String weight, String fill, char delimiter) {\n int lines = 0;\n int pos = 0;\n while (text.length() > 0) {\n if (getTextLength(text, fontSize) <= width) {\n addTextElement(canvas, x, y, text, fontSize, anchor, weight, fill);\n lines++;\n return lines;\n }\n int index = text.substring(pos).indexOf(delimiter);\n if ((index < 0) && (pos == 0)) {\n addTextElement(canvas, x, y, text, fontSize, anchor, weight, fill);\n lines++;\n return lines;\n }\n if ((index < 0) || (getTextLength(text.substring(0, pos + index), fontSize) > width)) {\n addTextElement(canvas, x, y, text.substring(0, pos), fontSize, anchor, weight, fill);\n lines++;\n y += lineHeight;\n text = text.substring(pos);\n pos = 0;\n } else if (index > 0) {\n pos += index + 1;\n }\n }\n return lines;\n }", "public int lengthOfLongestSubstringKDistinct(String s, int k) {\n if (s == null || s.length() == 0) {\n return 0;\n }\n\n int j = 0;\n int max = 0;\n int[] map = new int[256];\n int distinctCt = 0;\n\n for (int i = 0; i < s.length(); i++) {\n while( j < s.length()) {\n int ch = s.charAt(j);\n if (map[ch] == 0) {\n if (distinctCt + 1 > k) {\n break;\n }\n map[ch] = 1;\n distinctCt++;\n j++;\n } else {\n map[ch] += 1;\n j++;\n }\n }\n max = Math.max(max, j - i);\n map[s.charAt(i)] -= 1;\n if (map[s.charAt(i)] == 0) {\n distinctCt--;\n }\n }\n return max;\n }", "private static String box(String str, String mark, Integer max_len) {\n String lines[] = LINE_SPLIT.split(str);\n if (lines.length == 0) return \"\";\n\n if (max_len == null) {\n for (String line : lines) {\n if (max_len == null || line.length() > max_len) max_len = line.length();\n } // FOR\n }\n\n final String top_line = StringUtil.repeat(mark, max_len + 4); // padding\n final String f = \"%s %-\" + max_len + \"s %s\\n\";\n\n StringBuilder sb = new StringBuilder();\n sb.append(top_line).append(\"\\n\");\n for (String line : lines) {\n sb.append(String.format(f, mark, line, mark));\n } // FOR\n sb.append(top_line);\n\n return (sb.toString());\n }", "public void drawWrapped(String str, double x, double y, double size, int color, double limit) {\n double scale = size / mcFont().FONT_HEIGHT;\n FontRenderer font = mcFont();\n List<String> list = split(str, limit * font.FONT_HEIGHT / size);\n //System.out.println(\"---{\" + list.size());\n for(String s : list) {\n //System.out.println(str);\n draw(s, x, y, size, color);\n y += size;\n } \n //System.out.println(\"---}\");\n }", "public static String spinWords(String sentence) {\n String[] all = sentence.split(\" \");\n StringBuilder sb = new StringBuilder();\n for (String s : all) {\n if (s.length() < 5) {\n sb.append(s).append(\" \");\n } else {\n sb.append(new StringBuilder(s).reverse().toString()).append(\" \");\n }\n }\n sb.deleteCharAt(sb.length() - 1);\n return sb.toString();\n }", "private int preNonSpace(String s, int k){\n \twhile(k>=0){\n \t\tif(!s.substring(k,k+1).equals(\" \"))\n \t\t\tbreak;\n \t\tk--;\n \t}\n \treturn k;\n }", "public void drawStringMultiLine(Graphics g, String text, int lineWidth, int x, int y) {\n\t\tFontMetrics m = g.getFontMetrics();\n\t\tif (m.stringWidth(text) < lineWidth) {\n\t\t\tg.drawString(text, x, y);\n\t\t} else {\n\t\t\tString[] words = text.split(\" \");\n\t\t\tString currentLine = words[0];\n\t\t\tfor (int i = 1; i < words.length; i++) {\n\t\t\t\tif (m.stringWidth(currentLine + words[i]) < lineWidth) {\n\t\t\t\t\tcurrentLine += \" \" + words[i];\n\t\t\t\t} else {\n\t\t\t\t\tg.drawString(currentLine, x, y);\n\t\t\t\t\ty += m.getHeight();\n\t\t\t\t\tcurrentLine = words[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (currentLine.trim().length() > 0) {\n\t\t\t\tg.drawString(currentLine, x, y);\n\t\t\t}\n\t\t}\n\t}", "public String spinWords(String sentence) {\n List<String> wordList = new ArrayList<>();\n String word = \"\";\n for (String s : sentence.split(\" \")) {\n word = s.length() > 4 ? new StringBuilder(s).reverse().toString() : s;\n wordList.add(word);\n }\n return String.join(\" \", wordList);\n }", "public static CharSequence elide(CharSequence orig, int targetLength, CharSequence ellipsis) {\n int len = orig.length();\n if (len <= targetLength) {\n return orig;\n }\n targetLength -= ellipsis.length();\n targetLength = Math.max(targetLength, 3);\n if (len <= 2 + ellipsis.length() + 1 || orig.length() <= targetLength) {\n return orig;\n }\n if (targetLength % 2 != 0) {\n targetLength--;\n }\n if (targetLength <= 3) {\n return new AppendableCharSequence(singleChar(orig.charAt(0)),\n ellipsis, singleChar(orig.charAt(orig.length() - 1)));\n }\n int halfLength = targetLength / 2;\n// int textMidpoint = len / 2;\n int leftEnd = halfLength;\n int rightStart = len - halfLength;\n\n // Fudge a little to find a whitespace character to split on\n int leftScanStop = Math.max(leftEnd - (leftEnd / 3), leftEnd - MAX_ELLIPSIS_SKEW);\n int rightScanStop = Math.min(rightStart + ((len - rightStart) / 3), rightStart + MAX_ELLIPSIS_SKEW);\n if (!Character.isWhitespace(orig.charAt(leftEnd))) {\n for (int i = leftEnd - 1; i > leftScanStop; i--) {\n if (Character.isWhitespace(orig.charAt(i))) {\n rightStart -= (leftEnd - (i));\n leftEnd = i;\n break;\n }\n }\n } else {\n while (leftEnd > leftScanStop && Character.isWhitespace(orig.charAt(leftEnd + 1))) {\n leftEnd--;\n }\n }\n if (!Character.isWhitespace(orig.charAt(rightStart))) {\n for (int i = rightStart + 1; i < rightScanStop; i++) {\n if (Character.isWhitespace(orig.charAt(i))) {\n rightStart = i + 1;\n break;\n }\n }\n } else {\n while (rightStart < orig.length() - 2 && Character.isWhitespace(orig.charAt(rightStart))) {\n rightStart++;\n }\n }\n CharSequence left = orig.subSequence(0, leftEnd);\n CharSequence right = orig.subSequence(rightStart, len);\n return new AppendableCharSequence(left, ellipsis, right);\n }", "public String addLinebreaks(String input, int maxLineLength, String formatBuffer) {\n StringTokenizer tok = new StringTokenizer(input, \" \");\n StringBuilder output = new StringBuilder(input.length());\n int lineLen = 0;\n while (tok.hasMoreTokens()) {\n String word = tok.nextToken() + \" \";\n\n if (lineLen + word.length() > maxLineLength) {\n output.append(formatBuffer);\n lineLen = 0;\n }\n output.append(word);\n lineLen += word.length();\n }\n return output.toString();\n }", "private static String pad(String s, int len, char j) {\n\n\t\tif (s.length() >= len) {\n\t\t\treturn s;\n\t\t}\n\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tfor (int i = 0; i < len - s.length(); ++i) {\n\t\t\tsb.append(j);\n\t\t}\n\t\tsb.append(s);\n\n\t\treturn sb.toString();\n\t}", "static String caesarCipher(String s, int k) {\n char[] chars = s.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n chars[i] = shift(chars[i], k);\n }\n return new String(chars);\n }", "public int getStringWidth(String text);", "public void pack(String[] words, List<String> result, int start, int end, int currentStringLen, int currentSpace, int totalLen){\n \tint wordsCount = end - start;\n int space = totalLen - currentStringLen;\n StringBuilder sb = new StringBuilder();\n int[] padding = new int[wordsCount - 1];\n\n\t\tif(wordsCount - 1 != 0){\n\t\t\tif(end == words.length){\n\t\t\t\t // last line do not need to be justified.\n\n // something is wrong here: if it is the last line, then the padding count\n // should no longer be wordsCount - 1, it will depend on the total words in\n // last line, and the space they occupy.\n // so you should take account this into it.\n padding = new int[wordsCount];\n for(int i = 0; i < wordsCount - 1; i++){\n padding[i] = 1;\n space--;\n }\n padding[wordsCount - 1] = space;\n\t\t\t}else{\n\t\t\t\tint pad = space / ( wordsCount - 1);\n\t\t\t\tfor(int i = 0; i < padding.length; i++){\n\t\t\t\t\tpadding[i] = pad;\n\t\t\t\t}\n\t\t\t\tif(space % (wordsCount - 1)!= 0){\n\t\t\t\t\tint mod = space % (wordsCount - 1);\n\t\t\t\t\tfor(int i = 0; i < mod; i++){\n\t\t\t\t\t\tpadding[i] += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n padding = new int[1];\n padding[0] = space;\n } \n\n\t\tint counter = 0;\n for(int i = start; i < end; i++){\n sb.append(words[i]);\n if(padding.length != 0 && counter < padding.length){\n int tempPad = padding[counter];\n counter++;\n while(tempPad != 0){\n sb.append(\" \");\n tempPad--;\n }\n }\n }\n\n result.add(sb.toString());\n }", "public void BreakInput(String l){\n l+=\" \";\n int k = 0;\n for(int i =0; i<size; i++){\n String temp =\"\";\n while(!(\" \".equals(String.valueOf(l.charAt(k))))){\n temp+=String.valueOf(l.charAt(k));\n k++;\n }\n k++;\n temps.add(i,temp);\n }\n }", "private void wordBreakRecur(String word, String result) {\n\t\tint size = word.length();\n\n\t\tfor (int i = 1; i <= size; i++) {\n\t\t\tString prefix = word.substring(0, i);\n\n\t\t\tif (dictionaryContains(prefix)) {\n\t\t\t\tif (i == size) {\n\t\t\t\t\tresult += prefix;\n\t\t\t\t\tSystem.out.println(result);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\twordBreakRecur(word.substring(i), result + prefix + \" \");\n\t\t\t}\n\t\t}\n\t}", "private java.util.ArrayList<String> textSplit(String splitted) {\n java.util.ArrayList<String> returned = new java.util.ArrayList<String>();\n String relatedSeparator = this.getLineSeparator(splitted);\n String[] pieces = splitted.split(relatedSeparator + relatedSeparator);\n String rstr = \"\";\n for (int cpiece = 0; cpiece < pieces.length; cpiece++) {\n String cstr = pieces[cpiece];\n if (rstr.length() + cstr.length() > maxLength) {\n if (!rstr.isEmpty()) {\n returned.add(rstr);\n rstr = cstr;\n }\n else {\n returned.add(cstr);\n }\n }\n else {\n if (rstr.equals(\"\")) {\n rstr = cstr;\n }\n else {\n rstr = rstr + lineSeparator + lineSeparator + cstr;\n }\n }\n if (cpiece == pieces.length - 1) {\n returned.add(rstr);\n }\n }\n return returned;\n }", "public int longestRepeatingSubsequenceII(String str, int k) {\n HashMap<String, Integer> cache = new HashMap<>();\n\n int max = 0;\n for (int i = str.length(); 0<=i; i--) {\n for (int j = 0; j+i < str.length(); j++) {\n String sub = str.substring(j, j+i);\n int count = repeat(str, sub, k , cache);\n if (count>=k) {\n return sub.length();\n }\n }\n }\n\n return max;\n\n }", "public static String createBreaks(String input) {\r\n char[] chars = input.toCharArray();\r\n int len = chars.length;\r\n StringBuffer buf = new StringBuffer(len);\r\n int count = 0;\r\n int cur = 0; \r\n for (int i = 0; i < len; i++) { \r\n if (chars[i] == '\\n') {\r\n buf.append(chars, cur, i - cur).append(BR_TAG);\r\n cur = i + 1;\r\n } \r\n else if (chars[i] == '\\r' && i < len - 1 && chars[i + 1] == '\\n') {\r\n buf.append(chars, cur, i - cur).append(BR_TAG);\r\n i++;\r\n cur = i + 1;\r\n }\r\n\r\n count++;\r\n } \r\n buf.append(chars, cur, len - cur);\r\n return buf.toString();\r\n }", "public static String getBlocksOf4(String text){\r\n\t\tString result = \"\";\r\n\t\t\r\n\t\tchar[] textChars = text.toCharArray();\r\n\t\tfor(int i = 0; i < text.length(); i++){\r\n\t\t\tresult += textChars[i];\r\n\t\t\tif ((i+1) % 4 == 0){\r\n\t\t\t\tresult += \" \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public static String fitToThePage(String matter,int lineSize,boolean isBeginWithSpace) \r\n\t {\r\n\t if(matter.equals(\"\"))\r\n\t return \"\"; \r\n\t \r\n\t String space=\" \";\r\n\t String bSpace=\"\";\r\n\t if(isBeginWithSpace)\r\n\t bSpace =\" \";\r\n\t \r\n\t boolean doubleSpace = false;\r\n\t \r\n\t int j=0; \r\n\t int word=1; \r\n\t \r\n\t // This loop will find that how much words are present in the string\r\n\t for(j=0;j<matter.length();j++)\r\n\t {\r\n\t if(matter.charAt(j)==' ')\r\n\t {\r\n\t if(!doubleSpace)\r\n\t word++;\r\n\r\n\t doubleSpace = true;\r\n\t continue;\r\n\t }\r\n\t doubleSpace = false;\r\n\t }\r\n\t String st[] = new String[word];\r\n\t String ch =\"\";\r\n\t int i=0; \r\n\t \r\n\t doubleSpace = false;\r\n\t //This loop will store words in the String array st[]\r\n\t for(j=0;j<matter.length();j++)\r\n\t {\r\n\t if(matter.charAt(j)==' ')\r\n\t {\r\n\t if(!doubleSpace)\r\n\t {\r\n\t st[i] = ch;\r\n\t ch=\"\"; \r\n\t i++; \r\n\t }\r\n\t doubleSpace = true;\r\n\t continue;\r\n\t }\r\n\t else\r\n\t {\r\n\t ch = ch + matter.charAt(j);\r\n\t }\r\n\t doubleSpace = false;\r\n\t }\r\n\t st[i]=ch;\r\n\t \r\n\t ch = \"\";\r\n\t String newString=\"\";\r\n\t int len = st.length;\r\n\t \r\n\t for(i=0 ; i<word ; i++)\r\n\t {\r\n\t ch = ch + \" \"+ st[i];\r\n\t \r\n\t if(!isBeginWithSpace)\r\n\t ch = ch.trim();\r\n\t if( ch.length() > lineSize )\r\n\t {\r\n\t newString = newString +\"\\n\" +bSpace + st[i];\r\n\t ch = \"\";\r\n\t ch = bSpace + st[i];\r\n\t }else\r\n\t {\r\n\t newString = newString + space + st[i];\r\n\t if(!isBeginWithSpace)\r\n\t newString = newString.trim();\r\n\t }\r\n\t }\r\n\t return newString;\r\n\t }", "public void insert(String s, int k) {\n assert(k > -1 && k < seq.size() + 1);\n ArrayList<Character> newSeq = new ArrayList<Character>();\n if (k == 0) {\n for (char c : s.toCharArray()) {\n if (isValid(c)) newSeq.add(c);\n }\n }\n else {\n for (int i = 0; i < k; i++) {\n newSeq.add(seq.get(i));\n }\n for (char c : s.toCharArray()) {\n if (isValid(c)) newSeq.add(c);\n }\n }\n for (int i = k; i < seq.size(); i++) {\n newSeq.add(seq.get(i));\n }\n seq = newSeq;\n }", "public static String orderlyQueue(String s, int k) {\n //Runtime: 9 ms, faster than 5.74% of Java online submissions for Orderly Queue.\n //Memory Usage: 41.4 MB, less than 5.15% of Java online submissions for Orderly Queue.\n\n if (k == 1) {\n String ans = s;\n for (int i = 0; i < s.length(); i++) {\n String temp = s.substring(i) + s.substring(0, i);\n if (temp.compareTo(ans) < 0) {\n ans = temp;\n }\n }\n return ans;\n } else {\n char[] chars = s.toCharArray();\n Arrays.sort(chars);\n return new String(chars);\n }\n }", "public String licenseKeyFormatting(String S, int K) {\n\t\tS = S.toUpperCase();\n\t\tString[] strs =S.split(\"-\");\n\t\tString res = \"\";\n\t\tfor(String s : strs)\n\t\t\tres+=s;\n\t\tint length = res.length()-1;\n\t\tint startLen = length % K;\n\t\tStringBuffer result = new StringBuffer(res);\n\t\tfor(int i = length; i>=0;){\n\t\t\ti = i-K;\n\t\t\tif(i>=0){\n\t\t\t\tresult.insert(i+1, \"-\");\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result+\"\";\n\t}", "public static String getWrappedText(String text, int offset) {\r\n StringBuffer wrappedText = new StringBuffer();\r\n\r\n String currentString = null;\r\n int currentStart = 0;\r\n int strLen = 0;\r\n int len = 0;\r\n\r\n while (currentStart < text.length() && text.length() > offset) {\r\n currentString = text.substring(currentStart, (currentStart + offset));\r\n strLen += currentString.length() + len;\r\n wrappedText.append(currentString);\r\n\r\n int index = text.indexOf(\" \", (currentStart + offset));\r\n if (index == -1) {\r\n index = text.indexOf(\".\", (currentStart + offset));\r\n }\r\n if (index == -1) {\r\n index = text.indexOf(\",\", (currentStart + offset));\r\n }\r\n if (index != -1) {\r\n len = index - strLen;\r\n currentString = text.substring((currentStart + offset), (currentStart + offset + len));\r\n wrappedText.append(currentString);\r\n wrappedText.append(\"<BR>\");\r\n } else {\r\n if (currentStart == 0) {\r\n currentStart = offset;\r\n }\r\n wrappedText.append(text.substring(currentStart));\r\n return wrappedText.toString();\r\n }\r\n\r\n currentStart += offset + len;\r\n if ((currentStart + offset + len) > text.length()) {\r\n break;\r\n }\r\n }\r\n wrappedText.append(text.substring(currentStart));\r\n return wrappedText.toString();\r\n }", "public default S withWordwrap(boolean wordwrap) {\n ((TextArea) this).setWordwrap(wordwrap);\n return (S) this;\n }", "public String words(String sentence) {\n String[] stringSentence = sentence.trim().split(\" \");\n for (int i = 0; i < stringSentence.length; i++) {\n if (stringSentence[i].length() >= LENGTH) {\n stringSentence[i] = new StringBuilder(stringSentence[i]).reverse().toString();\n }\n }\n return String.join(\" \", stringSentence);\n }", "public static Spannable applyKerning(CharSequence src, float kerning)\n {\n if (src == null) return null;\n final int srcLength = src.length();\n if (srcLength < 2) return src instanceof Spannable\n ? (Spannable)src\n : new SpannableString(src);\n\n final String nonBreakingSpace = \"\\u00A0\";\n final SpannableStringBuilder builder = src instanceof SpannableStringBuilder\n ? (SpannableStringBuilder)src\n : new SpannableStringBuilder(src);\n for (int i = src.length() - 1; i >= 1; i--)\n {\n builder.insert(i, nonBreakingSpace);\n builder.setSpan(new ScaleXSpan(kerning), i, i + 1,\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n\n return builder;\n }", "public static List<String> fullJustify(String[] words, int maxWidth) {\n List<String> list = new ArrayList<>();\n int i = 0;\n while (true) {\n List<String> al = new ArrayList<>();\n int len = 0;\n while (i < words.length && len + words[i].length() <= maxWidth) {\n al.add(words[i]);\n len += words[i].length() + 1;\n i++;\n }\n len--;\n int remLen = maxWidth - len;\n if (i == words.length) {\n StringBuilder sb = new StringBuilder(al.get(0));\n int j = 1;\n while (j < al.size()) {\n sb.append(\" \");\n sb.append(al.get(j++));\n }\n while (remLen-- > 0)\n sb.append(\" \");\n list.add(sb.toString());\n break;\n } else if (al.size() == 1) {\n StringBuilder sb = new StringBuilder(al.get(0));\n while (remLen-- > 0)\n sb.append(\" \");\n list.add(sb.toString());\n } else {\n int div = remLen / (al.size() - 1), rem = remLen % (al.size() - 1);\n StringBuilder sb = new StringBuilder(al.get(0));\n int j = 1;\n while (j < al.size()) {\n sb.append(\" \");\n for (int k = 0; k < div; k++)\n sb.append(\" \");\n if (rem-- > 0)\n sb.append(\" \");\n sb.append(al.get(j++));\n }\n list.add(sb.toString());\n }\n }\n return list;\n }", "public static void main(String[] args) {\n String s = \"applepenapple\";\n List<String> wordDict = new ArrayList<>();\n wordDict.add(\"apple\");\n wordDict.add(\"pen\");\n// String s = \"catsandog\";\n// List<String> wordDict = new ArrayList<>();\n// wordDict.add(\"cats\");\n// wordDict.add(\"dog\");\n// wordDict.add(\"sand\");\n// wordDict.add(\"cat\");\n\n System.out.println(wordBreak2(s, wordDict));\n }", "private String splitmessage(String message){\n String finalmessage = message;\n int length = message.length();\n for(int i = 50; i < length; i = i + 50){\n finalmessage = new StringBuilder(finalmessage).insert(i, \"\\n\").toString();\n }\n return finalmessage;\n }", "public static void main(String[] args) { String s = \"catsanddog\";\n// List<String> wordDict = new ArrayList<>(Arrays.asList(\"cat\", \"cats\", \"and\", \"sand\", \"dog\"));\n//\n String s = \"pineapplepenappl\";\n List<String> wordDict = new ArrayList<>(Arrays.asList(\"apple\", \"pen\", \"applepen\", \"pine\", \"pineapple\"));\n\n WordBreak140 tmp = new WordBreak140();\n tmp.wordBreak(s, wordDict);\n }", "private void makeStrings(char middleLineChar, String[] lines){\n\n\t\tint n = lines.length;\n\t\tint currentCharIndex = (int) (middleLineChar - 'A');\n\t\tchar currentChar;\n\t\tint middleIndex = n/2;\n\t\tint marginFromLeft, marginFromMiddle;\t\n\t\tfor (int currentLineIndex = middleIndex; currentLineIndex >=0; currentLineIndex--){\n\t\t\tmarginFromLeft = middleIndex - currentLineIndex;\n\t\t\tmarginFromMiddle = currentLineIndex;\n\t\t\tcurrentChar = charValueOf(currentCharIndex);\n\t\t\tString line = makeStringLine(currentChar, marginFromLeft, marginFromMiddle);\n\t\t\tlines[currentLineIndex] = line;\n\t\t\tlines[2*middleIndex - currentLineIndex] = line;\t\t\t\n\t\t\tcurrentCharIndex--;\n\t\t}\t\n\t}", "private static float getMaximumWidth(final String text, final Paint paint) {\n float width = 0;\n for (String token : text.split(\"\\n\")) {\n final float textWidth = paint.measureText(token);\n if (textWidth > width) {\n width = textWidth;\n }\n }\n\n return width;\n }", "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 }-*/;", "private String centerText(String toCenter, int length, char spacer) {\n // Do fancy centering\n StringBuilder sb = new StringBuilder();\n int noOfSpaces = (toCenter.length() > length) ? 0 : (length - toCenter.length()) / 2;\n Stream.generate(() -> spacer).limit(noOfSpaces).forEach(sb::append);\n sb.append(toCenter);\n return sb.toString();\n }", "public static void permutation3(StringBuffer sb, int k, Set<String> set)\r\n\t{\r\n\t\tif(k == sb.length())\r\n\t\t{\r\n\t\t\tset.add(sb.toString());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\tfor(int i =k ;i < sb.length();i++)\r\n\t\t{\r\n\t\t\tswap(sb,k,i);\r\n\t\t\tpermutation3(sb,k+1, set);\r\n\t\t\tswap(sb,i,k);\r\n\t\t}\r\n\t}", "private void chop(String cmd){\n int n = cmd.length();\n //l and r will be used to chop the string\n int l = 0;\n int r = 0;\n\n for(; l<n; l++){\n if(separator(cmd.charAt(l))) {\n for (r = l; r < n; r++) {\n if (!separator(cmd.charAt(r))) break;\n }\n r--;\n l = r;\n }\n else {\n for (r = l; r < n; r++) {\n if (separator(cmd.charAt(r))) break;\n }\n key_words.add(cmd.substring(l, r));\n l = r;\n }\n\n }\n\n suffix();\n }", "private void wordMultiBreakEkle(XWPFRun r, int adet)\n {\n for (int i = 0; i < adet; i++)\n r.addBreak();\n }", "public static String padL(String s, int width) {\n\t\tif (s == null) {\n\t\t\ts = \"null\";\n\t\t}\n\t\twhile (s.length() < width) {\n\t\t\ts = \" \" + s;\n\t\t}\n\t\treturn s;\n\t}", "public static String getAlignedWord(String word, int length) {\n SpreedWord pivot = new SpreedWord();// to get the pivot.\n String alignWord = \"<html>\"; // get the align word.\n double align; // get number of spaces\n double count = 0; // count the number of spaces\n double leftSpace; // geting left space\n double rightSpace = 0; // get right space\n int getPivot; // get pivot number\n // this check to see if the length is even add one\n if (length % 2 == 0) {\n length = length + 1;\n }\n // this checks for commas and semicolons and periods.\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) == '.') {\n word = word.substring(0, word.length() - 1);\n break;\n } else if (word.charAt(i) == ';') {\n word = word.substring(0, word.length() - 1);\n break;\n } else if (word.charAt(i) == ',') {\n word = word.substring(0, word.length() - 1);\n break;\n }\n }\n // this gets the pivot\n getPivot = pivot.getPivot(word);\n // takes half the length\n align = length / 2;\n // gets the numbers space before the pivot.\n char[] letters = word.toCharArray();\n for (int i = 0; i < word.length(); i++) {\n if (!Character.isLetter(letters[i])) {\n count++;\n } else {\n break;\n }\n }\n // get left spaces\n align = align - (getPivot + count);\n\n leftSpace = align;\n\n // adding the left spaces\n for (int i = 0; i < leftSpace; i++) {\n alignWord += \"&nbsp;\";\n }\n // add the word\n alignWord += word.substring(0, getPivot);\n alignWord += \"<font color=\\\"yellow\\\">\";\n alignWord += word.charAt(getPivot);\n alignWord += \"</font>\";\n for (int i = getPivot + 1; i < word.length(); i++)\n alignWord += word.charAt(i);\n //alignWord += word.substring(getPivot + 1, word.length() - getPivot + 1);\n // adding the right space or truncate\n if (alignWord.length() > length) {\n\n } else {\n rightSpace = length - alignWord.length();\n for (int j = 0; j < rightSpace; j++) {\n alignWord += \" \";\n }\n }\n\n alignWord += \"</html>\";\n System.out.println(alignWord);\n\n return alignWord;\n }", "static String appendAndDelete(String s, String t, int k) {\n String [] ss = s.split(\"\");\n String [] tt = t.split(\"\");\n //case 1. String s 를 완전히 지우고 t를 추가하는 경우\n if(s.length()+t.length()<=k){\n return \"Yes\";\n }\n //case 2. String s 를 완전히 지우지 않고 t로 변환 가능 한지 확인\n int i=0;\n for (; i <Math.min(s.length(),t.length()); i++) {\n if (s.charAt(i) != t.charAt(i)) {\n break;\n }\n }\n\n int min = (s.length()-i) + (t.length()-i); // 최소한 1개는 같고 나머지값 삭제,등록\n\n if(k>= min && (k-min)%2 ==0){ //(k-min) %2==0인 조건은 작업 k 개수를 맞추기위해 낭비하는 작업은 추가,삭제 2가지이기 때문에 2로 나눈 나머지가 0이여야 한다.\n return \"Yes\";\n }else{\n return \"No\";\n }\n }", "public static String fitToTextInputBox(String toPara, int length, int currentBeginningIndex, boolean renderCursor) {\r\n\t\treturn toPara.substring(currentBeginningIndex, Math.min(currentBeginningIndex + length / 12 - 3, toPara.length())) +\r\n\t\t (currentBeginningIndex + length / 12 - 3 < toPara.length() ? \"...\" : renderCursor ? \"|\" : \"\");\r\n\t}", "private static List<String> simpleTokenize (String text) {\r\n\r\n // Do the no-brainers first\r\n String splitPunctText = splitEdgePunct(text);\r\n\r\n int textLength = splitPunctText.length();\r\n \r\n // BTO: the logic here got quite convoluted via the Scala porting detour\r\n // It would be good to switch back to a nice simple procedural style like in the Python version\r\n // ... Scala is such a pain. Never again.\r\n\r\n // Find the matches for subsequences that should be protected,\r\n // e.g. URLs, 1.0, U.N.K.L.E., 12:53\r\n Matcher matches = Protected.matcher(splitPunctText);\r\n //Storing as List[List[String]] to make zip easier later on \r\n List<List<String>> bads = new ArrayList<List<String>>();\t//linked list?\r\n List<Pair<Integer,Integer>> badSpans = new ArrayList<Pair<Integer,Integer>>();\r\n while(matches.find()){\r\n // The spans of the \"bads\" should not be split.\r\n if (matches.start() != matches.end()){ //unnecessary?\r\n List<String> bad = new ArrayList<String>(1);\r\n bad.add(splitPunctText.substring(matches.start(),matches.end()));\r\n bads.add(bad);\r\n badSpans.add(new Pair<Integer, Integer>(matches.start(),matches.end()));\r\n }\r\n }\r\n\r\n // Create a list of indices to create the \"goods\", which can be\r\n // split. We are taking \"bad\" spans like \r\n // List((2,5), (8,10)) \r\n // to create \r\n /// List(0, 2, 5, 8, 10, 12)\r\n // where, e.g., \"12\" here would be the textLength\r\n // has an even length and no indices are the same\r\n List<Integer> indices = new ArrayList<Integer>(2+2*badSpans.size());\r\n indices.add(0);\r\n for(Pair<Integer,Integer> p:badSpans){\r\n indices.add(p.first);\r\n indices.add(p.second);\r\n }\r\n indices.add(textLength);\r\n\r\n // Group the indices and map them to their respective portion of the string\r\n List<List<String>> splitGoods = new ArrayList<List<String>>(indices.size()/2);\r\n for (int i=0; i<indices.size(); i+=2) {\r\n String goodstr = splitPunctText.substring(indices.get(i),indices.get(i+1));\r\n List<String> splitstr = Arrays.asList(goodstr.trim().split(\" \"));\r\n splitGoods.add(splitstr);\r\n }\r\n\r\n // Reinterpolate the 'good' and 'bad' Lists, ensuring that\r\n // additonal tokens from last good item get included\r\n List<String> zippedStr= new ArrayList<String>();\r\n int i;\r\n for(i=0; i < bads.size(); i++) {\r\n zippedStr = addAllnonempty(zippedStr,splitGoods.get(i), true);\r\n zippedStr = addAllnonempty(zippedStr,bads.get(i), false);\r\n }\r\n zippedStr = addAllnonempty(zippedStr,splitGoods.get(i), true);\r\n \r\n // BTO: our POS tagger wants \"ur\" and \"you're\" to both be one token.\r\n // Uncomment to get \"you 're\"\r\n /*ArrayList<String> splitStr = new ArrayList<String>(zippedStr.size());\r\n for(String tok:zippedStr)\r\n \tsplitStr.addAll(splitToken(tok));\r\n zippedStr=splitStr;*/\r\n \r\n return zippedStr;\r\n }", "public static String formatParagragh(String text, Integer colWidth) {\n\t\tString formattedStr = \"\";\n\t\tString lineStr = \"\";\n\t\tString[] textArray = text.split(\" \");\n\t\tfor (String x : textArray) {\n\t\t\tif ((lineStr + x).length() > colWidth) {\n\t\t\t\tformattedStr += \"\\n\" + lineStr;\n\t\t\t\tlineStr = \"\";\n\t\t\t\t}\n\t\t\telse lineStr += \" \" + x;\n\t\t}\n\t\tif (lineStr != \"\") formattedStr += \"\\n\" + lineStr;\n\t\treturn formattedStr;\n\t}", "public static String KthPermutation(int n, int k){\n if(n > 9 || k <= 0) return \"\";\n if(n == 1) return \"1\";\n\n int[] factors = new int[n + 1];\n factors[0] = 1;\n for(int i = 1; i <= n; i++) factors[i] = factors[i - 1] * i;\n\n k = k - 1;\n k = k % factors[n];\n\n StringBuilder nums = new StringBuilder(\"123456789\");\n StringBuilder permutation = new StringBuilder();\n for(int i = n - 1; i >= 0; i--){\n int curNum = k / factors[i];\n permutation.append(nums.charAt(curNum));\n nums.deleteCharAt(curNum);\n k = k - curNum * factors[i];\n }\n return permutation.toString();\n }", "public static String[] wrapTextArray(String s, int len) {\n\t\tString wrapped[], tmp[];\n\t\tint pos, num=0;\n\n\t\tif (buf==null) buf=new StringBuffer();\n\t\tbuf.setLength(0);\n\n\t\tbuf.append(s);\n\t\twrapped=new String[10];\n\t\twhile (buf.length()>0) {\n\t\t\tif (buf.length()>len) {\n\t\t\t\tpos=len-1;\n\t\t\t\twhile (pos>0&&!Character.isWhitespace(buf.charAt(pos)))\n\t\t\t\t\tpos--;\n\t\t\t\tif (pos==0) pos=len-1;\n\t\t\t\t// ins=buf.substring(0,pos);\n\t\t\t\tbuf.delete(0, pos);\n\t\t\t} else {\n\t\t\t\t// ins=buf.toString();\n\t\t\t\tbuf.setLength(0);\n\t\t\t}\n\n\t\t\tif (wrapped.length==num) {\n\t\t\t\ttmp=new String[wrapped.length*2];\n\t\t\t\tSystem.arraycopy(wrapped, 0, tmp, 0, wrapped.length);\n\t\t\t\twrapped=tmp;\n\t\t\t}\n\t\t}\n\n\t\ttmp=new String[num];\n\t\tSystem.arraycopy(wrapped, 0, tmp, 0, num);\n\n\t\treturn tmp;\n\t}", "public int woodCut(int[] L, int k) {\n int max = 0;\n for (int l : L) {\n max = Math.max(max, l);\n }\n\n int start = 1;\n int end = max;\n\n while (start + 1 < end) {\n int mid = start + (end - start) / 2;\n if (count(L, mid) >= k) {//if we can have more than k pieces of woods of length mid, we can increase length\n start = mid;\n } else {//if we can have fewer than k pieces of woods of length mid, we should decrease length\n end = mid;\n }\n }\n\n /**\n * we want max length, so check end first.\n */\n if (count(L, end) >= k) {\n return end;\n }\n\n if (count(L, start) >= k) {\n return start;\n }\n\n return 0;//!!!\n }", "private void drawText(Graphics2D g2)\n\t{\n\t\tfinal int PADDING = 5;\n\t\tfinal Rectangle bounds = getBounds();\n\t\tfinal String[] texts = getText().split(\"\\\\ \");\n\n\t\tfinal Font effectiveFont = font.deriveFont(font.getSize() * parent.getZoom());\n\n\t\tfinal FontMetrics metrics = g2.getFontMetrics(effectiveFont);\n\n\t\tfinal int hgt = metrics.getHeight();\n\t\tint adv, offsetY = bounds.y + PADDING + hgt, offsetX = PADDING;\n\t\tg2.setFont(effectiveFont);\n\n\t\tfor (final String text2 : texts)\n\t\t{\n\t\t\tfinal String currentText = text2 + \" \";\n\t\t\tadv = metrics.stringWidth(currentText);\n\n\t\t\tif (offsetX + adv > bounds.width - PADDING * 2)\n\t\t\t{\n\t\t\t\toffsetY += hgt; // new line\n\t\t\t\toffsetX = PADDING;\n\t\t\t}\n\n\t\t\tg2.drawString(currentText, bounds.x + offsetX, offsetY);\n\t\t\toffsetX += adv;\n\t\t}\n\t}", "@Override\r\n public String format(String text, int limit, boolean justify) throws PalavraMaiorException {\r\n StringBuilder stringBuilder = new StringBuilder(text);\r\n try {\r\n new IdwallFormatterValidate().validarTextoEntrada(text, limit);\r\n\r\n for (int i = limit; i <= stringBuilder.length(); i += limit) {\r\n\r\n char primeiroCaracter = stringBuilder.charAt(i);\r\n String[] linhas = stringBuilder.substring(i - limit + 2, i).split(newline);\r\n\r\n if (linhas.length >= 2) {\r\n for (int x = 1; x <= linhas.length - 1; x++) {\r\n i -= linhas[x].length();\r\n }\r\n } else {\r\n while (primeiroCaracter != ' ') {\r\n i--;\r\n primeiroCaracter = stringBuilder.charAt(i);\r\n }\r\n stringBuilder.deleteCharAt(i);\r\n stringBuilder.insert(i, newline);\r\n }\r\n }\r\n if (justify) {\r\n stringBuilder = justify(stringBuilder.toString(), limit);\r\n }\r\n } catch (PalavraMaiorException ex) {\r\n throw ex;\r\n }\r\n return stringBuilder.toString();\r\n }" ]
[ "0.6555145", "0.6424799", "0.6258758", "0.5905219", "0.58932865", "0.58820426", "0.5875469", "0.58417106", "0.5835402", "0.57869476", "0.5777101", "0.5650663", "0.56257015", "0.5518235", "0.5485829", "0.54835826", "0.5472053", "0.5433517", "0.5425952", "0.5418781", "0.5408425", "0.5380022", "0.5376561", "0.5376", "0.5374328", "0.5358613", "0.5358069", "0.5348224", "0.5329258", "0.5317954", "0.5316178", "0.5304309", "0.5284595", "0.527954", "0.5278626", "0.5275397", "0.52438325", "0.5232982", "0.52015364", "0.51960826", "0.5179658", "0.5178319", "0.5175007", "0.5166933", "0.516396", "0.5129141", "0.5124925", "0.51175433", "0.5115391", "0.5088209", "0.5086086", "0.50628734", "0.5062596", "0.50595933", "0.5050609", "0.5041585", "0.5038272", "0.50311893", "0.50249314", "0.50224036", "0.50195545", "0.5005267", "0.5004133", "0.49901834", "0.49782926", "0.4955182", "0.49533978", "0.49532557", "0.4933753", "0.49145165", "0.491261", "0.49032772", "0.48928416", "0.48873067", "0.4876305", "0.4867614", "0.48664615", "0.48589802", "0.4857668", "0.48544672", "0.48537755", "0.48412964", "0.48389947", "0.48341736", "0.48316997", "0.4822447", "0.48222813", "0.48185062", "0.48020104", "0.47993615", "0.47807148", "0.47713453", "0.47647026", "0.47623217", "0.4759851", "0.475017", "0.47493187", "0.47448993", "0.47309917", "0.4729528" ]
0.5999096
3
Perform actual work of rendering a multiline string with wordwrap and with darker drop shadow color if flag is set
private void renderSplitString(String text, int textX, int textY, int wrapWidth, int color) { drawNewString(color, false); for (String textLine : super.listFormattedStringToWidth(text, wrapWidth)) { renderStringAligned(textLine, textX, textY, wrapWidth, color); textY += super.FONT_HEIGHT; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void makeLines(LayoutContext lc) {\n //String s = new String(text);\n boolean isLastLine = false;\n int tries = 0;\n int curWidth, wordWidth, lineStart, wordEnd, wordStart, newWidth, textLen, beg, maxM2, spaceW;\n curWidth = lineStart = wordEnd = beg = 0;\n char[] text = this.text;\n textLen = text.length;\n maxM2 = textLen - 2;\n spaceW = fm.charWidth(' ');\n boolean glue = false;\n\n do {\n beg = wordEnd;\n\n // find next word\n for (wordStart = beg;; wordStart++) {\n if (wordStart >= textLen) // trailing blanks?\n {\n if (tries > 0) // guich@tc114_81\n {\n lc.disjoin();\n addLine(lineStart, wordEnd, false, lc, false);\n tries = 0;\n }\n wordEnd = wordStart;\n isLastLine = true;\n break;\n }\n if (text[wordStart] != ' ') // is this the first non-space char?\n {\n wordEnd = wordStart;\n do {\n if (++wordEnd >= textLen) {\n isLastLine = true;\n break;\n }\n } while (text[wordEnd] != ' ' && text[wordEnd] != '/'); // loop until the next space/slash char\n // use slashes as word delimiters (useful for URL addresses).\n if (maxM2 > wordEnd && text[wordEnd] == '/' && text[wordEnd + 1] != '/') {\n wordEnd++;\n }\n break;\n }\n }\n if (!lc.atStart() && wordStart > 0 && text[wordStart - 1] == ' ') {\n wordStart--;\n }\n wordWidth = fm.stringWidth(text, wordStart, wordEnd - wordStart);\n if (curWidth == 0) {\n lineStart = beg = wordStart; // no spaces at start of a line\n newWidth = wordWidth;\n } else {\n newWidth = curWidth + wordWidth;\n }\n\n if (lc.x + newWidth <= lc.maxWidth) {\n curWidth = newWidth + spaceW;\n } else // split: line length now exceeds the maximum allowed\n {\n //if (text[wordStart] == ' ') {wordStart++; wordWidth -= spaceW;}\n if (curWidth > 0) {\n // At here, wordStart and wordEnd refer to the word that overflows. So, we have to stop at the previous word\n wordEnd = wordStart;\n if (text[wordEnd - 1] == ' ') {\n wordEnd--;\n }\n if (DEBUG) {\n Vm.debug(\"1. \\\"\" + new String(text, lineStart, wordEnd - lineStart) + \"\\\": \" + curWidth + \" \" + isLastLine);\n }\n addLine(lineStart, wordEnd, true, lc, glue);\n curWidth = 0;\n isLastLine = false; // must recompute the last line, since there's at least a word left.\n } else if (!lc.atStart()) // case of \"this is a text at the end <b>oftheline</b>\" -> oftheline will overflow the screen\n {\n if (++tries == 2) {\n break;\n }\n if (DEBUG) {\n Vm.debug(\"2 \" + isLastLine);\n }\n // Nothing was gathered in, but the current line has characters left by a previous TextSpan. This occurs only once.\n addLine(0, 0, false, lc, glue);\n curWidth = 0;\n isLastLine = false; // must recompute the last line, since there's at least a word left.\n } else {\n // Rare case where we both have nothing gathered in, and the physical line is empty. Had this not been made, then we\n // woud have generated an extra-line at the top of the block.\n if (DEBUG) {\n Vm.debug(\"3. \\\"\" + new String(text, lineStart, wordEnd - lineStart) + '\"');\n }\n if (lineStart != wordEnd) {\n addLine(lineStart, wordEnd, true, lc, glue);\n }\n }\n glue = true;\n }\n } while (!isLastLine);\n\n if (wordEnd != lineStart) {\n //curWidth = fm.stringWidth(text, lineStart, wordEnd-lineStart);\n boolean split = lc.x + curWidth > lc.maxWidth && style.hasInitialValues() && style.isDisjoint;\n if (DEBUG) {\n Vm.debug(\"4. \\\"\" + new String(text, lineStart, wordEnd - lineStart) + \"\\\" \" + split);\n }\n addLine(lineStart, wordEnd, split, lc, glue);\n }\n }", "private void renderStringAtPos(String text, boolean textShadow) {\n \n boolean resetTextColor = true;\n boolean ignoreColorCodes = false;\n \n for (int stringIndex = 0; stringIndex < text.length(); stringIndex++) {\n char stringChar = text.charAt(stringIndex);\n \n //If the character is a color character and it is not the end of the text String,\n //set the text color.\n if (stringChar == 167 && stringIndex + 1 < text.length()) {\n if (!ignoreColorCodes) {\n \n char colorCodeChar = String.valueOf(text.charAt(stringIndex + 1)).toLowerCase(Locale.ROOT).charAt(0);\n int colorCodeId = \"0123456789abcdefklmnor\".indexOf(colorCodeChar);\n \n //Color code: &*\n if (colorCodeChar == '*') {\n //Toggles color code blending.\n doColorBlending = !doColorBlending;\n colorCodeId = -1;\n }\n \n //Color code: &v\n if (colorCodeChar == 'v') {\n ignoreColorCodes = true;\n colorCodeId = -1;\n }\n \n if (colorCodeId != -1) {\n if (colorCodeId < 16) {\n if (resetTextColor) {\n resetTextColor = false;\n resetColor();\n }\n \n this.randomStyle = false;\n this.boldStyle = false;\n this.strikethroughStyle = false;\n this.underlineStyle = false;\n this.italicStyle = false;\n \n if (colorCodeId < 0) {\n colorCodeId = 15;\n }\n \n if (textShadow) {\n colorCodeId += 16;\n }\n \n int colorCodeColor = this.colorCode[colorCodeId];\n \n //If color blending is not on, reset the text color.\n if (!doColorBlending) {\n resetColor();\n }\n \n addColor(colorCodeColor >> 16, colorCodeColor >> 8 & 255, colorCodeColor & 255);\n updateColor();\n \n } else {\n resetTextColor = true;\n \n //Color Code: &k\n if (colorCodeId == 16) {\n this.randomStyle = true;\n \n //Color Code: &l\n } else if (colorCodeId == 17) {\n this.boldStyle = true;\n \n //Color Code: &m\n } else if (colorCodeId == 18) {\n this.strikethroughStyle = true;\n \n //Color Code: &n\n } else if (colorCodeId == 19) {\n this.underlineStyle = true;\n \n //Color Code: &o\n } else if (colorCodeId == 20) {\n this.italicStyle = true;\n \n //Color Code: &r\n } else if (colorCodeId == 21) {\n this.randomStyle = false;\n this.boldStyle = false;\n this.strikethroughStyle = false;\n this.underlineStyle = false;\n this.italicStyle = false;\n \n resetColor();\n colorCodeCount = 1;\n totalRColor = baseTextColor >> 16 & 255;\n totalGColor = baseTextColor & 255;\n totalBColor = baseTextColor >> 8 & 255;\n alphaColor = 100;\n \n updateColor();\n }\n }\n }\n }\n \n stringIndex++;\n } else {\n resetTextColor = true;\n ignoreColorCodes = false;\n \n int stringCharIndex = \"\\u00c0\\u00c1\\u00c2\\u00c8\\u00ca\\u00cb\\u00cd\\u00d3\\u00d4\\u00d5\\u00da\\u00df\\u00e3\\u00f5\\u011f\\u0130\\u0131\\u0152\\u0153\\u015e\\u015f\\u0174\\u0175\\u017e\\u0207\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000 !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\\u0000\\u00c7\\u00fc\\u00e9\\u00e2\\u00e4\\u00e0\\u00e5\\u00e7\\u00ea\\u00eb\\u00e8\\u00ef\\u00ee\\u00ec\\u00c4\\u00c5\\u00c9\\u00e6\\u00c6\\u00f4\\u00f6\\u00f2\\u00fb\\u00f9\\u00ff\\u00d6\\u00dc\\u00f8\\u00a3\\u00d8\\u00d7\\u0192\\u00e1\\u00ed\\u00f3\\u00fa\\u00f1\\u00d1\\u00aa\\u00ba\\u00bf\\u00ae\\u00ac\\u00bd\\u00bc\\u00a1\\u00ab\\u00bb\\u2591\\u2592\\u2593\\u2502\\u2524\\u2561\\u2562\\u2556\\u2555\\u2563\\u2551\\u2557\\u255d\\u255c\\u255b\\u2510\\u2514\\u2534\\u252c\\u251c\\u2500\\u253c\\u255e\\u255f\\u255a\\u2554\\u2569\\u2566\\u2560\\u2550\\u256c\\u2567\\u2568\\u2564\\u2565\\u2559\\u2558\\u2552\\u2553\\u256b\\u256a\\u2518\\u250c\\u2588\\u2584\\u258c\\u2590\\u2580\\u03b1\\u03b2\\u0393\\u03c0\\u03a3\\u03c3\\u03bc\\u03c4\\u03a6\\u0398\\u03a9\\u03b4\\u221e\\u2205\\u2208\\u2229\\u2261\\u00b1\\u2265\\u2264\\u2320\\u2321\\u00f7\\u2248\\u00b0\\u2219\\u00b7\\u221a\\u207f\\u00b2\\u25a0\\u0000\".indexOf(stringChar);\n \n if (this.randomStyle && stringCharIndex != -1) {\n int stringCharWidth = this.getCharWidth(stringChar);\n char randomChar;\n \n //Randomly chooses characters until a character of the same width is found.\n do {\n stringCharIndex = super.fontRandom.nextInt(\"\\u00c0\\u00c1\\u00c2\\u00c8\\u00ca\\u00cb\\u00cd\\u00d3\\u00d4\\u00d5\\u00da\\u00df\\u00e3\\u00f5\\u011f\\u0130\\u0131\\u0152\\u0153\\u015e\\u015f\\u0174\\u0175\\u017e\\u0207\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000 !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\\u0000\\u00c7\\u00fc\\u00e9\\u00e2\\u00e4\\u00e0\\u00e5\\u00e7\\u00ea\\u00eb\\u00e8\\u00ef\\u00ee\\u00ec\\u00c4\\u00c5\\u00c9\\u00e6\\u00c6\\u00f4\\u00f6\\u00f2\\u00fb\\u00f9\\u00ff\\u00d6\\u00dc\\u00f8\\u00a3\\u00d8\\u00d7\\u0192\\u00e1\\u00ed\\u00f3\\u00fa\\u00f1\\u00d1\\u00aa\\u00ba\\u00bf\\u00ae\\u00ac\\u00bd\\u00bc\\u00a1\\u00ab\\u00bb\\u2591\\u2592\\u2593\\u2502\\u2524\\u2561\\u2562\\u2556\\u2555\\u2563\\u2551\\u2557\\u255d\\u255c\\u255b\\u2510\\u2514\\u2534\\u252c\\u251c\\u2500\\u253c\\u255e\\u255f\\u255a\\u2554\\u2569\\u2566\\u2560\\u2550\\u256c\\u2567\\u2568\\u2564\\u2565\\u2559\\u2558\\u2552\\u2553\\u256b\\u256a\\u2518\\u250c\\u2588\\u2584\\u258c\\u2590\\u2580\\u03b1\\u03b2\\u0393\\u03c0\\u03a3\\u03c3\\u03bc\\u03c4\\u03a6\\u0398\\u03a9\\u03b4\\u221e\\u2205\\u2208\\u2229\\u2261\\u00b1\\u2265\\u2264\\u2320\\u2321\\u00f7\\u2248\\u00b0\\u2219\\u00b7\\u221a\\u207f\\u00b2\\u25a0\\u0000\".length());\n randomChar = \"\\u00c0\\u00c1\\u00c2\\u00c8\\u00ca\\u00cb\\u00cd\\u00d3\\u00d4\\u00d5\\u00da\\u00df\\u00e3\\u00f5\\u011f\\u0130\\u0131\\u0152\\u0153\\u015e\\u015f\\u0174\\u0175\\u017e\\u0207\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000 !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\\u0000\\u00c7\\u00fc\\u00e9\\u00e2\\u00e4\\u00e0\\u00e5\\u00e7\\u00ea\\u00eb\\u00e8\\u00ef\\u00ee\\u00ec\\u00c4\\u00c5\\u00c9\\u00e6\\u00c6\\u00f4\\u00f6\\u00f2\\u00fb\\u00f9\\u00ff\\u00d6\\u00dc\\u00f8\\u00a3\\u00d8\\u00d7\\u0192\\u00e1\\u00ed\\u00f3\\u00fa\\u00f1\\u00d1\\u00aa\\u00ba\\u00bf\\u00ae\\u00ac\\u00bd\\u00bc\\u00a1\\u00ab\\u00bb\\u2591\\u2592\\u2593\\u2502\\u2524\\u2561\\u2562\\u2556\\u2555\\u2563\\u2551\\u2557\\u255d\\u255c\\u255b\\u2510\\u2514\\u2534\\u252c\\u251c\\u2500\\u253c\\u255e\\u255f\\u255a\\u2554\\u2569\\u2566\\u2560\\u2550\\u256c\\u2567\\u2568\\u2564\\u2565\\u2559\\u2558\\u2552\\u2553\\u256b\\u256a\\u2518\\u250c\\u2588\\u2584\\u258c\\u2590\\u2580\\u03b1\\u03b2\\u0393\\u03c0\\u03a3\\u03c3\\u03bc\\u03c4\\u03a6\\u0398\\u03a9\\u03b4\\u221e\\u2205\\u2208\\u2229\\u2261\\u00b1\\u2265\\u2264\\u2320\\u2321\\u00f7\\u2248\\u00b0\\u2219\\u00b7\\u221a\\u207f\\u00b2\\u25a0\\u0000\".charAt(stringCharIndex);\n } while (stringCharWidth != this.getCharWidth(randomChar));\n \n stringChar = randomChar;\n }\n \n float charShadowOffset = stringCharIndex == -1 || super.getUnicodeFlag() ? 0.5f : 1f;\n boolean doCharShadow = (stringChar == 0 || stringCharIndex == -1 || super.getUnicodeFlag()) && textShadow;\n \n if (doCharShadow) {\n super.posX -= charShadowOffset;\n super.posY -= charShadowOffset;\n }\n \n float renderOffset = renderChar(stringChar, italicStyle);\n \n if (doCharShadow) {\n super.posX += charShadowOffset;\n super.posY += charShadowOffset;\n }\n \n if (boldStyle) {\n super.posX += charShadowOffset;\n \n if (doCharShadow) {\n super.posX -= charShadowOffset;\n super.posY -= charShadowOffset;\n }\n \n this.renderChar(stringChar, italicStyle);\n super.posX -= charShadowOffset;\n \n if (doCharShadow) {\n super.posX += charShadowOffset;\n super.posY += charShadowOffset;\n }\n \n renderOffset++;\n }\n doDraw(renderOffset);\n }\n }\n }", "private void wrapText() {\r\n if (atEnd()) {\r\n setPosition(0);\r\n updateMatcher();\r\n }\r\n }", "@Override\n public int drawStringWithShadow(String text, float x, float y, int color) {\n if (Minecraft.getMinecraft().currentScreen instanceof GuiChat && color == 14737632) {\n doPreviewColor = true;\n }\n \n int returnInt = this.drawString(text, x, y, color, true);\n doPreviewColor = false;\n \n return returnInt;\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 }", "void wrappedText(final int count);", "private void wrap_long_words() {\n\t\tif ( printing_status() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tString cur = _current_word.toString();\n\t\tif ( _platform_io.size_text( cur ) >= _wrap_column ) {\n\t\t\t// print out the first bit:\n\t\t\tString trim = cur;\n\t\t\twhile ( _platform_io.size_text( trim ) >= _wrap_column ) {\n\t\t\t\ttrim = trim.substring( 0, trim.length() - 1 );\n\t\t\t}\n\n\t\t\t_platform_io.print_text( trim );\n\t\t\tinc_line();\n\n\t\t\t// then truncate the rest:\n\t\t\tString tail = cur.substring( trim.length() );\n\n\t\t\tif ( _current_word.length() == _wrap_column ) // wrapped exactly?\n\t\t\t{\n\t\t\t\t_last_printed = '\\n';\n\t\t\t}\n\n\t\t\t_current_word = new StringBuffer( tail );\n\t\t}\n\t}", "@Action\n public void addWrappedText() {\n if (Math.random() < .33) {\n addWrappedTextEndChar();\n } else if (Math.random() < .5) {\n addWrappedTextRandom();\n } else {\n addWrappedTextSmall();\n }\n }", "public void drawStringWithShadow(String text, float x, float y, int color) {\n/* 36 */ drawString(text, x, y, color, true);\n/* */ }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "protected int addMultilineTextElement(Element canvas, double x, double y, double width, double lineHeight,\n String text, float fontSize, String anchor, String weight, String fill, char delimiter) {\n int lines = 0;\n int pos = 0;\n while (text.length() > 0) {\n if (getTextLength(text, fontSize) <= width) {\n addTextElement(canvas, x, y, text, fontSize, anchor, weight, fill);\n lines++;\n return lines;\n }\n int index = text.substring(pos).indexOf(delimiter);\n if ((index < 0) && (pos == 0)) {\n addTextElement(canvas, x, y, text, fontSize, anchor, weight, fill);\n lines++;\n return lines;\n }\n if ((index < 0) || (getTextLength(text.substring(0, pos + index), fontSize) > width)) {\n addTextElement(canvas, x, y, text.substring(0, pos), fontSize, anchor, weight, fill);\n lines++;\n y += lineHeight;\n text = text.substring(pos);\n pos = 0;\n } else if (index > 0) {\n pos += index + 1;\n }\n }\n return lines;\n }", "private static void formatText(List<String> text, String linePrefix, int lineWidth, StringBuilder sb, String tag) {\n StringBuilder line = new StringBuilder(linePrefix);\n\n if (null != tag)\n line.append(\" @\").append(tag).append(' ');\n\n for (String w : text) {\n if (line.length() + w.length() + 1 > lineWidth) {\n // break line\n sb.append(line).append('\\n');\n line = new StringBuilder(linePrefix);\n }\n line.append(' ').append(w);\n }\n sb.append(line).append('\\n');\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, float alignWidth, HAlignment alignment, GameContainer c,\n\t\t\tStyledText style);", "private void textilize () {\n\n textIndex = 0;\n int textEnd = line.length() - 1;\n listChars = new StringBuffer();\n linkAlias = false;\n while (textIndex < line.length()\n && (Character.isWhitespace(textChar()))) {\n textIndex++;\n }\n while (textEnd >= 0\n && textEnd >= textIndex\n && Character.isWhitespace (line.charAt (textEnd))) {\n textEnd--;\n }\n boolean blankLine = (textIndex >= line.length());\n if (blankLine) {\n textilizeBlankLine();\n }\n else\n if ((textIndex > 0)\n || ((line.length() > 0 )\n && (line.charAt(0) == '<'))) {\n // First character is white space of the beginning of an html tag:\n // Doesn't look like textile... process it without modification.\n }\n else\n if (((textEnd - textIndex) == 3)\n && line.substring(textIndex,textEnd + 1).equals (\"----\")) {\n // && (line.substring(textIndex, (textEnd + 1)).equals (\"----\")) {\n textilizeHorizontalRule(textIndex, textEnd);\n } else {\n textilizeNonBlankLine();\n };\n }", "private void highlightString(TextView textView, String input) {\n SpannableString spannableString = new SpannableString(textView.getText());\n//Get the previous spans and remove them\n BackgroundColorSpan[] backgroundSpans = spannableString.getSpans(0, spannableString.length(), BackgroundColorSpan.class);\n\n for (BackgroundColorSpan span : backgroundSpans) {\n spannableString.removeSpan(span);\n }\n\n//Search for all occurrences of the keyword in the string\n int indexOfKeyword = spannableString.toString().indexOf(input);\n\n while (indexOfKeyword > 0) {\n //Create a background color span on the keyword\n spannableString.setSpan(new BackgroundColorSpan(Color.YELLOW), indexOfKeyword, indexOfKeyword + input.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n\n //Get the next index of the keyword\n indexOfKeyword = spannableString.toString().indexOf(input, indexOfKeyword + input.length());\n }\n\n//Set the final text on TextView\n textView.setText(spannableString);\n }", "@NonNull\n private static Bitmap buildBitmapWithMultilineText(Context context, String poiName) {\n float scale = context.getResources().getDisplayMetrics().density;\n\n // Create bitmap to draw to.\n final Bitmap bitmap = Bitmap.createBitmap(400, 150, Bitmap.Config.ARGB_8888);\n\n // Create a canvas to do the drawing.\n final Canvas canvas = new Canvas(bitmap);\n canvas.drawColor(ContextCompat.getColor(context, R.color.semiTransparentBlack));\n\n // Paint for coloring.\n final TextPaint paint = new TextPaint(Paint.ANTI_ALIAS_FLAG);\n paint.setColor(Color.WHITE);\n paint.setTextSize(14 * scale);\n paint.setShadowLayer(1f, 0f, 1f, Color.BLACK);\n int textWidth = canvas.getWidth() - (int)(14 * scale);\n\n // Initialize StaticLayout for text.\n StaticLayout textLayout =\n new StaticLayout(poiName, paint, textWidth, Layout.Alignment.ALIGN_CENTER,\n 1.0f, 0.0f, false);\n\n // Get height of multiline text.\n int textHeight = textLayout.getHeight();\n\n // Get position of text's top left corner.\n float posX = (bitmap.getWidth() - textWidth) / 2;\n float posY = (bitmap.getHeight() - textHeight) / 2;\n\n // Draw text to canvas center.\n canvas.save();\n canvas.translate(posX, posY);\n textLayout.draw(canvas);\n canvas.restore();\n\n return bitmap;\n }", "@Override\r\n\tpublic void render(GameContainer gc, Renderer r) {\n\t\tr.drawTextInBox(posX, posY, width, height, color1, text);\r\n\t\t//r.noiseGen();\r\n\t}", "@Override\n public void layout(LayoutContext lc) {\n //String s = new String(text);\n setFont(style.getFont());\n\n if (style.hasInitialValues()) {\n if (style.isDisjoint) {\n lc.disjoin();\n }\n Style.Header h = style.getHeader();\n if (h != null) {\n h.setFont(font);\n if (openIdent) {\n lc.setIdentation(style.indent, true);\n }\n parent.add((Control) h, lc.nextX, lc.nextY);\n lc.update(h.getWidth());\n }\n }\n\n boolean isPRE = style.alignment == Style.ALIGN_NONE;\n if (isPRE) {\n makePreformattedLines(lc);\n } else {\n makeLines(lc);\n }\n\n boolean disjoin = isPRE;\n boolean wasDisjoin = lc.lastStyle != null && lc.lastStyle.alignment == Style.ALIGN_NONE;\n lc.lastStyle = style;\n\n if (disjoin && wasDisjoin) {\n disjoin = false;\n } else if (!disjoin && wasDisjoin) {\n disjoin = true;\n }\n\n //debug(lc,style,new String(text));\n if (disjoin) {\n lc.disjoin();\n } else if (!disjoin && wasDisjoin) {\n lc.update(0);\n }\n if (finishIdent) {\n lc.setIdentation(0, false);\n }\n }", "protected TextLine genText (String str, Text text, TextLine line, Context context) {\n\t\tTextLine tLine = line;\n\t\tString[] parts = str.split(\"\\\\n\");\n\t\tbyte charset = TextParams.ROMAN;\n\t\tbyte size = TextParams.ILIAD_SCHOLIA_FONT_SIZE;\n\n\t\tString part = parts[0];\n\t\tpart = part.replaceAll(\"\\\\s+\", \" \");\n\t\tTextRun run = new TextRun(part, charset, size);\n\t\tif (context.bold) run.setBold();\n\t\tif (context.italic) run.setItalic();\n\t\ttLine.appendRun(run);\n\n\t\tif(parts.length > 1) {\n\t\t\ttext.copyLine(tLine);\n\t\t\tfor(int i =1;i<parts.length;i++) {\n\t\t\t\tpart = parts[i];\n\t\t\t\tpart = part.replaceAll(\"\\\\s+\", \" \");\n\t\t\t\ttLine = new TextLine();\n\t\t\t\trun = new TextRun(part, charset, size);\n\t\t\t\tif (context.bold) run.setBold();\n\t\t\t\tif (context.italic) run.setItalic();\n\t\t\t\ttLine.appendRun(run);\n\t\t\t\tif(i<parts.length -1) {\n\t\t\t\t\ttext.copyLine(tLine);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn tLine;\n\t}", "private void highlightArea(FilterBypass fb, String s, int left, int right) {\n String sub = s.substring(left, right);\n //removeHighlights(fb, s, left, right);\n //String whitespace = new String(\" \\n\\r\");\n //println(\"String to update: '\" + s.substring(left, right) + \"'\");\n\n //Todo: make the code check for whitespace OR eof on either side of the string before highlighting it\n //Further optimisation for large inputs: combine all loops into one, and have an if statement to determine color.\n // ie, if there are 17 keywords that should be red, then check if the index found is <17, and if so, color red.\n\n for(int i = 0; i < all.length; i++) {\n highlightGiven(fb, all[i], sub, left, attributeScheme[i+1]);\n }\n\n //Handles comments and string literals.\n //if (dirtyBounds.size() % 2 == 0) \n try {\n for(int i = 0; i < dirtyBounds.size()-1; i+=2) {\n ((StyledDocument)fb.getDocument()).setCharacterAttributes(dirtyBounds.get(i), dirtyBounds.get(i+1)-dirtyBounds.get(i)+1, attributeScheme[10], true);\n }\n } catch (ArrayIndexOutOfBoundsException a) {}\n }", "private void drawTextBySpans(Canvas canvas, float offsetX, TextColorProvider.TextColors colors){\n mPaint.setTypeface(mTypefaceText);\n ColorScheme cs = mColors;\n List<Span> spans = colors.getSpans();\n int first = getFirstVisibleLine();\n int last = getLastVisibleLine();\n int index = 0,copy;\n if(mMinModifiedLine != -1 && mMinModifiedLine <= first) {\n index = binarySearchByIndex(spans,mText.getCharIndex(first,0));\n drawTextBySpansModified(canvas,offsetX,first,last,index,spans);\n return;\n }\n for(int i = first;i <= last;i++){\n index = seekTo(spans, i, index);\n if(mMinModifiedLine != -1 && mMinModifiedLine <= i) {\n drawTextBySpansModified(canvas,offsetX,i,last,binarySearchByIndex(spans,mText.getCharIndex(i,0)),spans);\n break;\n }\n copy = index;\n float off = offsetX;\n prepareLine(i);\n float y = getLineBaseLine(i) - getOffsetY();\n try{\n while(true){\n Span span = spans.get(copy),next = null;\n if(copy + 1 < spans.size()){\n next = spans.get(copy + 1);\n }\n int st = span.getLine() == i ? span.getColumn() : 0;\n int ed = next == null ? mText.getColumnCount(i) : (next.getLine() == i ? next.getColumn() : mText.getColumnCount(i));\n float width = measureText(mChars, st, ed - st);\n if(off + width > 0 && off < getWidth()) {\n mPaint.setColor(cs.getColor(span.colorId));\n drawText(canvas, mChars, st, ed - st, off, y);\n if(span.colorId == ColorScheme.HEX_COLOR) {\n int color = parseColor(st,ed);\n mRect.bottom = getLineBottom(i) - getOffsetY() - mDpUnit * 1;\n mRect.top = mRect.bottom - mDpUnit * 4;\n mRect.left = off;\n mRect.right = off + width;\n drawColor(canvas,color,mRect);\n }\n }\n off += width;\n if(off - offsetX > mMaxPaintX){\n mMaxPaintX = off - offsetX;\n }\n if(next == null || next.getLine() != i){\n break;\n }\n copy++;\n }\n }catch(IndexOutOfBoundsException e){\n drawTextDirect(canvas, offsetX, mColors.getColor(ColorScheme.TEXT_NORMAL), i);\n break;\n }\n }\n }", "public void drawWrapped(String str, double x, double y, double size, int color, double limit) {\n double scale = size / mcFont().FONT_HEIGHT;\n FontRenderer font = mcFont();\n List<String> list = split(str, limit * font.FONT_HEIGHT / size);\n //System.out.println(\"---{\" + list.size());\n for(String s : list) {\n //System.out.println(str);\n draw(s, x, y, size, color);\n y += size;\n } \n //System.out.println(\"---}\");\n }", "public void renderTagCloud(List<Tag> tags, Text text, Rectangle2D renderArea) {\n List<TextLine> textLines = new ArrayList<TextLine>();\n\n BufferedImage image = new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB);\n Graphics2D g = image.createGraphics();\n String fontFamily = text.getFontFamily();\n int fontSize = (int) text.getFontSize();\n Font font = new Font(fontFamily, Font.PLAIN, fontSize);\n FontMetrics fm = g.getFontMetrics(font);\n Point2D currentPosition = new Point2D.Double(renderArea.getX(), renderArea.getY());\n TextLine textLine = null;\n double minPadding = fm.getHeight();\n\n try {\n for (int i = 0; i < tags.size(); i++) {\n Tag tag = tags.get(i);\n String value = tag.getValue();\n Rectangle2D rect = fm.getStringBounds(value, g);\n // create new textline if not exists\n if (i == 0) {\n textLine = new TextLine();\n textLines.add(textLine);\n }\n if (currentPosition.getX() + rect.getWidth() + minPadding >= (renderArea.getX() + renderArea.getWidth())) {\n currentPosition.setLocation(renderArea.getX(),\n currentPosition.getY() + fm.getHeight() * 1.2);\n if ((currentPosition.getY() + fm.getHeight()) >= (renderArea.getY() + renderArea.getHeight()))\n break;\n textLine = new TextLine();\n textLines.add(textLine);\n }\n TSpan tspan = new TSpan(currentPosition.getX(),\n currentPosition.getY() + Math.abs(rect.getY()),\n rect.getWidth(),\n rect.getHeight(),\n fontFamily, fontSize, value);\n currentPosition.setLocation(currentPosition.getX() + rect.getWidth() + minPadding,\n currentPosition.getY());\n textLine.getTspans().add(tspan);\n text.getTspans().add(tspan);\n }\n\n for (TextLine line : textLines) {\n if (line.getTspans().size() > 1) {\n TSpan span = line.getTspans().get(line.getTspans().size() - 1);\n double additionalXPadding = ((renderArea.getX() + renderArea.getWidth()) - (span.getX() + span.getWidth())) / (double) (line.getTspans().size());\n for (int i = 0; i < line.getTspans().size(); i++) {\n TSpan tSpan = line.getTspans().get(i);\n if (i != 0) {\n tSpan.setX(tSpan.getX() + ((i + 1) * additionalXPadding));\n }\n }\n }\n }\n // remove single entry text line\n if (textLines.get(textLines.size() - 1).getTspans().size() == 1) {\n text.getTspans().remove(textLines.get(textLines.size() - 1).getTspans().get(0));\n textLines.remove(textLines.size() - 1);\n }\n\n }\n finally {\n g.dispose();\n }\n }", "private void makePreformattedLines(LayoutContext lc) {\n int end = -1;\n int max = text.length;\n boolean isLastLine = false;\n\n do {\n int beg = end + 1;\n do {\n if (++end >= max) {\n isLastLine = true;\n break;\n }\n } while (text[end] != '\\n');\n addLine(beg, end, true, lc, false);\n } while (!isLastLine);\n }", "private void buildRTF() {\n\t\n}", "public static String customTextFilter(BufferedImage img, String txt) {\n\n int newHeight = img.getHeight() / 200;\n int newWidth = img.getWidth() / 200;\n String html = \"\";\n int aux = 0;\n\n for (int i = 0; i < 200; i++) {\n if (i > 0) {\n html += \"\\n<br>\\n\";\n }\n for (int j = 0; j < 200; j++) {\n if (aux == txt.length()) {\n html += \"<b>&nbsp</b>\";\n aux = 0;\n } else {\n Color c = regionAvgColor(j * newWidth, (j * newWidth) + newWidth,\n i * newHeight, (i * newHeight) + newHeight, newHeight,\n newWidth, img);\n html += \"<b style='color:rgb(\" + c.getRed() + \",\"\n + c.getGreen() + \",\" + c.getBlue() + \");'>\"\n + txt.substring(aux, aux + 1) + \"</b>\";\n aux++;\n }\n }\n }\n String style = \"body{\\nfont-size: 15px\\n}\";\n String title = \"Imagen Texto\";\n int styleIndex = HTML.indexOf(\"?S\"), titleIndex = HTML.indexOf(\"?T\"),\n bodyIndex = HTML.indexOf(\"?B\");\n String htmlFile = HTML.substring(0, styleIndex) + style;\n htmlFile += HTML.substring(styleIndex + 2, titleIndex) + title;\n htmlFile += HTML.substring(titleIndex + 2, bodyIndex) + html;\n htmlFile += HTML.substring(bodyIndex + 2);\n return htmlFile;\n }", "private void textilizeNonBlankLine () {\n StringBuffer blockMod = new StringBuffer();\n int startPosition = 0;\n int textPosition = 0;\n leftParenPartOfURL = false;\n attributeType = 0;\n klass = new StringBuffer();\n id = new StringBuffer();\n style = new StringBuffer();\n language = new StringBuffer();\n String imageTitle = \"\";\n String imageURL = \"\";\n int endOfImageURL = -1;\n boolean doublePeriod = false;\n int periodPosition = line.indexOf (\".\");\n if (periodPosition >= 0) {\n textPosition = periodPosition + 1;\n if (textPosition < line.length()) {\n if (line.charAt (textPosition) == '.') {\n doublePeriod = true;\n textPosition++;\n }\n if (textPosition < line.length()\n && line.charAt (textPosition) == ' ') {\n textPosition++;\n textIndex = 0;\n while (textIndex < periodPosition\n && (Character.isLetterOrDigit (textChar()))) {\n blockMod.append (textChar());\n textIndex++;\n } // end while more letters and digits\n if (blockMod.toString().equals (\"p\")\n || blockMod.toString().equals (\"bq\")\n || blockMod.toString().equals (\"h1\")\n || blockMod.toString().equals (\"h2\")\n || blockMod.toString().equals (\"h3\")\n || blockMod.toString().equals (\"h4\")\n || blockMod.toString().equals (\"h5\")\n || blockMod.toString().equals (\"h6\")) {\n // look for attributes\n collectAttributes (periodPosition);\n } else {\n blockMod = new StringBuffer();\n textPosition = 0;\n }\n } // end if space follows period(s)\n } // end if not end of line following first period\n } // end if period found\n\n // Start processing at the beginning of the line\n textIndex = 0;\n\n // If we have a block modifier, then generate appropriate HTML\n if (blockMod.length() > 0) {\n lineDelete (textPosition);\n closeOpenBlockQuote();\n closeOpenBlock();\n doLists();\n if (blockMod.toString().equals (\"bq\")) {\n lineInsert (\"<blockquote><p\");\n context.blockQuoting = true;\n } else {\n lineInsert (\"<\" + blockMod.toString());\n }\n if (klass.length() > 0) {\n lineInsert (\" class=\\\"\" + klass.toString() + \"\\\"\");\n }\n lineInsert (\">\");\n if (doublePeriod) {\n context.nextBlock = blockMod.toString();\n } else {\n context.nextBlock = \"p\";\n }\n }\n\n // See if line starts with one or more list characters\n if (blockMod.length() <= 0) {\n while (textIndex < line.length()\n && (textChar() == '*'\n || textChar() == '#'\n || textChar() == ';')) {\n listChars.append (textChar());\n textIndex++;\n }\n if (listChars.length() > 0\n && (textIndex >= line.length()\n || ((! Character.isWhitespace (textChar()))\n && (textChar() != '(')))) {\n listChars = new StringBuffer();\n textIndex = 0;\n }\n int firstSpace = line.indexOf (\" \", textIndex);\n if (listChars.length() > 0) {\n collectAttributes (firstSpace);\n }\n }\n int endDelete = textIndex;\n if (endDelete < line.length()\n && Character.isWhitespace (line.charAt (endDelete))) {\n endDelete++;\n }\n\n if (listChars.length() > 0) {\n lineDelete (0, endDelete);\n }\n doLists();\n if (listChars.length() > 0\n && listChars.charAt(listChars.length() - 1) == ';') {\n lastDefChar = ';';\n } else {\n lastDefChar = ' ';\n }\n\n // See if this line contains a link alias\n if ((blockMod.length() <= 0)\n && ((line.length() - textIndex) >= 4)\n && (textChar() == '[')) {\n int rightBracketIndex = line.indexOf (\"]\", textIndex);\n if (rightBracketIndex > (textIndex + 1)) {\n linkAlias = true;\n String alias = line.substring (textIndex + 1, rightBracketIndex);\n String url = line.substring (rightBracketIndex + 1);\n lineDelete (line.length() - textIndex);\n lineInsert (\"<a alias=\\\"\" + alias + \"\\\" href=\\\"\" + url + \"\\\"> </a>\");\n }\n }\n\n // If no other instructions, use default start for a new line\n if (blockMod.length() <= 0 \n && listChars.length() <= 0\n & (! linkAlias)) {\n // This non-blank line does not start with a block modifier or a list char\n if (context.lastLineBlank) {\n if (context.nextBlock.equals (\"bq\")) {\n lineInsert (\"<p>\");\n } else {\n closeOpenBlockQuote();\n lineInsert (\"<\" + context.nextBlock + \">\");\n }\n } else {\n lineInsert (\"<br />\");\n }\n }\n\n // Now examine the rest of the line\n char last = ' ';\n char c = ' ';\n char next = ' ';\n leftParenPartOfURL = false;\n resetLineIndexArray();\n while (textIndex <= line.length()) {\n // Get current character, last character and next character\n last = c;\n if (textIndex < line.length()) {\n c = textChar();\n } else {\n c = ' ';\n }\n if ((textIndex + 1) < line.length()) {\n next = line.charAt (textIndex + 1);\n } else {\n next = ' ';\n }\n \n // ?? means a citation\n if (c == '?' && last == '?') {\n if (ix [CITATION] >= 0) {\n replaceWithHTML (CITATION, 2);\n } else {\n ix [CITATION] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // __ means italics\n if (c == '_' && last == '_' && ix [QUOTE_COLON] < 0) {\n if (ix [ITALICS] >= 0) {\n replaceWithHTML (ITALICS, 2);\n } else {\n ix [ITALICS] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // ** means bold\n if (c == '*' && last == '*') {\n if (ix [BOLD] >= 0) {\n replaceWithHTML (BOLD, 2);\n } else {\n ix [BOLD] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // _ means emphasis\n if (c == '_' && next != '_' && ix [QUOTE_COLON] < 0) {\n if (ix [EMPHASIS] >= 0) {\n replaceWithHTML (EMPHASIS, 1);\n } else {\n ix [EMPHASIS] = textIndex;\n textIndex++;\n }\n }\n else\n // * means strong\n if (c == '*' && next != '*') {\n if (ix [STRONG] >= 0) {\n replaceWithHTML (STRONG, 1);\n } else {\n ix [STRONG] = textIndex;\n textIndex++;\n }\n }\n else\n // Exclamation points surround image urls\n if (c == '!' && Character.isLetter(next)\n && ix [QUOTE_COLON] < 0 && ix [EXCLAMATION] < 0) {\n // First exclamation point : store its location and move on\n ix [EXCLAMATION] = textIndex;\n textIndex++;\n }\n else\n // Second exclamation point\n if (c == '!'\n && ix [QUOTE_COLON] < 0 && ix [EXCLAMATION] >= 0) {\n // Second exclamation point\n imageTitle = \"\";\n endOfImageURL = textIndex;\n if (last == ')' && ix [EXCLAMATION_LEFT_PAREN] > 0) {\n ix [EXCLAMATION_RIGHT_PAREN] = textIndex - 1;\n endOfImageURL = ix [EXCLAMATION_LEFT_PAREN];\n imageTitle = line.substring\n (ix [EXCLAMATION_LEFT_PAREN] + 1, ix [EXCLAMATION_RIGHT_PAREN]);\n }\n imageURL = line.substring (ix [EXCLAMATION] + 1, endOfImageURL);\n // Delete the image url, title and parentheses,\n // but leave exclamation points for now.\n lineDelete (ix [EXCLAMATION] + 1, textIndex - ix [EXCLAMATION] - 1);\n String titleString = \"\";\n if (imageTitle.length() > 0) {\n titleString = \" title=\\\"\" + imageTitle + \"\\\" alt=\\\"\" + imageTitle + \"\\\"\";\n }\n lineInsert (ix [EXCLAMATION] + 1,\n \"<img src=\\\"\" + imageURL + \"\\\"\" + titleString + \" />\");\n if (next == ':') {\n // Second exclamation followed by a colon -- look for url for link\n ix [QUOTE_COLON] = textIndex;\n ix [LAST_QUOTE] = ix [EXCLAMATION];\n } else {\n lineDelete (ix [EXCLAMATION], 1);\n lineDelete (textIndex, 1);\n }\n ix [EXCLAMATION] = -1;\n ix [EXCLAMATION_LEFT_PAREN] = -1;\n ix [EXCLAMATION_RIGHT_PAREN] = -1;\n textIndex++;\n } // end if second exclamation point\n else\n // Parentheses within exclamation points enclose the image title\n if (c == '(' && ix [EXCLAMATION] > 0 ) {\n ix [EXCLAMATION_LEFT_PAREN] = textIndex;\n textIndex++;\n }\n else\n // Double quotation marks surround linked text\n if (c == '\"' && ix [QUOTE_COLON] < 0) {\n if (next == ':'\n && ix [LAST_QUOTE] >= 0\n && textIndex > (ix [LAST_QUOTE] + 1)) {\n ix [QUOTE_COLON] = textIndex;\n } else {\n ix [LAST_QUOTE] = textIndex;\n }\n textIndex++;\n }\n else\n // Flag a left paren inside of a url\n if (c == '(' && ix [QUOTE_COLON] > 0) {\n leftParenPartOfURL = true;\n textIndex++;\n }\n else\n // Space may indicate end of url\n if (Character.isWhitespace (c)\n && ix [QUOTE_COLON] > 0\n && ix [LAST_QUOTE] >= 0\n && textIndex > (ix [QUOTE_COLON] + 2)) {\n int endOfURL = textIndex - 1;\n // end of url is last character of url\n // do not include any trailing punctuation at end of url\n int backup = 0;\n while ((endOfURL > (ix [QUOTE_COLON] + 2))\n && (! Character.isLetterOrDigit (line.charAt(endOfURL)))\n && (! ((line.charAt(endOfURL) == ')') && (leftParenPartOfURL)))\n && (! (line.charAt(endOfURL) == '/'))) {\n endOfURL--;\n backup++;\n }\n String url = line.substring (ix [QUOTE_COLON] + 2, endOfURL + 1);\n // insert the closing anchor tag\n lineInsert (endOfURL + 1, \"</a>\");\n // Delete the quote, colon and url from the line\n lineDelete (ix [QUOTE_COLON], endOfURL + 1 - ix [QUOTE_COLON]);\n // insert the beginning of the anchor tag\n lineDelete (ix [LAST_QUOTE], 1);\n lineInsert (ix [LAST_QUOTE], \"<a href=\\\"\" + url + \"\\\">\");\n // Reset the pointers\n ix [QUOTE_COLON] = -1;\n ix [LAST_QUOTE] = -1;\n leftParenPartOfURL = false;\n // Increment the index to the next character\n if (backup > 0) {\n textIndex = textIndex - backup;\n } else {\n textIndex++;\n }\n }\n else\n // Look for start of definition\n if ((c == ':' || c == ';')\n && Character.isWhitespace(last)\n && Character.isWhitespace(next)\n && listChars.length() > 0\n && (lastDefChar == ';' || lastDefChar == ':')) {\n lineDelete (textIndex - 1, 3);\n lineInsert (closeDefinitionTag (lastDefChar)\n + openDefinitionTag (c));\n lastDefChar = c;\n }\n /* else\n // -- means an em dash\n if (c == '-' && last == '-') {\n textIndex--;\n lineDelete (2);\n lineInsert (\"&#8212;\");\n } */ else {\n textIndex++;\n }\n }// end while more characters to examine\n\n context.lastLineBlank = false;\n\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, float alignWidth, HAlignment alignment);", "private void updateLabelText() {\n /*\n r18 = this;\n android.view.View r13 = r18.getNativeView()\n android.widget.TextView r13 = (android.widget.TextView) r13\n if (r13 != 0) goto L_0x0009\n L_0x0008:\n return\n L_0x0009:\n boolean r7 = r18.isSingleLine()\n r0 = r18\n float r0 = r0.minimumFontSizeInPixels\n r16 = r0\n r17 = 1036831949(0x3dcccccd, float:0.1)\n int r16 = (r16 > r17 ? 1 : (r16 == r17 ? 0 : -1))\n if (r16 < 0) goto L_0x00f6\n r3 = 1\n L_0x001b:\n r8 = r3\n r13.setSingleLine(r7)\n r0 = r18\n int r0 = r0.viewHeightInLines\n r16 = r0\n if (r16 <= 0) goto L_0x00f9\n r0 = r18\n int r0 = r0.viewHeightInLines\n r16 = r0\n r0 = r16\n r13.setLines(r0)\n L_0x0032:\n if (r7 == 0) goto L_0x0102\n r16 = 1\n r0 = r16\n r13.setMaxLines(r0)\n L_0x003b:\n r0 = r18\n java.lang.CharSequence r11 = r0.originalText\n if (r11 != 0) goto L_0x0135\n android.text.SpannableStringBuilder r11 = new android.text.SpannableStringBuilder\n java.lang.String r16 = \"\"\n r0 = r16\n r11.<init>(r0)\n r12 = r11\n L_0x004b:\n if (r8 == 0) goto L_0x0132\n int r16 = r12.length()\n if (r16 <= 0) goto L_0x0132\n r2 = 0\n L_0x0054:\n int r16 = r12.length()\n r0 = r16\n if (r2 >= r0) goto L_0x006c\n char r10 = r12.charAt(r2)\n r16 = 13\n r0 = r16\n if (r10 == r0) goto L_0x006c\n r16 = 10\n r0 = r16\n if (r10 != r0) goto L_0x012b\n L_0x006c:\n int r16 = r12.length()\n r0 = r16\n if (r2 >= r0) goto L_0x0132\n android.text.SpannableStringBuilder r11 = new android.text.SpannableStringBuilder\n r16 = 0\n r0 = r16\n r11.<init>(r12, r0, r2)\n L_0x007d:\n boolean r0 = r11 instanceof android.text.Spannable\n r16 = r0\n if (r16 != 0) goto L_0x0089\n android.text.SpannableStringBuilder r12 = new android.text.SpannableStringBuilder\n r12.<init>(r11)\n r11 = r12\n L_0x0089:\n r1 = 0\n r0 = r18\n int r0 = r0.autoLinkFlags\n r16 = r0\n if (r16 == 0) goto L_0x00a0\n r16 = r11\n android.text.Spannable r16 = (android.text.Spannable) r16\n r0 = r18\n int r0 = r0.autoLinkFlags\n r17 = r0\n boolean r1 = android.text.util.Linkify.addLinks(r16, r17)\n L_0x00a0:\n if (r1 == 0) goto L_0x012f\n android.text.method.MovementMethod r9 = android.text.method.LinkMovementMethod.getInstance()\n L_0x00a6:\n android.text.method.MovementMethod r16 = r13.getMovementMethod()\n r0 = r16\n if (r9 == r0) goto L_0x00c6\n boolean r5 = r13.isFocusable()\n boolean r4 = r13.isClickable()\n boolean r6 = r13.isLongClickable()\n r13.setMovementMethod(r9)\n r13.setFocusable(r5)\n r13.setClickable(r4)\n r13.setLongClickable(r6)\n L_0x00c6:\n r0 = r18\n android.text.TextUtils$TruncateAt r14 = r0.ellipsize\n if (r9 == 0) goto L_0x00da\n android.text.TextUtils$TruncateAt r16 = android.text.TextUtils.TruncateAt.START\n r0 = r16\n if (r14 == r0) goto L_0x00d8\n android.text.TextUtils$TruncateAt r16 = android.text.TextUtils.TruncateAt.MIDDLE\n r0 = r16\n if (r14 != r0) goto L_0x00da\n L_0x00d8:\n android.text.TextUtils$TruncateAt r14 = android.text.TextUtils.TruncateAt.END\n L_0x00da:\n r13.setEllipsize(r14)\n android.text.TextUtils$TruncateAt r16 = android.text.TextUtils.TruncateAt.MARQUEE\n r0 = r16\n if (r14 != r0) goto L_0x00ea\n r16 = 1\n r0 = r16\n r13.setSelected(r0)\n L_0x00ea:\n android.widget.TextView$BufferType r16 = android.widget.TextView.BufferType.NORMAL\n r0 = r16\n r13.setText(r11, r0)\n r13.requestLayout()\n goto L_0x0008\n L_0x00f6:\n r3 = 0\n goto L_0x001b\n L_0x00f9:\n r16 = 0\n r0 = r16\n r13.setMinLines(r0)\n goto L_0x0032\n L_0x0102:\n r0 = r18\n int r0 = r0.maxLines\n r16 = r0\n if (r16 <= 0) goto L_0x0129\n r0 = r18\n int r15 = r0.maxLines\n L_0x010e:\n r0 = r18\n int r0 = r0.viewHeightInLines\n r16 = r0\n if (r16 <= 0) goto L_0x0124\n r0 = r18\n int r0 = r0.viewHeightInLines\n r16 = r0\n r0 = r16\n if (r15 <= r0) goto L_0x0124\n r0 = r18\n int r15 = r0.viewHeightInLines\n L_0x0124:\n r13.setMaxLines(r15)\n goto L_0x003b\n L_0x0129:\n r15 = 1\n goto L_0x010e\n L_0x012b:\n int r2 = r2 + 1\n goto L_0x0054\n L_0x012f:\n r9 = 0\n goto L_0x00a6\n L_0x0132:\n r11 = r12\n goto L_0x007d\n L_0x0135:\n r12 = r11\n goto L_0x004b\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p006ti.modules.titanium.p007ui.widget.TiUILabel.updateLabelText():void\");\n }", "private CharSequence addStyle(CharSequence text, int size, int color) {\n SpannableStringBuilder builder = new SpannableStringBuilder(text);\n builder.setSpan(\n new AbsoluteSizeSpan(size), 0, text.length(),\n Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n if (color != 0) {\n builder.setSpan(new ForegroundColorSpan(color), 0, text.length(),\n Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n return builder;\n }", "private CharSequence getNewTextByConfig(){\n if(TextUtils.isEmpty(mOrigText)){\n return mOrigText;\n }\n\n mLayout = getLayout();\n if(mLayout != null){\n mLayoutWidth = mLayout.getWidth();\n }\n\n if(mLayoutWidth <= 0){\n if(getWidth() == 0) {\n if (mFutureTextViewWidth == 0) {\n return mOrigText;\n } else {\n mLayoutWidth = mFutureTextViewWidth - getPaddingLeft() - getPaddingRight();\n }\n }else{\n mLayoutWidth = getWidth() - getPaddingLeft() - getPaddingRight();\n }\n }\n\n mTextPaint = getPaint();\n\n mTextLineCount = -1;\n switch (mCurrState){\n case STATE_SHRINK: {\n mLayout = new DynamicLayout(mOrigText, mTextPaint, mLayoutWidth, Layout.Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false);\n mTextLineCount = mLayout.getLineCount();\n\n if (mTextLineCount <= mMaxLinesOnShrink) {\n return mOrigText;\n }\n int indexEnd = getValidLayout().getLineEnd(mMaxLinesOnShrink - 1);\n int indexStart = getValidLayout().getLineStart(mMaxLinesOnShrink - 1);\n int indexEndTrimmed = indexEnd\n - getLengthOfString(mEllipsisHint)\n - (mShowToExpandHint ? getLengthOfString(mToExpandHint) + getLengthOfString(mGapToExpandHint) : 0);\n\n if (indexEndTrimmed <= indexStart) {\n indexEndTrimmed = indexEnd;\n }\n\n int remainWidth = getValidLayout().getWidth() -\n (int) (mTextPaint.measureText(mOrigText.subSequence(indexStart, indexEndTrimmed).toString()) + 0.5);\n float widthTailReplaced = mTextPaint.measureText(getContentOfString(mEllipsisHint)\n + (mShowToExpandHint ? (getContentOfString(mToExpandHint) + getContentOfString(mGapToExpandHint)) : \"\"));\n\n int indexEndTrimmedRevised = indexEndTrimmed;\n if (remainWidth > widthTailReplaced) {\n int extraOffset = 0;\n int extraWidth = 0;\n while (remainWidth > widthTailReplaced + extraWidth) {\n extraOffset++;\n if (indexEndTrimmed + extraOffset <= mOrigText.length()) {\n extraWidth = (int) (mTextPaint.measureText(\n mOrigText.subSequence(indexEndTrimmed, indexEndTrimmed + extraOffset).toString()) + 0.5);\n } else {\n break;\n }\n }\n indexEndTrimmedRevised += extraOffset - 1;\n } else {\n int extraOffset = 0;\n int extraWidth = 0;\n while (remainWidth + extraWidth < widthTailReplaced) {\n extraOffset--;\n if (indexEndTrimmed + extraOffset > indexStart) {\n extraWidth = (int) (mTextPaint.measureText(mOrigText.subSequence(indexEndTrimmed + extraOffset, indexEndTrimmed).toString()) + 0.5);\n } else {\n break;\n }\n }\n indexEndTrimmedRevised += extraOffset;\n }\n\n String fixText = removeEndLineBreak(mOrigText.subSequence(0, indexEndTrimmedRevised));\n SpannableStringBuilder ssbShrink = new SpannableStringBuilder(fixText)\n .append(mEllipsisHint);\n if (mShowToExpandHint) {\n ssbShrink.append(getContentOfString(mGapToExpandHint) + getContentOfString(mToExpandHint));\n ssbShrink.setSpan(mTouchableSpan, ssbShrink.length() - getLengthOfString(mToExpandHint), ssbShrink.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n return ssbShrink;\n }\n case STATE_EXPAND: {\n if (!mShowToShrinkHint) {\n return mOrigText;\n }\n mLayout = new DynamicLayout(mOrigText, mTextPaint, mLayoutWidth, Layout.Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false);\n mTextLineCount = mLayout.getLineCount();\n\n if (mTextLineCount <= mMaxLinesOnShrink) {\n return mOrigText;\n }\n\n SpannableStringBuilder ssbExpand = new SpannableStringBuilder(mOrigText)\n .append(mGapToShrinkHint).append(mToShrinkHint);\n ssbExpand.setSpan(mTouchableSpan, ssbExpand.length() - getLengthOfString(mToShrinkHint), ssbExpand.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n return ssbExpand;\n }\n }\n return mOrigText;\n }", "@Override\n\tprotected void highlightText(int start, int length) {\n\n\t\tsuper.highlightText(start, length);\n\n\t\ttry {\n\t\t\tint end = this.getLength();\n\n\t\t\tString content = this.getText(0, end);\n\n\t\t\t// TODO :: actually use the start and length passed in as arguments!\n\t\t\t// (currently, they are just being ignored...)\n\t\t\tstart = 0;\n\t\t\tend -= 1;\n\n\t\t\tchar lastDelimiter = ' ';\n\n\t\t\twhile (start <= end) {\n\n\t\t\t\t// while we have a delimiter...\n\t\t\t\tchar curChar = content.charAt(start);\n\t\t\t\twhile (isDelimiter(curChar)) {\n\n\t\t\t\t\tlastDelimiter = curChar;\n\n\t\t\t\t\t// ... check for the start of an object\n\t\t\t\t\tif (curChar == '{') {\n\t\t\t\t\t\tstart = highlightObject(content, start, end);\n\n\t\t\t\t\t// ... check for a comment (which starts with a delimiter)\n\t\t\t\t\t} else if (isCommentStart(content, start, end)) {\n\t\t\t\t\t\tstart = highlightComment(content, start, end);\n\n\t\t\t\t\t// ... and check for a quoted string\n\t\t\t\t\t} else if (isStringDelimiter(content.charAt(start))) {\n\n\t\t\t\t\t\t// then let's get that string!\n\t\t\t\t\t\tboolean singleForMultiline = false;\n\t\t\t\t\t\tboolean threeForMultiline = false;\n\t\t\t\t\t\tstart = highlightString(content, start, end, singleForMultiline, threeForMultiline);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// please highlight the delimiter in the process ;)\n\t\t\t\t\t\tif (!Character.isWhitespace(curChar)) {\n\t\t\t\t\t\t\tthis.setCharacterAttributes(start, 1, attrReservedChar, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (start < end) {\n\n\t\t\t\t\t\t// jump forward and try again!\n\t\t\t\t\t\tstart++;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tcurChar = content.charAt(start);\n\t\t\t\t}\n\n\t\t\t\t// or any other token instead?\n\t\t\t\tstart = highlightOther(content, start, end, lastDelimiter);\n\t\t\t}\n\n\t\t} catch (BadLocationException e) {\n\t\t\t// oops!\n\t\t}\n\t}", "protected int addMultilineTextElement(Element canvas, double x, double y, double width, double lineHeight,\n String text, float fontSize, String anchor, String weight) {\n return addMultilineTextElement(canvas, x, y, width, lineHeight,\n text, fontSize, anchor, weight, \"#000000\", ' ');\n }", "@Override\r\n public String format(String text, int limit, boolean justify) throws PalavraMaiorException {\r\n StringBuilder stringBuilder = new StringBuilder(text);\r\n try {\r\n new IdwallFormatterValidate().validarTextoEntrada(text, limit);\r\n\r\n for (int i = limit; i <= stringBuilder.length(); i += limit) {\r\n\r\n char primeiroCaracter = stringBuilder.charAt(i);\r\n String[] linhas = stringBuilder.substring(i - limit + 2, i).split(newline);\r\n\r\n if (linhas.length >= 2) {\r\n for (int x = 1; x <= linhas.length - 1; x++) {\r\n i -= linhas[x].length();\r\n }\r\n } else {\r\n while (primeiroCaracter != ' ') {\r\n i--;\r\n primeiroCaracter = stringBuilder.charAt(i);\r\n }\r\n stringBuilder.deleteCharAt(i);\r\n stringBuilder.insert(i, newline);\r\n }\r\n }\r\n if (justify) {\r\n stringBuilder = justify(stringBuilder.toString(), limit);\r\n }\r\n } catch (PalavraMaiorException ex) {\r\n throw ex;\r\n }\r\n return stringBuilder.toString();\r\n }", "public void draw(String str, double x, double y, double size, int color, Align align) {\n GL11.glEnable(GL11.GL_BLEND);\n //GL11.glDepthMask(false);\n double scale = size / mcFont().FONT_HEIGHT;\n GL11.glPushMatrix(); {\n GL11.glTranslated(x, y, 0);\n GL11.glScaled(scale, scale, 1);\n String[] ss = str.split(\"\\n\");\n for(int i = 0; i < ss.length; ++i) {\n GL11.glPushMatrix(); {\n double dy = i * mcFont().FONT_HEIGHT;\n GL11.glTranslated(0, dy, 0);\n drawSingleLine(ss[i], color, align);\n } GL11.glPopMatrix();\n }\n } GL11.glPopMatrix();\n }", "public static StringBuffer shadowText(final StringBuffer aBuf,\n final String aText,\n final String aColor,\n final String aShadowColor,\n final String aBackgroundColor,\n final int aShadowShift) {\n aBuf.append(\"<span style=\\\"position:relative; color:\");\n aBuf.append(aShadowColor).append(\"\\\">\");\n aBuf.append(aText);\n aBuf.append(\"<font \");\n if (StringUtility.isNotBlank(aBackgroundColor)) { // invisible when no css\n aBuf.append(\"color=\\\"\").append(aBackgroundColor).append(\"\\\" \");\n }\n aBuf.append(\"style=\\\"position:absolute; color:\");\n aBuf.append(aColor);\n aBuf.append(\"; left:\").append(aShadowShift);\n aBuf.append(\"px; top:\").append(aShadowShift);\n aBuf.append(\"px;\\\">\");\n aBuf.append(aText);\n aBuf.append(\"</font></span>\");\n return aBuf;\n}", "public static void drawStringMultiLine(MatrixStack matrixStack, FontRenderer fontRenderer, String string, int x, int y, int color) \n {\n String[] lines = string.split(\"\\\\\\\\n\");\n for (int i = 0; i < lines.length; i++) \n {\n String line = lines[i];\n fontRenderer.drawString(matrixStack, line, x, y + (fontRenderer.FONT_HEIGHT * i), color);\n }\n }", "public String appendInfo(StringBuilder sb, ParagraphView paragraphView, int indent) {\n int wrapLineCount = size();\n int digitCount = ArrayUtilities.digitCount(wrapLineCount);\n for (int i = 0; i < wrapLineCount; i++) {\n sb.append('\\n'); // Expected to append newline first\n ArrayUtilities.appendSpaces(sb, indent + 4);\n sb.append(\"WL\");\n ArrayUtilities.appendBracketedIndex(sb, i, digitCount);\n WrapLine wrapLine = get(i);\n sb.append(\"SV:\"); // NOI18N\n ViewPart startPart = wrapLine.startPart;\n if (startPart != null) {\n sb.append(\"<\").append(startPart.view.getStartOffset()).append(\",\"); // NOI18N\n sb.append(startPart.view.getEndOffset()).append(\">\"); // NOI18N\n } else {\n sb.append(\"NULL\"); // NOI18N\n }\n sb.append(\"; x=\").append(wrapLine.startPartWidth()); // NOI18N\n int startViewIndex = wrapLine.firstViewIndex;\n int endViewIndex = wrapLine.endViewIndex;\n sb.append(\" [\").append(startViewIndex).append(\",\"); // NOI18N\n sb.append(endViewIndex).append(\"] \"); // NOI18N\n if (paragraphView != null && startViewIndex != endViewIndex) {\n if (startViewIndex > endViewIndex) {\n sb.append(\"ERROR!!! startViewIndex=\").append(startViewIndex); // NOI18N\n sb.append(\" > endViewIndex=\").append(endViewIndex); // NOI18N\n } else {\n int childCount = paragraphView.getViewCount();\n if (startViewIndex == childCount) {\n sb.append(\"<\").append(paragraphView.getEndOffset()).append(\">\"); // NOI18N\n } else {\n if (startViewIndex <= childCount) {\n EditorView startChild = paragraphView.getEditorView(startViewIndex);\n sb.append(\"<\").append(startChild.getStartOffset()); // NOI18N\n } else {\n sb.append(\"<invalid-index=\" + startViewIndex); // NOI18N\n }\n sb.append(\",\");\n if (endViewIndex <= childCount) {\n EditorView lastChild = paragraphView.getEditorView(endViewIndex - 1);\n sb.append(lastChild.getEndOffset()); // NOI18N\n } else {\n sb.append(\"invalid-index=\").append(endViewIndex); // NOI18N\n }\n sb.append(\"> \");\n }\n }\n }\n sb.append(\"EV:\"); // NOI18N\n ViewPart endViewPart = wrapLine.endPart;\n if (endViewPart != null) {\n sb.append(\"<\").append(endViewPart.view.getStartOffset()).append(\",\"); // NOI18N\n sb.append(endViewPart.view.getEndOffset()).append(\">\"); // NOI18N\n } else {\n sb.append(\"NULL\"); // NOI18N\n }\n }\n return sb.toString();\n }", "private String colorLogLine(String lineText) {\n\t\tString logLvl = lineText.substring(13, lineText.indexOf(' ', 13));\r\n\t\tString style = \"black\";\r\n\t\tif (\"TRACE\".equals(logLvl))\r\n\t\t\tstyle = \"yellow\";\r\n\t\telse if (\"DEBUG\".equals(logLvl))\r\n\t\t\tstyle = \"green\";\r\n\t\telse if (\"INFO\".equals(logLvl))\r\n\t\t\tstyle = \"blue\";\r\n\t\telse if (\"WARN\".equals(logLvl))\r\n\t\t\tstyle = \"red; font-weight:bold\";\r\n\t\telse if (\"ERROR\".equals(logLvl))\r\n\t\t\tstyle = \"purple; font-weight:bold\";\r\n\t\telse if (\"FATAL\".equals(logLvl))\r\n\t\t\tstyle = \"black; font-weight:bold\";\r\n\t\tlineText = lineText.replaceAll(\" \", \"&nbsp;\");\r\n\t\tlineText = \"<code style=\\\"color:\" + style + \";\\\">\" + lineText + \"</code>\";\r\n\t\treturn lineText;\r\n\t}", "private HBox createStyledText(String searched, String guess, HBox styledText, boolean isIgnoreCase) {\n int index = (isIgnoreCase ? searched.toLowerCase().indexOf(guess.toLowerCase()) : searched.indexOf(guess));\n if (index >= 0) {\n\n String beginString = searched.substring(0, index);\n String highlightedString = (isIgnoreCase ? searched.substring(index, index + guess.length()) : guess);\n String endString = searched.substring(index + guess.length());\n\n final Text begin = new Text(beginString);\n styledText.getChildren().add(begin);\n\n final Text highlighted = new Text(highlightedString);\n highlighted.getStyleClass().add(HIGHLIGHTED_DROPDOWN_CLASS);\n styledText.getChildren().add(highlighted);\n\n final Text end = new Text(endString);\n end.getStyleClass().add(USUAL_DROPDOWN_CLASS);\n styledText.getChildren().add(end);\n\n } else {\n styledText.getChildren().add(new Text(searched));\n }\n return styledText;\n }", "private Painter newPlainText() {\r\n\t\treturn p.textOutline(text, surface, fontSize, bold, italic, \r\n\t\t\t\tshade, null);\r\n\t}", "private static boolean HandleEnterBreakForPlainText(TextEditor This)\r\n { \r\n boolean wasSelectionChanged = true;\r\n\r\n // Filter Environment.NewLine based on TextBox.MaxLength \r\n String filteredText = This._FilterText(Environment.NewLine, This.Selection);\r\n\r\n if (filteredText != String.Empty)\r\n {\r\n This.Selection.Text = Environment.NewLine;\r\n } \r\n else\r\n { \r\n // Do not update selection if Environment.NewLine can not fit in. \r\n wasSelectionChanged = false;\r\n } \r\n\r\n return wasSelectionChanged;\r\n }", "protected abstract boolean isMultiLine();", "TextLayout getTextLayout(String line, int lineOffset, int[] bidiSegments, StyleRange[] styles) {\n\tTextLayout layout = createTextLayout(lineOffset);\n\tlayout.setFont(regularFont);\n\tlayout.setAscent(ascent);\n\tlayout.setDescent(descent);\n\tlayout.setText(line);\n\tlayout.setOrientation(getOrientation());\n\tlayout.setSegments(bidiSegments);\n\tlayout.setTabs(new int[]{tabWidth});\n\tlayout.setWidth(getWidth());\n\tint length = line.length();\n\tint lastOffset = 0;\n\tif (styles != null) {\n\t\tfor (int styleIndex = 0; styleIndex < styles.length; styleIndex++) {\n\t\t\tStyleRange style = styles[styleIndex];\n\t\t\tif (style.isUnstyled()) continue;\n\t\t\tint start, end;\n\t\t\tif (lineOffset > style.start) {\n\t\t\t\tstart = 0;\n\t\t\t\tend = Math.min (length, style.length - lineOffset + style.start);\n\t\t\t} else {\n\t\t\t\tstart = style.start - lineOffset;\n\t\t\t\tend = Math.min(length, start + style.length);\n\t\t\t}\n\t\t\tif (start >= length) break;\n\t\t\tif (lastOffset < start) {\n\t\t\t\tlayout.setStyle(null, lastOffset, start - 1);\t\n\t\t\t}\n\t\t\tTextStyle textStyle = new TextStyle(getFont(style), style.foreground, style.background);\n\t\t\ttextStyle.underline = style.underline;\n\t\t\ttextStyle.strikeout = style.strikeout;\n\t\t\ttextStyle.rise = style.rise;\n\t\t\tEmbeddedObject object = style.object;\n\t\t\tif (object != null) {\n\t\t\t\ttextStyle.metrics = new GlyphMetrics(object.getAscent(), object.getDescent(), object.getAdvance());\n\t\t\t}\n\t\t\tlayout.setStyle(textStyle, start, end - 1);\n\t\t\tlastOffset = Math.max(lastOffset, end);\n\t\t}\n\t}\n\tif (lastOffset < length) layout.setStyle(null, lastOffset, length);\n\treturn layout;\n}", "private int renderString(String text, float x, float y, int color, boolean dropShadow) {\n if (super.getBidiFlag()) {\n text = bidirectionalReorder(text);\n }\n \n updateColor();\n super.posX = x;\n super.posY = y;\n renderStringAtPos(text, dropShadow);\n return (int) super.posX;\n }", "private static String box(String str, String mark, Integer max_len) {\n String lines[] = LINE_SPLIT.split(str);\n if (lines.length == 0) return \"\";\n\n if (max_len == null) {\n for (String line : lines) {\n if (max_len == null || line.length() > max_len) max_len = line.length();\n } // FOR\n }\n\n final String top_line = StringUtil.repeat(mark, max_len + 4); // padding\n final String f = \"%s %-\" + max_len + \"s %s\\n\";\n\n StringBuilder sb = new StringBuilder();\n sb.append(top_line).append(\"\\n\");\n for (String line : lines) {\n sb.append(String.format(f, mark, line, mark));\n } // FOR\n sb.append(top_line);\n\n return (sb.toString());\n }", "protected abstract MS_LineBuilder prepareContent(MS_LineBuilder lb);", "private void renderText(CharSequence source) {\n \n }", "private void createContents(Shell shell) \r\n\t{\r\n\t\tshell.setLayout(new FillLayout());\r\n\r\n\t\t// Create the StyledText\r\n\t\tfinal StyledText styledText = new StyledText(shell, SWT.BORDER);\r\n\r\n\t\t// Add the syntax coloring handler\r\n\t\tstyledText.addExtendedModifyListener(new ExtendedModifyListener() \r\n\t\t{\r\n\t\t\tpublic void modifyText(ExtendedModifyEvent event) \r\n\t\t\t{\r\n\t\t\t\t// Determine the ending offset\r\n\t\t\t\tint end = event.start + event.length - 1;\r\n\r\n\t\t\t\t// If they typed something, get it\r\n\t\t\t\tif (event.start <= end) \r\n\t\t\t\t{\r\n\t\t\t\t\t// Get the text\r\n\t\t\t\t\tString text = styledText.getText(event.start, end);\r\n\r\n\t\t\t\t\t// Create a collection to hold the StyleRanges\r\n\t\t\t\t\tjava.util.List ranges = new java.util.ArrayList();\r\n\r\n\t\t\t\t\t// Turn any punctuation red\r\n\t\t\t\t\tfor (int i = 0, n = text.length(); i < n; i++) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (PUNCTUATION.indexOf(text.charAt(i)) > -1) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tranges.add(new StyleRange(event.start + i, 1, red, null, SWT.BOLD));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// If we have any ranges to set, set them\r\n\t\t\t\t\tif (!ranges.isEmpty()) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tstyledText.replaceStyleRanges(event.start, event.length,(StyleRange[]) ranges.toArray(new StyleRange[0]));\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}", "private void setTextReflowMode(boolean mode) {\n\t\tif (mode) {\n\t\t\tLog.d(TAG, \"text reflow\");\n\t\t\tint page = this.pagesView.getCurrentPage();\n\t\t\tString text = this.pdf.getText(page);\n\t\t\tif (text == null) text = \"\";\n\t\t\ttext = text.trim();\n\t\t\tLog.d(TAG, \"text of page \" + page + \" is: \" + text);\n\t\t\tthis.textReflowTextView.setText(text);\n\t\t\tthis.textReflowScrollView.scrollTo(0,0);\n\t\t\tthis.textReflowMenuItem.setTitle(\"Close Text Reflow\");\n\t\t\tthis.pagesView.setVisibility(View.GONE);\n\t \tthis.menuLayout.clearAnimation();\n\t \tthis.drawHandler.removeCallbacks(zoomRunnable);\n\t \tthis.menuHandler.removeCallbacks(zoomRunnable);\n\t\t\t//this.zoomLayout.setVisibility(View.GONE);\n\t\t\tthis.textReflowView.setVisibility(View.VISIBLE);\n\t\t\tthis.textReflowMode = true;\n\t\t} else {\n\t\t\tthis.textReflowMenuItem.setTitle(\"Text Reflow\");\n\t\t\tthis.textReflowView.setVisibility(View.GONE);\n\t\t\tthis.pagesView.setVisibility(View.VISIBLE);\n\t\t\tthis.textReflowMode = false;\n\t\t\tthis.showMenu();\n\t\t}\n\t}", "private void splitText(ArrayList<TextLayout> chunks, String str){\n if(str.length() == 0){\n str = \" \";\n }\n FontRenderContext frc = getFontRenderContext();\n TextLayout textLayout = new TextLayout(str,\n TEXT_FONT, frc);\n Rectangle2D textRect = textLayout.getBounds();\n // does text need to be split?\n if(textRect.getWidth() > TEXT_WIDTH){\n\n AttributedString asText = new AttributedString(str);\n asText.addAttribute(TextAttribute.FONT, TEXT_FONT);\n AttributedCharacterIterator asItr = asText.getIterator();\n\n int start = asItr.getBeginIndex();\n int end = asItr.getEndIndex();\n\n LineBreakMeasurer line = new LineBreakMeasurer(asItr, frc);\n line.setPosition(start);\n // Get lines from lineMeasurer until the entire\n // paragraph has been displayed.\n while (line.getPosition() < end) {\n\n // Retrieve next layout.\n // width = maximum line width\n TextLayout layout = line.nextLayout(TEXT_WIDTH);\n chunks.add(layout);\n }\n }\n else{\n chunks.add(textLayout);\n }\n }", "public boolean isTextboxWrapLine()\n {\n return isWrapLine;\n }", "private String showText() {\n\t\tString text = \"\";\n\t\ttry {\n\t\t\tString line1 = \"\";\n\t\t\tString line2 = \"\";\n\t\t\tString line3 = \"\";\n\t\t\tfor (LakeTile lake_tile : removed_laketile) {\n\t\t\t\tint i = removed_laketile.indexOf(lake_tile);\n\t\t\t\tPosition pos = removed_position.get(i);\n\t\t\t\tQueue<Color> color_queue = lake_tile.getColorOfFourSides();\n\t\t\t\tArrayList<Color> color_list = new ArrayList<Color>(color_queue);\n\n\t\t\t\tline1 += String.format(\"%12s\", \"\");\n\t\t\t\tline1 += Color.getColorText(color_list.get(0), \" \");\n\n\t\t\t\tline1 += String.format(\"%4s\", \"\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tline2 += String.format(\"%2s\", lake_tile.getIndex());\n\t\t\t\tline2 += \":\";\n\t\t\t\tline2 += String.format(\"%-7s\",\"(\" + pos.getX() + \",\" + pos.getY() + \")\");\n\t\t\t\tline2 += Color.getColorText(color_list.get(3), \" \");\n\t\t\t\tline2 += \" \";\n\t\t\t\tif (lake_tile.isPlatform()) {\n\t\t\t\t\tline2 += \"O\";\n\t\t\t\t} else {\n\t\t\t\t\tline2 += \"X\";\n\t\t\t\t}\n\t\t\t\tline2 += \" \" + Color.getColorText(color_list.get(1), \" \") + \" \";\n\n\t\t\t\tline3 += String.format(\"%12s\", \"\");\n\t\t\t\tline3 += Color.getColorText(color_list.get(2), \" \");\n\t\t\t\tline3 += String.format(\"%4s\", \"\");\n\n\t\t\t}\n\t\t\ttext += line1 + \"\\n\";\n\t\t\ttext += line2 + \"\\n\";\n\t\t\ttext += line3 + \"\\n\";\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\ttext = \"No Data\";\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn text;\n\n\t}", "private void drawText(Graphics2D g2)\n\t{\n\t\tfinal int PADDING = 5;\n\t\tfinal Rectangle bounds = getBounds();\n\t\tfinal String[] texts = getText().split(\"\\\\ \");\n\n\t\tfinal Font effectiveFont = font.deriveFont(font.getSize() * parent.getZoom());\n\n\t\tfinal FontMetrics metrics = g2.getFontMetrics(effectiveFont);\n\n\t\tfinal int hgt = metrics.getHeight();\n\t\tint adv, offsetY = bounds.y + PADDING + hgt, offsetX = PADDING;\n\t\tg2.setFont(effectiveFont);\n\n\t\tfor (final String text2 : texts)\n\t\t{\n\t\t\tfinal String currentText = text2 + \" \";\n\t\t\tadv = metrics.stringWidth(currentText);\n\n\t\t\tif (offsetX + adv > bounds.width - PADDING * 2)\n\t\t\t{\n\t\t\t\toffsetY += hgt; // new line\n\t\t\t\toffsetX = PADDING;\n\t\t\t}\n\n\t\t\tg2.drawString(currentText, bounds.x + offsetX, offsetY);\n\t\t\toffsetX += adv;\n\t\t}\n\t}", "public void renderFlanges(int cons, int tex)\r\n/* 108: */ {\r\n/* 109:106 */ this.context.setTex(tex);\r\n/* 110:108 */ if ((cons & 0x1) > 0)\r\n/* 111: */ {\r\n/* 112:109 */ this.context.setTexFlags(0);\r\n/* 113:110 */ this.context.renderBox(63, 0.25D, 0.0D, 0.25D, 0.75D, 0.125D, 0.75D);\r\n/* 114: */ }\r\n/* 115:112 */ if ((cons & 0x2) > 0)\r\n/* 116: */ {\r\n/* 117:113 */ this.context.setTexFlags(112320);\r\n/* 118:114 */ this.context.renderBox(63, 0.25D, 0.875D, 0.25D, 0.75D, 1.0D, 0.75D);\r\n/* 119: */ }\r\n/* 120:116 */ if ((cons & 0x4) > 0)\r\n/* 121: */ {\r\n/* 122:117 */ this.context.setTexFlags(217134);\r\n/* 123:118 */ this.context.renderBox(63, 0.25D, 0.25D, 0.0D, 0.75D, 0.75D, 0.125D);\r\n/* 124: */ }\r\n/* 125:120 */ if ((cons & 0x8) > 0)\r\n/* 126: */ {\r\n/* 127:121 */ this.context.setTexFlags(188469);\r\n/* 128:122 */ this.context.renderBox(63, 0.25D, 0.25D, 0.875D, 0.75D, 0.75D, 1.0D);\r\n/* 129: */ }\r\n/* 130:124 */ if ((cons & 0x10) > 0)\r\n/* 131: */ {\r\n/* 132:125 */ this.context.setTexFlags(2944);\r\n/* 133:126 */ this.context.renderBox(63, 0.0D, 0.25D, 0.25D, 0.125D, 0.75D, 0.75D);\r\n/* 134: */ }\r\n/* 135:128 */ if ((cons & 0x20) > 0)\r\n/* 136: */ {\r\n/* 137:129 */ this.context.setTexFlags(3419);\r\n/* 138:130 */ this.context.renderBox(63, 0.875D, 0.25D, 0.25D, 1.0D, 0.75D, 0.75D);\r\n/* 139: */ }\r\n/* 140: */ }", "@Override\r\n\tpublic void insertString(int offs, String str, AttributeSet a)\r\n\t\t\tthrows BadLocationException {\n\t\tStyleConstants.setForeground((MutableAttributeSet) a, Color.BLACK);\r\n\t\tStyleConstants.setItalic((MutableAttributeSet) a, false);\r\n\t\t\r\n\t\t// trim line breaks, spaces and tab characters from inserted string\r\n\t\tString line = str.trim();\r\n\t\t// check for keywords\r\n\t\t// TODO: maybe move context detection to separate method\r\n\t\tif (line.startsWith(\"[BEFORE_HEX]\")) {\r\n\t\t\tthis.branchContext = BranchContext.BEFORE_HEX;\r\n\t\t} else if (line.startsWith(\"[AFTER_HEX]\")) {\r\n\t\t\tthis.branchContext = BranchContext.AFTER_HEX;\r\n\t\t} else if (line.startsWith(\"[HEADER]\")) {\r\n\t\t\tthis.branchContext = BranchContext.HEX_HEADER;\r\n\t\t} else if (line.startsWith(\"[CODE]\")) {\r\n\t\t\tthis.branchContext = BranchContext.HEX_CODE;\r\n\t\t} else if (line.startsWith(\"//\")) {\r\n\t\t\t// TODO: get style data from context enum\r\n\t\t\tStyleConstants.setForeground((MutableAttributeSet) a, new Color(63, 127, 95));\r\n\t\t}\r\n\t\t\r\n\t\tif (this.leafContext == LeafContext.ATTRIBUTE_VALUE) {\r\n\t\t\tStyleConstants.setForeground((MutableAttributeSet) a, new Color(0, 0, 192));\r\n\t\t\tStyleConstants.setItalic((MutableAttributeSet) a, true);\r\n\t\t}\r\n\t\tthis.leafContext = LeafContext.OTHER;\r\n\t\t\r\n\t\t// check for comments\r\n\t\tint commentOffset = line.indexOf(\"//\");\r\n\t\tif (commentOffset > 0) {\r\n\t\t\t// split at '//' if comment is after other content\r\n\t\t\tString pre = str.substring(0, commentOffset + 1);\r\n\t\t\tString post = str.substring(commentOffset + 1);\r\n\t\t\t\r\n\t\t\tthis.insertString(offs, pre, a);\r\n\t\t\tthis.insertString(offs + pre.length(), post, a);\r\n\t\t} else {\r\n\t\t\t// check for attribute values\r\n\t\t\tint equalsOffset = str.indexOf(\"=\");\r\n\t\t\tif ((equalsOffset > 0) && (commentOffset < 0)) {\r\n\t\t\t\t// split at '=' if attribute/value pair is outside of comment\r\n\t\t\t\tString pre = str.substring(0, equalsOffset);\r\n\t\t\t\tString post = str.substring(equalsOffset + 1);\r\n\t\t\t\t\r\n\t\t\t\tthis.leafContext = LeafContext.ATTRIBUTE_NAME;\r\n\t\t\t\tthis.insertString(offs, pre, a);\r\n\t\t\t\tthis.leafContext = LeafContext.OTHER;\r\n\t\t\t\tthis.insertString(offs + pre.length(), \"=\", a);\r\n\t\t\t\tthis.leafContext = LeafContext.ATTRIBUTE_VALUE;\r\n\t\t\t\tthis.insertString(offs + pre.length() + 1, post, a);\r\n\t\t\t} else {\r\n\t\t\t\t// fall-back for default behavior\r\n\t\t\t\tsuper.insertString(offs, str, a);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n\tpublic void testToWrappedHTML_MultipleNewlines_NoLimit() {\n\t\tString s = \"Wrap\\n\\nhere\\n\\n\\n\";\n\t\tString html = HTMLUtilities.toWrappedHTML(s, 0);\n\t\tassertEquals(HTML + \"Wrap<BR>\\n<BR>\\nhere<BR>\\n<BR>\\n<BR>\\n\", html);\n\t}", "private void setConsoleText(String text) {\n //<font color='red'>red</font>\n consoleView.setText(Html.fromHtml(text), TextView.BufferType.SPANNABLE);\n }", "private void highlightText(Text text){\r\n\t text.changeColor(AnimalScript.COLORCHANGE_COLOR, Color.RED, new TicksTiming(0), new TicksTiming(0));\r\n\t }", "public void setHightlightedTextSize(Float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mHightlightedTextSize = Utils.convertDpToPixel(size);\n\n }", "public static String getWrappedText(String text, int offset) {\r\n StringBuffer wrappedText = new StringBuffer();\r\n\r\n String currentString = null;\r\n int currentStart = 0;\r\n int strLen = 0;\r\n int len = 0;\r\n\r\n while (currentStart < text.length() && text.length() > offset) {\r\n currentString = text.substring(currentStart, (currentStart + offset));\r\n strLen += currentString.length() + len;\r\n wrappedText.append(currentString);\r\n\r\n int index = text.indexOf(\" \", (currentStart + offset));\r\n if (index == -1) {\r\n index = text.indexOf(\".\", (currentStart + offset));\r\n }\r\n if (index == -1) {\r\n index = text.indexOf(\",\", (currentStart + offset));\r\n }\r\n if (index != -1) {\r\n len = index - strLen;\r\n currentString = text.substring((currentStart + offset), (currentStart + offset + len));\r\n wrappedText.append(currentString);\r\n wrappedText.append(\"<BR>\");\r\n } else {\r\n if (currentStart == 0) {\r\n currentStart = offset;\r\n }\r\n wrappedText.append(text.substring(currentStart));\r\n return wrappedText.toString();\r\n }\r\n\r\n currentStart += offset + len;\r\n if ((currentStart + offset + len) > text.length()) {\r\n break;\r\n }\r\n }\r\n wrappedText.append(text.substring(currentStart));\r\n return wrappedText.toString();\r\n }", "public void treat()\n\t{\n\t\tstroked();\n\t}", "@Override\n public int drawString(String text, float x, float y, int color, boolean dropShadow) {\n super.enableAlpha();\n int textXPos;\n \n if (dropShadow) {\n drawNewString(color, true);\n textXPos = renderString(text, x + 1.0F, y + 1.0F, color, true);\n drawNewString(color, false);\n textXPos = Math.max(textXPos, renderString(text, x, y, color, false));\n } else {\n drawNewString(color, false);\n textXPos = renderString(text, x, y, color, false);\n }\n \n return textXPos;\n }", "private void buildTextLayouts(FontRenderContext frc, String fontName, int fontSize, String text, boolean bold, boolean italic) {\n AttributedString attrStr = makeAttributedString(\r\n fontName,\r\n fontSize,\r\n text,\r\n bold,\r\n italic);\r\n AttributedCharacterIterator paragraph = attrStr.getIterator();\r\n LineBreakMeasurer lineMeasurer = new LineBreakMeasurer(paragraph, frc);\r\n lineMeasurer.setPosition(paragraph.getBeginIndex());\r\n int end = paragraph.getEndIndex();\r\n while (lineMeasurer.getPosition() < end) {\r\n //compute line width to account for indents \t\r\n double lineWidth = pageWidth - 2 * margin; \r\n TextLayout l = lineMeasurer.nextLayout((float) lineWidth);\r\n textLayouts.add(l);\r\n }\r\n }", "private void logTextColors() {\n // Get ColorStateLists (defines text colors for all possible states that the View can be in)\n ColorStateList cslEditText = mBind.maxWidthEdit.getTextColors();\n ColorStateList cslTextView = mBind.maxWidthLabel.getTextColors();\n\n // The standard Android enabled and disabled states (used in the ColorStateLists)\n int enabledState = android.R.attr.state_enabled;\n int disabledState = -android.R.attr.state_enabled;\n\n // Get the text colours for the enabled and disabled states\n int defaultColor = 0xFFFFFFFF;\n int editTextEnabled = cslEditText.getColorForState(new int[] {enabledState}, defaultColor);\n int editTextDisabled = cslEditText.getColorForState(new int[] {disabledState}, defaultColor);\n int textViewEnabled = cslTextView.getColorForState(new int[] {enabledState}, defaultColor);\n int textViewDisabled = cslTextView.getColorForState(new int[] {disabledState}, defaultColor);\n\n // Output\n Log.v(LOG_TAG, \"Text colour EditText enabled: \" + Integer.toHexString(editTextEnabled));\n Log.v(LOG_TAG, \"Text colour EditText disabled: \" + Integer.toHexString(editTextDisabled));\n Log.v(LOG_TAG, \"Text colour TextView enabled: \" + Integer.toHexString(textViewEnabled));\n Log.v(LOG_TAG, \"Text colour TextView disabled: \" + Integer.toHexString(textViewDisabled));\n\n // Example results on API level 23 with dark text on light background theme\n // (Compare with https://material.google.com/style/color.html#color-color-schemes):\n // EditText enabled: 0xDE000000: black, opacity 222/255 (87.06%) -> primary text\n // EditText disabled: 0x3A000000: black, opacity 58/255 (22.75%) -> 26.1% of primary text\n // TextView enabled: 0x8A000000: black, opacity 138/255 (54.12%) -> secondary text\n // TextView disabled: 0x24000000: black, opacity 36/255 (14.12%) -> 26.1% of secondary text\n }", "public static TextView styleText(String username, String caption, TextView textView, Context context) {\n\n ForegroundColorSpan blueForegroundColorSpan = new ForegroundColorSpan(context.getResources().getColor(R.color.blue_text));\n StyleSpan bss = new StyleSpan(android.graphics.Typeface.BOLD);\n SpannableStringBuilder ssb = new SpannableStringBuilder(username);\n ssb.setSpan(\n blueForegroundColorSpan, // the span to add\n 0, // the start of the span (inclusive)\n ssb.length(), // the end of the span (exclusive)\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n ssb.setSpan(bss, 0, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n ssb.append(\" \");\n ForegroundColorSpan grayColorSpan = new ForegroundColorSpan(context.getResources().getColor(R.color.gray_text));\n if (caption != null) {\n ssb.append(caption);\n ssb.setSpan(\n grayColorSpan, // the span to add\n ssb.length() - caption.length(),\n // the start of the span (inclusive)\n ssb.length(), // the end of the span (exclusive)\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n textView.setText(ssb);\n } else {\n textView.setVisibility(View.GONE);\n }\n\n return textView;\n\n }", "private void calculateLineHeight() {\n\tGC gc = getGC();\n\tlineEndSpaceWidth = gc.stringExtent(\" \").x;\t\n\t\n\t// don't assume that bold and normal fonts have the same height\n\t// fixes bug 41773\n\tFont originalFont = gc.getFont();\n\tFontMetrics metrics = gc.getFontMetrics();\n\tascent = Math.max(ascent, metrics.getAscent() + metrics.getLeading());\n\tdescent = Math.max(descent, metrics.getDescent());\n\taverageCharWidth = Math.max(averageCharWidth, metrics.getAverageCharWidth());\n\tgc.setFont(getFont(SWT.BOLD));\n\tmetrics = gc.getFontMetrics();\n\tascent = Math.max(ascent, metrics.getAscent() + metrics.getLeading());\n\tdescent = Math.max(descent, metrics.getDescent());\n\taverageCharWidth = Math.max(averageCharWidth, metrics.getAverageCharWidth());\n\tgc.setFont(getFont(SWT.ITALIC));\n\tmetrics = gc.getFontMetrics();\n\tascent = Math.max(ascent, metrics.getAscent() + metrics.getLeading());\n\tdescent = Math.max(descent, metrics.getDescent());\n\taverageCharWidth = Math.max(averageCharWidth, metrics.getAverageCharWidth());\n\tgc.setFont(getFont(SWT.BOLD | SWT.ITALIC));\n\tmetrics = gc.getFontMetrics();\n\tascent = Math.max(ascent, metrics.getAscent() + metrics.getLeading());\n\tdescent = Math.max(descent, metrics.getDescent());\n\taverageCharWidth = Math.max(averageCharWidth, metrics.getAverageCharWidth());\n\tgc.setFont(originalFont);\n\tdisposeGC(gc);\n\t\n\t// clear the font cache\n\tif (boldFont != null) boldFont.dispose();\n\tif (italicFont != null) italicFont.dispose();\n\tif (boldItalicFont != null) boldItalicFont.dispose();\n\tboldFont = italicFont = boldItalicFont = null;\n}", "public StyledText(String string, AttributeMap initialStyle) {\r\n fCharBuffer = new CharBuffer(string.length());\r\n fCharBuffer.replace(0, 0, string, 0, string.length());\r\n\r\n fStyleBuffer = new StyleBuffer(this, initialStyle);\r\n fParagraphBuffer = new ParagraphBuffer(fCharBuffer);\r\n }", "public static String wrap ( final String in, final int width )\n {\n final StringBuilder sb;\n\n if (null == in) return null;\n if (width < 1) return in;\n\n sb = new StringBuilder(in);\n\n int i = 0;\n while (i + width < sb.length() && (i = sb.lastIndexOf(\" \", i + width)) != -1) {\n sb.replace(i, i + 1, \"\\n\");\n i++;\n }\n return sb.toString();\n }", "default HtmlFormatter wrapWith(String str) {\n return wrapWith(\n str,\n str\n );\n }", "private void addRenderPieces(Text text) {\n Rectangle rectangle = new Rectangle();\n rectangle.setX(text.getX());\n rectangle.setY(text.getY());\n rectangle.setWidth(text.getLayoutBounds().getWidth());\n rectangle.setHeight(lineHeight);\n rectangle.setFill(Color.VIOLET);\n rectangle.toBack();\n root.getChildren().add(rectangle);\n renderPieces.add(rectangle);\n }", "@Override\n public void run() {\n\t\t\t\t\ttable.getDisplay().timerExec(100, new Runnable() {\n\t\t\t\t\t\t@Override\n public void run() {\n//\t\t\t\t\t\t\tfindText.setBackground(PropertyChangeListener.getColor(found == null && matchCount == 0 ? new RGB(255, 0, 0) : new RGB(255, 255, 255)));\n\t\t\t\t\t\t\tif (!wrapped)\n\t\t\t\t\t\t\t\thexEditor.getEditorSite().getActionBars().getStatusLineManager().setMessage(found == null && matchCount == 0 ? Messages.HexEditorControl_7 : matchCount > 0 ? Messages.HexEditorControl_8 + matchCount + Messages.HexEditorControl_9 : null);\n\t\t\t\t\t\t\tupdateStatusPanel();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}", "static void m8562a(SpannableStringBuilder spannableStringBuilder) {\n int length = spannableStringBuilder.length() - 1;\n while (length >= 0 && spannableStringBuilder.charAt(length) == ' ') {\n length--;\n }\n if (length >= 0 && spannableStringBuilder.charAt(length) != '\\n') {\n spannableStringBuilder.append('\\n');\n }\n }", "void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color);", "public final SpannableString mo61574a(SpannableString spannableString) {\n if (!this.f103621f) {\n return spannableString;\n }\n DynamicLayout dynamicLayout = new DynamicLayout(spannableString.toString(), this.f103618c, this.f103619d, Alignment.ALIGN_NORMAL, 1.0f, 0.0f, true);\n if (dynamicLayout.getLineCount() <= this.f103620e) {\n return spannableString;\n }\n int i = 1;\n this.f103617b = true;\n TextPaint textPaint = this.f103618c;\n StringBuilder sb = new StringBuilder(\"...\");\n sb.append(this.f103622g);\n float measureText = textPaint.measureText(sb.toString()) + C9738o.m28708b(C6399b.m19921a(), 13.0f) + C9738o.m28708b(C6399b.m19921a(), 12.0f);\n int lineStart = dynamicLayout.getLineStart(this.f103620e) - 1;\n int i2 = (int) (((float) this.f103619d) - measureText);\n float measureText2 = this.f103618c.measureText(spannableString.subSequence(dynamicLayout.getLineStart(this.f103620e - 1), lineStart).toString());\n float f = (float) i2;\n if (measureText2 > f) {\n float f2 = measureText2 - f;\n while (i < 15 && this.f103618c.measureText(spannableString.subSequence(lineStart - i, lineStart).toString()) <= f2) {\n i++;\n }\n } else {\n i = 0;\n }\n if (!C6399b.m19944t()) {\n int a = m127619a(spannableString.subSequence(lineStart - i, lineStart).toString());\n StringBuilder sb2 = new StringBuilder();\n sb2.append(spannableString.subSequence(0, lineStart - ((i + i) - a)));\n sb2.append(\"...\");\n return new SpannableString(sb2.toString());\n }\n StringBuilder sb3 = new StringBuilder();\n sb3.append(spannableString.subSequence(0, lineStart - i));\n sb3.append(\"...\");\n return new SpannableString(sb3.toString());\n }", "public static String shadowText(final String aText,\n final String aColor,\n final String aShadowColor,\n final String aBackgroundColor,\n final int aShadowShift) {\n StringBuffer sb= new StringBuffer(64);\n shadowText(sb, aText, aColor, aShadowColor, aBackgroundColor, aShadowShift);\n return sb.toString();\n}", "private Spannable applyWordMarkup(String text) {\n SpannableStringBuilder ssb = new SpannableStringBuilder();\n int languageCodeStart = 0;\n int untranslatedStart = 0;\n\n int textLength = text.length();\n for (int i = 0; i < textLength; i++) {\n char c = text.charAt(i);\n if (c == '.') {\n if (++i < textLength) {\n c = text.charAt(i);\n if (c == '.') {\n ssb.append(c);\n } else if (c == 'c') {\n languageCodeStart = ssb.length();\n } else if (c == 'C') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.language_code_tag),\n languageCodeStart, ssb.length(), 0);\n languageCodeStart = ssb.length();\n } else if (c == 'u') {\n untranslatedStart = ssb.length();\n } else if (c == 'U') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.untranslated_word),\n untranslatedStart, ssb.length(), 0);\n untranslatedStart = ssb.length();\n } else if (c == '0') {\n Resources res = getResources();\n ssb.append(res.getString(R.string.no_translations));\n }\n }\n } else\n ssb.append(c);\n }\n\n return ssb;\n }", "public default S withWordwrap(boolean wordwrap) {\n ((TextArea) this).setWordwrap(wordwrap);\n return (S) this;\n }", "int drawLine(String line, int lineIndex, int paintX, int paintY, GC gc, Color widgetBackground, Color widgetForeground, boolean clearBackground) {\n\tif (styledText == null) return 0;\n\tStyledTextContent content = styledText.getContent();\n\tint lineOffset = content.getOffsetAtLine(lineIndex);\n\tint lineLength = line.length();\n\tPoint selection = styledText.getSelection();\n\tint selectionStart = selection.x;\n\tint selectionEnd = selection.y;\n\tTextLayout layout = getTextLayout(line, lineOffset);\n\tRectangle client = styledText.getClientArea(); \n\tStyledTextEvent event = styledText.getLineBackgroundData(lineOffset, line);\n\tColor lineBackground = null;\n\tif (event != null) {\n\t\tlineBackground = event.lineBackground;\n\t}\n\tif (lineBackground == null) {\n\t\tlineBackground = widgetBackground;\n\t}\n\tboolean fullSelection = (styledText.getStyle() & SWT.FULL_SELECTION) != 0;\n\tif (clearBackground &&\n\t\t(!fullSelection || \n\t\t selectionStart > lineOffset || \n\t\t selectionEnd <= lineOffset + lineLength)) {\n\t\t// draw background if full selection is off or if line is not \n\t\t// completely selected\n\t\tgc.setBackground(lineBackground);\n\t\tgc.fillRectangle(client.x, paintY, client.width, layout.getBounds().height);\n\t}\n\tif (selectionStart != selectionEnd) {\n\t\tint y = paintY;\n\t\tint[] offsets = layout.getLineOffsets();\n\t\tint lineCount = layout.getLineCount();\n\t\tgc.setBackground(styledText.getSelectionBackground());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\t\t\tint lineStart = offsets[i];\n\t\t\tint lineEnd = Math.max(0, offsets[i + 1] - 1);\n\t\t\tif (lineStart >= selectionEnd - lineOffset) break;\n\t\t\tRectangle lineBounds = layout.getLineBounds(i);\n\t\t\tif (selectionStart - lineOffset <= lineEnd && lineEnd < selectionEnd - lineOffset - 1) {\n\t\t\t\tint x = paintX + lineBounds.x + lineBounds.width;\n\t\t\t\tif (fullSelection) {\n\t\t\t\t\tgc.fillRectangle(x, y, client.width - x, lineBounds.height);\n\t\t\t\t} else {\n\t\t\t\t\tif (i == lineCount - 1) {\n\t\t\t\t\t\tgc.fillRectangle(x, y, lineEndSpaceWidth, lineBounds.height);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ty += lineBounds.height + layout.getSpacing();\n\t\t}\n\t}\n\tgc.setForeground(widgetForeground);\n\tgc.setBackground(lineBackground);\t\n\tif (selectionStart == selectionEnd || (selectionEnd <= lineOffset && selectionStart > lineOffset + lineLength - 1)) {\n\t\tlayout.draw(gc, paintX, paintY);\n\t} else {\n\t\tint start = Math.max(0, selectionStart - lineOffset);\n\t\tint end = Math.min(lineLength, selectionEnd - lineOffset);\n\t\tColor selectionFg = styledText.getSelectionForeground();\n\t\tColor selectionBg = styledText.getSelectionBackground();\n\t\tlayout.draw(gc, paintX, paintY, start, end - 1, selectionFg, selectionBg);\n\t}\n\t\n\t//place the objects\n\tevent = styledText.sendLineEvent(StyledText2.LineGetStyle, lineOffset, line);\n\tif (event != null && event.styles != null) {\n\t\tStyleRange[] styles = event.styles;\n\t\tfor (int i = 0; i < styles.length; i++) {\n\t\t\tStyleRange range = styles[i];\n\t\t\tint start = range.start;\n\t\t\tif (lineOffset <= start && start < lineOffset + lineLength) {\n\t\t\t\tEmbeddedObject object = range.object;\n\t\t\t\t if (object != null) {\n\t\t\t\t\t int offset = start - lineOffset;\n\t\t\t\t\t Point point = layout.getLocation(offset, false);\n\t\t\t\t\t FontMetrics metrics = layout.getLineMetrics(layout.getLineIndex(offset));\n\t\t\t\t\t range.object.draw(gc, point.x + paintX, point.y + paintY, metrics.getAscent(), metrics.getDescent());\n\t\t\t\t }\n\t\t\t}\n\t\t}\n\t}\n\t\n\tint height = layout.getBounds().height;\n\tdisposeTextLayout(layout);\n\treturn height;\n}", "protected void setLightBoxBackground() { Console.setBackground(Console.BLUE); }", "void rewrap() {\n if (isShowing()) {\n runWithoutMovingTheVisibleArea(new Runnable() {\n public void run() {\n revalidateLineWrappings();\n }\n });\n }\n }", "private void drawText(final String translationKey, Object...parameters) {\n\t\tfinal String[] translated = new TranslationTextComponent(translationKey, parameters).getFormattedText().split(\"\\\\n\");\n\t\tint totalHeight = 0;\n\t\tfor(final String line : translated) {\n\t\t\ttotalHeight += this.font.getWordWrappedHeight(line, TEXT_WIDTH);\n\t\t}\n\t\t\n\t\t// determine the scale required to fit all lines inside the box (0.5 or 1.0)\n\t\tfloat scale = (totalHeight > TEXT_HEIGHT * 0.9F) ? 0.5F : 1.0F;\n\t\t// scale everything as needed\n\t\tGlStateManager.pushMatrix();\n\t\tGlStateManager.scalef(scale, scale, scale);\n\t\t// draw the translated text lines in the box with the appropriate scale\n\t\tint offsetY = 0;\n\t\tfor(int stanzaNum = 0, numStanzas = translated.length; stanzaNum < numStanzas; stanzaNum++) {\n\t\t\t// get the current stanza (may take up multiple lines on its own)\n\t\t\tfinal String stanza = translated[stanzaNum];\n\t\t\t// determine where to start the stanza\n\t\t\tint startX = (int) ((BG_START_X + TEXT_START_X) / scale);\n\t\t\tint startY = (int) ((BG_START_Y + TEXT_START_Y) / scale) + offsetY;\n\t\t\t// draw split (wrapped) stanza\n\t\t\tthis.font.drawSplitString(stanza, startX, startY, (int)(TEXT_WIDTH / scale), 0);\n\t\t\toffsetY += this.font.getWordWrappedHeight(stanza, (int)(TEXT_WIDTH / scale)) / scale;\n\t\t}\n\t\t// unscale text\n\t\tGlStateManager.popMatrix();\n\t}", "public static String comment(String string, boolean docs, int charCountPerLine){\n //purposefully rounding down\n String concl = \"\";\n String[] words = string.split(\" \");\n int counter = 0;\n String tempString = \"\";\n while (counter < words.length){\n if (words[counter].length() + tempString.length() < charCountPerLine){\n tempString += words[counter] + \" \";\n if (words[counter].contains(\"\\n\")) {//in case the word has \\n in it\n concl += tempString;\n tempString = \"\";\n }\n counter++;\n }\n else{\n //if a word is longer than charCount, make it a line by itself\n if (tempString.length() == 0){\n concl += words[counter] + \" \\n\";\n counter++;\n }\n ///most other cases are this\n else{\n concl += tempString + \"\\n\";\n tempString = \"\";\n }\n }\n }\n return comment(concl + tempString, docs, \"\\n\");\n }", "public interface IStyledText\r\n{\r\n\t/** returns the plain text, or null */\r\n\tpublic String getPlainText();\r\n\t\r\n\t\r\n\t/** length of the plain text, or 0 if unknown */\r\n\tpublic int getTextLength();\r\n\r\n\r\n\t/** \r\n\t * returns cell styles at the given char index, or null if no styling exists.\r\n\t * The styles should not include view-specific styles such as current line or cursor.\r\n\t */\r\n\tpublic TextCellStyle getCellStyle(int charOffset);\r\n\t\r\n\t\r\n\t/** returns a line color or null */\r\n\tpublic Color getLineColor();\r\n\r\n\r\n\t/** returns a character in the specific cell */\r\n\tpublic char charAt(int charOffset);\r\n}", "private void createSpellCheckedText(Composite composite, int style) {\n\t\tAnnotationModel annotationModel = new AnnotationModel();\n\t\tIAnnotationAccess annotationAccess = new DefaultMarkerAnnotationAccess();\n\n\t\tfinal SourceViewer sourceViewer = new SourceViewer(composite, null,\n\t\t\t\tnull, true, style);\n\t\ttext = sourceViewer.getTextWidget();\n\t\t// text.setIndent(2);\n\n\t\tfinal SourceViewerDecorationSupport support = new SourceViewerDecorationSupport(\n\t\t\t\tsourceViewer, null, annotationAccess, EditorsUI\n\t\t\t\t\t\t.getSharedTextColors());\n\n\t\tIterator<?> e = new MarkerAnnotationPreferences()\n\t\t\t\t.getAnnotationPreferences().iterator();\n\t\twhile (e.hasNext())\n\t\t\tsupport.setAnnotationPreference((AnnotationPreference) e.next());\n\n\t\tsupport.install(EditorsUI.getPreferenceStore());\n\n\t\tDocument document = new Document(\"\");\n\n\t\t// NOTE: Configuration must be applied before the document is set in\n\t\t// order for\n\t\t// Hyperlink coloring to work. (Presenter needs document object up\n\t\t// front)\n\t\tsourceViewer.configure(new TextSourceViewerConfiguration(EditorsUI\n\t\t\t\t.getPreferenceStore()));\n\t\tsourceViewer.setDocument(document, annotationModel);\n\t}", "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif(isRecognition) {\n\t\t\t\t\t\t\talpha *= 0.95f;\n//\t\t\t\t\t\t\tsetBackgroundColor((int) (255 * (1 - label) * alpha));\n\t\t\t\t\t\t\ttxtHandParts.setTextColor(Color.argb((int) (alpha * 255), 255,\n\t\t\t\t\t\t\t\t\t255, 255));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(alpha > 0.1f) {\n\t\t\t\t\t\t\t\tLog.d(LOGTAG, (int) (255 * (1 - label) * alpha)+\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}", "private void wordMultiBreakEkle(XWPFRun r, int adet)\n {\n for (int i = 0; i < adet; i++)\n r.addBreak();\n }", "void doThreshDisplay(){\n\t /// init colors\n\t int greenFill = color(125,125,0, 65);\n\t int redFill = color(255,0,0,65);\n\t int blueFill = color(0,0,255, 85);\n\t //\n\t float spacing = 15;\n\t // \n\t textFont(SanSerif);\n\t /// hint(ENABLE_NATIVE_FONTS) ;\n\t \n\t /// position\n\t float dPosY3 = 0-height/2;\n\t float dPosY2 = 0-height/2 + spacing;\n\t float dPosY1 = 0-height/2 + spacing + spacing;\n\t \n\t /// make the text flush with the display bar\n\t float dPosX3 = 0-width/2 + (threshold3 * .5f) + 10f;\n\t float dPosX2 = 0-width/2 + (threshold2 * .5f) + 10f;\n\t float dPosX1 = 0-width/2 + (threshold1 * .5f) + 10f;\n\t \n\t // thresh 3 -- green squares\n\t strokeWeight(1);\n\t \n\t fill(greenFill);\n\t stroke(64,208,0);\n\t rect(0-width/2, dPosY3, threshold3 * .5f, 10f);\n\t fill(255,255,0);\n\t text(\"BACKGROUND: \" + threshold3 * .5, dPosX3, dPosY3 + 10);\n\t \n\t \n\t /// thresh 2 -- red circles\n\t fill(redFill);\n\t stroke(204,0,0);\n\t /// rotate(-15);\n\t rect(0-width/2,dPosY2, threshold2 * .5f, 10f);\n\t fill(204,0,0);\n\t text(\"MIDDLEGROUND: \" + threshold2 * .5f, dPosX2, dPosY2 + 10f);\n\t \n\t //// thresh 1 -- blue triangles\n\t fill(blueFill);\n\t stroke(0,24,255);\n\t /// rotate(-15);\n\t rect(0-width/2, dPosY1, threshold1 * .5f, 10f);\n\t fill(0,24,255);\n\t text(\"FOREGROUND: \" + threshold1 * .5, dPosX1, dPosY1 + 10);\n\t \n\t \n\n\n\t}", "private void bufferCheck() {\r\n bufferScreen.setText(stringBuffer);\r\n bufferLength++;\r\n if (bufferLength == 4) {\r\n if (isCorrectWord()) {\r\n SCORE++;\r\n bufferScreen.setTextColor(Color.GREEN);\r\n } else bufferScreen.setTextColor(Color.RED);\r\n newWord();\r\n }\r\n }", "private void collapse(StringBuffer result, String text) {\n \n }", "public MicrosoftGraphTextColumn withAllowMultipleLines(Boolean allowMultipleLines) {\n this.allowMultipleLines = allowMultipleLines;\n return this;\n }", "private void toggleCrossLineText(){\n if (userNameTextView.getText().toString().equals(\"\")){\n productTextView.setPaintFlags(productTextView.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG);\n } else {\n productTextView.setPaintFlags(productTextView.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);\n }\n }", "public StringWrap(int minWrap, int maxWrap) {\n this.minWrap = minWrap;\n this.maxWrap = maxWrap;\n }", "private void drawBlockLines(Canvas canvas,float offsetX) {\n List<BlockLine> blocks = mSpanner == null ? null : mSpanner.getColors().getBlocks();\n if(blocks == null || blocks.isEmpty()) {\n return;\n }\n int first = getFirstVisibleLine();\n int last = getLastVisibleLine();\n boolean mark = false;\n int jCount = 0;\n int maxCount = Integer.MAX_VALUE;\n if(mSpanner != null) {\n TextColorProvider.TextColors colors = mSpanner.getColors();\n if(colors != null) {\n maxCount = colors.getSuppressSwitch();\n }\n }\n int mm = binarySearchEndBlock(first,blocks);\n int cursorIdx = mCursorPosition;\n for(int curr = mm;curr < blocks.size();curr++){\n BlockLine block = blocks.get(curr);\n if(hasVisibleRegion(block.startLine,block.endLine,first,last)){\n try{\n prepareLine(block.endLine);\n float offset1 = measureText(mChars,0,block.endColumn);\n prepareLine(block.startLine);\n float offset2 = measureText(mChars,0,block.startColumn);\n float offset = Math.min(offset1,offset2);\n float centerX = offset + offsetX;\n mRect.top = Math.max(0,getLineBottom(block.startLine) - getOffsetY());\n mRect.bottom = Math.min(getHeight(),getLineTop(block.endLine) - getOffsetY());\n mRect.left = centerX - mDpUnit * mBlockLineWidth / 2;\n mRect.right = centerX + mDpUnit * mBlockLineWidth / 2;\n drawColor(canvas,mColors.getColor(curr == cursorIdx ? ColorScheme.BLOCK_LINE_CURRENT :ColorScheme.BLOCK_LINE),mRect);\n }catch(IndexOutOfBoundsException e) {\n e.printStackTrace();\n //Not handled.\n //Because the exception usually occurs when the content changed.\n }\n mark = true;\n }else if(mark) {\n if(jCount >= maxCount)\n break;\n jCount++;\n }\n }\n }", "public void run(){\n // If there is not word to recognized or the word is empty then do not recognize it\n if(word == null || word.trim().isEmpty()){\n return;\n }\n\n // Set up the highlighter\n DefaultHighlighter.DefaultHighlightPainter highLighter = FileUtils.getInstance().getHighlighter();\n\n // Highlight words at the exact position\n try{\n textPane.getHighlighter().addHighlight(startPosition, endPosition, highLighter);\n }catch(Exception e){\n e.printStackTrace();\n }\n }", "protected void doToggleTextBackgrounds() {\r\n\t\trenderer.textBackgrounds = ui.viewTextBackgrounds.isSelected();\r\n\t\trenderer.repaint();\r\n\t}", "public static String transformGFM(IStoredSettings settings, String input, String repositoryName) {\r\n\t\tString text = input;\r\n\r\n\t\t// strikethrough\r\n\t\ttext = text.replaceAll(\"~~(.*)~~\", \"<s>$1</s>\");\r\n\t\ttext = text.replaceAll(\"\\\\{(?:-){2}(.*)(?:-){2}}\", \"<s>$1</s>\");\r\n\r\n\t\t// underline\r\n\t\ttext = text.replaceAll(\"\\\\{(?:\\\\+){2}(.*)(?:\\\\+){2}}\", \"<u>$1</u>\");\r\n\r\n\t\t// strikethrough, replacement\r\n\t\ttext = text.replaceAll(\"\\\\{~~(.*)~>(.*)~~}\", \"<s>$1</s><u>$2</u>\");\r\n\r\n\t\t// highlight\r\n\t\ttext = text.replaceAll(\"\\\\{==(.*)==}\", \"<span class='highlight'>$1</span>\");\r\n\r\n\t\tString canonicalUrl = settings.getString(Keys.web.canonicalUrl, \"https://localhost:8443\");\r\n\r\n\t\t// emphasize and link mentions\r\n\t\tString mentionReplacement = String.format(\" **[@$1](%1s/user/$1)**\", canonicalUrl);\r\n\t\ttext = text.replaceAll(\"\\\\s@([A-Za-z0-9-_]+)\", mentionReplacement);\r\n\r\n\t\t// link ticket refs\n\t\tString ticketReplacement = MessageFormat.format(\"$1[#$2]({0}/tickets?r={1}&h=$2)$3\", canonicalUrl, repositoryName);\n\t\ttext = text.replaceAll(\"([\\\\s,]+)#(\\\\d+)([\\\\s,:\\\\.\\\\n])\", ticketReplacement);\n\n\t\t// link commit shas\r\n\t\tint shaLen = settings.getInteger(Keys.web.shortCommitIdLength, 6);\r\n\t\tString commitPattern = MessageFormat.format(\"\\\\s([A-Fa-f0-9]'{'{0}'}')([A-Fa-f0-9]'{'{1}'}')\", shaLen, 40 - shaLen);\r\n\t\tString commitReplacement = String.format(\" [`$1`](%1$s/commit?r=%2$s&h=$1$2)\", canonicalUrl, repositoryName);\r\n\t\ttext = text.replaceAll(commitPattern, commitReplacement);\r\n\r\n\t\tString html = transformMarkdown(text);\r\n\t\treturn html;\r\n\t}", "public void setWrapStatements(boolean isWrap)\n {\n _isWrapStatements = isWrap;\n }", "private static int getWrappedLines(JTextArea textArea) {\n AttributedString text = new AttributedString(textArea.getText());\n text.addAttribute(TextAttribute.FONT, textArea.getFont());\n FontRenderContext frc = textArea.getFontMetrics(textArea.getFont()).getFontRenderContext();\n AttributedCharacterIterator charIt = text.getIterator();\n LineBreakMeasurer lineMeasurer = new LineBreakMeasurer(charIt, frc);\n float formatWidth = SideBarPanel.SIDEBAR_WIDTH - 30;\n lineMeasurer.setPosition(charIt.getBeginIndex());\n\n int noLines = 0;\n while (lineMeasurer.getPosition() < charIt.getEndIndex()) {\n lineMeasurer.nextLayout(formatWidth);\n noLines++;\n }\n return noLines;\n\n }" ]
[ "0.5947096", "0.58414286", "0.5579481", "0.5422694", "0.5375123", "0.5351267", "0.52855706", "0.5203763", "0.52028424", "0.5182165", "0.5109196", "0.5089536", "0.50767744", "0.50571173", "0.4988051", "0.49727473", "0.4970101", "0.49655038", "0.49531353", "0.49480137", "0.49437347", "0.49402484", "0.49329615", "0.49272978", "0.49256277", "0.48913357", "0.48867807", "0.48745552", "0.48717013", "0.48608127", "0.48505732", "0.4850116", "0.480429", "0.47944507", "0.4777538", "0.4776143", "0.47720292", "0.47623122", "0.47546104", "0.474284", "0.47407073", "0.47302118", "0.4714977", "0.4710897", "0.47042945", "0.46907642", "0.46883065", "0.46811453", "0.46744666", "0.46553123", "0.46537364", "0.46504146", "0.4647665", "0.46287507", "0.4619155", "0.46160492", "0.46059245", "0.4597579", "0.459442", "0.45907506", "0.45849296", "0.45558846", "0.45550844", "0.45507017", "0.4546487", "0.4519095", "0.45184663", "0.45180294", "0.45150197", "0.4499325", "0.4497155", "0.4496264", "0.4496041", "0.44959715", "0.4492347", "0.44871268", "0.4481776", "0.4475639", "0.447222", "0.4471245", "0.44709596", "0.44676808", "0.44634825", "0.4457404", "0.44542846", "0.4444287", "0.44385082", "0.4438038", "0.4436701", "0.44347537", "0.44307113", "0.44200426", "0.4419681", "0.44146314", "0.44087678", "0.44038606", "0.44012278", "0.43981445", "0.43966973", "0.4396638" ]
0.53534317
5
Thread t = new Thread(new MyRun(), "My Name");
public static void main(String[] args) { Thread t = new MyThread("My Thread 1"); // System.out.println("Name -> " + t.getName()); // System.out.println("ID -> " + t.getId()); // t.setDaemon(true); t.start(); int count = 1; while (true) { System.out.println("Main -> " + count++); Thread.yield(); // try { // Thread.sleep(100); // } catch (Exception e) { // System.out.println(e); // } } // Thread mainThread = Thread.currentThread(); // try { // mainThread.join(); // } catch (Exception e) { // System.out.println(e); // } // t.interrupt(); // Interrupt will wake up the thread // System.out.println("State -> " + t.getState()); // System.out.println("Priority -> " + t.getPriority()); // System.out.println("IsAlive -> " + t.isAlive()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run(){\n String threadName = Thread.currentThread().getName();\n System.out.println(\"Hello \" + threadName);\n }", "public static void main(String[] args) {\n Thread thread=new Thread(new MyRunnable(),\"firstThread\");\n thread.start();\n System.out.println(thread.getName());\n }", "public static void main(String[] args) {\n Thread thread = new Thread(\"New Thread\") {\n public void run(){\n System.out.println(\"run by: \" + getName());\n }\n };\n\n thread.start();\n System.out.println(thread.getName());\n\n }", "public void run(){\n System.out.println(\"Thread class extends \" + getName());\n }", "public static void main(String args[ ]){\r\nMythread rt = new Mythread(); /* main thread created the runnable object*/\r\nThread t = new Thread(rt); /*main thread creates child thread and passed the runnable object*/\r\nt.start();\r\nfor(int i=0; i<10; i++){\r\nSystem.out.println(\"Main Thread\");\r\n}\r\n}", "@Override\n public void run(){\n System.out.println(\"Running thread name: \"+Thread.currentThread().getName());\n }", "@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }", "@Test\n @DisplayName(\"Plain Runnable\")\n void testRunnable() {\n Runnable task = this::printThreadName;\n\n task.run();\n\n Thread thread = new Thread(task);\n thread.start();\n\n System.out.println(\"Done!\");\n }", "@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\tMyThread thread = new MyThread();\r\n\t\tthread.setName(\"MyThread\");\r\n\t\tThread t1 = new Thread(thread);\r\n\t\tSystem.out.println(\"begin=\" + System.currentTimeMillis());\r\n\t\tt1.setName(\"T1\");\r\n\t\tt1.start();\r\n\t\tSystem.out.println(\"end=\" + System.currentTimeMillis());\r\n\t}", "NewThread (String threadname) {\r\n name = threadname;\r\n t = new Thread(this, name); // Constructor de un nuevo thread\r\n System.out.println(\"Nuevo hilo: \" +t);\r\n t.start(); // Aquí comienza el hilo\r\n }", "public static void main(String[] args) {\n\t\tMyThread mt = new MyThread();\n\t\t// We can assign a name\n\t\tmt.setName(\"Thread 1\");\n\t\tmt.start();\n\t\t\n\t\tMyThreads2 mt2 = new MyThreads2();\n\t\tThread t = new Thread(mt2);\n\t\t\n\t\t//New Thread\n\t\tThread t2 = new Thread(mt2);\n\t\tThread t3 = new Thread(mt2); \n\t\tt.setName(\"Thread 2\");\n\t\tt2.setName(\"Thread 3\");\n\t\tt3.setName(\"Thread 4\");\n\t\tt.start();\n\t\tt2.start();\n\t\tt3.start();\n\t\t\n\t}", "public Thread getThread(int type, String name, Runnable r);", "ThreadStart createThreadStart();", "public static void main(String[] args) {\n\t\tMyThread m = new MyThread();\n\t\tThread m2 = new Thread(new MyRunable());\n\t\tm.start();\n\t\t\n\t\t\n\t\tm2.start();\n\t}", "public static void runNewDaemon(String name, Runnable r) {\n\t\tThread t = new Thread(r);\n\t\tif(!name.isEmpty()) {\n\t\t\tt.setName(name);\n\t\t\tlog.debug(\"Launching Thread \\\"\" +name+ \"\\\"\");\n\t\t}\n\t\tt.setDaemon(true);\n\t\tt.start();\n\t}", "public ThreadNameWithRunnable(String name, int n) {\n\t\t// Give a name to the thread\n\t\tt = new Thread(this, name);\n\n\t\t// sleepTime\n\t\tsleepTime = n;\n\n\t\t// Start the thread\n\t\tt.start();\n\t}", "@Override\n public void run() {\n threadLocalTest.setName(Thread.currentThread().getName());\n System.out.println(Thread.currentThread().getName() + \":\" + threadLocalTest.getName());\n }", "void startThread();", "@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}", "@Override\n public void run(){\n System.out.println(\"we are in thread : \" + this.getName());\n }", "@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }", "public static void main(String[] args) {\n Runnable myRunnable = new TestThread();\n Thread t1 = new Thread(myRunnable,\"t1\");\n Thread t2 = new Thread(myRunnable,\"t2\");\n t1.start();\n t2.start();\n }", "public void run() {\n System.out.println(ANSI_GREEN + \"Hello from anonymous class thread\");\n }", "public static void main(String[] args) {\n\t\tThreadTest threadTest = new ThreadTest();\n\t\tthreadTest.start();\n\t\t\n\t\tThread runnableTest = new Thread(new RunnableTest());\n\t\tSystem.out.println(\"Thread Name:\" + runnableTest.getName());\n\t\trunnableTest.start();\n\t\t\n\t\tSystem.out.println(\"Done successful\");\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\" \"+Thread.currentThread().getName());\n\t}", "public void createThread() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"ok, here is \" + Thread.currentThread().getName() + \" \" + \"thread, i'll do something here..\");\n\t\t\t}", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "public void setThreadName(String name) {\n threadName = name;\n }", "public void run() {\r\n System.out.println(\"run() method of the \" + this.getName() + \" thread is called\" );\r\n \r\n for (int i = 0; i < 10; i++) {\r\n System.out.print(this.getName());\r\n }\r\n }", "public void run(){\n //logic to execute in a thread \n }", "public static void main(String[] args)\n {\n Runnable r1=()->{ \n System.out.println(\"Thread1 is running...\");}; \n Thread t1=new Thread(r1); \n t1.start(); \n }", "@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}", "public static void main(String[] args){\r\n\t\tMythread2 mt = new Mythread2(); /* main thread created the child thread*/\r\n\t\t\tmt.start();\r\n\t\tfor(int i=0; i<10; i++){\r\n\t\t\t\tSystem.out.print(\"Main Thread\");\r\n\t\t\t\t\t}\r\n}", "public void run() {\n\t\tSystem.out.println(Thread.currentThread().getName());\n\t}", "public static void main(String[] args) {\n\t\tThread t = new MyThread() {\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"Foo\");\n\t\t\t}\n\t\t};\n\t\tt.start();\n\t}", "public static void main(String[] args) {\n CreateRunnable createRunnable = new CreateRunnable();\n Thread thread = new Thread(createRunnable);\n thread.start();\n }", "public static void main(String[] args) {\n\t\tRunnable r= new Runnable() \r\n\t\t{\r\n\t\t\tpublic void run(){\r\n\t\t\t\tfor(int i=0; i<=5;i++) {\r\n\t\t\t\t\tSystem.out.println(\"Child Thread\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n//\t\tThread class 't' reference variable is calling Runnable implementation class\r\n\t\tSystem.out.println(\"Thread Class calling Runnable Interfface 'r' \");\r\n\t\tThread t = new Thread(r);\r\n\t\tt.start();\r\n\t\tfor(int i=0; i<=5;i++) {\r\n\t\t\tSystem.out.println(\"Main Thread\");\r\n\t\t}\r\n\t}", "public MyRunnable(){\t\n\t}", "public void run() {\n Thread currentThread = Thread.currentThread();\n String oldName = currentThread.getName();\n\n if (newName != null) {\n setName(currentThread, newName);\n }\n\n try {\n runnable.run();\n } finally {\n setName(currentThread, oldName);\n }\n }", "public static void main(String[] args) {\n Employee emp=new Employee();\n emp.start();\n Student stu=new Student();\n Thread t1=new Thread(stu);\n t1.start();\n\t}", "public JavaHandlerThread(String name) {\n mThread = new HandlerThread(name);\n }", "public static void main(String[] args) {\n\t\tMythread t1 = new Mythread(\"First\");\n\t\tMythread t2 = new Mythread(\"Second\");\n\t\tt1.start();\n\t\tt2.start();\n\n\t}", "public static void main(String[] args) {\n\t\tThreadTest test= new ThreadTest();\n\t\ttest.start();\n\t\t\n\t\t// creating thread by implementing Runnable interface\n\t\tRunnable runnable = new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\" Creating thread by implement Runnable Interface\");\n\t\t\t}\n\t\t};\n\t\t\t\n\t\tThread test2 = new Thread(runnable);\n\t\ttest2.start();\n\t\t\n\t\t// Runnable is a Functional Interface which having only one abstract method\n\t\tRunnable functionalInterface = ()-> System.out.println(\" creating thread using lembda expression\");\n\t\tThread test3 = new Thread(functionalInterface);\n\t\ttest3.start();\n\t\t\n\n\n\t\t\n\t}", "public static void main(String[] args) {\n\r\n System.out.println(Thread.currentThread().getName());\r\n System.out.println(Thread.currentThread().getId());\r\n\r\n MyFirstThread helloThread1 = new MyFirstThread();\r\n MyFirstThread helloThread2 = new MyFirstThread();\r\n helloThread1.start();\r\n helloThread2.start();\r\n\r\n\r\n }", "private static void createThreadUsingAnonymousInnerClass() {\n\t\tRunnable rn = new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"My Anonymous Inner Class thread is executed.\");\n\t\t\t}\n\t\t};\n\n\t\tThread th = new Thread(rn);\n\t\tth.start();\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Thread 클래스를 상속\");\n\t}", "public static void main(String[] args) {\n\t\tMyThread1 t = new MyThread1();\r\n\t\tt.start();\r\n//executed by main thread\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\tSystem.out.println(\"main thread\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\n System.out.println(ANSI_Black+\"Hello from Main thread\");\n\tThread extendThread = new ThreadExtendsExample();\n\textendThread.setName(\"ThreadByExtends1~\");\n\textendThread.start();\n\t\n\t//java.lang.IllegalThreadStateException, same thread cannot be started again\n\t//extendThread.start();\n\tThread extendThread2 = new ThreadExtendsExample();\n\textendThread2.setName(\"ThreadByExtends2~\");\n\textendThread2.start();\n\t\n\t\n\t\n\tThreadImplExample implThread = new ThreadImplExample();\n\timplThread.run();\n\t\n\t\n\tThread runnableThread = new Thread(new ThreadImplExample());\n\trunnableThread.start();\n\t\n\t\n\t\n\tSystem.out.println(ANSI_Black+\"Hello Again from Main thread\");\n\t\n}", "public static void main(String[] args) {\n\t\t\r\n\t\tThread t = new Thread(new RunnableThread());\r\n\t\tt.start();\r\n\r\n\t}", "private VirtualThread createThread(String threadName) {\n\t\tJavaObjectReference threadObj = new JavaObjectReference(new LazyClassfile(\"java/lang/Thread\"));\n\t\t\n\t\t// TODO: We should invoke constructors here...\n\t\tthreadObj.setValueOfField(\"priority\", new JavaInteger(1));\n\t\tthreadObj.setValueOfField(\"name\", JavaArray.str2char(vm,threadName));\n\t\tthreadObj.setValueOfField(\"group\", new JavaObjectReference(bcl.load(\"java/lang/ThreadGroup\")));\n\t\t\n\t\tmainThread = new VirtualThread(vm, rda, threadName, threadObj);\n\t\tthreadAreas.add(mainThread);\n\t\treturn mainThread;\n\t}", "@Override\r\n\tpublic void run() {\n\t\tSystem.out.println(Thread.currentThread().getName());\r\n\t\tSystem.out.println(\"ThreadTest\");\r\n\t\t\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\tSystem.out.println(\"i \" +i);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "public Thread getThread();", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "public static void run(){}", "void runInThread(Runnable runnable) {\n try {\n Thread thread = new Thread(runnable::run);\n thread.start();\n } catch (Exception ex) {\n log.info(ex.getMessage());\n }\n\n }", "public static void main(String[] args)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tThread t1 = new Thread(new MyThread1_RunnableInterface(1,\"Hello from Thread1\"));\n\t\t\t\tThread t2 = new Thread(new MyThread1_RunnableInterface(2,\"Hello from Thread2\"));\n\t\t\t\tThread t3 = new Thread(new MyThread1_RunnableInterface(3,\"Hello from Thread3\"));\n\t\t\t\t\n t1.start();\n t2.start();\n t3.start();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t}", "public static void main(String[] args) {\n\t\tThread t1 = Thread.currentThread();\n\t\t\n\t\t// Get the thread group of the main thread \n\t\tThreadGroup tg1 = t1.getThreadGroup();\n\t\t\n\t\tSystem.out.println(\"Current thread's name: \" + t1.getName());\n\t\tSystem.out.println(\"Current thread's group name: \" + tg1.getName());\n\t\t\n\t\t// Creates a new thread. Its thread group is the same that of the main thread.\n\t\tThread t2 = new Thread(\"my new thread\");\n\n\t\tThreadGroup tg2 = t2.getThreadGroup();\n\t\tSystem.out.println(\"New thread's name: \" + t2.getName());\n\t\tSystem.out.println(\"New thread's group name: \" + tg2.getName());\n\t}", "public static void main(String[] args) {\n\t\tfor(int i = 1;i<100;i++){\n\t\t\tMyThread mt = new MyThread(\"Thread\"+i);\n\t\t\tThread t = new Thread(mt);\n\t\t\tt.start();\n\t\t}\n\n\t}", "private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }", "public void start() {\n thread = new Thread(this);\n thread.start();\n System.out.println(\"---\\t Ober \" + naam + \" is gestart.\");\n }", "public void run()\n {\n\n }", "private static void demoRunnable() {\n new Thread(() -> System.out.println(Thread.currentThread().getName()), \"thread-λ\").start();\n new Thread(ToLambdaP5::printThread, \"thread-method-ref\").start();\n }", "public NamedThreadFactory(String name)\n {\n this(name, null);\n }", "public static void main(String[] args) {\n\t\tMyThread mythread=new MyThread();\n\t\tmythread.start();\n\t while(true) {\n\t \tSystem.out.println(\"Main方法正在运行\");\n\t }\n\t}", "public static void main(String[] args) {\n Thread t = new Thread();\n t.start();\n t.start();\n }", "public static void main(String[] args) {\n\t\tThreadWithStartAndRunMethod startAndThread = new ThreadWithStartAndRunMethod();\r\n\t\tstartAndThread.start();\r\n\t\tSystem.out.println(\"ThreadWithStartAndRunMethod.main():: Main method\");\r\n\t}", "public void run() \n {\n System.out.println(Thread.currentThread().getName().hashCode()); \n }", "public void run()\n {\n }", "public void run()\n {\n }", "public void start() {\r\n isRunning = true;\r\n Thread thread = new myThread();\r\n thread.start();\r\n }", "private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }", "private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }", "public void run()\r\n\t{\r\n\ttry\r\n\t{\r\n\r\n\t\tfor(int i=1;i<=5;i++)\r\n\t\t{\r\n\t\tThread t=Thread.currentThread();\r\n\t\tString s=t.getName();\r\n\t\tSystem.out.println(s+\" \"+i);\r\n\t\tThread.sleep(1000); //throw InterruptedException(); \r\n\t\t}\r\n\t}\r\n\r\n\t\t\r\n\t\tcatch(InterruptedException ie)\r\n\t\t{ie.printStackTrace();}\r\n\t}", "public void run()\n\t{\n\t}", "@Override\r\n\tpublic void run()\r\n\t{\r\n\t\tSystem.out.println(\"Hilos.\"+this.getName()+\": ˇYa he llegado!\");\r\n\t\t\r\n\t\ttry {Thread.sleep(300);\t} \r\n\t\tcatch (InterruptedException e) \r\n\t\t{/* //TODO Auto-generated catch block*/\te.printStackTrace();}\r\n\t\t\t\t/* <----[ ****** ]---->*/\r\n\t\tSystem.out.println(\"MiHilo.\"+Thread.currentThread().getName()+\": ˇYa me voy!\");\r\n\t}", "public void run() {\n\n }", "public ProducerThread(String name) {\n super(name);\n }", "void run();", "void run();", "void run();", "void run();", "public static void main(String[] args) {\n\t\tThread t = new Thread(new MyRunnable1());// 新建状态\n\t\tt.start();// 就绪状态\n\t\ttry {\n\t\t\tt.sleep(5000);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnew MyRunnable1().setStop();// 线程停止\n\t}", "public void run() {\n\n\n }", "public void run() {\r\n }", "public void run();", "public void run();", "public void run();", "public void run();", "public void run();", "public static void main(String[] args) {\n MyThread t1 = new MyThread();\n /**\n * 启动线程是用start()方法,然后线程自动调用run()方法,但是线程并不是立马就运行,\n * 而是进入就绪状态,等待CPU的调度才运行\n */\n t1.start();//启动线程\n for (int i = 0; i < 1000; i++) {\n System.out.println(\"In main i=\" + i);\n }\n }", "public void run(){\n\t\tlong count=0;\n\t\t\n\t\twhile(running){\n\t\t\tSystem.out.println(this.getName()+\" hello\");\n\t\t\tcount++;\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\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\t\n\t\t}\n\t\tSystem.out.println(this.getName()+ \" thread end\"+count);\n\t}", "public static void main(String[] args) {\n\t\tDisplay1 d1 = new Display1();\n\t\tDisplay1 d2 = new Display1();\n\t\tMyThread1 t1 = new MyThread1(d1,\"Dhoni\");\n\t\tMyThread1 t2 = new MyThread1(d2, \"Yuvraj\");\n\t\tt1.start();\n\t\tt2.start();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tRunnableSub rs = new RunnableSub();\n\t\tThread thread = new Thread(rs);\n\t\tthread.start();\n\t}", "public void setThread(Thread t);", "public static void main(String[] args) {\n\t\tRunnableObject runn = new RunnableObject();\n\t\tThread t1 = new Thread(runn);\n\t\tThread t2 = new Thread(runn);\n\t\tt1.start();\n\t\tt2.start();\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tnew Thread() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tfor(int i = 0; i<10; i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(getName() + \" : aaaaa\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}.start();\r\n\t\t\r\n//\t\tnew thread\r\n\t\tnew Thread() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tfor(int i = 0; i<10; i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(getName() + \" : bbbbbbbb\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}.start();\r\n\r\n\t}", "void run(String name, int v);", "public void run() {\n }", "public void run() {\n }" ]
[ "0.76482373", "0.76239866", "0.7583472", "0.7426135", "0.7356528", "0.72949684", "0.7279248", "0.7159245", "0.7126458", "0.70764583", "0.70512486", "0.69641656", "0.6911293", "0.6895701", "0.68518066", "0.68091166", "0.6721999", "0.6715852", "0.6657849", "0.6655446", "0.6638679", "0.6611436", "0.66001177", "0.65382946", "0.6522239", "0.6520888", "0.6508072", "0.6500465", "0.6498697", "0.64953154", "0.6477842", "0.6474145", "0.6459534", "0.64482164", "0.6438589", "0.643634", "0.64000565", "0.6399721", "0.63910276", "0.6363032", "0.6340072", "0.63350713", "0.6330811", "0.6321541", "0.6312376", "0.6308691", "0.6299504", "0.62834746", "0.62807125", "0.62739646", "0.6263166", "0.6260764", "0.6252111", "0.62448275", "0.62441146", "0.6241772", "0.6229316", "0.6220247", "0.6212755", "0.620725", "0.62039435", "0.61880153", "0.6171442", "0.6170634", "0.6153103", "0.6146018", "0.6141323", "0.61317056", "0.6131038", "0.61268055", "0.61268055", "0.61123383", "0.6105533", "0.610529", "0.6099033", "0.6096633", "0.6090034", "0.60881907", "0.60814846", "0.60713863", "0.60713863", "0.60713863", "0.60713863", "0.60709417", "0.6058847", "0.6045803", "0.6042613", "0.6042613", "0.6042613", "0.6042613", "0.6042613", "0.60370374", "0.6034588", "0.6033039", "0.6028252", "0.60248375", "0.60158914", "0.6010439", "0.6007368", "0.60062313", "0.60062313" ]
0.0
-1
En este metodo inicializamos el campo de clase creado con el valor por defecto de la anotacion
@Override public void initialize(validacionCodigoPostal elCodigo) { prefijoCodigoPostal=elCodigo.value(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "@SuppressWarnings(\"unused\")\n CADNemaMotor () {\n // Set typical initial values, which user can edit before saving\n type = \"1\";\n }", "public telefono(){\n this.telefono =\"00000000\";\n this.saldo = 0.0;\n this.marca= \"Sin Marca\";\n }", "private DittaAutonoleggio(){\n \n }", "public Alojamiento() {\r\n\t}", "public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public Nodo(datos libro)\n {\n this.libro=libro;//LA VARIABLE LIBRO TENDRA LOS DATOS DE LA CLASE LIBRO\n }", "public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }", "Casilla(String nombre){\n this.nombre=nombre; \n }", "public ValorVariavel() {\r\n }", "public Caso_de_uso () {\n }", "public Socio() {\r\n\t\tsuper();\r\n\t\tthis.id = 0;\r\n\t\tthis.nombre = \"\";\r\n\t\tthis.apellido1 = \"\";\r\n\t\tthis.apellido2 = \"\";\r\n\t\tthis.email = \"\";\r\n\t\tthis.dni = \"\";\r\n\t\tthis.administrador = false;\r\n\t}", "Field() {\n value = 0;\n }", "protected Asignatura()\r\n\t{}", "public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tISHORARIO_IDISHORARIO=\"\";\n\t\tISAULA_IDISAULA=\"\";\n\t\tISCURSO_IDISCURSO=\"\";\n\t\t\n\t}", "public Comida(String nombre){\n super(nombre);\n this.calorias = 10;\n }", "public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\n }", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tIDISFICHA=\"\";\n\t\tNOTAS=\"\";\n\t\tANOTACIONES=\"\";\n\t\tNOTAS_EJERCICIOS=\"\";\n\t}", "public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }", "@PostConstruct\r\n public void inicializar() {\r\n try {\r\n anioDeclaracion = 0;\r\n existeDedPatente = false;\r\n deducciones = false;\r\n detaleExoDedMul = new ArrayList<String>();\r\n activaBaseImponible = 0;\r\n verBuscaPatente = 0;\r\n inicializarValCalcula();\r\n datoGlobalActual = new DatoGlobal();\r\n patenteActual = new Patente();\r\n patenteValoracionActal = new PatenteValoracion();\r\n verPanelDetalleImp = 0;\r\n habilitaEdicion = false;\r\n numPatente = \"\";\r\n buscNumPat = \"\";\r\n buscAnioPat = \"\";\r\n catDetAnio = new CatalogoDetalle();\r\n verguarda = 0;\r\n verActualiza = 0;\r\n verDetDeducciones = 0;\r\n verBotDetDeducciones = 0;\r\n listarAnios();\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n }", "public bebedor(String nombre)\n {\n // initialise instance variables\n this.nombre = nombre;\n alcoholimetro = 0;\n }", "public Medico() {\r\n\t\tsuper();\r\n\t codmedico = \"\";\r\n\t\tespecialidad = null;\r\n\t}", "public Clase04(Clase04 o){\r\n numPersonas++;\r\n numero= o.numero;\r\n nombre= o.nombre;\r\n }", "public Unidadmedida() {\r\n\t}", "public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }", "public FiltroMicrorregiao() {\r\n }", "public Cgg_res_oficial_seguimiento_usuario(){}", "public Persona() { // constructor sin parámetros\r\n\t\t\r\n\t\tthis.nif = \"44882229Y\";\r\n\t\tthis.nombre=\"Anonimo\";\r\n\t\tthis.sexo = 'F';\r\n\t\tthis.fecha = LocalDate.now();\r\n\t\tthis.altura = 180;\r\n\t\tthis.madre = null;\r\n\t\tthis.padre = null;\r\n\t\tcontador++;\r\n\t}", "public Valvula(){}", "public Persona()\n\t{\n\t\tnombre = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tapellido = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tedad = 0; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\talias = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\t\t\n\t}", "public Pila () {\n raiz=null; //Instanciar un objeto tipo nodo;\n }", "public AntrianPasien() {\r\n\r\n }", "public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }", "public Arquero(){\n this.vida = 75;\n this.danioAUnidad = 15;\n this.danioAEdificio = 10;\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }", "public Estudiante(String nom) // Constructor 1: Se le asigna un valor al atributo nombre cuando se cree el objeto.\r\n {\r\n this.nombre = nom;\r\n }", "public Candidatura (){\n \n }", "public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }", "public TblActividadUbicacion() {\r\n }", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "public Doc_estado() {\n }", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "private ControleurAcceuil(){ }", "public ejercicio1() {\n this.cadena = \"\";\n this.buscar = \"\";\n }", "public TipoDocumentoMB() {\n tipoDoc = new TipoDocPersona();\n }", "@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "@Generated\n public Anotacion() {\n }", "public Corso() {\n\n }", "public Utilizador(){\r\n this.id = \"\";\r\n this.email = \"\";\r\n this.nome = \"\";\r\n this.password = \"\";\r\n this.morada = \"\";\r\n this.dataNasc = new GregorianCalendar();\r\n }", "public MVCModelo(int capacidad)\n\t{\n\t\tllave = \"\";\n\t\tvalue = 0.0;\n\t}", "public Conta(String numero, String agencia) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = 0.0;\n }", "public void setAnio(int anio){\r\n \r\n \r\n this.anio = anio;\r\n \r\n }", "public void inicializarOrdenDeCorte(OrdenDeCorte oc);", "public void setAnio(int p) { this.anio = p; }", "public static void init(){\n\t\t\n\t\tif(!daoRol.existeRol(cliente.getNombre()))daoRol.save(cliente);\n\t\t\n\t\tif(!daoRol.existeRol(analista.getNombre()))daoRol.save(analista);\n\t\t\n\t\tif(!daoUsuario.existeUsuario(admin.getEmail(), admin.getMd5()))daoUsuario.save(admin);\n\t\t\n\t\t\n\t\tfor(TipoAccionPublicitaria t : TipoAccionPublicitaria.values()){\n\t\t\t\n\t\t\tif(daoPrecio.getCurrentPriceOf(t) == null){\n\t\t\t\tPrecioAccionPublicitaria p = new PrecioAccionPublicitaria();\n\t\t\t\tp.setCurrent(true);\n\t\t\t\tp.setFechaCreacion(DateTime.now());\n\t\t\t\tp.setMonto(\"0\");\n\t\t\t\tp.setObjetoValuable(t);\n\t\t\t\t\n\t\t\t\tdaoPrecio.save(p);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public Mencacao()\r\n {\r\n texto = \"\";\r\n deUtilizador = \"\";\r\n data = new GregorianCalendar();\r\n }", "public Asiento() {\n\t\tthis(\"asiento\", null);\n\t}", "ClaseColas() { // Constructor que inicializa el frente y el final de la Cola\r\n frente=0; fin=0;\r\n System.out.println(\"Cola inicializada !!!\");\r\n }", "public Persona(){\n /*super(nombresPosibles\n [r.nextInt(nombresPosibles.length)],(byte)r.nextInt(101));\n */\n super(\"Anónimo\",(byte)5);\n String[] nombresPosibles={\"Patracio\",\"Eusequio\",\"Bartolo\",\"Mortadelo\",\"Piorroncho\",\"Tiburcio\"};\n String[] apellidosPosibles={\"Sánchez\",\"López\",\"Martínez\",\"González\",\"Páramos\",\"Jiménez\",\"Parra\"};\n String[] nacionalidadesPosibles={\"Española\",\"Francesa\",\"Alemana\",\"Irlandesa\",\"Japonesa\",\"Congoleña\",\"Bielorrusa\",\"Mauritana\"};\n Random r=new Random();\n this.apellido=apellidosPosibles\n [r.nextInt(apellidosPosibles.length)];\n this.nacionalidad=nacionalidadesPosibles\n [r.nextInt(nacionalidadesPosibles.length)];\n mascota=new Mascota[5];\n this.saldo=r.nextInt(101);\n }", "public Clade() {}", "public Transportadora() {\r\n super();\r\n this.nif = \"\";\r\n this.raio = 0;\r\n this.precoKm = 0;\r\n this.classificacao = new Classificacao();\r\n this.estaLivre = true;\r\n this.velocidadeMed = 0;\r\n this.kmsTotal = 0;\r\n this.capacidade = 0;\r\n }", "public void setComentario (String val) {\n this.comentario = val;\n }", "public Conway(AutomataCelular ac,int fila,int columna){\r\n super(ac,fila,columna);\r\n estadoActual=VIVA;\r\n //decida();\r\n estadoSiguiente=VIVA;\r\n edad=0;\r\n automata.setElemento(fila,columna,(Elemento)this); \r\n color=Color.blue;\r\n }", "public void setTelefono(String telefono) {\r\n\tthis.telefono = telefono;\r\n}", "public User(){\n nomorAkun = 0;\n pin = 0;\n saldo = 0;\n }", "public MPaciente() {\r\n\t}", "public FiltroCreditoTipo() {\r\n\t}", "public void inicializar() {\r\n\t\tthis.bloqueado = false;\r\n\t}", "public void LimpiarCampos(){\n txtNombre.setText(\"\");\n txtCantidad.setText(\"0\");\n txtMora.setText(\"0\");\n txtDescuento.setText(\"0\");\n this.IDactual=0;\n this.modo=\"agregar\";\n }", "public Propuestas() {}", "public Cuenta(Usuario usuario) { // constructor que crea objetos tipo cuenta que recibe por parámetro\n //un objeto de tipo usuario\n\n this.usuario = usuario;\n saldo = 0;\n }", "public void setAutorizacion(String autorizacion)\r\n/* 139: */ {\r\n/* 140:236 */ this.autorizacion = autorizacion;\r\n/* 141: */ }", "public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }", "@Test\n public void testSetTipoSangre() {\n System.out.println(\"setTipoSangre\");\n String tipoSangre = \"\";\n Paciente instance = new Paciente();\n instance.setTipoSangre(tipoSangre);\n \n }", "public BaseDatos() {\r\n super();\r\n listaNumeros.add(6.0f);\r\n }", "public void setNombre(String nombre) {this.nombre = nombre;}", "public Field() {\r\n\t}", "public Fogon (String cocineroActual){\n Cocinero = cocineroActual;\n grados = 0; \n }", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public SystemeAcademiqBean() {\r\n systeme = new String();\r\n }", "public Celula() { // Sentinela\n\t\tthis.item = new Jogador();\n\t\tproximo = null;\n\t}", "public NiveauEtudeHolder(pRectorat.NiveauEtude initial)\r\n {\r\n value = initial;\r\n }", "private UsineJoueur() {}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public Valor(Integer id_valor, String valor){\n\n //A variavel da classe Construtora vai receber a variavel que está vindo por parametro (This faz referencia a classe)\n this.id_valor = id_valor ;\n this.valor = valor ;\n }", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "public Tecnico(){\r\n\t\tthis.matricula = 0;\r\n\t\tthis.nome = \"NULL\";\r\n\t\tthis.email = \"NULL\";\r\n\t\tthis.telefone = \"TELEFONE\";\r\n\t\tlistaDeServicos = new ArrayList<Servico>();\r\n\t}", "public AgenteEstAleatorio() {\r\n }", "public AtributoAsientoBean() {\n }", "private Value() {\n\t}", "public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }", "public Empresa() {\n super();\n this.nif = 0;\n this.raio = 0.0;\n this.precoPorKm = 0.0;\n this.precoPorPeso = 0.0;\n this.precoPorHora = 0.0;\n this.available = false;\n this.certificado = false;\n this.historico = new Historico();\n this.pe = null;\n }", "@Test\n public void testSetTipoFinal() {\n System.out.println(\"setTipoFinal\");\n String tipoFinal = \"\";\n Reserva instance = new Reserva();\n instance.setTipoFinal(tipoFinal);\n \n }", "public TipoObra(String descripcion) {\n this.descripcion = descripcion;\n\n switch (descripcion) {\n case \"REFORMA\": {\n this.id = 1;\n break;\n }\n case \"CASA\": {\n this.id = 2;\n break;\n }\n case \"EDIFICIO\": {\n this.id = 3;\n break;\n }\n case \"VIAL\": {\n this.id = 4;\n break;\n }\n default : this.id = 0;\n }\n }", "public Categorias() {\n this.id = 0;\n this.categoria = \"\";\n }", "public TipoPrestamo() {\n\t\tsuper();\n\t}", "public void init (){\n for (int i = 0; i < tvalores.length; i++) {\n tvalores[i] = Almacen1.LIBRE;\n }\n valoresAlmacenados = 0;\n }", "@Override\n\tpublic void initialisation_type_exercice() {\n\t\tthis.setEnnonce_exo(\"Ecrire un algorithme qui demande deux nombres à l’utilisateur et l’informe ensuite si le produit est négatif ou positif (on inclut cette fois le traitement du cas où le produit peut être nul). Attention toutefois, on ne doit pas calculer le produit !\");\n\n\t}", "public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}" ]
[ "0.69983286", "0.6824278", "0.68222755", "0.6443474", "0.63848406", "0.6349857", "0.63112235", "0.62761056", "0.62593704", "0.6214728", "0.62090755", "0.6201513", "0.6171902", "0.6145342", "0.61353225", "0.61345816", "0.6130403", "0.6130074", "0.6128974", "0.6127863", "0.61251116", "0.60841733", "0.60810345", "0.6080409", "0.6025325", "0.5995054", "0.59896183", "0.59889674", "0.59876263", "0.5972595", "0.59717774", "0.59714055", "0.59563756", "0.5945302", "0.59400445", "0.5936817", "0.59354335", "0.5928428", "0.59225065", "0.5920095", "0.5918909", "0.59175056", "0.5912098", "0.5911954", "0.5888773", "0.5881249", "0.58645564", "0.5843375", "0.58392096", "0.58357817", "0.583239", "0.5828311", "0.5827836", "0.5824056", "0.58222026", "0.58124095", "0.5809878", "0.5807787", "0.5786115", "0.5781567", "0.57788926", "0.57723755", "0.57717", "0.576994", "0.57671565", "0.5764315", "0.5760278", "0.57553804", "0.5752316", "0.5740947", "0.5740119", "0.57392615", "0.57378435", "0.5727024", "0.5725453", "0.5719282", "0.5718338", "0.5715845", "0.5710074", "0.57015187", "0.5695783", "0.56950104", "0.5688848", "0.5685029", "0.56803715", "0.56719744", "0.56697893", "0.566872", "0.5665767", "0.566474", "0.5663873", "0.5661925", "0.5659718", "0.5658227", "0.5655478", "0.56544787", "0.565187", "0.56514496", "0.56507826", "0.5650674", "0.56500375" ]
0.0
-1
Cuando el usuario valida el formulario dandole al boton de enviar, en el argumento arg0 se va a almacenar el codigo postal que haya introducido, y este codigo postal que estara almacenado en este parametro se va a comparar con prefijoCodigoPostal que tiene en su interior el numero 91 prefijado. Este metodo debera devolver true si se cumple la validacion, o sea si el numero en arg0 comienza por 91 y false sino.
@Override public boolean isValid(String arg0, ConstraintValidatorContext arg1) { boolean validacion; //por defecto las variables booleanas sin iniciar son false. //primero se testea si el usuario mete algo en el cuadro de texto a validar. if(arg0!=null){ validacion=arg0.startsWith(prefijoCodigoPostal); } //Testear si ha dejado el campo vacio else{ return validacion=false; //aca dicendole false significa que si el usuario no conoce el codigo postal no podra avanzar. } return validacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validar(String nombre,String direccion, int numero, String estado) {\r\n\t\tif (nombre == null || nombre.equals(\"\") || direccion == null || direccion.equals(\"\") || estado == null || estado == null || numero==0) {\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t}else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t}", "public void validarPostagem() {\n\t\t// validando se o nome motorista ou carona foram preenchidos\n\t\tint verif = 0;\n\t\ttry {\n\t\t\tif (txtCarona.getText() == null\n\t\t\t\t\t|| txtCarona.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (txtMotorista.getText() == null\n\t\t\t\t\t|| txtMotorista.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (verif == 2) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t\tif (txtDestino.getText() == null\n\t\t\t\t\t|| txtDestino.getText().trim().equals(\"\")) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(\n\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\"Para postar no quadro é necessário informar nome (motorista ou passageiro) \"\n\t\t\t\t\t\t\t\t\t+ \"\t\t\t\t\t\t\te local. \\n Por favor certifique se os campos foram preenchidos e tente novamente.\");\n\t\t}\n\n\t}", "private boolean validarCampos() {\n\t\t// TODO Auto-generated method stub\n\t\tif (txtCedula.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un numero de cedula\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtNombre.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un nombre\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtApellidos.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese los apellidos\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtCorreo.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el correo\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!Utilidades.validarEmailFuerte(txtCorreo.getText().trim())) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un correo valido\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtDireccion.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese la direccion\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtTelefono.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el numero de telefono\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtUsuario.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el nombre de usuario\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtContrasenia.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese una contraseña\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "public boolean validarCampos() {\n\t\tboolean valid = true;\n\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getNome())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getPaciente().getDataCadastro())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getSexo())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getRG())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(Util.isObjectNotNull(this.getPaciente().getRG()) && this.getPaciente().getRG() < 0) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG015\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getCPF())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isCPFValido(this.getPaciente().getCPF())) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG006\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(Util.isCPFValido(this.getPaciente().getCPF()) && isPacienteCadastrado(this.getPaciente())) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG017\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getEndereco())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getBairro())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getCidade())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getUF())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getPaciente().getDataNascimento())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getTelefone())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isTelefoneValido(this.getPaciente().getTelefone())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\t\n\t\treturn valid;\n\t}", "@Override\n public boolean valida() {\n mediatorCredito m = new mediatorCredito();\n try{\n BigInteger dit = new BigInteger(JOptionPane.showInputDialog(null,\"Digite su número de \"\n + \"tarjeta de crédito\",\"\"));\n String pag = JOptionPane.showInputDialog(null,\"Ingrese su medio de pago: (Visa, master Card\"\n + \", American Express)\",\"\");\n if(m.verificarForm(dit, pag)==false){\n JOptionPane.showMessageDialog(null,\"ups, el medio de pago o la tarjeta de crédito no es válido\"\n ,\"Error\",0);\n }\n return m.verificarForm(dit, pag);\n \n }catch(Exception e){\n JOptionPane.showMessageDialog(null,\"Acción cancelada\",\"Advertencia\",2);\n return false;\n }\n }", "public boolean validaCampos() {\n \n if(!this.ftCpf.getText().isEmpty()){\n \n String cpf = this.ftCpf.getText();\n Validador valida = new Validador();\n cpf = valida.tiraPontosCPF(cpf);\n\n\n if (!cpf.isEmpty() || cpf.length() == 11)\n if (!this.tfCarro.getText().isEmpty())\n if ((this.cbPlano.getSelectedItem().toString().equals(\"Diaria Simples\")) || ((this.cbPlano.getSelectedItem().toString().equals(\"Diaria Quilometrada\") && !this.tfQuilometragem.getText().isEmpty())))\n if (!this.tfValorTotal.getText().isEmpty())\n return true;\n else \n JOptionPane.showMessageDialog(null, \"O Valor não pode estar Zerado\", \"Informação\", JOptionPane.INFORMATION_MESSAGE);\n else\n JOptionPane.showMessageDialog(null, \"Insira a Quantidade de quilometros\", \"Informação\", JOptionPane.INFORMATION_MESSAGE);\n else\n JOptionPane.showMessageDialog(null, \"Escolha um carro\", \"Informação\", JOptionPane.INFORMATION_MESSAGE);\n else\n JOptionPane.showMessageDialog(null, \"Digite o CPF corretamente\", \"Informação\", JOptionPane.INFORMATION_MESSAGE);\n \n }\n else\n JOptionPane.showMessageDialog(null, \"Informe o CPF corretamente\", \"Informação\", JOptionPane.INFORMATION_MESSAGE);\n return false;\n \n }", "public boolean validarSenha(){ //boleano\n boolean retorno = false; //variavel boleana ja recebendo false\n\n int senhaA, senhaB;\n\n senhaA = Integer.parseInt(editSenhaA.getText().toString());\n senhaB = Integer.parseInt(editSenhaB.getText().toString());\n\n retorno = (senhaA == senhaB);\n\n\n return retorno; //reorna o proprio retorno\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}", "public boolean validarIngresosUsuario_sueldo(JTextField empleadoTF, JTextField montoTF){\n\t\t\tif(!validarDouble(montoTF.getText())) return false;\n\t\t\tif(montoTF.getText().length() >30) return false;\n\t\t\tif(!validarInt(empleadoTF.getText())) return false;\n\t\t\tif(numero==33) return false; //codigo halcones\n\t\t\tif(empleadoTF.getText().length() >30) return false;\n\t\t\t//if(numero < 0) return false;\n\t\t\tif(numero_double < 0) return false;\n\t\t\n\t\t\treturn true;\n\t}", "public boolean validarTelefono1() {\n\t\treturn validadores.validarLongitud(telefonos[0], 15);\n\t}", "public static boolean compruebaArgumentos(String[] args) {\n\t\t\n\t\tArrayList<String> ids = new ArrayList<String>();\n\t\tInteger i = 0, j = 0;\n\t\t\n\t\tif (args.length % 2 != 0 || args.length == 0) {\n\t\t\tmensajeDepuracion(\"El numero de argumentos es invalido\");\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\tfor(i = 0; i<args.length; i++) {\n\t\t\t\tif (i%2 == 0) { //este tiene que ser un ID\n\t\t\t\t if(ids.contains(args[i]) == true || Integer.parseInt(args[i]) < 0) {// Esta linea comprueba ademas que los ids sean positivos\n\t\t\t\t\t\tmensajeDepuracion(String.join(\"El id: \", args[i], \" es invalido o esta repetido\"));\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tids.add(args[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ( args[i].equals(\"127.0.0.1\") || args[i].split(\"\\\\.\").length != 4) {\n\t\t\t\t\t\tmensajeDepuracion(String.join(\"El argumento \", args[i], \" esta repetido o mal formado\"));\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor(j = 0; j < 4; j++) {\n\t\t\t\t\t\t\tif(Integer.parseInt(args[i].split(\"\\\\.\")[j]) < 0 || Integer.parseInt(args[i].split(\"\\\\.\")[j]) > 255) {\n\t\t\t\t\t\t\t\tmensajeDepuracion(String.join(\"El elemento \", args[i].split(\"\\\\.\")[j], \" de la direccion \", args[i], \" es invalido\") );\n\t\t\t\t\t\t\t\treturn false;\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\treturn true;\n\t\t}\n\t}", "private boolean comprobarUsuario(String nombre, String contrasenia, String grupo) {\n\n return true;\n }", "public static String chequeoCampos (JTextField nombre, JTextField apellido, \r\n JTextField cedula, JTextArea Direccion, JTextField email,\r\n JPasswordField password, JPasswordField comprobacion,\r\n JLabel errorCampos, JTextField username, JDateChooser DoB, VentanaBase ventana) {\n\t\t\r\n\t\tint errores = 0;\r\n String pass1 = \"0\", pass2 = \"0\";\r\n\t\t\r\n\t\tif (nombre.getText().equals(\"\") || apellido.getText().equals(\"\") || email.getText().equals(\"\") || comprobacion.getPassword().equals(\"\")\r\n\t\t\t\t || password.getPassword().equals(\"\") || comprobacion.getPassword().equals(\"\")) { //Si algun campo est� lleno, debe mostrar la etiqueta de error\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\terrorCampos.setVisible(true); //Con esto habilita la etiqueta de error\r\n errorCampos.setText(\"Campos incompletos, por favor revise nuevamente.\");\r\n\t\t\t\terrorCampos.setForeground(Color.red); // Y la pone en color rojo\t\r\n\t\t\t\terrores++;\r\n \r\n pass1 = password.getText();\r\n pass2 = comprobacion.getText();\r\n\t\t\t\r\n\t\t}\r\n\t \t \r\n\t\t//if (!password.getPassword().equals(comprobacion.getPassword())) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n if (!pass1.equals(pass2)) {\r\n\t\t\t if (!password.getPassword().equals(\"\")) {\r\n\t\t\t\terrorCampos.setText(\"Campos incompletos, por favor revise nuevamente.\");\t\t\t\t\t\r\n\t\t\t\terrorCampos.setVisible(true); //Con esto habilita la etiqueta de error\r\n\t\t\t\terrorCampos.setForeground(Color.red); // Y la pone en color rojo\r\n\t\t\t\terrores++;\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t}\r\n\t\t\r\n\t\tif ((password.getPassword().length < 4 || password.getPassword().length > 12) && password.getPassword().equals(\"\")){ \r\n\t\t\t//Si la contrase�a tiene entre 4 y 12 caracteres.\r\n\t\t\t\r\n //REVISAR AQUI, CORRECCION??\r\n\t\t\terrorCampos.setText(\"La contrasena debe tener entre 4 y 12 caracteres\");\r\n\t\t\terrorCampos.setVisible(true); //Con esto habilita la etiqueta de error\r\n\t\t\terrorCampos.setForeground(Color.red); // Y la pone en color rojo\r\n\t\t\terrores++;\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(pass1+ \" ---> \" + pass2 + \" \" + password.getText());\r\n\t\t\r\n\t\tif (errores > 0) {\r\n\t\t return (\"ErrorSistema\"); }\r\n\t\telse {\r\n \r\n //Si entra por aca, todo está en orden y procederá a registrar al usuario\r\n \r\n \r\n RegistroUsuario( nombre.getText(), apellido.getText(), \r\n cedula.getText(), username.getText(), password.getText(), \r\n email.getText(), DoB.getDate(), Direccion.getText());\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\treturn (\"RegistroAprobado\");\r\n\t\t\t}", "public boolean validarIngresosUsuario_interno(JTextField motivoTF, JTextField detalleTF,\n\t\t\tJTextField montoTF){\n\t\t\n\t\tif(!validarDouble(montoTF.getText())) return false;\n\t\tif(montoTF.getText().length() >30) return false;\n\t\tif(!validarInt(motivoTF.getText())) return false;\n\t\tif(motivoTF.getText().length() >30) return false;\n\t\tif(detalleTF.getText().equals(\"\")) return false;\n\t\tif(detalleTF.getText().length() >100) return false;\n\t\t//if(numero < 0) return false;\n\t\tif(numero_double < 0) return false;\n\t\n\t\treturn true;\n\t}", "public boolean validarCampos(){\n String nome = campoNome.getText().toString();\n String descricao = campoDescricao.getText().toString();\n String valor = String.valueOf(campoValor.getRawValue());\n\n\n if(!nome.isEmpty()){\n if(!descricao.isEmpty()){\n if(!valor.isEmpty() && !valor.equals(\"0\")){\n return true;\n }else{\n exibirToast(\"Preencha o valor do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha a descrição do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha o nome do seu serviço\");\n return false;\n }\n }", "public void validar_campos(){\r\n\t\tfor(int i=0;i<fieldNames.length-1;++i) {\r\n\t\t\tif (jtxt[i].getText().length() > 0){\r\n\t\t\t}else{\r\n\t\t\t\tpermetir_alta = 1;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif((CmbPar.getSelectedItem() != null) && (Cmbwp.getSelectedItem() != null) && (CmbComp.getSelectedItem() != null) && (jdc1.getDate() != null) && (textdescripcion.getText().length() > 1) && (textjustificacion.getText().length() > 1)){\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tpermetir_alta = 1;\r\n\t\t}\r\n\t\t\r\n\t}", "private boolean validacionesSolicitarReserva(int indice, int CodEmp, int CodLoc, int CodCot, boolean isSol){\n boolean blnRes=true;\n try{\n if(!validaItemsServicio(CodEmp, CodLoc, CodCot)){\n blnRes=false;\n MensajeInf(\"La cotizacion contiene Items de Servicio o Transporte, los cuales no deben ser reservados.\");\n }\n\n if(!validaFechasMAX(indice, tblDat.getValueAt(indice,INT_TBL_DAT_STR_TIP_RES_INV).toString(),isSol)){\n blnRes=false;\n MensajeInf(\"La Fecha solicitada es mayor a la permitida, revise la Fecha y vuelva a intentarlo\");\n }\n \n if(!validaTerminalesLSSegunEmpresaLocal(CodEmp,CodLoc,CodCot)){\n blnRes=false;\n MensajeInf(\"No puede solicitar reserva de codigos L/S en este local, debe reservarlo por el local que puede ser facturado\");\n }\n \n if(!validaFechasPrimerDiaLaboral(indice,isSol,CodEmp,CodLoc)){\n blnRes=false;\n MensajeInf(\"La Fecha solicitada, no corresponde al primer dia laboral registrado\");\n } \n \n if(tblDat.getValueAt(indice,INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"R\")){\n if(!validaTerminalesLReservaLocal(CodEmp,CodLoc,CodCot)){\n blnRes=false;\n MensajeInf(\"No puede solicitar Reserva en Empresa de Codigos L \");\n }\n }\n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }", "@Quando(\"^eu adicionar (\\\\d+) tarefa valida$\")\r\n\tpublic void eu_adicionar_tarefa_valida(int arg1) throws Throwable {\r\n\t\thp.adicionarTarefa(\"Tarefa n\", arg1);\r\n\t\t\r\n\t}", "@Override\n\tpublic boolean verificaAgencia(String codigo)\n\t{\n\t\tchar[] digitos = capturaDigitos(codigo, 4, 0);\n\t\treturn (digitos != null);\n\t}", "private boolean comprobarCampos(){\n if(jTextField1.getText().isEmpty() || jTextField2.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"No se debe dejar campos en blanco\", \n \"ERROR: campos en blanco\", JOptionPane.ERROR_MESSAGE);\n }\n if (jComboBox1.getSelectedIndex() == 0|| entrenador.getNacionalidad().equals(\"\")){\n JOptionPane.showMessageDialog(this, \"Debes indicar un pais\", \"ERROR: Nacionalidad incorrecta\", \n JOptionPane.ERROR_MESSAGE);\n return false;\n }\n if(jXDatePicker1.getDate() == null){\n JOptionPane.showMessageDialog(this, \"Debes indicar una fecha de nacimiento\", \n \"ERROR: Fecha de nacimiento vacía\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n return true;\n }", "private boolean validar_numero(String numero) {\n boolean es_valido;\n es_valido = numero.charAt(0) != '0';\n return es_valido;\n }", "private boolean validFormInputs() {\n String email = etEmail.getText().toString();\n String password = etPassword.getText().toString();\n String institutionName = etInstitutionName.getText().toString();\n String addressFirst = etInstitutionAddressFirst.getText().toString();\n String addressSecond = etInstitutionAddressSecond.getText().toString();\n String CIF = etCIF.getText().toString();\n\n String[] allInputs = {email, password, institutionName, addressFirst, addressSecond, CIF};\n for (String currentInput : allInputs) {\n if (currentInput.matches(\"/s+\")) // Regex pt cazul cand stringul e gol sau contine doar spatii\n return false; // formular invalid - toate inputurile trebuie sa fie completate\n }\n String[] stringsAddressFirst = addressFirst.split(\",\");\n String[] stringsAddressSecond = addressSecond.split(\",\");\n if (stringsAddressFirst.length != 4 ||\n stringsAddressSecond.length != 3)\n return false;\n\n //<editor-fold desc=\"Checking if NUMBER and APARTMENT are numbers\">\n try {\n Integer.parseInt(stringsAddressSecond[0]);\n Integer.parseInt(stringsAddressSecond[2]);\n return true; // parsed successfully without throwing any parsing exception from string to int\n }catch (Exception e) {\n Log.v(LOG_TAG, \"Error on converting input to number : \" + e);\n return false; // parsed unsuccessfully - given strings can not be converted to int\n }\n //</editor-fold>\n }", "public void validacionDatos() {\n if (!this.interfazLogin.txtUsuario().getText().isEmpty()) {\n if (this.interfazLogin.txtPassword().getText().length() > 7) {\n\n String[] usuario = modeloLogin.getAcceso(\n this.interfazLogin.txtUsuario().getText(),\n this.interfazLogin.txtPassword().getText());\n\n if (usuario[0].isEmpty()) {\n JOptionPane.showMessageDialog(null, \"Usuario o Contraseña Invalidos\");\n } else {\n controlInterfazPrincipal();\n\n if (usuario[2].equals(\"Administrador\")) {\n interfazPrincipal.btnUsuario().setVisible(true);\n pintarPanelPrincipal(panelUsuarios);\n\n } else {\n interfazPrincipal.btnUsuario().setVisible(false);\n pintarPanelPrincipal(panelClientes);\n }\n }\n this.interfazLogin.txtPassword().setText(\"\");\n } else {\n JOptionPane.showMessageDialog(null, \"El campo de password debe tener como minino 8 caracteres\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"El campo de usurario no puede ir vacio\");\n }\n }", "public boolean validarPasswordDigitado(String passworddigitado, String passwordalmacenadobd)\r\n\t{\r\n\t\tboolean passwordcorreto=false;\r\n\t\tString passwordencriptadomd=\"\";\r\n\t\tString passwordencriptadosh=\"\";\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tif(i==0){\r\n\t\t\t\tpasswordencriptadomd=Encriptar.getStringMessageDigest(passworddigitado, Encriptar.MD5);\r\n\t\t\t\tpasswordencriptadosh=Encriptar.getStringMessageDigest(passwordencriptadomd, Encriptar.SHA1);\r\n\t\t\t}else{\r\n\t\t\t\tpasswordencriptadomd=Encriptar.getStringMessageDigest(passwordencriptadosh, Encriptar.MD5);\r\n\t\t\t\tpasswordencriptadosh=Encriptar.getStringMessageDigest(passwordencriptadomd, Encriptar.SHA1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(passwordencriptadosh.equalsIgnoreCase(passwordalmacenadobd)){\r\n\t\t\tpasswordcorreto=true;\r\n\t\t}\r\n\t\treturn passwordcorreto;\r\n\t}", "boolean validarCamposVacios(int menu) {\r\n if (menu == 1) {\r\n if (!v_registro_Usuario.getTxtCedulaEmp_Registro().getText().isEmpty()\r\n && !v_registro_Usuario.getTxt_NombreUsuario().getText().isEmpty()\r\n && !v_registro_Usuario.getTxt_Contrasenia().getText().isEmpty()) {\r\n\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n if (!v_registro_Usuario.getTxtCedula_RegisEdit().getText().isEmpty()\r\n && !v_registro_Usuario.getTxtUsuario_RegisEdit().getText().isEmpty()\r\n && !v_registro_Usuario.getTxtContra_RegisEdit().getText().isEmpty()) {\r\n\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }", "public boolean validaEditText(int texto) {\n\t\tfor (int i = 0, count = mitaxiregistermanually_ll_contactos.getChildCount(); i < count; ++i) {\n \t LinearLayout ll = (LinearLayout) mitaxiregistermanually_ll_contactos.getChildAt(i);\n \t LinearLayout ll2 = (LinearLayout) ll.getChildAt(0);\n \t LinearLayout ll3 = (LinearLayout) ll2.getChildAt(0);\n \t EditText et = (EditText) ll3.getChildAt(0);\n \t EditText et2 = (EditText) ll3.getChildAt(1);\n \t //validamos que no esten vacios\n \t if(et.getText().toString().equals(\"\")){\n \t\t Dialogos.Toast(RegistroContactosEmergenciaActivity.this, getResources().getString(texto), Toast.LENGTH_LONG);\n \t\t return false;\n \t }\n \t if(et2.getText().toString().equals(\"\")){\n \t\t Dialogos.Toast(RegistroContactosEmergenciaActivity.this, getResources().getString(texto), Toast.LENGTH_LONG);\n \t\t return false;\n \t }\n \t //validamos que esten bien escritos\n \t if(et.getText().toString().length()!=10){\n \t\t Dialogos.Toast(RegistroContactosEmergenciaActivity.this,getResources().getString(R.string.Registro_manual_llena_bien_el_celular), Toast.LENGTH_LONG);\n \t\t return false;\n \t }\n \t if(Utils.isNumeric(et.getText().toString())){\n \t\t Dialogos.Toast(RegistroContactosEmergenciaActivity.this,getResources().getString(R.string.Registro_manual_llena_bien_el_celular_signo), Toast.LENGTH_LONG);\n \t\t return false; \n \t }\n \t \n \t if(!EditTextValidator.esCorreo(et2)){\n\t\t\t et2.setError(getResources().getString(R.string.edittext_error_email));\n\t\t\t return false;\n\t\t }\n }\n\t\t\n\t\t\n\t\treturn true;\n\t}", "public boolean validarForm() throws Exception {\r\n\r\n\t\ttbxIdentificacion\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxTipo_disnostico\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\r\n\t\tString mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n\t\tboolean valida = true;\r\n\r\n\t\tif (tbxIdentificacion.getText().trim().equals(\"\")) {\r\n\t\t\ttbxIdentificacion\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (lbxTipo_disnostico.getSelectedIndex() == 0) {\r\n\t\t\tlbxTipo_disnostico\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!lbxFinalidad_cons.getSelectedItem().getValue().toString()\r\n\t\t\t\t.equalsIgnoreCase(\"10\")\r\n\t\t\t\t&& lbxCodigo_consulta_pyp.getSelectedIndex() == 0) {\r\n\t\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (tbxTipo_principal.getText().trim().equals(\"\")) {\r\n\t\t\tmensaje = \"Debe digitar la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t} else if (vaidarIgualdad(tbxTipo_principal.getText(),\r\n\t\t\t\ttbxTipo_relacionado_1.getText(),\r\n\t\t\t\ttbxTipo_relacionado_2.getText(),\r\n\t\t\t\ttbxTipo_relacionado_3.getText())) {\r\n\t\t\tmensaje = \"no se puede repetir la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!valida) {\r\n\t\t\tMessagebox.show(mensaje,\r\n\t\t\t\t\tusuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n\t\t\t\t\tMessagebox.EXCLAMATION);\r\n\t\t}\r\n\r\n\t\treturn valida;\r\n\t}", "private boolean validarDatos() {\n boolean result = true; // variable para saber si los datos son validos para su envio a la DAL de Rol y despues a la base de datos \n // verificar si la caja de texto txtNombre esta vacia \n if (this.txtNombre.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (this.txtApellido.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (this.txtDui.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (this.txtNumero.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (result == false) {\n // mostrar un mensaje al usuario de la pantalla que los campos son obligatorios en el caso que la variable result sea false\n JOptionPane.showMessageDialog(this, \"Los campos con * son obligatorios\");\n }\n return result; // retorna la variable result con el valor true o false para saber si los datos son validos o no\n }", "@Override\n public boolean validacionLogin(UsuarioDto usuarioDto) {\n HashMap<String, Object> params = new HashMap<>();\n params.put(\"NOMBRE_USUARIO\", usuarioDto.getNombre());\n params.put(\"PASS\", usuarioDto.getContracena());\n IntegerDto data = (IntegerDto) executeList(IntegerDto.class, \"PRC_VALIDAR_LOGIN\", params).get(0);\n return data.getData() != 0;\n }", "public boolean validarUsuarioActivo(Long idUsuario);", "public boolean validar() {\n if (getUsuario().length() <= 8) {\n if (getSenha().length() > 7 && getSenha().length() < 17) {\n return true;\n }\n }\n return false;\n }", "Usuario validarUsuario(Usuario usuario) throws Exception;", "public boolean textVacio(JTextField txtDNI, JPasswordField pwsPass, JTextField txtNom,\n JTextField txtApe, JTextField txtTele, JTextField txtCorreo, JComboBox cbx, JLabel lblMensaje) {\n\n try {\n\n boolean veri = txtDNI.getText().trim().isEmpty() || pwsPass.getText().trim().isEmpty() || txtNom.getText().trim().isEmpty()\n || txtApe.getText().trim().isEmpty() || txtTele.getText().trim().isEmpty() || txtCorreo.getText().trim().isEmpty()\n || cbx.getSelectedIndex() == 0;\n\n if (veri == true) {\n lblMensaje.setText(\"TODOS LOS CAMPOS SON NECESARIOS\".toUpperCase());\n return true;\n } else {\n lblMensaje.setText(\"\".toUpperCase());\n return false;\n }\n } catch (Exception e) {\n System.err.println(\"Erro bro :(\");\n }\n return true;\n }", "private static boolean metodoAutenticacionEmail(Properties prop, Persona persona) {\n\r\n Scanner scanner = new Scanner(System.in);\r\n\r\n System.out.println(\"Metodo Envio de Correo electronico\");\r\n\r\n // capturando informacion de Persona desde teclado\r\n System.out.println(\"Ingrese Nombre de Usuario\");\r\n String nombreUsuario = scanner.nextLine();\r\n System.out.println(\"Ingrese direccion de Correo Electronico\");\r\n String correoUsuario = scanner.nextLine();\r\n // guardando los datos ingresados por consola\r\n persona.setNombreUsuario(nombreUsuario);\r\n persona.setEmail(correoUsuario);\r\n\r\n // Genero un numero random como clave secreta\r\n Random rand = new Random();\r\n String textoDescripcion = \"Codigo de Confirmacion es: \";\r\n String codigoConfirmacion = \"\" + rand.nextInt(10000);\r\n\r\n // enviando correo con codigoSecreto\r\n enviarCorreoElectronico(persona, textoDescripcion + codigoConfirmacion, prop);\r\n\r\n // comprobando el codigo enviado al correo\r\n // Validacion CODIGO ingresado desde teclado es el mismo que se envio al correo\r\n boolean banderaEmail = true;\r\n boolean banderaAutIN = false;\r\n short contadorOut = 1;\r\n do {\r\n System.out.println(\"Ingrese su codigo Secreto: \");\r\n String respCodigo = scanner.nextLine();\r\n if (codigoConfirmacion.equals(respCodigo)) {\r\n System.out.println(\"Bienvenido AppJava... Ejecutando Menu...\");\r\n banderaEmail = false;\r\n banderaAutIN = true;\r\n } else if (contadorOut < 5) {\r\n System.out.println(\"Codigo No valido, Revise su correo...\");\r\n contadorOut += contadorOut;\r\n } else {\r\n System.out.println(\"Numero de intentos alcanzado. Contacte con Soporte Tecnico\");\r\n banderaAutIN = false;\r\n banderaEmail = false;\r\n break;\r\n }\r\n } while (banderaEmail);\r\n\r\n return banderaAutIN;\r\n }", "public static int validaEntradaOrdem() {\r\n\t\tint entrada = 0;\r\n\t\tboolean erro = false;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\terro = false;\r\n\t\t\t\tentrada = Leitura.lerInt();\r\n\t\t\t\tif (entrada > 2 || entrada < 0) {\r\n\t\t\t\t\tVisao.erroOrdemNum();\r\n\t\t\t\t\terro = true;\r\n\t\t\t\t}\r\n\t\t\t} catch (InputMismatchException excecao) {\r\n\t\t\t\tVisao.erroOrdemNum();\r\n\t\t\t\terro = true;\r\n\t\t\t}\r\n\r\n\t\t} while (erro);\r\n\t\treturn entrada;\r\n\t}", "public boolean validarForm() throws Exception {\n\t\tString mensaje = \"Los campos marcados con (*) son obligatorios\";\n\t\tboolean valida = true;\n\n\t\ttry {\n\t\t\tFormularioUtil.validarCamposObligatorios(tbxAcompaniante,\n\t\t\t\t\tlbxRelacion, tbxTel_acompaniante, tbxMotivo_consulta,\n\t\t\t\t\ttbxEnfermedad_actual);\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!tbxTel_acompaniante.getValue().trim().isEmpty()\n\t\t\t\t&& !tbxTel_acompaniante.getValue().matches(\"[0-9]*$\")) {\n\t\t\tvalida = false;\n\t\t\tmensaje = \"El valor del número de telefono no es valido\";\n\t\t\tClients.scrollIntoView(tbxTel_acompaniante);\n\t\t}\n\n\t\tif (!valida) {\n\t\t\tMensajesUtil.mensajeAlerta(usuarios.getNombres()\n\t\t\t\t\t+ \" recuerde que...\", mensaje);\n\t\t}\n\n\t\treturn valida;\n\t}", "private String validarEntradas()\n { \n return Utilitarios.validarEntradas(campoNomeAC, campoEnderecoAC, campoBairroAC, campoCidadeAC, campoUfAC, campoCepAC, campoTelefoneAC, campoEmailAC);\n }", "private boolean verificarCnpj(String cnpj) {\n return true;\n \n// if (cnpj.length() != 14) {\n// return false;\n// }\n//\n// int soma = 0;\n// int dig = 0;\n//\n// String digitosIniciais = cnpj.substring(0, 12);\n// char[] cnpjCharArray = cnpj.toCharArray();\n//\n// /* Primeira parte da validação */\n// for (int i = 0; i < 4; i++) {\n// if (cnpjCharArray[i] - 48 >= 0 && cnpjCharArray[i] - 48 <= 9) {\n// soma += (cnpjCharArray[i] - 48) * (6 - (i + 1));\n// }\n// }\n//\n// for (int i = 0; i < 8; i++) {\n// if (cnpjCharArray[i + 4] - 48 >= 0 && cnpjCharArray[i + 4] - 48 <= 9) {\n// soma += (cnpjCharArray[i + 4] - 48) * (10 - (i + 1));\n// }\n// }\n//\n// dig = 11 - (soma % 11);\n//\n// digitosIniciais += (dig == 10 || dig == 11) ? \"0\" : Integer.toString(dig);\n//\n// /* Segunda parte da validação */\n// soma = 0;\n//\n// for (int i = 0; i < 5; i++) {\n// if (cnpjCharArray[i] - 48 >= 0 && cnpjCharArray[i] - 48 <= 9) {\n// soma += (cnpjCharArray[i] - 48) * (7 - (i + 1));\n// }\n// }\n//\n// for (int i = 0; i < 8; i++) {\n// soma += (cnpjCharArray[i + 5] - 48) * (10 - (i + 1));\n// }\n//\n// dig = 11 - (soma % 11);\n// digitosIniciais += (dig == 10 || dig == 11) ? \"0\" : Integer.toString(dig);\n\n// return cnpj.equals(digitosIniciais);\n }", "private boolean validarDados(String dados) throws ParseException, SQLException {\n\t\ttry {\r\n\t\t\tString licencaFull = SystemManager.getProperty(\"licenca.sistema\");\r\n\t\t\tlicencaFull = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).decripto(licencaFull);\r\n\t\t\tif (licencaFull != null && licencaFull.equals(\"ENTERPRISE EDITION\")) {\r\n\t\t\t\twrite(\"ok\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tCalendar dataAtual = Calendar.getInstance();\r\n\t\t\r\n\t\t// Checa os dados\r\n\t\tString dataStr = dados.substring(0, 10);\r\n\t\tCalendar data = Calendar.getInstance(); \r\n\t\tdata.setTime(sdf.parse(dataStr));\r\n\t\t\r\n\t\t// Verifica se já está vencido...\r\n\t\tif (data.before(dataAtual)) {\r\n\t\t\t// o campo fieldname indica se podera ou nao fechar a janela\r\n\t\t\tint diasAtual = (dataAtual.get(Calendar.YEAR) * 365) + dataAtual.get(Calendar.DAY_OF_YEAR); \r\n\t\t\tint dias = (data.get(Calendar.YEAR) * 365) + data.get(Calendar.DAY_OF_YEAR);\r\n\t\t\tint diferenca = diasAtual - dias;\r\n\t\t\twriteErrorMessage(\"Sistema vencido à \" + diferenca + \" dias!\", diferenca>30?\"N\":\"S\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Verifica o CNPJ da loja\r\n\t\tString cnpj = dados.substring(11, 25);\r\n\t\tif (!cnpj.equals(lojasessao.getCNPJLoja())) {\r\n\t\t\twriteErrorMessage(\"Cnpj da licença difere do Cnpj desta loja!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tint quantidadeUsuariosLicenca = Integer.parseInt(dados.substring(26, 31));\r\n\t\t\r\n\t\t// Verifica numero de usuarios\r\n\t\tUsuarioDAO usuDao = new UsuarioDAO();\r\n\t\tList<UsuarioVO> list = usuDao.getList();\r\n\t\t\r\n\t\t// Verifica quantos estao ativos\r\n\t\tint quantidadeAtivos = 0;\r\n\t\tfor (UsuarioVO usuario : list) {\r\n\t\t\tif (usuario.isAtivo()) {\r\n\t\t\t\tquantidadeAtivos++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (quantidadeUsuariosLicenca < quantidadeAtivos) {\r\n\t\t\twriteErrorMessage(\"Licença inválida para a quantidade de usuários ativos no sistema!\", \"N\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Salva a data de hoje\r\n\t\tParametroLojaVO parmData = new ParametroLojaVO();\r\n\t\tparmData.setChaveParametro(Constants.Parameters.Licenca.DATA_SISTEMA);\r\n\t\tparmData.setCodigoEmpresa(empresasessao.getCodigoEmpresa());\r\n\t\tparmData.setCodigoLoja(lojasessao.getCodigoLoja());\r\n\t\t\r\n\t\tParametroLojaDAO dao = new ParametroLojaDAO();\r\n\t\tparmData = dao .get(parmData);\r\n\t\t\r\n\t\tif (parmData == null) {\r\n\t\t\tparmData = new ParametroLojaVO();\r\n\t\t\tparmData.setChaveParametro(Constants.Parameters.Licenca.DATA_SISTEMA);\r\n\t\t\tparmData.setCodigoEmpresa(empresasessao.getCodigoEmpresa());\r\n\t\t\tparmData.setCodigoLoja(lojasessao.getCodigoLoja());\r\n\t\t\tparmData.setNewRecord(true);\r\n\t\t}\r\n\t\t\r\n\t\tString dataHojeStr = sdf.format(Utils.getToday());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdataHojeStr = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).cripto(dataHojeStr);\r\n\t\t} catch (Exception e) { }\r\n\t\t\r\n\t\tparmData.setValorParametro(dataHojeStr);\r\n\t\tdao.persist(parmData);\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public Boolean validarUsuarioActivo(String idUsuario);", "private boolean validarComunicacion() {\n String texto = textInputAnadirComunicacion.getEditText().getText().toString().trim();\n if (texto.isEmpty()) {\n textInputAnadirComunicacion.setError(\"El campo no puede estar vacío\");\n return false;\n } else {\n textInputAnadirComunicacion.setError(null);\n return true;\n }\n }", "private boolean isResultadoDadoValido(int resultadoDado) throws Exception {\n if ((resultadoDado > 6) || (resultadoDado < 1)) {\n throw new Exception(\"Invalid die result\");\n }\n return true;\n }", "public boolean validarUsuario(String correo, String contrasena) {\n\n usuario = usuarioDAO.login(correo, contrasena);\n if (usuario != null) {\n\n return true;\n\n } else {\n\n return false;\n\n }\n\n }", "private boolean validateParams(String userName, String password, String fullName) {\n if (userName == null || password == null || fullName == null) {\n return false;\n }\n\n if (userName.length() == 0 || password.length() == 0 || fullName.length() == 0) {\n return false;\n }\n\n return true;\n }", "private boolean numeroValido(int numero, int ren, int col){\n return verificaArea(numero,ren,col)&&verificaRenglon(numero,ren) && verificaColumna(numero,col);\n }", "private void validarCampos() {\n }", "private boolean validarProcesoFianciacionIncumplido(String numeroObligacion) {\n\n boolean proceso = false;\n\n StringBuilder jpql = new StringBuilder();\n jpql.append(\"SELECT o FROM ObligacionFinanciacion o\");\n jpql.append(\" JOIN o.financiacion f\");\n jpql.append(\" JOIN f.proceso p\");\n jpql.append(\" WHERE o.numeroObligacion = :numeroObligacion\");\n jpql.append(\" AND p.estadoProceso.id = :estadoProceso\");\n\n Query query = em.createQuery(jpql.toString());\n query.setParameter(\"numeroObligacion\", numeroObligacion);\n query.setParameter(\"estadoProceso\", EnumEstadoProceso.ECUADOR_FINANCIACION_INCUMPLIDO.getId());\n\n @SuppressWarnings(\"unchecked\")\n List<ObligacionFinanciacion> procesos = query.getResultList();\n if (procesos != null && !procesos.isEmpty()) {\n proceso = true;\n }\n return proceso;\n }", "private void validate() {\n\t\t// just in case;\n\t\tfor (int i=0;i<NR_OF_FIELDS; i++) {\n\t\t\tvalid[i] = \"0\";\n\t\t}\n\t\t//\n\t\t// Validate name and surname:\n\t\t//\n\t\tif ( ! this.isUpperAlpha(nume)) {\n\t\t\tfields[0] = \"1\";\n\t\t}\n\t\t\n\t\tif ( ! this.isUpperAlphaWithSpace(nume)) {\n\t\t\tfields[1] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate seria\n\t\t//\n\t\tvalid[2] = \"1\";\t\t\t\t\t\t\t// presupun ca seria este invalida, si incerc sa o validez\n\t\tfor (int i=0; i<seriiBuletin.length; i++) {\n\t\t\tif (seriiBuletin[i].equals(seria)) {\n\t\t\t\tvalid[2] = \"0\";\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// validate numarul\n\t\t//\n\t\ttry {\n\t\t\tvalid[3] = \"1\";\n\t\t\tint nr = Integer.valueOf(numarul);\n\t\t\tif ( nr >= 100000 && nr <= 999999 ) {\n\t\t\t\tvalid[3] = \"0\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG, \"Error validating seria.\");\n\t\t}\n\n\t\t//\n\t\t// validate sex\n\t\t//\n\t\tif ( ! (sex == 'M' || sex == 'F')) {\n\t\t\tvalid[6] = \"1\";\n\t\t}\n\t\t//\n\t\t// Validate valabilitate\n\t\t//\n\t\tif ( ! isNumber(this.valabilitate)) {\n\t\t\tvalid[7] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate CNP\n\t\t//\n\t\tif ( ! (isNumber(CNP) && isValidCNP(CNP))) {\n\t\t\tvalid[8] = \"1\";\n\t\t}\n\t\t\n\t}", "private void validaDados(int numeroDePacientes, double gastosEmCongressos) throws Exception{\n\t\tif(numeroDePacientes >= 0) {\n\t\t\tthis.numeroDePacientes = numeroDePacientes;\n\t\t}else {\n\t\t\tthrow new Exception(\"O numero de pacientes atendidos pelo medico nao pode ser negativo.\");\n\t\t}\n\t\tif(gastosEmCongressos >= 0) {\n\t\t\tthis.gastosEmCongressos = gastosEmCongressos;\n\t\t}else {\n\t\t\tthrow new Exception(\"O total de gastos em congressos do medico nao pode ser negativo.\");\n\t\t}\n\t}", "public boolean validadorDeCedula(String cedula) {\n boolean cedulaCorrecta = false;\n\n try {\n\n if (cedula.length() == 10) // ConstantesApp.LongitudCedula\n {\n int tercerDigito = Integer.parseInt(cedula.substring(2, 3));\n if (tercerDigito < 6) {\n // Coeficientes de validación cédula\n // El decimo digito se lo considera dígito verificador\n int[] coefValCedula = {2, 1, 2, 1, 2, 1, 2, 1, 2};\n int verificador = Integer.parseInt(cedula.substring(9, 10));\n int suma = 0;\n int digito = 0;\n for (int i = 0; i < (cedula.length() - 1); i++) {\n digito = Integer.parseInt(cedula.substring(i, i + 1)) * coefValCedula[i];\n suma += ((digito % 10) + (digito / 10));\n }\n\n if ((suma % 10 == 0) && (suma % 10 == verificador)) {\n cedulaCorrecta = true;\n } else if ((10 - (suma % 10)) == verificador) {\n cedulaCorrecta = true;\n } else {\n cedulaCorrecta = false;\n }\n } else {\n cedulaCorrecta = false;\n }\n } else {\n cedulaCorrecta = false;\n }\n } catch (NumberFormatException nfe) {\n cedulaCorrecta = false;\n } catch (Exception err) {\n System.out.println(\"Una excepcion ocurrio en el proceso de validadcion\");\n cedulaCorrecta = false;\n }\n\n if (!cedulaCorrecta) {\n System.out.println(\"La Cédula ingresada es Incorrecta\");\n }\n return cedulaCorrecta;\n }", "private boolean validarEntradaDeDados() {\n\t\tString errorMessage = \"\";\n\n\t\tif (textFieldProdutoNome.getText() == null || textFieldProdutoNome.getText().length() == 0) {\n\t\t\terrorMessage += \"Nome invalido!\\n\";\n\t\t}\n\t\tif (textFieldProdutoPreco.getText() == null || textFieldProdutoPreco.getText().length() == 0) {\n\t\t\terrorMessage += \"Preço invalido!\\n\";\n\t\t}\n\t\tif (textFieldProdutoQuantidade.getText() == null || textFieldProdutoQuantidade.getText().length() == 0) {\n\t\t\terrorMessage += \"Quantidade invalido!\\n\";\n\t\t}\n\t\tif (comboBoxProdutoCategoria.getSelectionModel().getSelectedItem() == null) {\n\t\t\terrorMessage += \"Categoria invalido!\\n\";\n\t\t}\n\t\tif (errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\n\t\t\t/** Mostrar a mensagem de erro. */\n\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\talert.setTitle(\"Erro no registo\");\n\t\t\talert.setHeaderText(\"Campos invalidos, corrija...\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\talert.show();\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean ValidarValesConORC()\n {\n final Integer contInteger;\n return false;\n\n }", "private boolean validarEntradaDeDados() {\n String errorMessage = \"\";\n\n if (txtFieldHistorico.getText() == null || txtFieldHistorico.getText().length() == 0) {\n errorMessage += \"Nome inválido!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Mostrando a mensagem de erro\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erro no cadastro\");\n alert.setHeaderText(\"Campos inválidos, por favor, corrija...\");\n alert.setContentText(errorMessage);\n alert.show();\n return false;\n }\n }", "public boolean validarTelefono(String telefono){\n boolean isTelefono = true;\n isTelefono = validarLong(telefono);\n if(isTelefono){\n isTelefono = telefono.length()<15 && telefono.length()>7?true:false;\n }\n return isTelefono;\n }", "private boolean validarFormulario() {\n boolean cumple=true;\n boolean mosntrarMensajeGeneral=true;\n if(!ValidacionUtil.tieneTexto(txtNombreMedicamento)){\n cumple=false;\n };\n if(!ValidacionUtil.tieneTexto(txtCantidad)){\n cumple=false;\n };\n if(cmbTipoMedicamento.getSelectedItem()==null|| cmbTipoMedicamento.getSelectedItem().equals(\"Seleccione\")){\n setSpinnerError(cmbTipoMedicamento,\"Campo Obligatorio\");\n cumple=false;\n\n }\n if(getSucursalesSeleccionadas().isEmpty()){\n\n cumple=false;\n mosntrarMensajeGeneral=false;\n Utilitario.mostrarMensaje(getApplicationContext(),\"Seleccione una sucursal para continuar.\");\n }\n if(!cumple){\n if(mosntrarMensajeGeneral) {\n Utilitario.mostrarMensaje(getApplicationContext(), \"Error, ingrese todos los campos obligatorios.\");\n }\n }\n return cumple;\n }", "public boolean validarIngresosUsuario_proveedor(JTextField proveedorTF, JTextField detalleTF,\n\t\t\tJTextField montoTF){\n\t\t\n\t\tif(!validarDouble(montoTF.getText())) return false;\n\t\tif(montoTF.getText().length() >30) return false;\n\t\tif(!validarInt(proveedorTF.getText())) return false;\n\t\tif(proveedorTF.getText().length() >30) return false;\n\t\tif(detalleTF.getText().equals(\"\")) return false;\n\t\tif(detalleTF.getText().length() >100) return false;\n\t\t//if(numero < 0) return false;\n\t\tif(numero_double < 0) return false;\n\t\n\t\treturn true;\n\t}", "public static boolean isEntero(String valor) {\n boolean valido = false;\n\n try {\n int cantidad = Integer.parseInt(valor);\n if (cantidad > 0) {\n valido = true;\n }\n } catch (NumberFormatException e) {\n System.out.println(\"No es un caracter entero\");\n }\n\n return valido;\n }", "public void ingresar() \r\n\t{\r\n\r\n\t\tString numeroCasilla = JOptionPane.showInputDialog(this, \"Ingresar numero en la casilla \" + sudoku.darFilaActual() + \",\" +sudoku.darColumnaActual());\r\n\t\tif (numeroCasilla == null || numeroCasilla ==\"\")\r\n\t\t{}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\tint numeroCasillaInt = Integer.parseInt(numeroCasilla);\r\n\t\t\t\tif(numeroCasillaInt > sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona() || numeroCasillaInt < 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog( this, \"El numero ingresado no es valido. Debe ser un valor entre 1 y \" + sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona(), \"Error\", JOptionPane.ERROR_MESSAGE );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog( this, \"Debe ingresar un valor numerico entre 1 y \" + sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona(), \"Error\", JOptionPane.ERROR_MESSAGE );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean validar_ingresoUsuario_inasistencia(ArrayList<JTextField> ar){\n\t\t\tfor(JTextField tf : ar){\n\t\t\t\t\n\t\t\t\tif(!validarInt(tf.getText())) return false;\n\t\t\t\tif(tf.getText().length() >30) return false;\n\t\t\t\t//if(numero < 0) return false;\n\t\t\t\tif(numero < 0) return false;\n\t\t\t}\n\t\t\n\t\treturn true;\n\t}", "public void validarRut(String rut) {\n boolean validacion = false;\n try {\n rut = rut.toUpperCase().replace(\".\", \"\").replace(\"-\", \"\");\n int rutAux = Integer.parseInt(rut.substring(0, rut.length() - 1));\n char dv = rut.charAt(rut.length() - 1);\n int m = 0, s = 1;\n for (; rutAux != 0; rutAux /= 10) {\n s = (s + rutAux % 10 * (9 - m++ % 6)) % 11;\n }\n if (dv == (char) (s != 0 ? s + 47 : 75)) {\n validacion = true;\n recorrerUsuarios(rut);\n }\n } catch (java.lang.NumberFormatException e) {\n } catch (Exception e) {\n }\n if (validacion==false){\n Toast.makeText(getApplicationContext(),\"Rut no valido\",Toast.LENGTH_LONG).show();\n }\n }", "public boolean isCNPJ(String CNPJ) {\n\t\t// considera-se erro CNPJ's formados por uma sequencia de numeros iguais\n if (CNPJ.equals(\"00000000000000\") || CNPJ.equals(\"11111111111111\") ||\n CNPJ.equals(\"22222222222222\") || CNPJ.equals(\"33333333333333\") ||\n CNPJ.equals(\"44444444444444\") || CNPJ.equals(\"55555555555555\") ||\n CNPJ.equals(\"66666666666666\") || CNPJ.equals(\"77777777777777\") ||\n CNPJ.equals(\"88888888888888\") || CNPJ.equals(\"99999999999999\") ||\n (CNPJ.length() != 14))\n return(false);\n\n char dig13, dig14;\n int sm, i, r, num, peso;\n\n// \"try\" - protege o codigo para eventuais erros de conversao de tipo (int)\n try {\n// Calculo do 1o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i=11; i>=0; i--) {\n// converte o i-�simo caractere do CNPJ em um n�mero:\n// por exemplo, transforma o caractere '0' no inteiro 0\n// (48 eh a posi��o de '0' na tabela ASCII)\n num = (int)(CNPJ.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig13 = '0';\n else dig13 = (char)((11-r) + 48);\n\n// Calculo do 2o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i=12; i>=0; i--) {\n num = (int)(CNPJ.charAt(i)- 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig14 = '0';\n else dig14 = (char)((11-r) + 48);\n\n// Verifica se os d�gitos calculados conferem com os d�gitos informados.\n if ((dig13 == CNPJ.charAt(12)) && (dig14 == CNPJ.charAt(13)))\n return(true);\n else return(false);\n } catch (InputMismatchException erro) {\n return(false);\n }\n\t}", "protected boolean validation() {\n\t\tcountry = et_area.getText().toString().trim();\r\n\r\n\t\tif (pin.equals(\"\")) {\r\n\t\t\tshowAlert(\"Sorry!\", \"Please enter valid Pin\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "@Test\n public void testIncorrectPostalCode(){\n UserRegisterKYC tooLong = new UserRegisterKYC(\"hello\",validId3,\"30/03/1995\",\"7385483\");\n int requestResponse = tooLong.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC tooShort = new UserRegisterKYC(\"hello\", validId3, \"30/03/1995\", \"48532\");\n requestResponse = tooShort.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC startWith74 = new UserRegisterKYC(\"hello\", validId3, \"30/03/1995\", \"746532\");\n requestResponse = startWith74.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC startWithMoreThan82 = new UserRegisterKYC(\"hello\", validId3, \"30/03/1995\", \"967532\");\n requestResponse = startWithMoreThan82.sendRegisterRequest();\n assertEquals(400,requestResponse);\n }", "public String procesarPrestamo(int carneEstudiante, String codigoLibro, Date fechaPrestamo, boolean validarCantidadCopias) {\n //PASO 1----------------------------------------------------------------------------------------------------\n if (!buscarEstudiante(carneEstudiante)) {\n return \"El estudiante no se encuentra registrado en el sistema\";\n } \n //PASO 2----------------------------------------------------------------------------------------------------\n else {\n if (comprobarLibrosPrestados(estudiante)) {\n return \"Se ha llegado al limite de prestamos por estudiante\";\n }\n //PASO 3---------------------------------------------------------------------------------------------------- \n else {\n if (!buscarLibro(codigoLibro)) {\n return \"El libro no se encuentra registrado en el sistema\";\n }\n //PASO 4---------------------------------------------------------------------------------------------------- \n else {\n if(validarCantidadCopias){\n \n if (!comprobarExistencias(libro)) {\n return \"Se han agotado las existencias del libro solicitado\"; \n }\n }\n //PASO 5---------------------------------------------------------------------------------------------------- \n fechaLimitePrestamo = manejadorFechas.sumarDias(fechaPrestamo,2); \n prestamo = new Prestamo(0,libro.getCodigo(), estudiante.getCarne(), fechaPrestamo, fechaLimitePrestamo,true, 0,0);\n guardarPrestamo(prestamo);\n agregarListado(estudiante, prestamo);\n if(validarCantidadCopias){\n disminuirCantidad(libro);\n }\n return \"Prestamo Realizado Exitosamente\"; \n } \n }\n }\n }", "private boolean camposNumCorrectos() {\n\t\t return Utilidades.isPositiveNumber(anioText.getText().trim());\n\t}", "private boolean validarDatos() {\r\n\t\tboolean _esValido = true;\r\n\r\n\t\tif (txField_lugar.getText() == null || txField_lugar.getText().isEmpty())\r\n\t\t\t_esValido = false;\r\n\t\treturn _esValido;\r\n\t}", "public boolean validarTelefono2() {\n\t\treturn validadores.validarLongitud(telefonos[1], 15);\n\t}", "public boolean asignarPaternidad(String Padre,String Hijo){\r\n return grafo2.nuevaPokeArista(\"\", Padre, Hijo, 0);\r\n }", "private boolean is_phonenumber(String nr)\n\t{\n\t\t// if the string is not null, length is between 0 and 16, starts with \"00\" and all the characters in the sttring are numbers\n\t\t// then it's valid\n\t\tif(nr != null && nr.length() > 0 && nr.length() < 16 && nr.substring(0, 2).equals(\"00\") && valid_numbers(nr))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void validarPago(){\n RequestContext context = RequestContext.getCurrentInstance(); \n pago = new funciones().redondearMas(pago,2);\n intereses = new funciones().redondearMas(intereses,2);\n mora = new funciones().redondearMas(mora,2);\n if(pago < 0){\n pagoValido = false;\n new funciones().setMsj(3,\"Pago no puede ser Negativo\");\n }else if(pago == 0){\n new funciones().setMsj(3,\"Pago debe ser mayor a 0.00\");\n pagoValido = false;\n }else{\n float saldoActual = new funciones().redondearMas(facturaCredito.getSaldoCreditoCompra().floatValue(),2);\n if(pago <= saldoActual){\n if(intereses < 0 || mora < 0){\n //pago invalido\n pagoValido = false;\n new funciones().setMsj(3,\"Monto de INTERESES o MORA negativo\");\n }else{\n //PAGO VALIDO\n pagoValido = true;\n //calcular nuevo Saldo\n nuevoSaldo = new funciones().redondearMas(saldoActual - pago,2);\n }\n }else{\n //pago invalido\n pagoValido = false;\n new funciones().setMsj(2,\"Pago mayor que SALDO ACTUAL\");\n }\n }\n context.addCallbackParam(\"validar\", pagoValido);\n \n }", "@Override\n public void onClick(View v) {\n telefono = TelefonoEdt.getText().toString();\n correo = CorreoEdt.getText().toString();\n contrasena = ContrasenaEdt.getText().toString();\n nombre = Nombretext.getText().toString();\n\n if(!telefono.isEmpty() && !correo.isEmpty() && !contrasena.isEmpty() && !nombre.isEmpty()){\n if(contrasena.length()>=6 && telefono.length()==10){\n registrarUsuario();\n }else{\n Toast.makeText(ActivityUsuario.this, \"La contraseña debe tener al menos 6 caracteres\", Toast.LENGTH_LONG).show();\n Toast.makeText(ActivityUsuario.this, \"El telefono debe ser de 10 dígitos\", Toast.LENGTH_LONG).show();\n }\n\n }else{\n Toast.makeText(ActivityUsuario.this, \"Completar campos vacíos\", Toast.LENGTH_LONG).show();\n }\n }", "public boolean validateNummer() {\n\t\treturn (nummer >= 10000 && nummer <= 99999 && nummer % 2 != 0); //return true==1 oder false==0\n\t}", "public boolean checkParameters(String username,String password, String company, String street, String city,\n String state, String zipcode, String radius, String normal, String overtime){\n //first check if they are null\n if (username==null||password==null||company==null||street==null||city==null||state==null||\n zipcode==null||radius==null || normal==null || overtime==null){\n return false;\n }\n if (username.length()==0||password.length()==0||company.length()==0||street.length()==0||\n city.length()==0||state.length()==0||zipcode.length()==0||radius.length()==0\n || normal.length()==0 || overtime.length()==0){\n return false;\n }\n //at this point the inputs are valid\n return true;\n }", "public boolean validUserRegistration(String pw, String pwRe, String name, String email, String zip, Pane p){\n \tif(!noEmptyFields(p, true)){\n \t\treturn false;\n \t}\n \telse if(!checkUsername(name)){\n \t return false; \t\t\n \t}\n \telse if(!checkPassword(pw, pwRe)){\n \t\treturn false;\n \t}\n \telse if(!checkEmail(email, true)){\n \t\treturn false;\n \t}\n \telse if(!validZipcode(zip)){\n \t\terr.showAlert(\"Form Error!\", \"Invalid Zipcode. Zipcode entered must be within the USA.\");; \n\t \treturn false;\n\t\t}\n \treturn true; \n\t}", "public boolean validarCampos(Admin admin) {\r\n\t\tStringBuilder inconsistencias = new StringBuilder();\r\n\t\tif (admin.getNome().equals(\"\") || admin.getNome() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Nome obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getSobrenome().equals(\"\") || admin.getSobrenome() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Sobrenome obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getUsuario().equals(\"\") || admin.getUsuario() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Usuario obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getEmail().equals(\"\") || admin.getEmail() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Email obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getCpf().equals(\"\") || admin.getCpf() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo CPF obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getSenha().equals(\"\") || admin.getSenha() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Senha obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getConfirmarSenha().equals(\"\") || admin.getConfirmarSenha() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Confirmar Senha obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getDataNascimento() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Data obrigatório\");\r\n\t\t}\r\n\t\tif (inconsistencias.length() == 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(inconsistencias.toString());\r\n//\t\t\tlbMsg.setVisible(true);\r\n\t\t\tlbMsg.setText(inconsistencias.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "private void accionIngresar() {\n\n\t\tString fieldCodigo = this.textCodigo.getText();\n\t\tString fieldNombre = this.textNombre.getText();\n\t\tString fieldDescripcion = this.textDescripcion.getText();\n\t\tString fieldTelefono = this.textTelefono.getText();\n\n\t\t// Si alguno es vacío, mostramos una ventana de mensaje\n\t\tif (fieldNombre.equals(\"\") || fieldCodigo.equals(\"\") || fieldDescripcion.equals(\"\") || fieldTelefono.equals(\"\")) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"Debe completar todos los datos marcados con (*).\", \"Datos incompletos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\n\t\t\treturn; }\n\t\t\n\t\t// Controlo el maximo de caracteres\n\t\tif (fieldCodigo.length() > 5) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"El código puede contener máximo 5 caracteres\", \"Datos inválidos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t} else if (fieldNombre.length() > 20) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"El nombre puede contener máximo 20 caracteres\", \"Datos inválidos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t} else if (fieldDescripcion.length() > 100) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"La descripción puede contener máximo 100 caracteres\", \"Datos inválidos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t} else if (fieldTelefono.length() > 20) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"El teléfono puede contener máximo 20 caracteres\", \"Datos inválidos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Controlo que el fenomeno no exista ya\n\t\t\n\t\tboolean existe;\n\t\t\n\t\ttry{\n\t\t\texiste = ClienteGeoPosUy.ExisteFenomeno(fieldNombre);\n\t\t} catch (Exception e){\n\t\t\tJOptionPane.showMessageDialog(frame, \"Error de conexión con el servidor. Intente más tarde.\",\n\t\t\t\t\t\"Error de conexión!\", JOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (existe) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"Ya existe un fenómeno con ese nombre\",\n\t\t\t\t\t\"Fenómeno existente!\", JOptionPane.WARNING_MESSAGE);\n\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Si todo va bien lo doy de alta\n\t\t\n\t\tboolean almacenado = false;\n\t\ttry {\n\t\t\talmacenado = ClienteGeoPosUy.crearFenomeno(fieldCodigo, fieldNombre, fieldDescripcion, fieldTelefono);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (almacenado) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"El fenómeno ha sido registrado con éxito.\",\n\t\t\t\t\t\"Cliente Registrado!\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\t\t// cerramos la ventanta\n\t\t\tthis.frame.dispose();\n\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tJOptionPane.showMessageDialog(frame, \"Hubo un error al almacenar. Intente nuevamente más tarde\",\n\t\t\t\t\t\"Error al registrar!\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t\t\n\t\t\n}", "private boolean verificarCliente(int cedulaCliente) {\n for (int i = 0; i < posicionActual; i++) { //Recorre hasta la posicon actual en la que se estan agregando datos, osea en la ultima en que se registro.\n if (getCedulaCliente(i) == cedulaCliente) { //Pregunta si la cedula pasada por parametro exite en la posicon que va recorriendo el for actualmente\n return true; //Si la condicion se da, retorna verdadero para informar que si el cliente si se encuentra\n }\n }\n return false; //si al final no encontro ninguna coincidencia retorna falso para avisar que el cliente no se encuentra registrado\n }", "private boolean validateInput(){\n boolean result = false;\n\n if(!us.setUsername(userField.getText())){\n errorLabel.setText(\"Nombre de usuario invalido\");\n } else if(!us.setPassword(passField.getText())){ //Valido 1 por uno los campos que ingreso el usuario\n errorLabel.setText(\"Contraseña invalida\");\n } else if(!us.setName(nameField.getText())){\n errorLabel.setText(\"Nombre Invalido\");\n } else if(!us.setSurname(surnameField.getText())){\n errorLabel.setText(\"Apellido Invalido\");\n } else if(!us.setDni(dniField.getText())){\n errorLabel.setText(\"Dni invalido\");\n } else if(!ageField.getText().matches(\"\\\\d{2}\")){\n errorLabel.setText(\"Edad invalida\");\n }\n else{\n us.setAge(Integer.parseInt(ageField.getText()));\n result = true;\n }\n return result;\n }", "public boolean registrarCompra(int cedulaCliente, String nombreCliente, String compraRealizada, float valorCompra) {\n if (posicionActual < 100) { // Verifica que la poscion en la que se esta almacenando sea menor que el tamaño del arraglo \n setCedulaCliente(posicionActual, cedulaCliente); //Agrega los valores pasados por parametro al arreglo correspondiente\n setNombreCliente(posicionActual, nombreCliente); //Agrega los valores pasados por parametro al arreglo correspondiente\n setCompraRealizada(posicionActual, compraRealizada); //Agrega los valores pasados por parametro al arreglo correspondiente\n setValorCompra(posicionActual, valorCompra); //Agrega los valores pasados por parametro al arreglo correspondiente\n posicionActual++; //Aumenta el valor de la posicion actual, para registrar el siguiente dato.\n return true;//Si toda la operacion fue correcta retorna verdadero para informar el resultado\n } else {\n return false; //Retorna falso si ya se alcanzo el tamaño maximo del vector.\n }\n }", "@When(\"^informar um \\\"([^\\\"]*)\\\" valido e uma \\\"([^\\\"]*)\\\" valida$\")\n\tpublic void informar_um_valido_e_uma_valida(String arg1, String arg2) throws Throwable {\n\t\t\n\t\tPageObject_Login.CampoUsuario(arg1);\n\t\tPageObject_Login.CampoSenha(arg2);\n\t\t\n\t}", "private boolean validRegister(final String firstName, final String lastName, final String email, final String password, final String reEnterPassword){\n // Checks for string validity\n boolean isValid = true;\n if (TextUtils.isEmpty(firstName)) { // first name field is empty\n firstNameLayout.setError(getString(R.string.enter_a_first_name));\n isValid = false;\n } if (TextUtils.isEmpty(lastName)) { // last name field is empty\n lastNameLayout.setError(getString(R.string.enter_a_last_name));\n isValid = false;\n } if (TextUtils.isEmpty(email)) { // if the email field is empty\n emailLayout.setError(getString(R.string.enter_a_valid_email));\n isValid = false;\n }\n\n if (TextUtils.isEmpty(password) || password.length() < 8 || !SignUpPresenter.isValidPassword(password)) { // is the password field is empty or is less than 8 characters or is not valid\n passwordLayout.setError(getString(R.string.enter_a_valid_password));\n isValid = false;\n }else if(!TextUtils.equals(password, reEnterPassword)){ // If password field and re-enter password field do not match\n passwordLayout.setError(getString(R.string.passwords_do_not_match));\n isValid = false;\n }\n else{\n passwordLayout.setError(\"\");\n }\n\n return isValid;\n }", "@AssertTrue(message=\"La clave debe ser alfanumerica \")\r\n\tpublic boolean validarClave(){\r\n\t\tboolean a=StringUtils.isAlphanumeric(clave);\r\n\t\tboolean b=StringUtils.isNotBlank(clave);\r\n\t\treturn (a && b);\r\n\t}", "private static int isEntero(String palabra) {\n int resultado;//declaramos la variable a retornar\n\n try {\n Integer.parseInt(palabra);//convertimos la palabra a Integer\n resultado = 1;//Si no hay un error entonces es un numero y retornamos true\n } catch (NumberFormatException excepcion) {//de lo contrario es una palabra\n resultado = 0;\n }\n\n return resultado;//retornamos el valor\n }", "public void validar(View v) {\r\n //Compruebo que se hayan insertado todos los datos\r\n SimpleDateFormat formatoFecha = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n if(!nombre.getText().toString().equals(\"\")\r\n &&!mail.getText().toString().equals(\"\")\r\n &&!fecha.getText().toString().equals(\"\")) {\r\n //Si se han introducido todos los datos compruebo la edad\r\n fNac = null;\r\n fActual = null;\r\n\r\n try {\r\n fNac = formatoFecha.parse(fecha.getText().toString());\r\n fActual = new Date();\r\n edad = (int) ((fActual.getTime() - fNac.getTime()) / 1000 / 60 / 60 / 24 / 360);//Calculo la edad\r\n //Compruebo si es mayor de edad\r\n if (edad < 18)\r\n //Error si es menor de edad\r\n Toast.makeText(getApplicationContext(), R.string.menorDeEdad, Toast.LENGTH_LONG).show();\r\n else {//Si todo es correcto devuelve los datos introcucidos a la pantalla principal.\r\n Toast.makeText(getApplicationContext(), R.string.registroCompletado, Toast.LENGTH_LONG).show();\r\n Intent i = new Intent();\r\n i.putExtra(\"REGISTRADO\", true);\r\n i.putExtra(\"NOMBRE\", nombre.getText().toString());\r\n i.putExtra(\"MAIL\", mail.getText().toString());\r\n i.putExtra(\"FECHA\", fecha.getText().toString());\r\n setResult(RESULT_OK,i);\r\n finish();\r\n }\r\n } catch (Exception e) {\r\n Toast.makeText(getApplicationContext(), \"Error\", Toast.LENGTH_LONG).show();//Si no se ha introducido ninguna fecha\r\n }\r\n }else\r\n Toast.makeText(getApplicationContext(), R.string.toastFaltanDatos, Toast.LENGTH_LONG).show();\r\n }", "public boolean posicaoCompravel(int posicao) {\n // System.out.println(\"posicao\" + posicao);\n String dono = (String) this.Donos.get(posicao);\n // System.out.println(\"DONO\"+ dono);\n if (dono.equals(\"bank\")) {\n if (this.publicServices == false && posicao != 12 && posicao != 28) {\n return true;\n } else if (this.publicServices == true && (posicao == 12 || posicao == 28)) {\n return true;\n } else if (this.publicServices == false && (posicao == 12 || posicao == 28)) {\n return false;\n } else {\n return true;\n }\n } else {\n return false;\n }\n }", "public static String ValidacionComida(String codigoComida, String nombreComida, String precioComida, String calorias) {\n\t\t\tif(!Comida.menuComidas.containsKey(codigoComida)) {\n\t\t\t\tComida.agregarComida(codigoComida, nombreComida,precioComida,calorias);\n\t\t\t\treturn \"La comida se ha agregado en el menú.\";\n\t\n\t\t\t}else {\n\t\t\t\treturn \"Este código ya se encuenta en el menú. La comida no ha sido agregada al menú.\";\n\t\t\t}\t\t\n\t}", "public boolean validar() {\n if (foto==null){\n Toast.makeText(this, getResources().getString(R.string.error_f), Toast.LENGTH_SHORT).show();\n foto.requestFocus();\n return false;\n }\n\n if (txtID.getText().toString().isEmpty()) {\n txtID.setError(getResources().getString(R.string.error_ID));\n txtID.requestFocus();\n return false;\n }\n\n if (txtNombre.getText().toString().isEmpty()) {\n txtNombre.setError(getResources().getString(R.string.error_nombre));\n txtNombre.requestFocus();\n return false;\n }\n\n if (txtTipo.getText().toString().isEmpty()) {\n txtTipo.setError(getResources().getString(R.string.error_tipo));\n txtTipo.requestFocus();\n return false;\n }\n\n /*if (o1 == 0) {\n Toast.makeText(this, getResources().getString(R.string.error_cantidad), Toast.LENGTH_SHORT).show();\n cmbSexo.requestFocus();\n return false;\n }*/\n\n if (txtCantidad.getText().toString().isEmpty()) {\n txtCantidad.setError(getResources().getString(R.string.error_cantidad));\n txtCantidad.requestFocus();\n return false;\n }\n\n return true;\n\n }", "public Boolean validarRegistro(Usuario u) {\r\n\t\tif(!this.modoAdmin) return false ;\r\n\t\tu.aprobar();\r\n\t\treturn true;\r\n\t}", "private boolean camposValidos() {\n boolean valido = false;\n\n if (txtInfectados.getText().equals(\"\")\n || txtFecha.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Rellene todos los campos\");\n } else {\n valido = true;\n }\n\n return valido;\n }", "private Boolean validarEntradas(){\n edtTxCdPrd = findViewById(R.id.edtTxCdPrd);\n edtTxDcr = findViewById(R.id.edtTxDcr);\n edtTxPrecVnd = findViewById(R.id.edtTxPrecVnd);\n boolean vldc = true;\n if (edtTxCdPrd.getText().toString().equals(\"\")){\n vldc = false;\n }\n if (edtTxDcr.getText().toString().equals(\"\")){\n vldc = false;\n }\n if (edtTxPrecVnd.getText().toString().equals(\"\")){\n vldc = false;\n }\n return vldc;\n }", "public boolean comprobarCampos(String dni, String nombre, String apellido, String clave) {\n\t\t\n\n\t\tif (dni.equals(\"\") || nombre.equals(\"\") || apellido.equals(\"\") || clave.equals(\"\")) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "public boolean validaCnpj(String cnpj){\n if (cnpj.equals(\"00000000000000\") || cnpj.equals(\"11111111111111\") || cnpj.equals(\"22222222222222\")\n || cnpj.equals(\"33333333333333\") || cnpj.equals(\"44444444444444\") || cnpj.equals(\"55555555555555\")\n || cnpj.equals(\"66666666666666\") || cnpj.equals(\"77777777777777\") || cnpj.equals(\"88888888888888\")\n || cnpj.equals(\"99999999999999\") || (cnpj.length() != 14))\n return (false);\n\n char dig13, dig14;\n int sm, i, r, num, peso;\n\n // \"try\" - protege o código para eventuais erros de conversao de tipo (int)\n try {\n // Calculo do 1o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i = 11; i >= 0; i--) {\n // converte o i-ésimo caractere do CNPJ em um número:\n // por exemplo, transforma o caractere '0' no inteiro 0\n // (48 eh a posição de '0' na tabela ASCII)\n num = (int) (cnpj.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig13 = '0';\n else\n dig13 = (char) ((11 - r) + 48);\n\n // Calculo do 2o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i = 12; i >= 0; i--) {\n num = (int) (cnpj.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig14 = '0';\n else\n dig14 = (char) ((11 - r) + 48);\n\n // Verifica se os dígitos calculados conferem com os dígitos informados.\n if ((dig13 == cnpj.charAt(12)) && (dig14 == cnpj.charAt(13)))\n return (true);\n else\n return (false);\n } catch (InputMismatchException erro) {\n return (false);\n }\n }", "public static void main(String[] args) {\n\t\tString string=\" 14539148803436467\";\n\t\tif(isLuhn(string))\n\t\t\tSystem.out.println(\"valid\");\n\t\telse\n\t\t\tSystem.out.println(\"not valid\");\n\t\t\n\t}", "public boolean ajouterCompte(String nom, String prenom, String mdp, String email, String numrue, String codeP, String ville);", "private static boolean valid(String arg) {\n\n /* check if valid option */\n if ( arg.equals(\"-v\") || arg.equals(\"-i\") || arg.equals(\"-p\") || arg.equals(\"-h\") )\n return true;\n\n /* check if valid port */\n try {\n int port = Integer.parseInt(arg);\n if ( ( 0 < port ) && ( port < 65354 ) )\n return true;\n } catch (NumberFormatException ignored) {}\n\n /* check if valid ip address */\n String[] ips = arg.split(\"\\\\.\");\n if ( ips.length != 4 )\n return false;\n try{\n for (int i=0; i<4; i++){\n int ip = Integer.parseInt(ips[i]);\n if ( ( ip < 0) || (255 < ip ) )\n return false;\n }\n } catch (NumberFormatException ignored) {return false;}\n\n return true;\n }", "private boolean verificarCamposVacios() {\n \n boolean bandera = false; // false = campos no vacios\n \n if(this.jTextFieldDigiteCodigo.getText().equals(\"\") || this.jTextFieldDigiteCodigo.getText().equals(\"Digite Código\"))\n {\n mostrarError(jLabelErrorDigiteCodigo, \"Rellenar este campo\",jTextFieldDigiteCodigo);\n bandera=true;\n }\n return bandera;\n }", "@Test(priority=1)\n\tpublic void checkFirstNameAndLastNameFieldValiditywithNumbers(){\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"jane@doe.com\");\n\t\tsignup.enterFirstName(\"12345\");\n\t\tsignup.enterLastName(\"56386\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\t// given page accepts numbers into the firstname and lastname fields\n\t\tAssert.assertFalse(TestHelper.isStringPresent(errors, \"Please enter your last name.\"));\n\t\tAssert.assertFalse(TestHelper.isStringPresent(errors, \"Please enter your first name.\"));\n\t}", "public String validarAsociacion(String nombre, String dpi, String codigo_cuenta, String codigo_cliente) {\n String mensaje = \"\";\n DM_Cliente dmcli = new DM_Cliente();\n DM_Solicitud dmsol = new DM_Solicitud();\n try {\n Cliente cliente = dmcli.validarCliente(nombre, dpi);\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta WHERE Codigo = ?\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cuenta);\n if (cliente != null) {\n rs = PrSt.executeQuery();\n if (rs.next()) {\n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n Solicitud solicitud = new Solicitud();\n solicitud.setEmisor(codigo_cliente);\n solicitud.setReceptor(cliente.getCodigo());\n solicitud.setCodigo_cuenta(codigo_cuenta);\n solicitud.setEstado(\"Pendiente\");\n solicitud.setFecha(fecha);\n mensaje = dmsol.agregarSolicitud(solicitud);\n } else {\n mensaje = \"La cuenta no existe\";\n }\n } else {\n mensaje = \"El dueño de la cuenta no existe\";\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return mensaje;\n }", "public void ValidandoPerfil()\r\n\t{\n\t\t\r\n\t}" ]
[ "0.62463963", "0.61990076", "0.5986292", "0.590102", "0.580185", "0.5740392", "0.5728466", "0.56972915", "0.5691402", "0.5679177", "0.56744194", "0.56625545", "0.5657549", "0.5644968", "0.56389767", "0.5630753", "0.5616208", "0.561598", "0.55936855", "0.55793524", "0.5539666", "0.5528285", "0.55255544", "0.5510989", "0.5494559", "0.5476599", "0.54761493", "0.54268235", "0.54226977", "0.54153085", "0.541167", "0.54112446", "0.5395521", "0.5395051", "0.5385001", "0.5383854", "0.5375383", "0.53703463", "0.5369393", "0.53668773", "0.53649074", "0.5363285", "0.5361606", "0.53444886", "0.5343698", "0.53326595", "0.5332561", "0.5312797", "0.5312188", "0.5302408", "0.52958906", "0.52818775", "0.5280485", "0.52731174", "0.5263053", "0.5261727", "0.5247764", "0.5245115", "0.5228997", "0.5226608", "0.5222179", "0.5215413", "0.5202697", "0.51992905", "0.51930434", "0.5190103", "0.51894957", "0.5178382", "0.5173567", "0.51631004", "0.5161473", "0.51610035", "0.5156703", "0.5156221", "0.5152691", "0.5151337", "0.51496303", "0.5132668", "0.5125266", "0.51230925", "0.5118864", "0.51099026", "0.5104838", "0.51007956", "0.509641", "0.50882155", "0.5082125", "0.50778216", "0.5072481", "0.50703716", "0.50643986", "0.5061615", "0.50571054", "0.50538915", "0.50401163", "0.50348884", "0.50336635", "0.50294095", "0.5016256", "0.5015113" ]
0.6624613
0
List of all distinct terms in the system whether you are allowed to see them or not. This method just provides a selection dictionary of all terms in the database, when a term is selected then the search term search executes which has ties into security so there may be no results to that.
List<DataTerm> search(String searchTerm);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Term> getAll() {\n\t\treturn terms.values();\n\t}", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "@Override\n public HashMap<String, String> getFilterTerms() {\n HashMap<String, String> filterTerms = new HashMap<>();\n if (countryCheckBox.isSelected()) {\n filterTerms.put(\"Country\", countryField.getText());\n }\n if (cityCheckBox.isSelected()) {\n filterTerms.put(\"City\", cityField.getText());\n }\n return filterTerms;\n }", "public abstract Set<String> getTerms(Document doc);", "public Set<String> getFilterTerms() {\n\t\tSet<String> filterTerms = new HashSet<String>();\n\t\tfor(String filters : sessionBean.getFilters()) {\n\t\t\t// split by 0 or more spaces, followed by either 'and','or', comma or more spaces\n\t\t\tString[] filterTermsArray = filters.split(\"\\\\s*(and|or|,)\\\\s*\");\n\t\t\tCollections.addAll(filterTerms, filterTermsArray);\n\t\t}\n\t\treturn filterTerms;\n\t}", "String legalTerms();", "public static List<Term> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "public AvailableSearchTerms getAvailableSearchTerms() {\n\t\treturn availableSearchTerms;\n\t}", "public List<PropertyValueMember> terms() {\n return terms != null ? terms : new ArrayList<>();\n }", "public Term[] getTerms() { return terms; }", "public List getTermList() {\n\t\tif (termList == null) {\n\t\t\ttermList = new ArrayList();\n\t\t\tSet termSet = getTermMap().keySet();\n\t\t\tfor (Iterator i = termSet.iterator(); i.hasNext();) {\n\t\t\t\ttermList.add((String) i.next());\n\t\t\t}\n\t\t\tCollections.sort(termList);\n\t\t}\n\t\treturn termList;\n\t}", "public List<Query> similarTerms() {\n return this.similarTerms;\n }", "public List<RIOntoTerm> getRIontoTermsForKeyWord (String keyWord) throws PreferencesException;", "private String[] computeSearchTerms(Control c) {\n \t\tComposite parent = c.getParent();\n \t\tList searchTerms = new ArrayList();\n \t\twhile (parent != null) {\n \t\t\tObject data = parent.getData();\n \t\t\tif (data instanceof IWizardContainer) {\n \t\t\t\tIWizardContainer wc = (IWizardContainer) data;\n \t\t\t\tsearchTerms.add(wc.getCurrentPage().getTitle());\n \t\t\t\tsearchTerms.add(wc.getCurrentPage().getWizard().getWindowTitle());\n \t\t\t\tbreak;\n \t\t\t} else if (data instanceof IWorkbenchWindow) {\n \t\t\t\tIWorkbenchWindow window = (IWorkbenchWindow) data;\n \t\t\t\tIWorkbenchPage page = window.getActivePage();\n \t\t\t\tif (page != null) {\n \t\t\t\t\tIWorkbenchPart part = lastPart;\n \t\t\t\t\tif (part != null) {\n\t\t\t\t\t\tif (part instanceof IViewPart)\n \t\t\t\t\t\t\tsearchTerms.add(NLS.bind(\n \t\t\t\t\t\t\t\t\tMessages.ContextHelpPart_query_view, part\n \t\t\t\t\t\t\t\t\t\t\t.getSite().getRegisteredName()));\n \t\t\t\t\t}\n \t\t\t\t\t/*\n // Searching by perspective seems counterproductive - CG\n \t\t\t\t\tIPerspectiveDescriptor persp = page.getPerspective();\n \t\t\t\t\tif (persp != null) {\n \t\t\t\t\t\tsearchTerms.add(NLS.bind(\n \t\t\t\t\t\t\t\tMessages.ContextHelpPart_query_perspective,\n \t\t\t\t\t\t\t\tpersp.getLabel()));\n \t\t\t\t\t}\n \t\t\t\t\t*/\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\t} else if (data instanceof Window) {\n \t\t\t\tWindow w = (Window) data;\n \t\t\t\tif (w instanceof IPageChangeProvider) {\n \t\t\t\t\tObject page = ((IPageChangeProvider) w).getSelectedPage();\n \t\t\t\t\tString pageName = getPageName(c, page);\n \t\t\t\t\tif (pageName != null) {\n \t\t\t\t\t\tsearchTerms.add(pageName);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tsearchTerms.add(w.getShell().getText());\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tparent = parent.getParent();\n \t\t}\n \t\treturn (String[]) searchTerms.toArray(new String[searchTerms.size()]);\n \t}", "public TermsList getTermsList() {\n\t\treturn termsList;\n\t}", "public List<BasicString> getTermsAlternative() {\n return termsAlternative;\n }", "@Override\r\n\t\t\tpublic String[] getTerms(Document doc) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getTermsAndConditions() {\n return this.termsAndConditions;\n }", "Set<Keyword> listKeywords();", "public LabelValueBean[] getTermSelectOptions() {\n\t\tList terms = getTermList();\n\t\tLabelValueBean[] options = new LabelValueBean[terms.size() + 1];\n\t\toptions[0] = new LabelValueBean(org.dlese.dpc.schemedit.action.form.SchemEditForm.UNSPECIFIED, \"\");\n\t\tint index = 1;\n\t\tfor (Iterator i = terms.iterator(); i.hasNext();) {\n\t\t\tString term = (String) i.next();\n\t\t\toptions[index++] = new LabelValueBean(term, term);\n\t\t}\n\t\treturn options;\n\t}", "ArrayList<Term> getTerms() {\n ArrayList<Term> terms = new ArrayList<>();\n String[] columns = {\"id\", \"name\", \"start_date\", \"end_date\"};\n Cursor cursor = db.query(\"term\", columns, null, null, null, null, null);\n while (cursor.moveToNext()) {\n Term term = new Term();\n term.setId(cursor.getInt(0));\n term.setName(cursor.getString(1));\n term.setStartDate(cursor.getString(2));\n term.setEndDate(cursor.getString(3));\n terms.add(term);\n }\n return terms;\n }", "public UsAvailableSearchTerms getUsAvailableSearchTerms() {\n\t\treturn usAvailableSearchTerms;\n\t}", "private VocabularyTerms getVocabularyTerms(Collection<CMAContentType> vocabularies) {\n VocabularyTerms vocabularyTerms = new VocabularyTerms();\n vocabularies\n .forEach(contentType -> {\n //Keeps the country vocabulary ID for future use\n if (contentType.getName().equals(configuration.getCountryVocabulary())) {\n vocabularyTerms.loadCountryVocabulary(contentType);\n } else {\n //Loads vocabulary into memory\n vocabularyTerms.loadVocabulary(contentType);\n }\n });\n return vocabularyTerms;\n }", "public boolean isSetSearchTerms()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SEARCHTERMS$6) != null;\n }\n }", "public void setTerms(Term[] terms) { this.terms = terms; }", "private List<LocalizedFlowDataLoginTerms> getLocalizedLoginTerms(Context context) {\n return RegistrationToolsKt.getLocalizedLoginTerms(mRegistrationResponse,\n context.getString(R.string.resources_language),\n \"en\");\n }", "public Boolean getAcceptTerms() {\n\t\treturn acceptTerms;\n\t}", "public Set<Filterable> getSelections();", "public static List<SearchFilter> getUserFilterList(\n\t\t\tUserSearchTerms searchTerms) {\n\t\tfinal List<SearchFilter> filters = new ArrayList<SearchFilter>();\n\t\t\n//\t\tif (!searchTerms.isAdvancedSearch() && StringUtils.isNotBlank(searchTerms.getKeywords()) &&\n//\t\t\t\t!StringUtils.isNotBlank(searchTerms.getUid())) {\n//\t\t\treturn filters;\n//\t\t}\n\t\t/** Each search term that wishes to be a part of the basic keyword\n\t\t * search should check for false isAdvancedSearch() and then provide\n\t\t * a fall back to getKeywords() in the filter\n\t\t */\n\n\t\tif (Validator.isNotNull(searchTerms.getFirstName()) ||\n\t\t\t\t(!searchTerms.isAdvancedSearch() && StringUtils.isNotBlank(searchTerms.getKeywords()))) {\n\t\t\tSearchFilter filter = new SearchFilter(\n\t\t\t\t\tFilter.givenName,\n\t\t\t\t\tsearchTerms.getFirstName() != null ?\n\t\t\t\t\t\t\tsearchTerms.getFirstName() : searchTerms.getKeywords(),\n\t\t\t\t\tfalse);\n\t\t\tfilters.add(filter);\n\t\t}\n\n\t\tif (Validator.isNotNull(searchTerms.getLastName()) ||\n\t\t\t\t(!searchTerms.isAdvancedSearch() && StringUtils.isNotBlank(searchTerms.getKeywords()))) {\n\t\t\tSearchFilter filter = new SearchFilter(\n\t\t\t\t\tFilter.sn,\n\t\t\t\t\tsearchTerms.getLastName() != null ?\n\t\t\t\t\t\t\tsearchTerms.getLastName() : searchTerms.getKeywords(),\n\t\t\t\t\tfalse);\n\t\t\tfilters.add(filter);\n\t\t}\n\n\t\tif (Validator.isNotNull(searchTerms.getEmailAddress()) ||\n\t\t\t\t(!searchTerms.isAdvancedSearch() && StringUtils.isNotBlank(searchTerms.getKeywords()))) {\n\t\t\tSearchFilter filter = new SearchFilter(\n\t\t\t\t\tFilter.mail,\n\t\t\t\t\tsearchTerms.getEmailAddress() != null ?\n\t\t\t\t\t\t\tsearchTerms.getEmailAddress() : searchTerms.getKeywords(),\n\t\t\t\t\tfalse);\n\t\t\tfilters.add(filter);\n\t\t}\n\t\t\n\t\tif (Validator.isNotNull(searchTerms.getDomain()) ||\n\t\t\t\t(!searchTerms.isAdvancedSearch() && StringUtils.isNotBlank(searchTerms.getKeywords()))) {\n\t\t\tSearchFilter filter = new SearchFilter(\n\t\t\t\t\tFilter.esuccMailPrimaryDomain,\n\t\t\t\t\tsearchTerms.getDomain() != null ?\n\t\t\t\t\t\t\tsearchTerms.getDomain() : searchTerms.getKeywords(),\n\t\t\t\t\tfalse);\n\t\t\tfilters.add(filter);\n\t\t}\n\t\t\n\t\tif (Validator.isNotNull(searchTerms.getEsuccEntity()) ||\n\t\t\t\t(!searchTerms.isAdvancedSearch() && StringUtils.isNotBlank(searchTerms.getKeywords()))) {\n\t\t\tSearchFilter filter = new SearchFilter(\n\t\t\t\t\tFilter.esuccEntity,\n\t\t\t\t\tsearchTerms.getEsuccEntity() != null ?\n\t\t\t\t\t\t\tsearchTerms.getEsuccEntity() : searchTerms.getKeywords(),\n\t\t\t\t\tfalse);\n\t\t\tfilters.add(filter);\n\t\t}\n\n\t\tif (Validator.isNotNull(searchTerms.getUid())) {\n\t\t\tSearchFilter filter = new SearchFilter(\n\t\t\t\t\tFilter.uid,\n\t\t\t\t\tsearchTerms.getUid(),\n\t\t\t\t\tfalse);\n\t\t\tfilters.add(filter);\n\t\t}\n\n\t\tif (Validator.isNotNull(searchTerms.getUidNumber())) {\n\t\t\tSearchFilter filter = new SearchFilter(\n\t\t\t\t\tFilter.uidNumber,\n\t\t\t\t\tsearchTerms.getUidNumber(),\n\t\t\t\t\tfalse);\n\t\t\tfilters.add(filter);\n\t\t}\n\n\t\t\n\t\treturn filters;\n\t}", "public static String[] webServicePreferredTerms() throws Exception {\n HttpGet httpGet = null;\n CloseableHttpClient httpClient = HttpClientBuilder.create().build();\n String[] preferredTerms = null;\n \n if (PREFERRED_TERMS_ARRAY != null) {\n preferredTerms = PREFERRED_TERMS_ARRAY;\n }\n else {\n try {\n httpGet = new HttpGet(PREFERRED_TERMS_SERVICE_URL);\n HttpResponse httpResponse = httpClient.execute(httpGet);\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n if (statusCode == HttpStatus.SC_OK) {\n HttpEntity httpEntity = httpResponse.getEntity();\n String entityString = EntityUtils.toString(httpEntity);\n if (entityString != null) {\n preferredTerms = entityString.split(\"\\n\");\n PREFERRED_TERMS_ARRAY = preferredTerms;\n }\n }\n }\n finally {\n \t\tcloseHttpClient(httpClient);\n \t }\n }\n\n return preferredTerms;\n }", "public org.apache.xmlbeans.XmlAnySimpleType getSearchTerms()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnySimpleType target = null;\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(SEARCHTERMS$6);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public HashSet<String> getDistritos(){\r\n\t\t//return (HashSet<String>) Collections.unmodifiableSet(this.distritosPermitidos);\r\n\t\treturn this.distritosPermitidos;\r\n\t}", "java.lang.String getQueryAuthorizations();", "@Override\n\tpublic List<Literature> searchKeywords() {\n\t\treturn null;\n\t}", "private HashSet<String> buildsetofterms(String filename)\r\n\t{\r\n\t\tString readLine, terms[];\r\n HashSet<String> fileTerms = new HashSet<String>();\r\n try \r\n {\r\n BufferedReader reader = new BufferedReader(new FileReader(filename));\r\n while ((readLine = reader.readLine()) != null)\r\n {\r\n terms = (readLine.toLowerCase().replaceAll(\"[.,:;'\\\"]\", \" \").split(\" +\"));\r\n for (String term : terms)\r\n {\r\n if (term.length() > 2 && !term.equals(\"the\"))\r\n fileTerms.add(term);\r\n }\r\n }\r\n }\r\n catch(IOException e){\r\n e.printStackTrace();\r\n }\r\n return fileTerms;\r\n }", "@Inject @Optional\n\tprivate void filterTerms(@UIEventTopic(TermSuiteEvents.NEW_TERM_FILTER) Map<Class<?>, Object> params) {\n\t\tif(Objects.equals(\n\t\t\t\tBrokerUtil.get(params, ETerminology.class),\n\t\t\t\tcontext.get(ETerminology.class))) {\n\t\t\tviewer.setFilters(BrokerUtil.get(params, TermFilter.class), null);\n\t\t\tviewer.expandToLevel(1);\n\t\t}\n\t}", "public HashMap<String, String> getAllSelect() {\n\t\treturn danTocDAO.getAllSelectLoad();\n\t}", "public String getTerm(){\n return this.term;\n }", "public List<Term> getAllTermsByDictionary(String table, String dictionary) {\n List<Term> termList = new ArrayList<Term>();\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(2).isEmpty()) {\n /*\n Term term = new Term();\n term.setId(Integer.parseInt(cursor.getString(0)));\n term.setDictionary(cursor.getString(1));\n term.setTerm(cursor.getString(2));\n term.setSubject(cursor.getString(3));\n term.setDefinition(cursor.getString(4));\n term.setSynonyms(cursor.getString(5));\n */\n Term term = new Term(Integer.parseInt(cursor.getString(0)),cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n // Adding term to list\n termList.add(term);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termList;\n }", "ImmutableList<SchemaOrgType> getKeywordsList();", "public Iterator<String> listRestrictions()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listRestrictions().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\r\n\t}", "public void setSearchTerms(String searchTerms) {\r\n this.searchTerms = searchTerms;\r\n }", "abstract public TermEnum terms() throws IOException;", "public LegalValueSet getAccountChoices() {\n return IltdsUtils.getAccountList();\n }", "public VocabularyTerms() {}", "private List<String> getFilteredWords() {\r\n\t\tArrayList<String> filteredWords = new ArrayList<String>(16);\r\n\t\t\r\n\t\tfor (String word : allWords) {\r\n\t\t\tif (matchesFilter(word) == true) {\r\n\t\t\t\tfilteredWords.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn filteredWords;\r\n\t}", "public List<TermListItem> getAllTermListItems(String table) {\n List<TermListItem> termListItems = new ArrayList<TermListItem>();\n\n // Select All Query\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table + \" ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(1).isEmpty()) {\n TermListItem termListItem = new TermListItem(Integer.parseInt(cursor.getString(0)), cursor.getString(1));\n // Adding term to list\n termListItems.add(termListItem);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termListItems;\n }", "public List<String> getFrequentWords() {\n\t\tif (this.frequentWords == null) {\n\t\t\tSet<String> wordsToReturn = new TreeSet<String>();\n\t\t\tfor (String folder : termFrequencyManager.getTfidfByFolder().keySet()) {\n\t\t\t\tint index = 0;\n\t\t\t\tMap<String, TFIDFSummary> tfidSummaries =\n\t\t\t\t\t\ttermFrequencyManager.getTfidfByFolder().get(folder);\n\t\t\t\tArrayList<TFIDFSummary> tfidfSummariesList = new ArrayList<TFIDFSummary>(tfidSummaries.size());\n\t\t\t\tfor (String term : tfidSummaries.keySet()) {\n\t\t\t\t\ttfidfSummariesList.add(tfidSummaries.get(term));\n\t\t\t\t}\n\t\t\t\tCollections.sort(tfidfSummariesList);\n\n\t\t\t\twhile (index < tfidfSummariesList.size() && index < MAX_NUM_ATTRIBUTES_BY_FOLDER) {\n\t\t\t\t\tTFIDFSummary ts = tfidfSummariesList.get(tfidfSummariesList.size() - 1 - index);\n\t\t\t\t\twordsToReturn.add(ts.getTerm());\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.frequentWords = new ArrayList<String>(wordsToReturn);\n\t\t}\n\t\tSystem.out.println(\"Numero de palabras frecuentes: \" + this.frequentWords.size());\n\t\tfor (String w : frequentWords) System.out.println(\"FreqWord \" + w);\n\t\treturn this.frequentWords;\n\t}", "private CharSequence[] getSelections() {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n if (null != btAdapter) {\n int idx = 0;\n Set<BluetoothDevice> setDevices = btAdapter.getBondedDevices();\n CharSequence[] entries = new CharSequence[setDevices.size() + 1];\n entries[idx++] = NONE;\n\n for (BluetoothDevice btd : setDevices) {\n entries[idx++] = btd.getName();\n }\n\n // tell bluetooth to stop scanning. it's a power issue\n btAdapter.cancelDiscovery();\n return entries;\n }\n\n CharSequence[] entries = new CharSequence[1];\n entries[0] = NONE;\n return entries;\n }", "public ArrayList<String> getTerms () throws FileNotFoundException {\n String inputFile = getInputFile();\r\n Scanner scanner = new Scanner (new File (inputFile));\r\n ArrayList<String> terms = new ArrayList<String>();\r\n ArrayList<String> definitions = new ArrayList<String>();\r\n while (scanner.hasNextLine()) {\r\n terms.add(scanner.nextLine()); //took out .toLowerCase() part so it prints correctly \r\n definitions.add(scanner.nextLine());\r\n }\r\n return terms;\r\n }", "public List<CodeDefinitionSet> getTermdefinitionsList()\n {\n return termdefinitions;\n }", "public String getTerm() {\n return term;\n }", "public static List<Term> filterFindByG_T(long groupId, long termId) {\n\t\treturn getPersistence().filterFindByG_T(groupId, termId);\n\t}", "public Term[] getTermByDoc(IndexedDoc d){\n\t\treturn d.getTerms();\r\n\t}", "public List<TermListItem> getAllTermListItemsByDictionary(String table, String dictionary) {\n List<TermListItem> termListItems = new ArrayList<TermListItem>();\n\n // Select All Query\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table + \" WHERE \" + KEY_DICTIONARY + \" = '\" + dictionary + \"' ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(1).isEmpty()) {\n TermListItem termListItem = new TermListItem(Integer.parseInt(cursor.getString(0)), cursor.getString(1));\n // Adding term to list\n termListItems.add(termListItem);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list items\n return termListItems;\n }", "@GET\n @Path(\"/filter\")\n @Produces(\"text/plain\")\n public String getFilterWordList() throws JsonProcessingException {\n ObjectMapper mapper = new ObjectMapper();\n return mapper.writeValueAsString(FilterImpl.getList());\n }", "public Set<String> queryTermsConsidered(Query query, double idf_threshold){\n double idf, nDocs = this.docIDs.size();\n String term;\n\n Set<String> termsToConsider = new HashSet<String>();\n\n Iterator<String> it = query.terms.iterator();\n while(it.hasNext()){\n term = it.next();\n idf = -1;\n if(this.idfMap.containsKey(term))\n idf = Math.log(nDocs/new Double(this.idfMap.get(term)));\n if (idf >= idf_threshold){\n termsToConsider.add(term);\n }\n /*else{\n System.err.println(term + \" not considered since idf = \" + idf);\n }*/\n }\n\n return termsToConsider;\n\n }", "public List<TermListItem> getAllTermListItemsWithFilter(String table, String constraint) {\n List<TermListItem> termListItems = new ArrayList<TermListItem>();\n\n // Select All Query\n // Source: http://stackoverflow.com/questions/5186310/android-nearest-match-query-from-sqlite-db-if-input-string-value-is-bigger-tha\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table\n + \" WHERE \" + KEY_TERM + \" LIKE '%\" + constraint + \"%'\"\n + \" ORDER BY abs(length('\" + constraint + \"') - length(\" + KEY_TERM + \"))\";\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n if (!cursor.getString(1).isEmpty()) {\n TermListItem termListItem = new TermListItem(Integer.parseInt(cursor.getString(0)), cursor.getString(1));\n // Adding term to list\n termListItems.add(termListItem);\n }\n } while (cursor.moveToNext());\n }\n\n // return a list of term list items\n return termListItems;\n }", "public void setAcceptTerms(Boolean acceptTerms) {\n\t\tthis.acceptTerms = acceptTerms;\n\t}", "static QueryVariant getTermsQuery(Map<String, ?> terms, boolean mustMatchAll) {\n\t\tBoolQuery.Builder fb = QueryBuilders.bool();\n\t\tint addedTerms = 0;\n\t\tboolean noop = true;\n\t\tQueryVariant bfb = null;\n\n\t\tfor (Map.Entry<String, ?> term : terms.entrySet()) {\n\t\t\tObject val = term.getValue();\n\t\t\tif (!StringUtils.isBlank(term.getKey()) && val != null && Utils.isBasicType(val.getClass())) {\n\t\t\t\tString stringValue = val.toString();\n\t\t\t\tif (StringUtils.isBlank(stringValue)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tMatcher matcher = Pattern.compile(\".*(<|>|<=|>=)$\").matcher(term.getKey().trim());\n\t\t\t\tif (matcher.matches()) {\n\t\t\t\t\tbfb = range(matcher.group(1), term.getKey(), stringValue);\n\t\t\t\t} else {\n\t\t\t\t\tif (nestedMode()) {\n\t\t\t\t\t\tbfb = (QueryVariant) term(new org.apache.lucene.search.\n\t\t\t\t\t\t\t\tTermQuery(new Term(term.getKey(), stringValue))).build();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbfb = QueryBuilders.term().field(term.getKey()).value(v -> v.stringValue(stringValue)).build();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (mustMatchAll) {\n\t\t\t\t\tfb.must(bfb._toQuery());\n\t\t\t\t} else {\n\t\t\t\t\tfb.should(bfb._toQuery());\n\t\t\t\t}\n\t\t\t\taddedTerms++;\n\t\t\t\tnoop = false;\n\t\t\t}\n\t\t}\n\t\tif (addedTerms == 1 && bfb != null) {\n\t\t\treturn bfb;\n\t\t}\n\t\treturn noop ? null : fb.build();\n\t}", "public List<String> getTermsForField(String field, Option<String[]> types) {\n final String facetName = \"terms\";\n final AggregationBuilder aggBuilder = AggregationBuilders.terms(facetName).field(field);\n final SearchSourceBuilder searchSource = new SearchSourceBuilder().aggregation(aggBuilder);\n final List<String> indices = new ArrayList<>();\n if (types.isSome()) {\n Arrays.stream(types.get()).forEach(t -> indices.add(this.getIndexName(t)));\n } else {\n Arrays.stream(getDocumentTypes()).forEach(t->indices.add(this.getIndexName(t)));\n }\n final SearchRequest searchRequest = new SearchRequest(indices.toArray(new String[0])).source(searchSource);\n try {\n final SearchResponse response = getClient().search(searchRequest, RequestOptions.DEFAULT);\n\n final List<String> terms = new ArrayList<>();\n final Terms aggs = response.getAggregations().get(facetName);\n\n for (Bucket bucket : aggs.getBuckets()) {\n terms.add(bucket.getKey().toString());\n }\n\n return terms;\n } catch (IOException e) {\n return chuck(e);\n }\n }", "public int getTotalTerms() {\n\t\tif (dict != null) {\n\t\t\treturn dict.size();\n\t\t}\n\t\t// TODO: Implement this method\n\t\treturn 0;\n\t}", "public static List<Cancion> selectAll() {\n\t\treturn selectAll(\"\");\n\t}", "String[] getReservedWords();", "public static List<Term> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "public String showTagsOfWord(String searchTerm, HashSet<String> allTags) {\n StringBuilder stringBuilder = new StringBuilder(\"Your word \\\"\" + searchTerm + \"\\\" has \" + allTags.size()\n + (allTags.size() == 1 ? \" tag:\\n\" : \" tags:\\n\"));\n for (String tag : allTags) {\n stringBuilder.append(tag + \"\\n\");\n }\n return stringBuilder.toString();\n }", "public abstract List<LambdaTerm> containedLambdaTerms(LambdaTerm P);", "public HashSet<String> getForbiddenPrivileges() {\r\n\t\tHashSet<String> result = new HashSet<String>();\r\n\t\tint role = getCurrentRole();\r\n\t\tif ((role & User.ROLE_ADMINISTRATOR) != 0) {\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\tfor (String privilegeName : privilegeDef.keySet()) {\r\n\t\t\tint requiredRoles = privilegeDef.get(privilegeName);\r\n\t\t\tif ((requiredRoles & role) == 0) {\r\n\t\t\t\tresult.add(privilegeName);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "Collection<CrosswordEntry> getCrosswordEntries();", "public Set<String> getWords() {\n\t\treturn Collections.unmodifiableSet(this.invertedIndex.keySet());\n\t}", "public static void termsAndConditions() {\n refreshScreen();\n System.out.println(\"\\n\\n\\t\\t\\tTERMS AND CONDITIONS:\\n\\n\");\n \n transitionBuffer();\n }", "public double numTerms()\r\n\t{\r\n\t\treturn unionAll.size();\r\n\t}", "HashSet getGrantedClassNamesDirect() throws HsqlException {\n\n IntValueHashMap rights;\n HashSet out;\n Object key;\n int right;\n Iterator i;\n\n rights = rightsMap;\n out = new HashSet();\n i = rightsMap.keySet().iterator();\n\n while (i.hasNext()) {\n key = i.next();\n\n if (key instanceof String) {\n right = rights.get(key, 0);\n\n if (right == GranteeManager.ALL) {\n out.add(key);\n }\n }\n }\n\n return out;\n }", "@Override\r\n\t@CacheCable(key=\"'wfx:SensitiveWord'\" ,value=\"value\",expiration=24*60*60)\r\n\tpublic List<String> getAllSensitiveWord() {\n\t\treturn shopMapper.getAllSensitiveWord();\r\n\r\n\t}", "public Term[] getTerms(String file){\n\t\tfor (Map.Entry<String, IndexedDoc> set : index.entrySet()){\r\n\t\t\tif (set.getKey()==file){\r\n\t\t\t\treturn set.getValue().getTerms();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n @JsonProperty(\"tags\")\n @Override\n public List<? extends Tag> getTerms() {\n return (List)super.getTerms();\n }", "public static List<Term> findByGroupId(long groupId) {\n\t\treturn getPersistence().findByGroupId(groupId);\n\t}", "public String getInternalAuditServiceAgreementTermsandConditions() {\n return internalAuditServiceAgreementTermsandConditions;\n }", "List<Permission> selectAll();", "public int size() {\r\n\treturn terms.size();\r\n }", "public Expr[] Terms() throws Z3Exception\n {\n\n int n = NumTerms();\n Expr[] res = new Expr[n];\n for (int i = 0; i < n; i++)\n res[i] = Expr.Create(Context(),\n Native.getPattern(Context().nCtx(), NativeObject(), i));\n return res;\n }", "com.google.ads.googleads.v6.resources.SearchTermView getSearchTermView();", "public List<String> getAuthorizedCollections() {\n return getAuthorizedCollections(RoleType.READ);\n }", "public void makeQueryTermList() {\n for (int i = 0; i < this.stemmed_query.size(); i++) {\n boolean added = false;\n String curTerm = this.stemmed_query.get(i);\n for (int j = 0; j < this.query_terms_list.size(); j++) {\n if (this.query_terms_list.get(j).strTerm.compareTo(curTerm) == 0) {\n this.query_terms_list.get(j).timeOccur++;\n added = true;\n break;\n }\n }\n if (added == false) {\n this.query_terms_list.add(new QueryTerm(curTerm));\n }\n }\n }", "public String [] getTerm (String [] query) {\r\n String [] unique = query;\r\n //find duplicate for get unique\r\n return unique;\r\n }", "public TermsCount getIndexedTerms() throws Exception {\n return luceneIndexer.getIndexedTermsCount();\n }", "public int getTermIndex() {return termIndex;}", "public String getTermText() {\n return termText;\n }", "public Terms() {}", "public List<CharSequence> getSelectedEntries()\n {\n List<CharSequence> selectedEntries = new ArrayList<CharSequence>();\n CharSequence[] allEntries = getEntries();\n for( int i = 0; i < allEntries.length; i++ )\n {\n if( mCheckedStates[i] )\n selectedEntries.add( allEntries[i] );\n }\n return selectedEntries;\n }", "public static List<Term> findByG_T(long groupId, long termId) {\n\t\treturn getPersistence().findByG_T(groupId, termId);\n\t}", "public static ArrayList<String> getKeywords()\r\n\t{\r\n\t\treturn keywords;\r\n\t}", "public List<String> getAllUserDictionaries() {\n List<String> userDictionariesList = new ArrayList<String>();\n String dictionary;\n\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_USER_DICTIONARIES + \" ORDER BY \" + KEY_DICTIONARY;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n dictionary = cursor.getString(0);\n // Adding user dictionary to list\n userDictionariesList.add(dictionary);\n } while (cursor.moveToNext());\n }\n\n // return term list\n return userDictionariesList;\n }", "public Set<String> getWords() {\n return wordsOccurrences.keySet();\n }", "public List<String> getTokens() {\n try {\n return tkDao.getTokens();\n } catch (SQLException ex) {\n throw new RuntimeException(\"an error occurred trying to get all tokens stored in database: \" + ex.getMessage());\n }\n }", "java.util.List<java.lang.String>\n getAuthoritiesList();", "public void showListPhrases() {\r\n\t\tint i = 0;\r\n\t\tString[] array = new String[100];\r\n\t\ttry {\r\n\t\t\tstatement = SqlCon.getConnection().createStatement();\r\n\t\t\tResultSet rs = statement.executeQuery(SqlCon.PHRASE_TO_CHECK);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString phrase = rs.getString(\"word\");\r\n\t\t\t\tarray[i] = phrase;\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t} catch (SQLException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ti= i+1;\r\n\t\tarrPhrase = new String[i];\r\n\t\tarrPhrase[0] = \"None\";\r\n\t\tfor (int j = 1; j < i; j++) {\r\n\t\t\tarrPhrase[j] = array[j-1];\r\n\t\t}\r\n\t\tfor(int k= 0; k<arrPhrase.length;k++)\r\n\t\t\tSystem.out.println(arrPhrase[k]);\r\n\t}", "public String getResearchKeywords() {\r\n return this.researchKeywords;\r\n }", "public StringSet getKeywords() {\n return this.keywords;\n }", "abstract public TermEnum terms(Term t) throws IOException;" ]
[ "0.67344534", "0.640859", "0.63851607", "0.6342915", "0.6224969", "0.6174507", "0.6168991", "0.600243", "0.59847873", "0.5959234", "0.5914266", "0.5884081", "0.5880945", "0.5804586", "0.56885254", "0.5679553", "0.56454706", "0.5635992", "0.55773413", "0.55470604", "0.55425686", "0.5532709", "0.55308634", "0.5530679", "0.5499", "0.54698104", "0.54001445", "0.53471446", "0.5341427", "0.52762634", "0.5273817", "0.5259317", "0.52462035", "0.5237552", "0.52270496", "0.52190244", "0.52031505", "0.5183338", "0.51712656", "0.51643515", "0.51457876", "0.5125148", "0.51073194", "0.5106431", "0.5100477", "0.50916183", "0.508972", "0.5083036", "0.50784343", "0.50742316", "0.5065717", "0.5058835", "0.50579447", "0.5034421", "0.5033072", "0.5020167", "0.50025386", "0.49976853", "0.4992273", "0.49837038", "0.4972059", "0.49690878", "0.49559337", "0.49505135", "0.4950242", "0.49488366", "0.49381185", "0.49162734", "0.49087787", "0.4905054", "0.49027434", "0.48952195", "0.4892109", "0.48833683", "0.4881895", "0.4881564", "0.48749834", "0.48569041", "0.4854345", "0.4852419", "0.4847878", "0.4843395", "0.48433483", "0.483684", "0.48320404", "0.48309755", "0.48232543", "0.4821576", "0.48187688", "0.48163438", "0.48104325", "0.48044166", "0.48017064", "0.47967812", "0.4782549", "0.47811684", "0.47765732", "0.47669804", "0.4760654", "0.47603565" ]
0.48232883
86
private TextView isAuction; private EditText bid; private ImageView imageView;
@Override protected void onStart() { super.onStart(); ReadTask task = new ReadTask(); //task.execute("http://10.0.2.2:61902/api/GetTicket/GetComments/?ticketId=" + ticket.getTicketId()); task.execute("http://ticketapp.shiftbook.dk/api/GetTicket/GetComments/?ticketId=" + flightTickets.getTicketId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ViewHolder(View itemView) {\n super(itemView);\n /*imgOverFlow = (ImageView) itemView.findViewById(R.id.overflow);*/\n bookThumbnail = (ImageView) itemView.findViewById(R.id.book_thumbnail);\n// bookAuthor= (TextView) itemView.findViewById(R.id.book_author);\n// bookTitle = (TextView) itemView.findViewById(R.id.book_title);\n }", "public void setImage(){\n\n Bundle extras = getIntent().getExtras();\n String image = extras.getString(\"pic\");\n String imageFlower = extras.getString(\"picflower\");\n\n\n\n if(image != null) {\n int pic = getResources().getIdentifier(image + \".png\",\"drawable\",getPackageName());\n\n achvImage.setImageResource(pic);\n achvImage.setVisibility(View.VISIBLE);\n\n }else {\n int flowerPic = getResources().getIdentifier(imageFlower + \".jpg\", \"drawable\", getPackageName());\n achvImage.setImageResource(flowerPic);\n achvImage.setVisibility(View.VISIBLE);\n }\n\n achvImage.setImageResource(R.drawable.medaldetails);\n\n\n String text = extras.getString(\"text\");\n achvDetails.setText(text);\n\n String title = extras.getString(\"title\");\n achvTitle.setText(title);\n\n int points1 = extras.getInt(\"points\");\n points.setText(\"Points: \" + points1);\n\n\n String desText1 = extras.getString(\"achDesA\");\n des1.setText(desText1);\n\n\n\n\n }", "private void castLayoutElements() {\n edtTaxName = (AppCompatEditText) findViewById(R.id.edtTaxName);\n edtTaxPercentage = (AppCompatEditText) findViewById(R.id.edtTaxPercentage);\n edtTaxRegistration = (AppCompatEditText) findViewById(R.id.edtTaxRegistration);\n rdgrpPercentOfAmount = (RadioGroup) findViewById(R.id.rdgrpPercentOfAmount);\n rdbtnYes = (RadioButton) findViewById(R.id.rdbtnYes);\n rdbtnNo = (RadioButton) findViewById(R.id.rdbtnNo);\n linlaPercentageOfAmount = (LinearLayout) findViewById(R.id.linlaPercentageOfAmount);\n edtTaxPercentageOfAmount = (AppCompatEditText) findViewById(R.id.edtTaxPercentageOfAmount);\n imgvwWhatIsThis = (ImageView) findViewById(R.id.imgvwWhatIsThis);\n\n /** CHECK PERCENTAGE OF AMOUNT RADIOBUTTON CLICK **/\n rdgrpPercentOfAmount.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n int position = rdgrpPercentOfAmount.indexOfChild(findViewById(checkedId));\n switch (position) {\n case 0:\n /** SET ENTIRE AMOUNT TAXABLE **/\n TAX_COMPLETE_AMOUNT = true;\n\n /** HIDE THE PERCENTAGE OF AMOUNT AppCompatEditText **/\n linlaPercentageOfAmount.setVisibility(View.GONE);\n break;\n case 1:\n /** SET PART OF AMOUNT TAXABLE **/\n TAX_COMPLETE_AMOUNT = false;\n\n /** SHOW THE PERCENTAGE OF AMOUNT AppCompatEditText **/\n linlaPercentageOfAmount.setVisibility(View.VISIBLE);\n break;\n default:\n break;\n }\n }\n });\n\n /** SHOW THE NOTICE (WHAT IS THIS) **/\n imgvwWhatIsThis.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n MaterialDialog dialog = new MaterialDialog.Builder(TaxModifier.this)\n .title(R.string.tax_creator_popup_title)\n .content(R.string.tax_creator_what_is_this)\n .positiveText(R.string.tax_creator_popup_title_dismiss)\n .theme(Theme.LIGHT)\n .icon(ContextCompat.getDrawable(TaxModifier.this, R.drawable.ic_info_outline_white_24dp))\n .typeface(\"HelveticaNeueLTW1G-MdCn.otf\", \"HelveticaNeueLTW1G-Cn.otf\")\n .show();\n }\n });\n }", "public MyHolder(View itemView) {\n super(itemView);\n item = itemView.findViewById(R.id.item);\n noofpices = itemView.findViewById(R.id.noofpices);\n cost = itemView.findViewById(R.id.cost);\n amount = itemView.findViewById(R.id.total);\n plus = itemView.findViewById(R.id.plus);\n// minus = (ImageButton)itemView.findViewById(R.id.minus);\n delete = itemView.findViewById(R.id.del);\n\n // id= (TextView)itemView.findViewById(R.id.id);\n }", "public interface ItemView {\n\n void setFocus(boolean isFocused);\n\n void setImage(String url);\n}", "public void setImage(Image itemImg) \n {\n img = itemImg;\n }", "@Override\r\n\tpublic void onClick(View v) {\n\t\ttxt1.setVisibility(View.GONE);\r\n\t txt2.setVisibility(View.GONE);\r\n\t txt3.setVisibility(View.GONE);\r\n\t txt4.setVisibility(View.GONE);\r\n\t txt5.setVisibility(View.GONE);\r\n\t txt6.setVisibility(View.GONE);\r\n\t /* txt7.setVisibility(View.GONE);\r\n\t txt8.setVisibility(View.GONE);*/\r\n\t txt9.setVisibility(View.GONE);\r\n\t txt10.setVisibility(View.GONE);\r\n\t \r\n\t img2.setVisibility(View.VISIBLE);\r\n\t img3.setVisibility(View.VISIBLE);\r\n\t img4.setVisibility(View.VISIBLE);\r\n\t \r\n\t btn2.setVisibility(View.VISIBLE);\r\n\t btn3.setVisibility(View.VISIBLE);\r\n\t btn4.setVisibility(View.VISIBLE);\r\n\t back.setVisibility(View.GONE);\r\n\t scr.setVisibility(View.GONE);\r\n\t myBrowser.setVisibility(View.GONE);\r\n\t scr.setVisibility(View.GONE);\r\n\t \r\n\t \r\n\t\t\r\n\t}", "@Override\n public void onClick(View v) {\n\n if (quoteEntity.isIskeyvisible()) {\n quoteEntity.setIskeyvisible(false);\n holder.rvhlknowmore.setVisibility(View.GONE);\n\n holder.ivArrow.setImageDrawable(mContext.getResources().getDrawable(R.drawable.down_arrow_grey));\n\n\n } else {\n quoteEntity.setIskeyvisible(true);\n holder.ivArrow.setImageDrawable(mContext.getResources().getDrawable(R.drawable.up_arrow_blue));\n\n String pre=\"\",par=\"\",spe=\"\";\n if(quoteEntity.getPre_Closer_Fixed() != null) {\n pre = \" = \" + quoteEntity.getPre_Closer_Fixed() + \" %\";\n }\n else\n {\n pre = \" = \";\n }\n\n if(quoteEntity.getPart_Pmt_Fixed() != null) {\n par = \" = \" + quoteEntity.getPart_Pmt_Fixed() + \" %\";\n }\n else\n {\n par = \" = \";\n }\n\n if(quoteEntity.getWomen_roi() != null) {\n spe = \" = \" + quoteEntity.getWomen_roi() + \" %\";\n }\n else\n {\n spe = \" = \";\n }\n\n\n holder.tvDetailsCount1.setText(pre);\n holder.tvDetailsCount2.setText(par);\n holder.tvDetailsCount3.setText(\" = Yes\");\n holder.tvDetailsCount4.setText(spe);\n holder.tvDetailsCount5.setText(\" = Yes\");\n holder.tvDetailsCount6.setText(\" = Yes\");\n\n\n\n holder.rvhlknowmore.setVisibility(View.VISIBLE);\n\n\n }\n }", "public ItemViewHolder(View itemView) {\n super(itemView);\n iv_image = (RoundedImageView)itemView.findViewById(R.id.item_photo);\n tv_title = (TextView)itemView.findViewById(R.id.item_title);\n tv_subtitle = (TextView)itemView.findViewById(R.id.item_subtitle);\n iv_image2 = (ImageView)itemView.findViewById(R.id.imageView1);\n }", "public ViewHolder(View itemView) {\n super(itemView);\n hospname= itemView.findViewById(R.id.hospname);\n address= itemView.findViewById(R.id.hospaddress);\n rrr= itemView.findViewById(R.id.rrrtext);\n hospimage= itemView.findViewById(R.id.hospital_image);\n callambulance= itemView.findViewById(R.id.bookambulancebutton);\n getroom= itemView.findViewById(R.id.bookroombutton);\n /*price= itemView.findViewById(R.id.bedprice);\n cat= itemView.findViewById(R.id.bedcat);\n bedimage= itemView.findViewById(R.id.bedimage);*/\n\n\n }", "public ViewHolder(View view) {\r\n super(view);\r\n img = (ImageView) view.findViewById(R.id.recycleimg);\r\n// picture_text = (TextView) view.findViewById(R.id.picture_text);\r\n// picture_img = (TextView) view.findViewById(R.id.picture_img);\r\n// picture_heart = (TextView) view.findViewById(R.id.picture_heart);\r\n// picture_date = (TextView) view.findViewById(R.id.picture_date);\r\n// picture_num = (TextView) view.findViewById(R.id.picture_num);\r\n }", "public void onClick(View vw) {\n try {\n Bitmap bitmap = QRCodeHelper.encodeAsBitmap(mETWaybillId.getText().toString(), BarcodeFormat.QR_CODE, 300, 300);\n if (bitmap != null) {\n mIVQRCode.setImageBitmap(bitmap);\n } else {\n mTVDescription.setText(\"Bitmap null\");\n }\n } catch (Exception e) {\n Log.e(\"MainActivity\", \"Exe \", e);\n }\n }", "private void prepareView(){\n mAvatar = (ImageButton)findViewById(R.id.btnAvatar);\n mAvatar.setOnClickListener(this);\n\n mName = (TextView)findViewById(R.id.tvName);\n mEmail = (TextView)findViewById(R.id.tvEmail);\n mWelcome = (TextView)findViewById(R.id.tvSelectionTitle);\n\n mDesigner = (ImageButton)findViewById(R.id.btnDesigner);\n mDesigner.setOnClickListener(this);\n\n mDeveloper = (ImageButton)findViewById(R.id.btnDeveloper);\n mDeveloper.setOnClickListener(this);\n }", "public RecyclerCardViewHolder(View itemView) {\n super(itemView);\n ivLsPicture = (ImageView) itemView.findViewById(R.id.ivLsPicture);\n tvTitle = (TextView) itemView.findViewById(R.id.tvTitle);\n // textView5 = (TextView) itemView.findViewById(R.id.textView5);\n }", "public taskimage(ImageView t134){\n t34=t134;\n\n\n }", "public void bind(Post post) {\n tvDescription.setText(post.getDescription());\n tvUsername.setText(post.getUser().getUsername());\n tvTime.setText(Post.calculateTimeAgo(post.getCreatedAt()));\n\n ParseFile image = post.getImage();\n if (image != null) {\n Glide.with(context).load(image.getUrl()).into(ivImage);\n }\n\n itemView.findViewById(R.id.ivImage).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(context, PostDetailActivity.class);\n intent.putExtra(\"post\", Parcels.wrap(post));\n context.startActivity(intent);\n }\n });\n\n //Change heart to be liked\n ivLike.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Resources res = context.getResources();\n if(ivLike.getBackground().equals(res.getDrawable(R.drawable.ufi_heart_active))) {\n Drawable drawable = res.getDrawable(R.drawable.ufi_heart);\n ivLike.setBackground(drawable);\n }\n else {\n Drawable drawable = res.getDrawable(R.drawable.ufi_heart_active);\n ivLike.setBackground(drawable);\n }\n }\n });\n\n //change save Image\n ivSave.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Resources res = context.getResources();\n if(ivSave.getBackground().equals(res.getDrawable(R.drawable.ufi_save_active))) {\n Drawable drawable = res.getDrawable(R.drawable.ufi_save_icon);\n ivSave.setBackground(drawable);\n }\n else {\n Drawable drawable = res.getDrawable(R.drawable.ufi_save_active);\n ivSave.setBackground(drawable);\n }\n }\n });\n\n }", "protected ImageView getImageView(){\n\t\treturn iv1;\n\t}", "@Override\n public void onClick(View v) {\n String textContent = \"您好啊\";\n if (TextUtils.isEmpty(textContent)) {\n// Toast.makeText(ThreeActivity.this, \"您的输入为空!\", Toast.LENGTH_SHORT).show();\n return;\n }\n Bitmap image = CodeUtils.createImage(textContent, 400, 400, BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher_round));\n imageView.setImageBitmap(image);\n }", "private void getAttributes(View view) {\n firstName = view.findViewById(R.id.user_first_name);\n vibez = view.findViewById(R.id.vibePointsNum);\n vibezString = view.findViewById(R.id.myVibe);\n myBooksRecyclerView = view.findViewById(R.id.my_books_recycler_view);\n booksIReadRecyclerView = view.findViewById(R.id.books_i_read_recycler_view);\n ownerImg = (CircleImageView) view.findViewById(R.id.circ_image);\n }", "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 ViewHolder(View itemView) {\n super(itemView);\n\n mView = itemView;\n mUsernameTv = (TextView) mView.findViewById(R.id.usernameTv);\n mEmailTv = (TextView) mView.findViewById(R.id.emailTv);\n mFriendIv = (ImageView) mView.findViewById(R.id.friendIv);\n mYouTv = (TextView) mView.findViewById(R.id.youTv);\n\n mIsFriend = false;\n }", "public void bindViews(){\n txtBio = (TextView) findViewById(R.id.txtBio);\n txtSpeakerName = (TextView) findViewById(R.id.txtSpeakerName);\n imgSpeaker = (ImageView) findViewById(R.id.imgSpeaker);\n speaker = getSpeaker();\n\n\n String image_name = speaker.getImage().toUpperCase().replace(\" \", \"_\");\n String url = IMAGE_URL + image_name;\n ImageLoader imgLoader = AppController.getInstance().getImageLoader();\n imgLoader.get(url, new ImageLoader.ImageListener() {\n @Override\n public void onResponse(ImageLoader.ImageContainer response, boolean isImmediate) {\n if (response.getBitmap() != null) {\n imgSpeaker.setAdjustViewBounds(true);\n imgSpeaker.setImageBitmap(response.getBitmap());\n\n }\n }\n\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n if(speaker!=null) {\n txtBio.setText(speaker.getBio());\n txtSpeakerName.setText(speaker.getName());\n }\n }", "ViewHolder(View itemView) {\n super(itemView);\n myImageView = itemView.findViewById(R.id.info_image); // myTextView = itemView.findViewById(R.id.info_text)\n itemView.setOnClickListener(this);\n }", "private void initUI() {\n\t\timageview = (ImageView) v.findViewById(R.id.shezhi);\r\n\t\timageview.setOnClickListener(this);\r\n\r\n\t\tmytaobao = (ImageView) v.findViewById(R.id.taobao_go);\r\n\t\tmytaobao.setOnClickListener(this);\r\n\r\n\t\twuliu = (ImageView) v.findViewById(R.id.wuliu);\r\n\t\twuliu.setOnClickListener(this);\r\n\r\n\t\tgouwuche = (ImageView) v.findViewById(R.id.gouwuche);\r\n\t\tgouwuche.setOnClickListener(this);\r\n\r\n\t\tchadingdan = (ImageView) v.findViewById(R.id.dingdan);\r\n\t\tchadingdan.setOnClickListener(this);\r\n\r\n\t\tshoucang = (ImageView) v.findViewById(R.id.shoucang);\r\n\t\tshoucang.setOnClickListener(this);\r\n\t}", "public interface IDetailView {\n public void setImage(String url);\n\n // mètodes per assignar el nom i cognom\n public void setNom(String text);\n public void setDivisio(String text);\n public void setNivell(String text);\n public void setObjPref(String text);\n public void setTipusAtac(String text);\n /*public void setUrlImatge(String text) ;*/\n}", "@Override\n public void onClick(View v) {\n if (\"\".equals(answer_content.getText().toString() + \"\")) {\n Toast.makeText(AnswerQuestionActivity.this, \"请输入您的答案!\", 0)\n .show();\n } else {\n showprocessdialog();\n if (imgList.size() > 0) {\n uploadImg(imgList);\n sumbmit.setEnabled(false);\n } else {\n showprocessdialog();\n sumbmit.setEnabled(false);\n publishQueston();\n }\n\n }\n }", "public ShowDataViewHolder(final View itemView) {\n super(itemView);\n // image_url = (ImageView) itemView.findViewById(R.id.fetch_image);\n image_title = (TextView) itemView.findViewById(R.id.fetch_image_title);\n\n\n }", "@SuppressLint(\"SimpleDateFormat\")\r\n\tprivate void initViews() {\n\r\n\t\tTypeface teko = Typeface.createFromAsset(getAssets(), \"Teko_Light.ttf\");\r\n\t\tTypeface lato = Typeface.createFromAsset(getAssets(),\r\n\t\t\t\t\"Lato-Regular.ttf\");\r\n\t\tTypeface teko_bold = Typeface.createFromAsset(getAssets(),\r\n\t\t\t\t\"Teko-Bold.ttf\");\r\n\r\n\t\tiv_client = (ImageView) findViewById(R.id.iv_client);\r\n\t\tiv_trainer = (ImageView) findViewById(R.id.iv_trainer);\r\n\r\n\t\ttv_clientname = (TextView) findViewById(R.id.tv_clientname);\r\n\t\ttv_clientname.setTypeface(teko_bold);\r\n\t\ttv_clientplace = (TextView) findViewById(R.id.tv_clientplace);\r\n\t\ttv_clientplace.setTypeface(lato);\r\n\t\ttv_client_session_date = (TextView) findViewById(R.id.tv_client_session_date);\r\n\t\ttv_client_session_date.setTypeface(lato);\r\n\t\ttv_client_session_time = (TextView) findViewById(R.id.tv_client_session_time);\r\n\t\ttv_client_session_time.setTypeface(lato);\r\n\t\ttv_trainername = (TextView) findViewById(R.id.tv_trainername);\r\n\t\ttv_trainername.setTypeface(teko_bold);\r\n\t\ttv_trainerplace = (TextView) findViewById(R.id.tv_trainerplace);\r\n\t\ttv_trainerplace.setTypeface(lato);\r\n\t\tbtn_missed = (Button) findViewById(R.id.btn_missed);\r\n\t\tbtn_missed.setTypeface(teko);\r\n\t\td = new DialogView();\r\n\r\n\t\ttv_clientname.setText(GlobalVariable.trainerPageClientName\r\n\t\t\t\t.toUpperCase());\r\n\t\ttv_client_session_date.setText(new SimpleDateFormat(\"MMM dd, yyyy\")\r\n\t\t\t\t.format(new Date()));\r\n\t\ttv_client_session_time.setText(\"demo\");\r\n\t\ttv_trainername.setText(GlobalVariable.trainerPageTrainerName\r\n\t\t\t\t.toUpperCase());\r\n\r\n\t\tSystem.out.println(\"photo c\" + GlobalVariable.trainerPageClientPhoto);\r\n\t\tSystem.out.println(\"photo t\" + GlobalVariable.trainerPageTrainerPhoto);\r\n\r\n\t\tif (GlobalVariable.trainerPageClientPhoto.length() > 0) {\r\n\t\t\tSystem.out.println(\"1\");\r\n\t\t\tiv_trainer.setBackgroundResource(R.drawable.test);\r\n\t\t\tnew DownloadImageTask(iv_client)\r\n\t\t\t\t\t.execute(GlobalVariable.trainerPageClientPhoto);\r\n\r\n\t\t}\r\n\r\n\t\tif (GlobalVariable.trainerPageTrainerPhoto.length() > 0) {\r\n\t\t\tSystem.out.println(\"2\");\r\n\t\t\tnew DownloadImageTask(iv_trainer)\r\n\t\t\t\t\t.execute(GlobalVariable.trainerPageTrainerPhoto);\r\n\t\t\tiv_client.setBackgroundResource(R.drawable.test);\r\n\r\n\t\t}\r\n\t\tif (GlobalVariable.trainerPageClientPhoto.length() > 0\r\n\t\t\t\t&& GlobalVariable.trainerPageTrainerPhoto.length() > 0) {\r\n\t\t\tSystem.out.println(\"3\");\r\n\t\t\tnew DownloadImageTask(iv_client)\r\n\t\t\t\t\t.execute(GlobalVariable.trainerPageClientPhoto);\r\n\r\n\t\t\tnew DownloadImageTask(iv_trainer)\r\n\t\t\t\t\t.execute(GlobalVariable.trainerPageTrainerPhoto);\r\n\r\n\t\t}\r\n\t\tif (GlobalVariable.trainerPageClientPhoto.length() == 0\r\n\t\t\t\t&& GlobalVariable.trainerPageTrainerPhoto.length() == 0) {\r\n\t\t\tSystem.out.println(\"4\");\r\n\t\t\tiv_trainer.setBackgroundResource(R.drawable.test);\r\n\t\t\tiv_client.setBackgroundResource(R.drawable.test);\r\n\t\t}\r\n\r\n\t\t// managing start and end time\r\n\t\tif (GlobalVariable.trainerStartTime.equals(\"\")\r\n\t\t\t\t&& GlobalVariable.trainerEndTime.equals(\"\")) {\r\n\t\t\ttv_client_session_time.setText(\"No active session\");\r\n\t\t\ttv_client_session_date.setText(\"No active session\");\r\n\r\n\t\t\tbtn_missed.setAlpha(0.3f);\r\n\t\t\tbtn_missed.setText(\"NO SESSION\");\r\n\t\t\tbtn_missed.setEnabled(false);\r\n\t\t} else {\r\n\r\n\t\t\tString startTime = \"\", endTime = \"\";\r\n\t\t\tlong total_time = 0;\r\n\t\t\tString st_time_text = GlobalVariable.trainerStartTime.substring(10,\r\n\t\t\t\t\t16);\r\n\t\t\tSystem.out.println(\"st time text: \" + st_time_text);\r\n\r\n\t\t\tString st_date = GlobalVariable.trainerStartTime.substring(0, 10);\r\n\t\t\tSystem.out.println(\"st_date : \" + st_date);\r\n\r\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"kk:mm\");\r\n\t\t\tSimpleDateFormat dateFormat2 = new SimpleDateFormat(\"hh:mm aa\");\r\n\t\t\tSimpleDateFormat dateFormat3 = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\tSimpleDateFormat dateFormat4 = new SimpleDateFormat(\"MMM dd,yyyy\");\r\n\t\t\tSimpleDateFormat dateFormat5 = new SimpleDateFormat(\r\n\t\t\t\t\t\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\ttry {\r\n\t\t\t\tDate date = dateFormat.parse(st_time_text);\r\n\t\t\t\tDate fulldate = dateFormat5\r\n\t\t\t\t\t\t.parse(GlobalVariable.trainerStartTime.substring(0, 19));\r\n\t\t\t\tSystem.out.println(\"full date: \"\r\n\t\t\t\t\t\t+ GlobalVariable.trainerStartTime.substring(0, 19));\r\n\r\n\t\t\t\tlong start_date_obj = fulldate.getTime();\r\n\t\t\t\tSystem.out.println(\"AA:\" + start_date_obj);\r\n\t\t\t\tstartTime = dateFormat2.format(date);\r\n\t\t\t\tLog.e(\"Time\", startTime);\r\n\r\n\t\t\t\tSystem.out.println(\"BB:\" + GlobalVariable.ytime);\r\n\r\n\t\t\t\tstDate = dateFormat3.parse(st_date);\r\n\t\t\t\tstartDate = dateFormat4.format(stDate);\r\n\r\n\t\t\t\t// total_time = start_date_obj\r\n\t\t\t\t// + (Integer.parseInt(GlobalVariable.ytime) * 60 * 1000);\r\n\t\t\t\ttotal_time = start_date_obj;\r\n\t\t\t\tSystem.out.println(\"CC:\" + total_time);\r\n\t\t\t\tSystem.out.println(\"DD:\" + System.currentTimeMillis());\r\n\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t}\r\n\r\n\t\t\ttv_client_session_date.setText(startDate);\r\n\r\n\t\t\tString end_time_text = GlobalVariable.trainerEndTime.substring(10,\r\n\t\t\t\t\t16);\r\n\t\t\tSystem.out.println(\"end time text: \" + end_time_text);\r\n\r\n\t\t\tSimpleDateFormat dtFormat = new SimpleDateFormat(\"kk:mm\");\r\n\t\t\tSimpleDateFormat dtFormat2 = new SimpleDateFormat(\"hh:mm aa\");\r\n\t\t\ttry {\r\n\t\t\t\tDate date = dtFormat.parse(end_time_text);\r\n\r\n\t\t\t\tendTime = dtFormat2.format(date);\r\n\t\t\t\tLog.e(\"Time end\", endTime);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t}\r\n\r\n\t\t\t// set the session time\r\n\t\t\ttv_client_session_time.setText(startTime + \"-\" + endTime);\r\n\t\t\tSystem.out.println(\"status is:\"\r\n\t\t\t\t\t+ GlobalVariable.TrainerMissedButtonStatus);\r\n\r\n\t\t\tif (GlobalVariable.TrainerMissedButtonStatus.equals(\"0\")) {\r\n\r\n\t\t\t\tSystem.out.println(\"STATUS\");\r\n\r\n\t\t\t\tbtn_missed.setAlpha(0.3f);\r\n\t\t\t\tbtn_missed.setText(\"NO SESSION\");\r\n\t\t\t\tbtn_missed.setEnabled(false);\r\n\r\n\t\t\t} else if (GlobalVariable.TrainerMissedButtonStatus.equals(\"1\")) {\r\n\r\n\t\t\t\t// check here\r\n\t\t\t\t// if current time is > than start time + y mins\r\n\t\t\t\tLog.d(\"Status\", GlobalVariable.TrainerMissedButtonStatus);\r\n\t\t\t\tSystem.out\r\n\t\t\t\t\t\t.println(\"current time:\" + System.currentTimeMillis());\r\n\t\t\t\tif (System.currentTimeMillis() > total_time) {\r\n\t\t\t\t\tSystem.out.println(\"greater\");\r\n\t\t\t\t\tbtn_missed.setText(\"MISSED SESSION\");\r\n\t\t\t\t\tbtn_missed.setEnabled(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"smaller\");\r\n\t\t\t\t\tbtn_missed.setAlpha(0.3f);\r\n\t\t\t\t\tbtn_missed.setText(\"MISSED SESSION\");\r\n\t\t\t\t\tbtn_missed.setEnabled(false);\r\n\t\t\t\t}\r\n\r\n\t\t\t} else if (GlobalVariable.TrainerMissedButtonStatus.equals(\"2\")) {\r\n\r\n\t\t\t\tbtn_missed.setAlpha(0.3f);\r\n\t\t\t\tbtn_missed.setText(\"SESSION CONFIRMED\");\r\n\t\t\t\tbtn_missed.setEnabled(false);\r\n\r\n\t\t\t} else if (GlobalVariable.TrainerMissedButtonStatus.equals(\"3\")) {\r\n\r\n\t\t\t\tbtn_missed.setAlpha(0.3f);\r\n\t\t\t\tbtn_missed.setText(\"MARKED ABSENT\");\r\n\t\t\t\tbtn_missed.setEnabled(false);\r\n\t\t\t} else if (GlobalVariable.TrainerMissedButtonStatus.equals(\"\")) {\r\n\r\n\t\t\t\tbtn_missed.setAlpha(0.3f);\r\n\t\t\t\tbtn_missed.setText(\"NO SESSION\");\r\n\t\t\t\tbtn_missed.setEnabled(false);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "private void setupView() {\n\t\timg=(ImageView) findViewById(R.id.imageView1);\n\t}", "public InstagramViewHolder(View itemView) {\n super(itemView);\n mInstagramView = (ImageView) itemView.findViewById(R.id.image_view_instagram);\n mInstagramTextView = (TextView) itemView.findViewById(R.id.text_view_instagram);\n\n }", "private void setQuestionView() {\n\n if (currentQ.getIsImageQuestion()) {\n\n radioGroup.clearCheck();\n\n byte [] imageInByte = questionList.get(qid).getImageResource();\n\n ByteArrayInputStream imageStream = new ByteArrayInputStream(imageInByte);\n Bitmap theImage = BitmapFactory.decodeStream(imageStream);\n imageView.setImageBitmap(theImage);\n imageView.setVisibility(View.VISIBLE);\n\n txtQuestionNumber.setText(\"Question \" + (qid + 1));\n question.setText(currentQ.getQuestion());\n radio0.setText(currentQ.getA1());\n radio1.setText(currentQ.getA2());\n radio2.setText(currentQ.getA3());\n radio3.setText(currentQ.getA4());\n\n qid++;\n\n }else {\n\n radioGroup.clearCheck();\n\n imageView.setVisibility(View.GONE);\n\n txtQuestionNumber.setText(\"Question \" + (qid + 1));\n question.setText(currentQ.getQuestion());\n radio0.setText(currentQ.getA1());\n radio1.setText(currentQ.getA2());\n radio2.setText(currentQ.getA3());\n radio3.setText(currentQ.getA4());\n\n qid++;\n\n\n }\n }", "private void initComponent() {\r\n\t\tButton close = (Button) this.findViewById(R.id.btnClose);\r\n\t\tclose.setOnClickListener(mOnClickListener);\r\n\t\tmSend = (Button) this.findViewById(R.id.btnSend);\r\n\t\tmTake = (Button) this.findViewById(R.id.btnPhoto);\r\n\t\tmSend.setOnClickListener(mOnClickListener);\r\n\t\tmTake.setOnClickListener(mOnClickListener);\r\n\t\tmTextNum = (TextView) this.findViewById(R.id.tv_text_limit);\r\n\t\tmEdit = (EditText) this.findViewById(R.id.etEdit);\r\n\t\timg = (ImageView)findViewById(R.id.photo_take);\r\n\t\tmEdit.addTextChangedListener(new TextWatcher() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before,\r\n\t\t\t\t\tint count) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tmText = mEdit.getText().toString();\r\n\t\t\t\tint len = mText.length();\r\n\t\t\t\tif (len <= 140) {\r\n\t\t\t\t\tlen = 140 - len;\r\n\t\t\t\t\tmTextNum.setTextColor(R.color.dark_blue);\r\n\t\t\t\t\tif (!mSend.isEnabled())\r\n\t\t\t\t\t\tmSend.setEnabled(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlen = len - 140;\r\n\t\t\t\t\tmTextNum.setTextColor(Color.RED);\r\n\t\t\t\t\tif (mSend.isEnabled())\r\n\t\t\t\t\t\tmSend.setEnabled(false);\r\n\t\t\t\t}\r\n\t\t\t\tmTextNum.setText(String.valueOf(len));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\r\n\t\t\t\t\tint after) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void afterTextChanged(Editable s) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\r\n\t\t\t\ttxt1.setVisibility(View.VISIBLE);\r\n\t\t\t txt2.setVisibility(View.VISIBLE);\r\n\t\t\t txt3.setVisibility(View.VISIBLE);\r\n\t\t\t txt4.setVisibility(View.VISIBLE);\r\n\t\t\t txt5.setVisibility(View.VISIBLE);\r\n\t\t\t txt9.setVisibility(View.VISIBLE);\r\n\t\t\t txt10.setVisibility(View.VISIBLE);\r\n\t\t\t \r\n\t\t\t img2.setVisibility(View.GONE);\r\n\t\t\t img3.setVisibility(View.GONE);\r\n\t\t\t img4.setVisibility(View.GONE);\r\n\t\t\t \r\n\t\t\t btn2.setVisibility(View.GONE);\r\n\t\t\t btn3.setVisibility(View.GONE);\r\n\t\t\t btn4.setVisibility(View.GONE);\r\n\t\t\t back.setVisibility(View.VISIBLE);\r\n\t\t\t \r\n\t\t\t txt6.setVisibility(View.GONE);\r\n\t\t\t myBrowser.setVisibility(View.GONE);\r\n\t\t\t //txt7.setVisibility(View.GONE);\r\n\t\t\t // txt8.setVisibility(View.GONE);\r\n\t\t\t scr.setVisibility(View.GONE);\r\n\r\n\t\t\t}", "@Override\n\t\t public void onClick(View v) {\n\t\t\t String n = holder.c_name.getText().toString();\n\t\t\t String d = holder.publicAd_discription.getText().toString();\n\t\t\t String p = holder.publicAd_phone.getText().toString();\n\t\t\t String pl = holder.publicAd_Places.getText().toString();\n\n\n\t\t\t //_______GET ID OF THE ADVERTISEMENT_________\n\t\t\t DocumentSnapshot snapshot = getSnapshots()\n\t\t\t .getSnapshot(holder.getAdapterPosition());\n\t\t\t String ss = snapshot.getId();\n\t\t\t Intent i = new Intent(AdsOfFollowingActivity.this,ShowAdFromProfileActivity.class);\n\t\t\t i.putExtra(\"documentId\", ss);\n\t\t\t i.putExtra(\"n\", n);\n\t\t\t i.putExtra(\"d\", d);\n\t\t\t i.putExtra(\"p\", p);\n\t\t\t i.putExtra(\"pl\", pl);\n\t\t\t i.putExtra(\"Publisher\",PositionC);\n\n\t\t\t Upload upload = new Upload();\n\t\t\t i.putExtra(\"imageUrl\", upload.getImageUrl());\n\t\t\t startActivity(i);\n\t\t }", "@Override\n public void onClick(View v) {\n int id= Integer.parseInt(Global.getId());\n mydb.update_user(1,id);\n mydb.insertImage(num,id);\n mydb.close();\n Global.setImage(num);\n startActivity(new Intent(CharSetUp.this,Buttons.class)); // metabainei sthn Buttons\n }", "public void onClick(View v)\r\n\t {\n\t \tDouble d1=Double.parseDouble(edt1.getText().toString());\r\n\t \tDouble d2=Double.parseDouble(edt2.getText().toString());\r\n\t \tDouble bmi= d1/((d2)*(d2));\r\n\t \r\n\t String s=Double.toString(bmi);\r\n\t tv.setText(s);\r\n\t \r\n\t Toast.makeText(Bmi.this,\"Your BMI is \"+bmi, Toast.LENGTH_LONG).show();\r\n\t }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_water);\n\n\n body = (TextView)findViewById(R.id.waterBody);\n body.setEnabled(false);\n piscesButton = (RadioButton) findViewById(R.id.piscesRadio);\n cancerButton = (RadioButton) findViewById(R.id.cancerRadio);\n scorpioButton = (RadioButton) findViewById(R.id.scorpioRadio);\n\n water = (ImageView) findViewById(R.id.waterPic);\n info = new SignInfo();\n\n\n backButton();\n }", "public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }", "public CartHolder(View itemView) {\n super(itemView);\n productname= (TextView) itemView.findViewById(R.id.productname);\n description= (TextView) itemView.findViewById(R.id.description);\n price= (TextView) itemView.findViewById(R.id.price);\n mrp= (TextView) itemView.findViewById(R.id.mrp);\n cquantity= (TextView) itemView.findViewById(R.id.cartqty);\n removefromcart= (CheckBox) itemView.findViewById(R.id.removefromcart);\n buynow= (Button) itemView.findViewById(R.id.buynow);\n proimg = (ImageView) itemView.findViewById(R.id.proimg);\n /*test=itemView.findViewById(R.id.testtext);\n checkBox=itemView.findViewById(R.id.test);*/\n //fitemView.setOnClickListener(this);\n\n }", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n ((TextView) view.findViewById(R.id.Title)).setText(cursor.getString(cursor.getColumnIndex(\"Title\")));\n ((TextView) view.findViewById(R.id.Mood)).setText(cursor.getString(cursor.getColumnIndex(\"Mood\")));\n ((TextView) view.findViewById(R.id.Timestamp)).setText(cursor.getString(cursor.getColumnIndex(\"Timestamp\")));\n String mood = cursor.getString(cursor.getColumnIndex(\"Mood\"));\n ImageView moodimage = view.findViewById(R.id.Moodimage);\n switch (mood) {\n case \"Angry\":\n moodimage.setImageResource(R.drawable.angry_egg);\n break;\n case \"Happy\":\n moodimage.setImageResource(R.drawable.happy_egg);\n break;\n case \"Confused\":\n moodimage.setImageResource(R.drawable.tired_egg);\n break;\n case \"Sad\":\n moodimage.setImageResource(R.drawable.sad_egg);\n break;\n\n }\n }", "ViewHolder(View itemView) {\n super(itemView);\n //Initialize the views\n imageView = (NetworkImageView) itemView.findViewById(R.id.foto_ustad);\n nama = (TextView) itemView.findViewById(R.id.nama_list);\n alamat = (TextView) itemView.findViewById(R.id.alamat_list);\n bidang = (TextView) itemView.findViewById(R.id.bidang_list);\n harga = (TextView) itemView.findViewById(R.id.hargalist);\n itemView.setOnClickListener(this);\n }", "@Override\n public void onClick(View view) {\n switch (view.getId()){\n case R.id.temp_rbt:\n isTemp = true;\n break;\n case R.id.temp_rbf:\n isTemp = false;\n break;\n case R.id.idf_rbt:\n isIdf = true;\n break;\n case R.id.idf_rbf:\n isIdf = false;\n break;\n case R.id.sig_rbt:\n isSig = true;\n break;\n case R.id.sig_rbf:\n isSig = false;\n break;\n case R.id.healthcode_rbt:\n isHcode = true;\n break;\n case R.id.healthcode_rbf:\n isHcode = false;\n break;\n }\n }", "public void onClick(View v) {\n if(v.getId()== R.id.btn_price){\n Message message = Message.obtain();\n message.what = 8;\n Bundle bundle = new Bundle();\n bundle.putInt(\"payType\",payType);\n message.setData(bundle);\n mHandler.sendMessage(message);\n dismiss();\n }\n if(v.getId()== R.id.ll_weixin){\n payType=1;\n iv_checked.setVisibility(View.VISIBLE);\n iv_zhifubao_checked.setVisibility(View.GONE);\n\n }\n if(v.getId()== R.id.ll_zhifubao){\n payType=2;\n iv_checked.setVisibility(View.GONE);\n iv_zhifubao_checked.setVisibility(View.VISIBLE);\n }\n\n }", "@Override\n\tpublic void onClick(ClickEvent event) {\n\t\tImage image=(Image)event.getSource();\n\t\tif (image.getAltText().equals(\"nonotice\")) {\n\t\t\timage.setUrl(\"images/notice.jpg\");\n\t\t\timage.setAltText(\"notice\");\n\t\t} else {\n\t\t\timage.setUrl(\"images/nonotice.jpg\");\n\t\t\timage.setAltText(\"nonotice\");\n\t\t}\n\t\treadFeed();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.detailacheivements);\n\n achvImage = findViewById(R.id.detailimage1);\n achvDetails = findViewById(R.id.detailtextview1);\n achvTitle = findViewById(R.id.detailtitle);\n points = findViewById(R.id.pointtextview);\n des1 = findViewById(R.id.des1);\n\n setImage();\n }", "public MyHolder(final View itemView) {\n super(itemView);\n Typeface tf = Typeface.createFromAsset(context.getAssets(), \"fonts/segoeui.ttf\");\n event_time = (TextView) itemView.findViewById(vineture.wowhubb.R.id.event_time);\n event_name=(TextView)itemView.findViewById(vineture.wowhubb.R.id.event_name);\n event_who = (TextView) itemView.findViewById(vineture.wowhubb.R.id.event_who);\n event_where=(ImageView) itemView.findViewById(vineture.wowhubb.R.id.event_where);\n\n\n\n event_time.setTypeface(tf);\n event_name.setTypeface(tf);\n event_who.setTypeface(tf);\n\n\n }", "@FXML\n private void handleIsPaid(MouseEvent event) \n {\n Image Paid = new Image(\"/examProjectTheDisciplesOfSkrumm/GUI/Icons/Paid.png\");\n Image NotPaid = new Image(\"/examProjectTheDisciplesOfSkrumm/GUI/Icons/NotPaid.png\");\n \n if(isPaidNum == 0)\n {\n ClientRateTextField.setDisable(false);\n isPaidNum = 1;\n IspaidImageView.setImage(Paid);\n \n }\n else if (isPaidNum == 1)\n {\n ClientRateTextField.setDisable(true);\n isPaidNum = 0;\n IspaidImageView.setImage(NotPaid);\n }\n }", "@Override\n protected void findViewById() {\n ivGraffit = (ImageView) findView(R.id.ivGraffit);\n\n }", "@Override\n public void onClick(View v) {\n if(textViewDescription.getVisibility() != View.VISIBLE && textViewDescription.getText().toString() != null){\n\n textViewDescription.setVisibility(View.VISIBLE);\n barreHorizontale.setVisibility(View.VISIBLE);\n }else{\n barreHorizontale.setVisibility(View.GONE);\n textViewDescription.setVisibility(View.GONE);\n }\n\n }", "public ViewHolder(View itemView) {\n super(itemView);\n imageView = itemView.findViewById(R.id.ivSomeImage);\n textView = itemView.findViewById(R.id.tvSomeText);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(details_video_introduce.getVisibility()==View.VISIBLE){\n\t\t\t\t\tdetails_video_introduce.setVisibility(View.GONE);\n\t\t\t\t\tdetails_recommend.setVisibility(View.VISIBLE);\n\t\t\t\t\tdetails_key_arts.setVisibility(View.GONE);\n\t\t\t\t}else{\n\t\t\t\t\tdetails_key_arts.setVisibility(View.GONE);\n\t\t\t\t\tdetails_video_introduce.setVisibility(View.VISIBLE);\n\t\t\t\t\tdetails_recommend.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tEditText bid = (EditText) findViewById(R.id.editParkingLotBid);\n\t\t\t\tif(bid.getText().length() > 0){\n\t\t\t\t\tDecimalFormat fnum = new DecimalFormat(\"##0.00\");\n\t\t\t\t\tfloat cBid = Float.parseFloat(bid.getText().toString());\n\t\t\t\t\tif(cBid >= minBid){\n\t\t\t\t\t\tJSONObject param = new JSONObject();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tparam.put(Packet.KEY_PARKING_LOT_ID, parkingId);\n\t\t\t\t\t\t\tparam.put(Packet.KEY_DRIVER_ID, SharedPreferencesUtil.loadSavedPreferences(mContext, Constants.SP_USER_ID, 0));\n\t\t\t\t\t\t\tparam.put(Packet.KEY_SESSION_KEY, SharedPreferencesUtil.loadSavedPreferences(mContext, Constants.SP_SESSION_KEY, null));\n\t\t\t\t\t\t\tparam.put(Packet.KEY_BID_BID, fnum.format(cBid));\n\t\t\t\t\t\t\tmWebServerConnector.postDataToServer(Constants.BID_URL, param);\n\t\t\t\t\t\t\tParkingLotBidDialog.this.dismiss();\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}\n\t\t\t\t\t\tmWebServerConnector.getDataFromServer(Constants.PARKING_LOT_UPDATE_URL);\n\t\t\t\t\t\tif(updateBid)mWebServerConnector.getDataFromServer(Constants.PARKING_BIDS_URL.replace(\"#\", String.valueOf(parkingId)));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tToast.makeText(mContext, \"Bid must be bigger than min bid \" + minBid, Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public final void onBindView(View view) {\n AppMethodBeat.m2504i(107165);\n super.onBindView(view);\n ImageView imageView = (ImageView) view.findViewById(2131822184);\n if (imageView != null) {\n if (this.drawable != null) {\n imageView.setImageDrawable(this.drawable);\n imageView.setVisibility(0);\n } else if (this.f4433ZV != 0) {\n imageView.setImageResource(this.f4433ZV);\n imageView.setVisibility(0);\n } else {\n imageView.setVisibility(8);\n }\n }\n LinearLayout linearLayout = (LinearLayout) view.findViewById(2131822347);\n if (this.height != -1) {\n linearLayout.setMinimumHeight(this.height);\n }\n TextView textView = (TextView) view.findViewById(2131822348);\n if (textView != null) {\n textView.setVisibility(this.qlf);\n textView.setText(this.pnJ);\n if (this.qle != -1) {\n textView.setBackgroundDrawable(C1338a.m2864g(this.context, this.qle));\n }\n }\n this.yBG = (ImageView) view.findViewById(2131822349);\n this.yBG.setVisibility(this.yBD);\n this.yBH = (ViewGroup) view.findViewById(2131822351);\n this.yBH.setVisibility(this.yBE);\n this.yBI = (TextView) view.findViewById(16908310);\n textView = (TextView) view.findViewById(2131826062);\n if (C5046bo.isNullOrNil(this.yBJ)) {\n textView.setVisibility(8);\n AppMethodBeat.m2505o(107165);\n return;\n }\n textView.setVisibility(0);\n textView.setText(this.yBJ);\n AppMethodBeat.m2505o(107165);\n }", "private void dg_ui_detail_photoview_banner(RecyclerView.ViewHolder viewHolder, ArticleBean bean) {\n DG_DetailPhotoViewHolder db_photo_banner_holder = (DG_DetailPhotoViewHolder) viewHolder;\n boolean isAppExclusive = bean.getSid() != null && bean.getSid().equals(\"\" + THPConstants.APP_EXCLUSIVE_SECTION_ID);\n if (isAppExclusive) {\n db_photo_banner_holder.mTitleTextView.setText(Html.fromHtml(\"<i>\" + \"\\\"\" + bean.getTi() + \"\\\"\" + \"</i>\"));\n db_photo_banner_holder.mTitleTextView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 25);\n db_photo_banner_holder.mAuthorTextView.setVisibility(View.GONE);\n db_photo_banner_holder.mUpdatedTextView.setVisibility(View.GONE);\n db_photo_banner_holder.mCreatedDateTextView.setVisibility(View.GONE);\n db_photo_banner_holder.mHeaderImageView.setVisibility(View.GONE);\n db_photo_banner_holder.mMultiMediaButton.setVisibility(View.GONE);\n db_photo_banner_holder.mCaptionTextView.setVisibility(View.GONE);\n db_photo_banner_holder.mCaptionDevider.setVisibility(View.GONE);\n } else {\n db_photo_banner_holder.mTitleTextView.setText(bean.getTi());\n db_photo_banner_holder.mArticleLocationView.setText(bean.getLocation());\n String author = bean.getAu();\n if (author != null && !TextUtils.isEmpty(author)) {\n db_photo_banner_holder.mAuthorTextView.setVisibility(View.VISIBLE);\n db_photo_banner_holder.mAuthorTextView.setText(author.replace(\",\\n\", \" | \").replace(\",\", \" | \"));\n } else {\n db_photo_banner_holder.mAuthorTextView.setVisibility(View.GONE);\n }\n\n db_photo_banner_holder.mUpdatedTextView.setText(AppDateUtil.getTopNewsFormattedDate(AppDateUtil.changeStringToMillisGMT(bean.getPd())));\n db_photo_banner_holder.mCreatedDateTextView.setText(AppDateUtil.getPlaneTopNewsFormattedDate(AppDateUtil.changeStringToMillis(bean.getOd())));\n\n final ArrayList<MeBean> mImageList = bean.getMe();\n if (mImageList != null && mImageList.size() > 0) {\n String imageUrl = mImageList.get(0).getIm_v2();\n if (!ResUtil.isEmpty(imageUrl)) {\n PicassoUtil.loadImageWithFilePH(db_photo_banner_holder.itemView.getContext(), db_photo_banner_holder.mHeaderImageView, imageUrl);\n }\n String caption = mImageList.get(0).getCa();\n if (caption != null && !TextUtils.isEmpty(caption)) {\n db_photo_banner_holder.mCaptionTextView.setText(Html.fromHtml(caption));\n } else {\n db_photo_banner_holder.mCaptionTextView.setVisibility(View.GONE);\n }\n }\n db_photo_banner_holder.mHeaderImageView.setOnClickListener(v -> {\n IntentUtil.openVerticleGalleryActivity(v.getContext(), mImageList, mFrom);\n });\n // To shows Article Type Image\n articleTypeImage(bean.getArticleType(), bean, db_photo_banner_holder.mMultiMediaButton);\n db_photo_banner_holder.mMultiMediaButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n IntentUtil.openVerticleGalleryActivity(v.getContext(), mImageList, mFrom);\n }\n });\n }\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState, R.layout.goodscheck_view);\n\n\t\tLog.i(TAG, \"onCreate()\");\n\t\tIntent intent = getIntent();\n\n\t\tgj = intent.getStringExtra(\"gj\");\n\t\tzw = intent.getStringExtra(\"zw\");\n\t\tbirthday_s = intent.getStringExtra(\"birthday_s\");\n\t\tssdw = intent.getStringExtra(\"ssdw\");\n\t\tzjzl = intent.getStringExtra(\"zjzl\");\n\t\txb = intent.getStringExtra(\"xb\");\n\t\tzjhm = intent.getStringExtra(\"zjhm\");\n\n\t\tryid = intent.getStringExtra(\"ryid\");\n\t\tcsrq = intent.getStringExtra(\"csrq\");\n\t\tname = intent.getStringExtra(\"name\");\n\t\ttime = intent.getStringExtra(\"time\");\n\t\tfx = intent.getStringExtra(\"fx\");\n\t\tsfcy = intent.getStringExtra(\"sfcy\");\n\t\tfrom = intent.getStringExtra(\"from\");\n\t\tvoyageNumber = intent.getStringExtra(\"voyageNumber\");\n\t\tsubmitBtn = (Button) findViewById(R.id.record_submit);\n\t\tif (\"01\".equals(from)) {// 卡口记录上下轮物品提供选择卡口内监护船舶功能\n\t\t\tsetMyActiveTitle(getText(R.string.kakoumanager) + \">\"\n\t\t\t\t\t+ getText(R.string.record_goods));\n\t\t\tfindViewById(R.id.send_good_info_layout_select_ship).setVisibility(\n\t\t\t\t\tView.VISIBLE);\n\t\t\tfindViewById(R.id.send_good_info_ship_czsm).setVisibility(\n\t\t\t\t\tView.VISIBLE);\n\t\t\tsubmitBtn.setEnabled(false);\n\t\t} else {\n\t\t\tsetMyActiveTitle(getText(R.string.tikoumanager) + \">\"\n\t\t\t\t\t+ getText(R.string.record_goods));\n\t\t\tfindViewById(R.id.send_good_info_layout_select_ship).setVisibility(\n\t\t\t\t\tView.GONE);\n\t\t\tfindViewById(R.id.send_good_info_ship_czsm)\n\t\t\t\t\t.setVisibility(View.GONE);\n\t\t}\n\n\t\t((TextView) findViewById(R.id.goods_record_name)).setText(Html\n\t\t\t\t.fromHtml(getString(R.string.name_s)\n\t\t\t\t\t\t+ \"<font color=\\\"#acacac\\\">\" + name + \"</font>\"));\n\t\t((TextView) findViewById(R.id.goods_record_time)).setText(Html\n\t\t\t\t.fromHtml(getString(R.string.goods_downup_time_tag)\n\t\t\t\t\t\t+ \"<font color=\\\"#acacac\\\">\" + time + \"</font>\"));\n\n\t\tcharSequences = DataDictionary.getDataDictionaryNameList(\n\t\t\t\tDataDictionary.DATADICTIONARY_TYPE_GOODS_TYPE).toArray(\n\t\t\t\tnew CharSequence[DataDictionary.getDataDictionaryNameList(\n\t\t\t\t\t\tDataDictionary.DATADICTIONARY_TYPE_GOODS_TYPE).size()]);\n\n\t\tstates = new boolean[charSequences.length];\n\n\t\tgoodsRes = (TextView) findViewById(R.id.goods);\n\t\tgoodsRes.setText(\"\");\n\t\tgoodsRes.setVisibility(View.GONE);\n\n\t\tsubmitBtn.setOnClickListener(new OnClickListener() {\n\t\t\t/** 向后台提交数据 */\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (progressDialog != null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tStringBuffer buffer = new StringBuffer();\n\t\t\t\tif (states != null && states.length > 0) {\n\n\t\t\t\t\tfor (int i = 0; i < states.length; i++) {\n\t\t\t\t\t\tif (states[i]) {\n\t\t\t\t\t\t\tif (buffer != null && buffer.length() > 0) {\n\t\t\t\t\t\t\t\tbuffer.append(\"|\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbuffer.append(DataDictionary\n\t\t\t\t\t\t\t\t\t.getDataDictionaryCodeByIndex(\n\t\t\t\t\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t\t\t\t\t\tDataDictionary.DATADICTIONARY_TYPE_GOODS_TYPE));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (buffer == null || buffer.length() == 0) {\n\t\t\t\t\tHgqwToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.plase_choose_good).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tprogressDialog = new ProgressDialog(GoodsCheckView.this);\n\t\t\t\tprogressDialog.setTitle(getString(R.string.waiting));\n\t\t\t\tprogressDialog.setMessage(getString(R.string.waiting));\n\t\t\t\tprogressDialog.setCancelable(false);\n\t\t\t\tprogressDialog.setIndeterminate(false);\n\t\t\t\tprogressDialog.show();\n\t\t\t\tString url = \"sendGoodsInfo\";\n\t\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\n\t\t\t\tparams.add(new BasicNameValuePair(\"userID\", LoginUser\n\t\t\t\t\t\t.getCurrentLoginUser().getUserID()));\n\t\t\t\tparams.add(new BasicNameValuePair(\"pdacode\", DeviceUtils\n\t\t\t\t\t\t.getIMEI()));\n\t\t\t\tparams.add(new BasicNameValuePair(\"PDACode\", DeviceUtils\n\t\t\t\t\t\t.getIMEI()));\n\t\t\t\tparams.add(new BasicNameValuePair(\"voyageNumber\", voyageNumber));\n\t\t\t\tparams.add(new BasicNameValuePair(\"time\", time));\n\t\t\t\tparams.add(new BasicNameValuePair(\"type\", buffer.toString()));\n\t\t\t\tparams.add(new BasicNameValuePair(\"fx\", fx));\n\t\t\t\tparams.add(new BasicNameValuePair(\"sfcy\", sfcy));\n\t\t\t\tparams.add(new BasicNameValuePair(\"ryid\", ryid));\n\n\t\t\t\tparams.add(new BasicNameValuePair(\"zjhm\", zjhm));\n\t\t\t\tparams.add(new BasicNameValuePair(\"xm\", name));\n\t\t\t\tparams.add(new BasicNameValuePair(\"xb\", xb));\n\t\t\t\tparams.add(new BasicNameValuePair(\"zjlx\", zjzl));\n\t\t\t\tparams.add(new BasicNameValuePair(\"csrq\", csrq));\n\t\t\t\tparams.add(new BasicNameValuePair(\"ssdw\", ssdw));\n\t\t\t\tparams.add(new BasicNameValuePair(\"zw\", zw));\n\t\t\t\tparams.add(new BasicNameValuePair(\"gj\", gj));\n\n\t\t\t\t// 开启离线开关后统一保存到本地,否则传送到服务器\n\t\t\t\t// if (!BaseApplication.instent.getWebState()) {\n\t\t\t\tif (getState(FunctionSetting.kqlx, false)) {\n\t\t\t\t\tOffLineManager.request(GoodsCheckView.this,\n\t\t\t\t\t\t\tnew GoodsCheckAction(), url,\n\t\t\t\t\t\t\tNVPairTOMap.nameValuePairTOMap(params), 0);\n\t\t\t\t} else {\n\t\t\t\t\tNetWorkManager.request(GoodsCheckView.this, url, params, 0);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_weight_entry, container, false);\n myDb = new DatabaseHelper(getActivity());\n edate = (EditText)view.findViewById(R.id.edate);\n eweight = (EditText)view.findViewById(R.id.eweight);\n img = (ImageView)view.findViewById(R.id.eimage);\n submit=view.findViewById(R.id.submit);\n submit.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Boolean valid;\n/* if(pic) {\n Toast.makeText(getActivity(), \"Picture is mandatory \", Toast.LENGTH_LONG).show();\n }\n else*/\n if (edate.getText().toString()!=null )\n { SimpleDateFormat f=new SimpleDateFormat(\"MM/dd/yyyy\");\n f.setLenient(false);\n try\n {\n f.parse(edate.getText().toString());\n valid = true;\n } catch (ParseException e) {\n valid = false;\n Toast.makeText(getActivity(),\"Date is not in valid format mm/DD/yyyy\", Toast.LENGTH_LONG).show();\n }\n if (valid == true)\n {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n b.compress(Bitmap.CompressFormat.PNG, 100, stream);\n byte[] byteArray = stream.toByteArray();\n boolean isInserted = myDb.insertweight(edate.getText().toString(),\n eweight.getText().toString(), byteArray\n\n\n );\n if (isInserted == true) {\n Intent intent1 = new Intent(getActivity(), Home.class);\n startActivity(intent1);\n Toast.makeText(getActivity(), \"Data Inserted\", Toast.LENGTH_LONG).show();\n } else\n Toast.makeText(getActivity(), \"Data not Inserted !!! Please try again\", Toast.LENGTH_LONG).show();\n }\n\n }\n\n\n /* else {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n b.compress(Bitmap.CompressFormat.PNG, 100, stream);\n byte[] byteArray = stream.toByteArray();\n boolean isInserted = myDb.insertweight(edate.getText().toString(),\n eweight.getText().toString(), byteArray\n\n\n );\n if (isInserted == true) {\n Intent intent1 = new Intent(getActivity(), Home.class);\n startActivity(intent1);\n Toast.makeText(getActivity(), \"Data Inserted\", Toast.LENGTH_LONG).show();\n } else\n Toast.makeText(getActivity(), \"Data not Inserted !!! Please try again\", Toast.LENGTH_LONG).show();\n }*/\n }\n });\n\n img.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent cameraintent=new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(cameraintent,10);\n pic=false;\n }\n });\n return view;\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n final Button showMe = (Button) findViewById(R.id.btnShowMe);\n final TextView nameSurname = (TextView) findViewById(R.id.nameSurname);\n final TextView description = (TextView) findViewById(R.id.description);\n final ImageView myPicture = (ImageView) findViewById(R.id.myPicture);\n \n showMe.setOnClickListener( new View.OnClickListener() {\n\t\t\t\n\t\t\tpublic void onClick(View v) {\n\t\t \n\t\t if(nameSurname.isShown()){\n\t\t\t nameSurname.setVisibility(View.INVISIBLE);\n\t\t\t description.setVisibility(View.INVISIBLE);\n\t\t\t myPicture.setVisibility(View.INVISIBLE);\n\t\t\t showMe.setText(R.string.hideTxtButton);\n\t\t\t } else {\n\t\t\t nameSurname.setVisibility(View.VISIBLE);\n\t\t\t description.setVisibility(View.VISIBLE);\n\t\t\t myPicture.setVisibility(View.VISIBLE);\n\t\t\t showMe.setText(R.string.showMeTxtButton);\n\t\t\t \t\n\t\t\t \t\n\n\t\t } \n\t\t\t}\n\t\t});\n }", "public AnswerHolder(View itemView) {\n super(itemView);\n\n//-----------------------------PROFILES\n if (Tools.accountType != null && Tools.accountType.equals(MLBService.AccountType.ORGANISER)) {\n\n tv_answer_profile_title = (TextView) itemView.findViewById(R.id.tv_answer_profile_title);\n tv_answer_profile_username = (TextView) itemView.findViewById(R.id.tv_answer_profile_username);\n tv_answer_profile_speciality = (TextView) itemView.findViewById(R.id.tv_answer_profile_speciality);\n\n ic_answer_profile_status = (ImageView) itemView.findViewById(R.id.ic_answer_profile_status);\n tv_answer_profile_status = (TextView) itemView.findViewById(R.id.tv_answer_profile_status);\n\n bt_answer_profile_readMore = (Button) itemView.findViewById(R.id.bt_answer_profile_read_more);\n bt_answer_profile_withdraw = (Button) itemView.findViewById(R.id.bt_answer_profile_withdraw);\n\n }\n//-----------------------------JOBS\n else if (Tools.accountType != null && Tools.accountType.equals(MLBService.AccountType.BARSTAFF)) {\n\n ic_answer_job_thumbnail = (ImageView) itemView.findViewById(R.id.ic_answer_job_thumbnail);\n\n tv_answer_job_title = (TextView) itemView.findViewById(R.id.tv_answer_job_title);\n tv_answer_job_payrate = (TextView) itemView.findViewById(R.id.tv_answer_job_payrate);\n\n ic_answer_job_status = (ImageView) itemView.findViewById(R.id.ic_answer_job_status);\n tv_answer_job_status = (TextView) itemView.findViewById(R.id.tv_answer_job_status);\n\n bt_answer_job_readMore = (Button) itemView.findViewById(R.id.bt_answer_job_read_more);\n bt_answer_job_withdraw = (Button) itemView.findViewById(R.id.bt_answer_job_withdraw);\n\n }\n }", "@Override\n public void onClick(View view) {\n rbItemCategory = (RadioButton)v.findViewById(rgItemCategory.getCheckedRadioButtonId());\n\n String itemName = etAddItemName.getText().toString();\n String itemDesc = etAddItemDesc.getText().toString();\n String itemCategory = rbItemCategory.getText().toString();\n String itemPrice;\n\n //get current Date\n Date cal = Calendar.getInstance().getTime();\n java.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n currentDate = df.format(cal);\n\n if(itemCategory.equals(\"Want To Sell\"))\n itemCategory = \"WTS\";\n else if(itemCategory.equals(\"Want To Buy\"))\n itemCategory = \"WTB\";\n else if (itemCategory.equals(\"Want To Trade\"))\n itemCategory = \"WTT\";\n\n if(itemCategory.equals(\"WTT\"))\n itemPrice = \"0\";\n else\n itemPrice = etItemPrice.getText().toString();\n\n SharedPreferences preferences = getActivity().getSharedPreferences(\"tarcommUser\", Context.MODE_PRIVATE);\n\n if(TextUtils.isEmpty(itemName))\n etAddItemName.setError(\"This field is required.\");\n if(TextUtils.isEmpty(itemDesc))\n etAddItemDesc.setError(\"This field is required.\");\n if(TextUtils.isEmpty(itemPrice))\n itemPrice = \"0\";\n\n if(!TextUtils.isEmpty(itemName) && !TextUtils.isEmpty(itemDesc)&& imgViewMarketItem.getDrawable() != null) {\n Item item = new Item();\n item.setItemCategory(itemCategory);\n item.setItemName(itemName);\n item.setItemDescription(itemDesc);\n item.setItemPrice(itemPrice);\n item.setEmail(preferences.getString(\"email\", \"\"));\n item.setSellerName(preferences.getString(\"loggedInUser\", \"\"));\n item.setSellerContact(preferences.getString(\"contactNo\", \"\"));\n item.setItemLastModified(currentDate);\n uploadImage(item);\n\n progressDialog = new ProgressDialog(getActivity());\n try {\n makeServiceCall(getActivity().getApplicationContext(), \"https://tarcomm.000webhostapp.com/createItem.php\", item);\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(getActivity().getApplicationContext(), \"Error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n } else\n Toast.makeText(getActivity().getApplicationContext(), \"Please add an image or fill all the mandatory field\", Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString typeString2;// 物品类别\n\t\t\t\tString typenameString2;\n\t\t\t\tif (type1.equals(\"\")) {\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t\t\t.showToastcenter(\"请选择物品类别!\");\n\t\t\t\t\treturn;\n\t\t\t\t} else if (type3.equals(\"\")) {\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t\t\t.showToastcenter(\"请选择物品品牌!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (type2.equals(\"\")) {// 物品品牌\n\t\t\t\t\ttypeString2 = type1;\n\t\t\t\t\ttypenameString2 = type_name1;\n\t\t\t\t} else {\n\t\t\t\t\ttypeString2 = type2;\n\t\t\t\t\ttypenameString2 = type_name2;\n\t\t\t\t}\n\t\t\t\tString modelmString = \"\";// 物品型号\n\t\t\t\tString model = article_model.getText().toString();\n\t\t\t\tif(null==models||null==model){\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t.showToastcenter(\"数据出现异常,请重新选择物品名称\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (models.equals(\"\") && model.equals(\"\")) {\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t\t\t.showToastcenter(\"请填写物品型号!\");\n\t\t\t\t\treturn;\n\t\t\t\t} else if (!models.equals(\"\")) {\n\t\t\t\t\tmodelmString = models;\n\t\t\t\t} else if (!model.equals(\"\")) {\n\t\t\t\t\tmodelmString = model;\n\t\t\t\t}\n\t\t\t\tString need_num = article_need_num.getText().toString();\n\t\t\t\tString prod_unit = article_prod_unit.getText().toString();\n\t\t\t\tString unit_price = article_unit_price.getText().toString();\n\t\t\t\tif (need_num.equals(\"\")) {\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t\t\t.showToastcenter(\"物品数量不能为空!\");\n\t\t\t\t\treturn;\n\t\t\t\t} else if (prod_unit.equals(\"\")) {\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t\t\t.showToastcenter(\"物品单位不能为空!\");\n\t\t\t\t\treturn;\n\t\t\t\t} else if (unit_price.equals(\"\")) {\n\t\t\t\t\tToastManager.getInstance(context)\n\t\t\t\t\t\t\t.showToastcenter(\"物品单价不能为空!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tString url = article_url.getText().toString();\n\t\t\t\tString remark = article_remark.getText().toString();\n\n\t\t\t\tRequisition_Swipe_Entity mlist = new Requisition_Swipe_Entity(\n\t\t\t\t\t\ttype0, type_name, typeString2, typenameString2, type3,\n\t\t\t\t\t\ttype_name3, modelmString, need_num, prod_unit,\n\t\t\t\t\t\tunit_price, url, remark, index1, index2, index22, index3, index4);\n\t\t\t\t\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tBundle bl = new Bundle();\n\t\t\t\tbl.putSerializable(\"mlist\", (Serializable) mlist);\n\t\t\t\tintent.putExtras(bl);\n\t\t\t\tif(tag){\n\t\t\t\t\tintent.putExtra(\"position\",getIntent().getExtras().getInt(\"position\"));\n\t\t\t\t}\n\t\t\t\tAddNewArticleActivity.this.setResult(1, intent);\n\t\t\t\tAddNewArticleActivity.this.finish();\n\t\t\t}", "public ViewHolder(View itemView) {\n super(itemView);\n productDetails = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_product_details);\n price = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_MRP);\n sp = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_SP);\n //qty = (Spinner) itemView.findViewById(R.id.category_item_layout_for_view_product_qty);\n productImage = (ImageView) itemView.findViewById(R.id.category_item_layout_for_view_product_image);\n addToCart = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_addToCart);\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.show_answer);\r\n\t\tmSingleton = Singleton.getInstance();\r\n\t\t//here you can get extras parameters from Intent\r\n\t\tBundle extras = getIntent().getExtras();\r\n\t\t//here you can get the object Question and relatives parameters from extras\r\n\t\tanswerPassed = (Answer) extras.get(\"Answer_Showed\");\r\n\t\tString contentPassed = answerPassed.getAnswer();\r\n\t\tString authorPassed= answerPassed.getUser();\r\n\t\tString datePassed= answerPassed.getDate();\r\n\t\tint numberOfRatesPassed= answerPassed.getRate();\r\n\r\n\t\t//assign to the id of the object the field of the Question object\r\n\t\tanswerTextField = (TextView) findViewById(R.id.editText_Answer);\r\n\t\tanswerTextField.setText(contentPassed); \r\n\t\tauthorTextField = (TextView) findViewById(R.id.editText_Author_answer);\r\n\t\tauthorTextField.setText(authorPassed);\r\n\t\tdateTextField = (TextView) findViewById(R.id.editText_Date_answer);\r\n\t\tdateTextField.setText(datePassed);\r\n\t\ttxtview_Rates = (TextView) findViewById(R.id.txtview_rates_answer);\r\n\t\timageButtonNegative = (Button) findViewById(R.id.rate_negative_answer);\r\n\t\timageButtonPositive = (Button) findViewById(R.id.rate_positive_answer);\r\n\t\ttxtview_Rates.setText(String.valueOf(numberOfRatesPassed));\r\n\r\n\t\trates= numberOfRatesPassed;\r\n\r\n\r\n\t\timageButtonPositive.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tmSingleton.OutStub.sendXMPPBean(new rateAnswerRequest(mSingleton.userProfile.getEmailAddress(), answerPassed.getQuestion_index(), answerPassed.getAnswer_index(), +1));\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\timageButtonNegative.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tmSingleton.OutStub.sendXMPPBean(new rateAnswerRequest(mSingleton.userProfile.getEmailAddress(), answerPassed.getQuestion_index(), answerPassed.getAnswer_index(), -1));\r\n\t\t\t}\r\n\t\t});\r\n\r\n\r\n\t}", "@Override\r\n public void onClick(View arg0) {\n popWindow.setVisibility(View.INVISIBLE);\r\n mBottomBar.setVisibility(View.VISIBLE);\r\n mEditLayout.setVisibility(View.INVISIBLE);\r\n mFaceEditor.updateImage(false);\r\n\r\n mImgView.setImageBitmap(null);\r\n mImgView.setImageBitmap(mFaceEditor.getDisplayImage());\r\n\r\n\r\n }", "public interface AddPhotoView extends BaseView {\n\n void displayIMEINumber();\n\n void showLocationData();\n\n void showCurrentTime(String today);\n\n void showAddPhotoDialog();\n\n void sendEmail();\n\n}", "private void setupView() {\n view.setName(advertisement.getTitle());\n view.setPrice(advertisement.getPrice());\n view.setDescription(advertisement.getDescription());\n view.setDate(advertisement.getDatePublished());\n view.setTags(advertisement.getTags());\n setCondition();\n if (advertisement.getImageUrl() != null) { //the url here is null right after upload\n view.setImageUrl(advertisement.getImageUrl());\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tIntent in = new Intent(SingleShop.this, ShopOffers.class);\n\t\t\t\t// Bitmap image= in.getDrawingCache();\n\t\t\t\t// Bundle sending_image = new Bundle();\n\t\t\t\t// sending_image.putParcelable(\"image\", image);\n\n\t\t\t\tin.putExtra(SHOP_NAME, name);\n\t\t\t\tin.putExtra(MALL, mall);\n\t\t\t\t// in.putExtras(sending_image);//image\n\t\t\t\tin.putExtra(SHOP_NO, shop_no);\n\t\t\t\tin.putExtra(RATING, rating);\n\t\t\t\tin.putExtra(FLOOR, floor);\n\n\t\t\t\t/** hidden */\n\t\t\t\tin.putExtra(DESC, desc);\n\t\t\t\tin.putExtra(\"url\", url);\n\t\t\t\tin.putExtra(ID, id);\n\t\t\t\tin.putExtra(CONTACT, contact_no);\n\t\t\t\tin.putExtra(EMAIL, email);\n\t\t\t\t// in.putExtra(OFFERS, offers);\n\t\t\t\tin.putExtra(BRAND, brand);\n\t\t\t\tin.putExtra(FB, fb);\n\t\t\t\t// in.putExtra(TWITTER, shop_twitter);\n\t\t\t\t// in.putExtra(GPLUS, shop_gplus);\n\n\t\t\t\tin.putExtra(\"offer_url\", offers);\n\t\t\t\tstartActivity(in);\n\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String name = nameEditText.getText().toString();\n //int number = Integer.parseInt(numberEditText.getText().toString());\n String numberString = numberEditText.getText().toString();\n int number = 0;\n //if (numberString != null){\n if(numberString.isEmpty() || numberString.length() == 0 || numberString.equals(\"\") || numberString == null) {\n number = 0;\n }else{\n number = Integer.parseInt(numberString);\n }\n //checkToggleButton();\n\n\n\n /*Boolean colour = Boolean.FALSE;\n if(colour = Boolean.TRUE){\n mJerseyImageView.setImageResource(R.drawable.green_jersey);\n }else\n {\n mJerseyImageView.setImageResource(R.drawable.purple_jersey);\n }*/\n\n mCurrentItem = new JerseyItem(name, number, true);\n showCurrentItem();}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tsetContentView(R.layout.activity_gathering_view);\n\n\t\tappMain = (AppMain) getApplication();\n\t\tcurrentUser = appMain.getCurrentUser();\n\n\t\tif (getIntent().hasExtra(\"item\")) {\n\t\t\titem = (Gathering) getIntent().getExtras().getSerializable(\"item\");\n\t\t\titem.setContext(GatheringViewActivity.this);\n\t\t\titem.processImagesList();\n\n\t\t\ttitle = (TextView) findViewById(R.id.title);\n\t\t\tsubtitle = (TextView) findViewById(R.id.subtitle);\n\t\t\torganizer = (TextView) findViewById(R.id.organizer);\n\t\t\tdescription = (TextView) findViewById(R.id.description);\n\t\t\teventmaster = (TextView) findViewById(R.id.eventmaster);\n\t\t\texpiration = (TextView) findViewById(R.id.expiration);\n\t\t\timg = (ImageView) findViewById(R.id.img);\n\n\t\t\tref_url = (TextView) findViewById(R.id.biz_url);\n\t\t\tfb_url = (TextView) findViewById(R.id.fb_url);\n\t\t\tgplus_url = (TextView) findViewById(R.id.gplus_url);\n\t\t\ttwtr_url = (TextView) findViewById(R.id.twtr_url);\n\n\t\t\tprogramme = (Button) findViewById(R.id.programme);\n\t\t\tattachment = (Button) findViewById(R.id.attachment);\n\t\t\treserve = (Button) findViewById(R.id.reserve);\n\n\t\t\theader = (LinearLayout) findViewById(R.id.header);\n\n\t\t\timg_visibility = (ImageButton) findViewById(R.id.img_visibility);\n\t\t\timg_visibility.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tif (header.getVisibility() == View.VISIBLE) {\n\t\t\t\t\t\theader.setVisibility(View.GONE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\theader.setVisibility(View.VISIBLE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tconfirm_attendance = (ImageButton) findViewById(R.id.confirm_attendance);\n\t\t\tconfirm_attendance.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tIntent intent = new Intent(\"com.google.zxing.client.android.SCAN\");\n\t\t\t\t\t\tintent.putExtra(\"SCAN_MODE\", \"QR_CODE_MODE,PRODUCT_MODE\");\n\t\t\t\t\t\tstartActivityForResult(intent, ZXingHelper.REQUEST_CODE);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block \n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tToastHelper.toast(GatheringViewActivity.this, \"ERROR:\" + e, Toast.LENGTH_SHORT);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\task_question = (ImageButton) findViewById(R.id.ask_question);\n\t\t\task_question.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString url = \"http://www.infordiscuss.codesndbx.com/questions/ask\";\n\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\ti.setData(Uri.parse(url));\n\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block \n\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\ttitle.setText(item.getTitle());\n\t\t\torganizer.setText(\"Organized By: \" + item.getOrganizer());\n\t\t\teventmaster.setText(\"Event Master: \" + item.getEventMaster());\n\t\t\tdescription.setText(item.getDescription());\n\t\t\texpiration.setText(\"Starts on: \" + new SimpleDateFormat(\"MMMM dd, yyyy hh:mm a\", Locale.ENGLISH).format(item.getDatefrom()));\n\n\t\t\tref_url.setText(item.getRef_url());\n\t\t\tfb_url.setText(item.getFacebook_url());\n\t\t\tgplus_url.setText(item.getGplus_url());\n\t\t\ttwtr_url.setText(item.getTwitter_url());\n\n\t\t\t//Launch new thread to retrieve schedules / attendees / attachments\n\t\t\tretrieveSchedules();\n\t\t\tretrieveAttendees();\n\t\t\tretrieveAttachments();\n\t\t\t\n\t\t\n\n\t\t\treserve.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent intent = new Intent(GatheringViewActivity.this, AttendeesWriteActivity.class);\n\t\t\t\t\tintent.putExtra(\"gathering\", item);\n\t\t\t\t\tstartActivityForResult(intent, AttendeesWriteActivity.NEW_REQUEST_CODE);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif (currentUser.getId().equals(item.getEdited_by())) {\n\t\t\t\tprogramme.setVisibility(View.VISIBLE);\n\t\t\t\tprogramme.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent intent = new Intent(GatheringViewActivity.this, ScheduleWriteActivity.class);\n\t\t\t\t\t\tintent.putExtra(\"gathering_id\", item.getId());\n\t\t\t\t\t\tstartActivityForResult(intent, ScheduleWriteActivity.NEW_REQUEST_CODE);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tattachment.setVisibility(View.VISIBLE);\n\t\t\t\tattachment.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tfileUri = MediaCaptureHelper.pickFile(GatheringViewActivity.this, fileUri);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else {\n\t\t\t\tprogramme.setVisibility(View.GONE);\n\t\t\t\tattachment.setVisibility(View.GONE);\n\t\t\t}\n\n\t\t\tsetupTabs();\n\n\t\t\t// Initialize YouTube Player\n\t\t\tYouTubePlayerView youTubeView = (YouTubePlayerView) findViewById(R.id.youtube_view);\n\t\t\tyouTubeView.initialize(YouTubeDeveloperKey.DEVELOPER_KEY, this);\n\n\t\t\tecoGallery = (EcoGallery) findViewById(R.id.images);\n\t\t\tecoGallery.setAnimationDuration(3000);\n\t\t\tif (item.getImagesList() != null && item.getImagesList().size() > 0) {\n\t\t\t\timages = item.getImagesList();\n\t\t\t\tadapter = new ImageAdapter(GatheringViewActivity.this);\n\t\t\t\tecoGallery.setAdapter(adapter);\n\t\t\t\tecoGallery.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onItemClick(EcoGalleryAdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t\t\tFile f = new File(images.get(position).getLocalFilePath());\n\t\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\t\tintent.setAction(Intent.ACTION_VIEW);\n\t\t\t\t\t\tintent.setDataAndType(Uri.parse(\"file://\" + f.getAbsolutePath()), \"image/*\");\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tRunnable timedRunnable = new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tfinal int selection = (ecoGallery.getSelectedItemPosition() + 1) > adapter.getCount() - 1 ? 0 : ecoGallery.getSelectedItemPosition() + 1;\n\t\t\t\t\t\tecoGallery.post(new Runnable() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tecoGallery.setSelection(selection, false);\n\t\t\t\t\t\t\t\tecoGallery.setSelection(selection, true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tecoGallery.postDelayed(this, 5000);\n\t\t\t\t\t}\n\n\t\t\t\t};\n\t\t\t\tecoGallery.postDelayed(timedRunnable, 5000);\n\n\t\t\t} else {\n\t\t\t\tecoGallery.setVisibility(View.GONE);\n\t\t\t}\n\t\t\t// End Load image\n\n\t\t\tshare = (ImageView) findViewById(R.id.share);\n\t\t\tshare.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tboolean withImage = false;\n\t\t\t\t\tFile myFile = null;\n\n\t\t\t\t\tif (item.getImagesList() != null && item.getImagesList().size() > 0) {\n\t\t\t\t\t\twithImage = true;\n\t\t\t\t\t\tmyFile = new File(images.get(0).getLocalFilePath());\n\t\t\t\t\t}\n\n\t\t\t\t\tfinal StringBuilder msg = new StringBuilder();\n\t\t\t\t\tmsg.append(\"Hey, I've come across this offer. Check it out!\\n\");\n\t\t\t\t\tmsg.append(item.getTitle() + \" by \" + item.getEventMaster() + \"\\n\");\n\t\t\t\t\tmsg.append(item.getDescription() + \"\\n\");\n\t\t\t\t\tmsg.append(\"located at \" + item.getLoc_text() + \"\\n\");\n\t\t\t\t\tmsg.append(\"visit \" + item.getRef_url() + \" for more info.\");\n\n\t\t\t\t\tfinal Intent intent = new Intent(Intent.ACTION_SEND);\n\t\t\t\t\tif (withImage) {\n\t\t\t\t\t\t//\t\t\t\t\t\tintent.setType(type);\n\t\t\t\t\t\tintent.setType(\"image/jpeg\");\n\t\t\t\t\t\tintent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n\t\t\t\t\t\tintent.putExtra(\"android.intent.extra.STREAM\", Uri.fromFile(myFile));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tintent.setType(\"text/plain\");\n\t\t\t\t\t}\n\n\t\t\t\t\tClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\n\t\t\t\t\tClipData clip = ClipData.newPlainText(\"label\", msg.toString());\n\t\t\t\t\tclipboard.setPrimaryClip(clip);\n\n\t\t\t\t\tintent.putExtra(Intent.EXTRA_TEXT, msg.toString());\n\t\t\t\t\tintent.putExtra(Intent.EXTRA_SUBJECT, \"A cool offer via lokal.ph\");\n\t\t\t\t\tintent.putExtra(Intent.EXTRA_TITLE, msg.toString());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(GatheringViewActivity.this);\n\t\t\t\t\t\talert.setTitle(\"Warning\");\n\t\t\t\t\t\talert.setMessage(\"Sharing to Facebook does not allow us to put anything on the caption field. Thus, we copied the share message to your clipboard. You can long press the caption field and select PASTE to share this offer to your friends and family.\\n\\nOther services are not affected by this limitation.\\n\\nFor more information, visit:\\nhttps://developers.facebook.com/policy/\");\n\t\t\t\t\t\talert.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tstartActivity(Intent.createChooser(intent, \"Share using\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\talert.setIcon(android.R.drawable.ic_dialog_alert);\n\t\t\t\t\t\talert.show();\n\n\t\t\t\t\t} catch (android.content.ActivityNotFoundException ex) {\n\t\t\t\t\t\t// (handle error)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tnavigate = (ImageView) findViewById(R.id.navigate);\n\t\t\tnavigate.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tLatLng currentLoc = LocationHelper.getLastKnownLocationLatLng(GatheringViewActivity.this);\n\t\t\t\t\tfinal Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://maps.google.com/maps?\" + \"saddr=\" + currentLoc.latitude + \",\" + currentLoc.longitude + \"&daddr=\" + item.getLoc_lat() + \",\" + item.getLoc_lng()));\n\t\t\t\t\tintent.setClassName(\"com.google.android.apps.maps\", \"com.google.android.maps.MapsActivity\");\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t} catch (android.content.ActivityNotFoundException ex) {\n\t\t\t\t\t\tToastHelper.toast(GatheringViewActivity.this, \"No application could handle your navigation request. Please install Google Maps and try again.\", Toast.LENGTH_LONG);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t}\n\n\t}", "private void bindInformation() {\n // Fill information\n this.binding.tvName.setText(this.place.getName());\n this.binding.tvDescription.setText(this.place.getDescription());\n this.binding.chipLikes.setText(String.format(\"%d likes\", this.place.getLikeCount()));\n this.binding.tvAddress.setText(this.place.getAddress());\n this.binding.tvCategory.setText(this.place.getCategory().getString(\"name\"));\n this.binding.rbPrice.setRating(this.place.getPrice());\n\n // Add marker to map\n LatLng placePosition = new LatLng(this.place.getLocation().getLatitude(), this.place.getLocation().getLongitude());\n this.map.addMarker(new MarkerOptions()\n .position(placePosition)\n .title(this.place.getName()));\n\n // Move camera to marker\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(placePosition, 17);\n this.map.animateCamera(cameraUpdate);\n\n // Load image\n Glide.with(PlaceDetailActivity.this)\n .load(this.place.getImage().getUrl())\n .placeholder(R.drawable.placeholder)\n .error(R.drawable.error)\n .centerCrop()\n .into(this.binding.ivImage);\n\n // If author is same as logged user then display edit actions\n if(this.place.getUser().getObjectId().equals(ParseUser.getCurrentUser().getObjectId())) {\n this.binding.rlAuthor.setVisibility(View.GONE);\n this.binding.rlEdit.setVisibility(View.VISIBLE);\n } else {\n this.binding.rlAuthor.setVisibility(View.VISIBLE);\n this.binding.rlEdit.setVisibility(View.GONE);\n\n this.binding.rlAuthor.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(PlaceDetailActivity.this, ProfileActivity.class);\n intent.putExtra(\"user\", place.getUser().getObjectId());\n startActivity(intent);\n }\n });\n }\n\n // Set author's information\n String authorProfileImage, authorName, authorUsername;\n try {\n authorProfileImage = this.place.getUser().getParseFile(User.KEY_PROFILE_PICTURE).getUrl();\n } catch (NullPointerException e) {\n authorProfileImage = \"\";\n Log.e(TAG, \"Author doesn't have image\");\n }\n try {\n authorName = this.place.getUser().get(User.KEY_NAME).toString();\n } catch (NullPointerException e) {\n authorName = \"[NO NAME]\";\n Log.e(TAG, \"Author doesn't have image\");\n }\n try {\n authorUsername = String.format(\"@%s\", this.place.getUser().get(\"username\").toString());\n } catch (NullPointerException e) {\n authorUsername = \"[NO NAME USERNAME]\";\n Log.e(TAG, \"Author doesn't have image\");\n }\n this.binding.tvAuthorName.setText(authorName);\n this.binding.tvAuthorUsername.setText(authorUsername);\n Glide.with(PlaceDetailActivity.this)\n .load(authorProfileImage)\n .placeholder(R.drawable.avatar)\n .error(R.drawable.avatar)\n .circleCrop()\n .into(this.binding.ivAuthorImage);\n\n\n // Set edit actions\n if(this.place.getPublic()) {\n this.binding.btnPublic.setText(R.string.make_private);\n } else {\n this.binding.btnPublic.setText(R.string.make_public);\n }\n this.binding.btnPublic.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n changePlacePrivacy();\n }\n });\n\n // Set delete listener\n this.binding.btnDelete.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n deletePlace();\n }\n });\n\n // Set call fab action listener\n this.binding.fabCall.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.green)));\n this.binding.fabCall.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String uri = \"tel:\" + place.getPhone();\n\n if(uri.length() < 5) {\n Toast.makeText(PlaceDetailActivity.this, \"This place doesn't have a phone\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(uri));\n startActivity(intent);\n }\n });\n\n // Set fab like colors\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Like\");\n query.whereEqualTo(\"user\", ParseUser.getCurrentUser());\n query.whereEqualTo(\"place\", this.place);\n query.findInBackground(new FindCallback<ParseObject>() {\n @Override\n public void done(List<ParseObject> objects, ParseException e) {\n if (e == null) {\n place.liked = objects.size() == 1;\n\n // Set follow button text\n if (place.liked) {\n binding.fabLike.setImageTintList(ColorStateList.valueOf(getColor(R.color.primary)));\n binding.fabLike.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.primary)));\n } else {\n binding.fabLike.setImageTintList(ColorStateList.valueOf(getColor(R.color.black)));\n binding.fabLike.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.black)));\n }\n } else {\n Log.e(TAG, \"Problem knowing if place is liked\", e);\n }\n }\n });\n\n // Set like actions listener\n this.binding.fabLike.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if(place.liked) {\n binding.fabLike.setImageTintList(ColorStateList.valueOf(getColor(R.color.black)));\n binding.fabLike.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.black)));\n unlike();\n } else {\n binding.fabLike.setImageTintList(ColorStateList.valueOf(getColor(R.color.primary)));\n binding.fabLike.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.primary)));\n like();\n }\n place.liked = !place.liked;\n }\n });\n\n // Promote a place\n this.binding.btnPromote.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n binding.rlPromote.setVisibility(View.VISIBLE);\n }\n });\n\n // Promotion cancelled\n this.binding.btnPromoteCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n binding.rlPromote.setVisibility(View.GONE);\n }\n });\n\n // Promote now\n this.binding.btnPromoteNow.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n binding.rlPromote.setVisibility(View.GONE);\n binding.btnPromote.setVisibility(View.GONE);\n binding.loadingPromote.setVisibility(View.VISIBLE);\n\n // Create a new instance of AsyncHttpClient\n AsyncHttpClient client = new AsyncHttpClient();\n\n RequestHeaders headers = new RequestHeaders();\n headers.put(\"x-api-key\", apiKey);\n\n RequestParams params = new RequestParams();\n params.put(\"place\", place.getObjectId());\n params.put(\"user\", ParseUser.getCurrentUser().getObjectId());\n\n client.get(SERVER_URL + \"promote\", headers, params, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int i, Headers headers, JSON json) {\n onToastMessage(\"Place promoted successfully!\", false);\n }\n\n @Override\n public void onFailure(int i, Headers headers, String s, Throwable throwable) {\n onToastMessage(\"Error while promoting place\", true);\n }\n });\n }\n });\n }", "@OnClick(R.id.btn_buy)\n public void onViewClicked() {\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater,\r\n ViewGroup container, Bundle savedInstanceState) {\r\n newitem.user = User.getInstance();\r\n Log.d(\"add class\",newitem.user.getUsername());\r\n View view= inflater.inflate(\r\n R.layout.activity_add, container, false);\r\n Button b = (Button) view.findViewById(R.id.buttonAdd);\r\n item= (EditText) view.findViewById(R.id.iname);\r\n quantity=(EditText) view.findViewById(R.id.quantity1);\r\n Button TakePicBut = (Button) view.findViewById(R.id.buttonTakePic);\r\n image = (ImageView) view.findViewById(R.id.imageView);\r\n\r\n loginDataBaseAdapter=new LoginDataBaseAdapter(getActivity());\r\n loginDataBaseAdapter=loginDataBaseAdapter.open();\r\n // Take a picture button\r\n TakePicBut.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n LoginDataBaseAdapter.getInstance(getActivity()).getUserItems(newitem.user);\r\n dispatchTakePictureIntent();\r\n }\r\n });\r\n\r\n\r\n b.setOnClickListener(new View.OnClickListener(){\r\n @Override\r\n public void onClick(View view) {\r\n String Item1=item.getText().toString();\r\n String Quantity=quantity.getText().toString();\r\n\r\n Log.d(\"1\",Quantity);\r\n if(item.length()==0 || quantity.length()==0){\r\n Toast.makeText(getActivity().getApplicationContext(), \"Enter values\", Toast.LENGTH_SHORT).show();\r\n }\r\n\r\n else {\r\n // Save the Data in Database\r\n newitem.name=Item1;\r\n newitem.quantity=Quantity;\r\n loginDataBaseAdapter.insertEntry1(newitem);\r\n item.setText(\"\");\r\n quantity.setText(\"\");\r\n }\r\n }\r\n });\r\n\r\nreturn view;\r\n }", "@Override\n public void onBindViewHolder(RecyclerViewItensList.ViewHolder holder, int position) {\n Model notes = mNotes.get(position);\n\n // Set item views based on your views and data model\n TextView textView = holder.textViewDescription;\n textView.setText(notes.getDescription());\n TextView textView1 = holder.textViewPrice;\n textView1.setText(notes.getPriceLikeString());\n TextView textView2 = holder.textViewQuantify;\n textView2.setText(notes.getQuantifyLikeString());\n ImageView img = holder.imageitem;\n img.setVisibility(View.GONE);\n\n holder.itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Model notes = mNotes.get(position);\n Intent intent = new Intent(view.getContext(), ItensList.class);\n\n Bundle bundle = new Bundle();\n bundle.putSerializable(KEY_EDIT_ITENS,notes);\n intent.putExtras(bundle);\n getContext().startActivity(intent);\n\n Toast.makeText(getContext(), \"Recycle Click\" + position+\" \", Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_new_exercise, container, false);\n\n //XML Declarations\n //(insert image view declaration here)\n final EditText exerciseName = (EditText) view.findViewById(R.id.etExerciseName);\n final Spinner exerciseType = (Spinner) view.findViewById(R.id.sExerciseType);\n final EditText exerciseTime = (EditText) view.findViewById(R.id.etExerciseTime);\n final EditText exerciseDistance = (EditText) view.findViewById(R.id.etExerciseDistance);\n final Spinner exerciseMuscleGroup = (Spinner) view.findViewById(R.id.sExerciseMuscleGroup);\n final EditText exerciseWeight = (EditText) view.findViewById(R.id.etExerciseWeight);\n\n Button bSaveExercise = (Button) view.findViewById(R.id.bSaveNewExercise);\n bSaveExercise.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n //test to make sure fields are not null\n if (isEmpty(exerciseName)){\n //display error message\n Toast.makeText(getActivity(), \"You did not enter a name\", Toast.LENGTH_SHORT).show();\n }\n else if (isEmpty(exerciseTime)){\n //display error message\n Toast.makeText(getActivity(), \"You did not enter a time\", Toast.LENGTH_SHORT).show();\n }\n else if (isEmpty(exerciseDistance)){\n //display error message\n Toast.makeText(getActivity(), \"You did not enter a distance\", Toast.LENGTH_SHORT).show();\n }\n else if(isEmpty(exerciseWeight)){\n //display error message\n Toast.makeText(getActivity(), \"You did not enter a weight\", Toast.LENGTH_SHORT).show();\n }\n else{\n //Store values from fields entered by user\n //(insert image view value here)\n String name = (String) exerciseName.getText().toString();\n String type = (String) exerciseType.getSelectedItem().toString();\n int time = Integer.parseInt(exerciseTime.getText().toString());\n int distance = Integer.parseInt(exerciseDistance.getText().toString());\n String muscleGroup = (String) exerciseMuscleGroup.getSelectedItem().toString();\n int weight = Integer.parseInt(exerciseWeight.getText().toString());\n\n //send data to database\n\n //go back to Activities Screen\n Fragment vActivityScreen = new ActivitiesFragment();\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.content_user_area, vActivityScreen);\n fragmentTransaction.commit();\n }\n\n }\n });\n\n return view;\n }", "@Override\r\n public void onClick(View v) {\n mPhotoImage.setVisibility(View.GONE);\r\n mCameraButton.setVisibility(View.VISIBLE);\r\n mGallaryButton.setVisibility(View.VISIBLE);\r\n mCameraButton.setEnabled(true);\r\n mGallaryButton.setEnabled(true);\r\n mConfirmButton.setEnabled(false);\r\n mPhotoframeText.setText(R.string.upload_photo_label);\r\n }", "public String getImg(){\n return img;\n }", "private void findView() {\n\t\tteacher = Teacher.getTeacher(this);\r\n\t\tsaoyisaonan = (ImageView) findViewById(R.id.saoyisaonan);\r\n\t\tsaoyisaonv = (ImageView) findViewById(R.id.saoyisaonv);\r\n\t\tif(teacher.isBoy()){\r\n\t\t\tsaoyisaonan.setVisibility(View.VISIBLE);\r\n\t\t}else{\r\n\t\t\tsaoyisaonv.setVisibility(View.VISIBLE);\r\n\t\t}\r\n\t\tclose = (ImageView) findViewById(R.id.close);\r\n\t\tclose.setOnClickListener(this);\r\n\t\tlogin = (ImageView) findViewById(R.id.login);\r\n\t\tlogin.setOnClickListener(this);\r\n\t\treg = (ImageView) findViewById(R.id.reg);\r\n\t\treg.setOnClickListener(this);\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tif (ft.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| in.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| wght.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| age1.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| hr1.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| min1.getText().toString().equals(\"\")) {\n\n\t\t\t\t\tToast.makeText(ProfileActivity.this,\n\t\t\t\t\t\t\t\"Enter all the details\", Toast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (height_unit.equals(\"ft\")) {\n\t\t\t\t\t\tuser.setHeight_ft(ft.getText().toString());\n\t\t\t\t\t\tuser.setHeight_in(in.getText().toString());\n\t\t\t\t\t\tcms = (int) (30.48 * Integer.parseInt(ft.getText()\n\t\t\t\t\t\t\t\t.toString()));\n\t\t\t\t\t} else if (height_unit.equals(\"cm\")\n\t\t\t\t\t\t\t&& !ft.getText().equals(null)) {\n\t\t\t\t\t\tuser.setHeight_cm(ft.getText().toString());\n\t\t\t\t\t\tcms = Integer.parseInt(ft.getText().toString());\n\t\t\t\t\t}\n\n\t\t\t\t\tif (weight_unit.equals(\"kgs\")) {\n\t\t\t\t\t\tuser.setWeight_kg(wght.getText().toString());\n\t\t\t\t\t\tkgs = Integer.parseInt(wght.getText().toString());\n\n\t\t\t\t\t} else if (weight_unit.equals(\"lbs\")\n\t\t\t\t\t\t\t&& !ft.getText().toString().equals(\"\")) {\n\t\t\t\t\t\tuser.setWeight_lbs(wght.getText().toString());\n\t\t\t\t\t\tkgs = Integer.parseInt(wght.getText().toString()) / 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tfinal String date = new SimpleDateFormat(\"MM-dd-yyyy\")\n\t\t\t\t\t\t\t.format(new Date());\n\n\t\t\t\t\tuser.setSex(sex);\n\t\t\t\t\tuser.setActive(active);\n\t\t\t\t\tuser.setAge_int(age1.getText().toString());\n\t\t\t\t\tuser.setHr(hr1.getText().toString());\n\t\t\t\t\tuser.setMin(min1.getText().toString());\n\n\t\t\t\t\tif (user.getHeight_ft() == 0) {\n\t\t\t\t\t\tinch = user.getHeight_cm()/2.54;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tinch = (12 * user.getHeight_ft()) + user.getHeight_in();\n\t\t\t\t\t}\n\n\t\t\t\t\tLog.d(\"inch\", String.valueOf(inch));\n\t\t\t\t\tif (user.getWeight_lbs() == 0) {\n\t\t\t\t\t\tweight = 2 * user.getWeight_kg();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tweight = user.getWeight_lbs();\n\t\t\t\t\t}\n\n\t\t\t\t\tbmi = (int) ((weight / (inch * inch)) * 703);\n\n\t\t\t\t\tif (user.getSex().equals(\"female\")) {\n\t\t\t\t\t\tbmr = 655 + (4.35 * weight) + (4.7 * inch)\n\t\t\t\t\t\t\t\t- (4.7 * user.getAge_int());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbmr = 66 + (6.23 * weight) + (12.7 * inch)\n\t\t\t\t\t\t\t\t- (6.8 * user.getAge_int());\n\t\t\t\t\t}\n\n\t\t\t\t\tfactor = (0.57 * (kgs *2) ) / 2200;\n\t\t\t\t\ttotalcal = (int)( bmr * user.active);\n\t\t\t\t\tLog.d(\"totalcal\", String.valueOf(totalcal));\n\t\t\t\t\tuser.setBmi(bmi);\n\t\t\t\t\tuser.setTotalcal(totalcal);\n\t\t\t\t\tuser.setFactor(factor);\n\t\t\t\t\t\n\t\t\t\t\tLog.d(\"user\", user.toString());\n\t\t\t\t\tParseQuery<ParseObject> query = ParseQuery\n\t\t\t\t\t\t\t.getQuery(\"UserData\");\n\t\t\t\t\tquery.whereEqualTo(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> arg0,\n\t\t\t\t\t\t\t\tParseException arg1) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tif (arg1 == null && arg0.size() != 0) {\n\t\t\t\t\t\t\t\tfor (ParseObject p : arg0) {\n\t\t\t\t\t\t\t\t\tp.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\t\t\t\t\tp.put(\"weight\", kgs);\n\t\t\t\t\t\t\t\t\tp.put(\"age\", Integer.parseInt(age1\n\t\t\t\t\t\t\t\t\t\t\t.getText().toString()));\n\t\t\t\t\t\t\t\t\tp.put(\"height\", cms);\n\t\t\t\t\t\t\t\t\tp.put(\"active\", String.valueOf(active));\n\t\t\t\t\t\t\t\t\tp.put(\"sex\", sex);\n\t\t\t\t\t\t\t\t\tp.put(\"bmi\", bmi);\n\t\t\t\t\t\t\t\t\tp.put(\"totalcal\", totalcal);\n\t\t\t\t\t\t\t\t\tp.put(\"factor\", String.valueOf(factor));\n\n\t\t\t\t\t\t\t\t\tp.saveEventually();\n\t\t\t\t\t\t\t\t\tLog.d(\"place\", ParseUser.getCurrentUser().toString());\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (arg0.size() == 0) {\n\t\t\t\t\t\t\t\tParseObject p = new ParseObject(\"UserData\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tp.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\t\t\t\tp.put(\"weight\", kgs);\n\t\t\t\t\t\t\t\tp.put(\"age\", Integer.parseInt(age1.getText()\n\t\t\t\t\t\t\t\t\t\t.toString()));\n\t\t\t\t\t\t\t\tp.put(\"height\", cms);\n\t\t\t\t\t\t\t\tp.put(\"active\", String.valueOf(active));\n\t\t\t\t\t\t\t\tp.put(\"sex\", sex);\n\t\t\t\t\t\t\t\tp.put(\"bmi\", bmi);\n\t\t\t\t\t\t\t\tp.put(\"totalcal\", totalcal);\n\n\t\t\t\t\t\t\t\tp.put(\"factor\", String.valueOf(factor));\n\t\t\t\t\t\t\t\tLog.d(\"place\", ParseUser.getCurrentUser().toString());\n\t\t\t\t\t\t\t\tp.saveEventually();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tLog.d(\"score\", \"Error: \" + arg1.getMessage());\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\tParseObject wgt = new ParseObject(\"Weight\");\n\t\t\t\t\twgt.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\twgt.put(\"weight\", kgs);\n\t\t\t\t\twgt.put(\"date\", date);\n\t\t\t\t\twgt.saveEventually();\n\t\t\t\t}\n\n\t\t\t\tIntent i = new Intent(ProfileActivity.this,\n\t\t\t\t\t\tFitnessActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\tfinish();\n\t\t\t}", "public interface PosterClickListener {\n\n void onPosterClicked(int position, ImageView view);\n}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n setTitle(\"Books Search\");\n\n img = findViewById(R.id.img);\n rv = findViewById(R.id.rv);\n //etSearch = findViewById(R.id.etSearch);\n }", "@Override\n public void onClick(View v) {\n turn++;\n ys.setText(\"Your Score : \"+score);\n if(turn==19 || chances==3)\n {\n checkEnd();\n }\n else\n {\n\n setImages();\n }\n icon.setVisibility(View.INVISIBLE);\n }", "public ViewHolder(View itemView) {\n super(itemView);\n tvNature = (TextView)itemView.findViewById(R.id.item_name);\n tvAmountNature = (TextView)itemView.findViewById(R.id.item_amount);\n }", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView Ename = (TextView) view.findViewById(R.id.Ename);\n TextView Designation = (TextView) view.findViewById(R.id.Designation);\n TextView Salary = (TextView) view.findViewById(R.id.Salary);\n // Extract properties from cursor\n String ename = cursor.getString(cursor.getColumnIndexOrThrow(\"ename\"));\n String designation = cursor.getString(cursor.getColumnIndexOrThrow(\"designation\"));\n int salary = cursor.getInt(cursor.getColumnIndexOrThrow(\"salary\"));\n\n ImageView imgView =(ImageView)view.findViewById(R.id.ImageView01);\n\n\n imgView.setImageResource(R.drawable.ic_launcher);\n\n\n\n\n\n // Populate fields with extracted properties\n Ename.setText(ename);\n Designation.setText(designation);\n Salary.setText(String.valueOf(salary));\n }", "public ItemHolder(@NonNull View itemView) {\n super(itemView);\n /*tvNombre=itemView.findViewById(R.id.tvNombre);\n tvCiudad=itemView.findViewById(R.id.etCiudad);\n btBorrar=itemView.findViewById(R.id.btBorrar);\n btEditar=itemView.findViewById(R.id.btEditar);\n cl = itemView.findViewById(R.id.cl);\n ivImagen = itemView.findViewById(R.id.ivImagen);*/\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.home8_day3_secondview);\n Log.i(TAG, \"onCreate: \");\n textView = findViewById(R.id.textview);\n imageView = findViewById(R.id.image);\n\n Intent intent = getIntent();\n if (intent != null){\n String root = intent.getStringExtra(\"root\");\n if (root.equals(\"button1\")){\n String name = intent.getStringExtra(\"name\");\n int age = intent.getIntExtra(\"age\",0);\n textView.setText(\"name=\"+name+\" age=\"+age);\n } else if (root.equals(\"button2\")){\n String name = intent.getStringExtra(\"name\");\n int age = intent.getIntExtra(\"age\",0);\n textView.setText(\"name=\"+name+\" age=\"+age);\n }else if (root.equals(\"button3\")){\n Person person = (Person) intent.getSerializableExtra(\"person\");\n textView.setText(person.toString());\n }else if (root.equals(\"button4\")){\n Bitmap bitmap = (Bitmap) intent.getParcelableExtra(\"bitmap\");\n imageView.setImageBitmap(bitmap);\n }\n }\n }", "public void setBid(String bid) {\r\n this.bid = bid;\r\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode == RESULT_OK){\n if(requestCode == REQUEST_CODE && data.getExtras().get(\"data\")!=null){\n Bitmap bp = (Bitmap) data.getExtras().get(\"data\");\n prescription.setVisibility(View.VISIBLE);\n userNameQO.setVisibility(View.GONE);\n phoneNo.setVisibility(View.GONE);\n captureButton.setText(getResources().getString(R.string.send_prescription));\n prescription.setImageBitmap(bp);\n }\n }\n }", "@Override\n public View getView(final int position, View convertView, ViewGroup parent) {\n final Holder holder=new Holder();\n\n\n\n AuctionBean users = list.get(position);\n convertView = inflater.inflate(R.layout.customelayout, null);\n\n holder.imgThumbnail = (ImageView) convertView.findViewById(R.id.imageview);\n holder.top_sr_no = (TextView) convertView.findViewById(R.id.textsrno);\n holder.bottom_sr_no = (TextView) convertView.findViewById(R.id.textbottom_srno);\n\n return convertView;\n }", "@Override\n public void onClick(View v) {\n if (tries.getVisibility() == View.VISIBLE) {\n // do nothing\n\n } else {\n\n boulder_points.setText(R.string.nulll);\n boulder_grade.setText(R.string.nulll);\n boulder_class.setText(R.string.nulll);\n boulder_completed.setText(R.string.nulll);\n boulder_avgTries.setText(R.string.nulll);\n boulder_progress.setText(R.string.nulll);\n completeBoulder.setVisibility(View.INVISIBLE);\n updateTries.setVisibility(View.INVISIBLE);\n updateGrade.setVisibility(View.GONE);\n }\n\n }", "@Override\n public void run() {\n TextInputEditText itemName = activityTestRule.getActivity().findViewById(R.id.sell_item_name),\n itemDesc = activityTestRule.getActivity().findViewById(R.id.sell_item_desc),\n itemPrice = activityTestRule.getActivity().findViewById(R.id.sell_item_price);\n\n itemName.setText(\"sddfg\");\n itemDesc.setText(\"dsfdsf\");\n itemPrice.setText(\"12.5\");\n\n activityTestRule.getActivity().findViewById(R.id.sell_button).performClick();\n }", "ImageView getBadgeView();", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (isEdit) {\r\n\t\t\t\t\tisEdit = false;\r\n\t\t\t\t\tiv_user_img.setEnabled(true);\r\n\t\t\t\t\tivedit.setVisibility(View.GONE);\r\n\t\t\t\t\ttvsave.setVisibility(View.VISIBLE);\r\n\r\n\t\t\t\t\tncet.setFocusable(true);\r\n\t\t\t\t\tncet.setFocusableInTouchMode(true);\r\n\t\t\t\t\tncet.requestFocus();\r\n\t\t\t\t\tncet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\r\n\t\t\t\t\t// zhet.setFocusable(true);\r\n\t\t\t\t\t// zhet.setFocusableInTouchMode(true);\r\n\t\t\t\t\t// zhet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t// R.color.grzlinput));\r\n\t\t\t\t\txbet.setClickable(true);\r\n\t\t\t\t\txbet.setFocusable(true);\r\n\t\t\t\t\txbet.setFocusableInTouchMode(true);\r\n\t\t\t\t\txbet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\t\t\t\t\tshret.setFocusable(true);\r\n\t\t\t\t\tshret.setFocusableInTouchMode(true);\r\n\t\t\t\t\tshret.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\t\t\t\t\tlxdhet.setFocusable(true);\r\n\t\t\t\t\tlxdhet.setFocusableInTouchMode(true);\r\n\t\t\t\t\tlxdhet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\t\t\t\t\tsfdqet.setClickable(true);\r\n\t\t\t\t\tsfdqet.setFocusable(true);\r\n\t\t\t\t\tsfdqet.setFocusableInTouchMode(true);\r\n\t\t\t\t\tsfdqet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\t\t\t\t\txxdzet.setFocusable(true);\r\n\t\t\t\t\txxdzet.setFocusableInTouchMode(true);\r\n\t\t\t\t\txxdzet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\t\t\t\t\tyzbmet.setFocusable(true);\r\n\t\t\t\t\tyzbmet.setFocusableInTouchMode(true);\r\n\t\t\t\t\tyzbmet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// editMode();\r\n\t\t\t\t}\r\n\t\t\t}", "protected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.bookdisplay);\n\t\tpreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\t\tprice = (EditText)findViewById(R.id.price);\n\t\tBundle extras = getIntent().getExtras();\n\t\tbookTitle = extras.getString(\"bookTitle\");\n\t\tbookAuthor = extras.getString(\"bookAuthor\");\n\t\tbookPublisher = extras.getString(\"bookPublisher\");\n\t\tbookISBN = extras.getString(\"bookISBN\");\n\t\tbookDescription = extras.getString(\"bookDescription\");\n\t\tLog.d(\"title\", bookTitle);\n\t\tLog.d(\"bokAuthor\", bookAuthor);\n\t\tLog.d(\"title\", bookPublisher);\n\t\tLog.d(\"title\", bookISBN);\n\t\ttitle = (TextView)findViewById(R.id.title);\n\t\tauthor = (TextView)findViewById(R.id.author);\n\t\tdescription = (TextView)findViewById(R.id.description);\n\t\tratings = (TextView)findViewById(R.id.rating);\n\t\tbookcover = (ImageView)findViewById(R.id.bookcover);\n\t\tpublisher = (TextView)findViewById(R.id.publisher);\n\t\tpages = (TextView)findViewById(R.id.pages);\n\t\tcategory = (TextView)findViewById(R.id.categories);\n\t\tisbncode = (TextView)findViewById(R.id.isbncode);\n\t\tonShare = (Button)findViewById(R.id.onShare);\n\t\t\n\t\tonShare.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tgoToCheck();\n\t\t\t}\n\t\t});\n\t\t\n\t\ttitle.setText(bookTitle);\n\t\tauthor.setText(bookAuthor);\n\t\tpublisher.setText(bookPublisher);\n\t\tisbncode.setText(bookISBN);\n\t\tdescription.setText(bookDescription);\n\t\tratings.setText(bookRatings);\n\t\tcategory.setText(bookCategory);\n\t\tpages.setText(bookPages);\n\t\tbookcover.setImageResource(R.drawable.thumbnail);\n\t\t\n\t\tprogressDialog = new ProgressDialog(this);\n\t progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n\t progressDialog.setCancelable(false);\n\t\t\n\t mDbHelper = new SharedBooksDbAdapter(this);\n\t\tmDbHelper.open();\n\t\t\n\t}", "public interface SmokingSituationView {\n\n void setViewCheck(ImageView vCheck, ImageView vBg);\n void showProgress();\n void hideProgress();\n void openNext();\n}", "public void imageClicked(int imageView){\n //get text from all buttons\n String name=etName.getText().toString().trim();\n String phoneNum=etPhoneNumber.getText().toString().trim();\n String website=etWebsite.getText().toString().trim();\n String address=etLocation.getText().toString().trim();\n\n //check if strings are empty, otherwise close this activity and send intent\n if(name.isEmpty()||phoneNum.isEmpty()||website.isEmpty()||address.isEmpty()){\n Toast.makeText(this, \"Enter all fields\", Toast.LENGTH_SHORT).show();\n }else{\n Intent intent= new Intent();\n intent.putExtra(\"name\", name);\n intent.putExtra(\"phone number\",phoneNum);\n intent.putExtra(\"website\",website);\n intent.putExtra(\"address\", address);\n intent.putExtra(\"image\",imageView);\n setResult(RESULT_OK,intent);\n Activity2.this.finish();\n }\n\n }", "public void setUI(Order order){\n //Load image from the server (internet) using Ion\n Ion.with(this).load(order.getImage()).withBitmap()\n .error(R.drawable.placeholder).placeholder(R.drawable.placeholder).intoImageView(imageView);\n titleView.setText(order.getTitle());\n amountView.setText(order.getAmount()+\"\");\n priceView.setText(order.getPrice()+\"\");\n totalPriceView.setText(order.getTotalPrice()+\"\");\n addressView.setText(order.getAddress());\n nameView.setText(order.getName());\n\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\tratingActivity = this;\r\n\r\n\t\tif (DriverDetails.driverDetils != null) {\r\n\t\t\tDriverDetails.driverDetils.finish();\r\n\r\n\t\t}\r\n\t\tsetContentView(R.layout.activity_your_reciept);\r\n\t\t\r\n\t\t// getting typeface\r\n\t\ttypeFace = Typeface\r\n\t\t\t\t.createFromAsset(getAssets(), Utility.TYPE_FACE);\r\n\t\t\r\n\t\t\r\n\t\ttypeFaceItalic = Typeface.createFromAsset(getAssets(),\r\n\t\t\t\tUtility.TYPE_FACE_FORGOT);\r\n \t((TextView)findViewById(R.id.headerText)).setTypeface(typeFace);\r\n\r\n\t\timgReceipt_text2 = (TextView) findViewById(R.id.imgReceipt_text2);\r\n\t\timgReceipt_text2.setTypeface(typeFaceItalic);\r\n\r\n\t\t((Button) findViewById(R.id.btnToroWebLink))\r\n\t\t\t\t.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_SEND);\r\n\r\n\t\t\t\t\t\ti.setType(\"message/rfc822\");\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * i.setClassName(\"com.google.android.gm\",\r\n\t\t\t\t\t\t * \"com.google.android.gm.ComposeActivityGmail\");\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ti.putExtra(Intent.EXTRA_EMAIL,\r\n\t\t\t\t\t\t\t\tnew String[] { \"info@taximobilesolutions.com\" });\r\n\r\n\t\t\t\t\t\tstartActivity(i);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\r\n\t\t// initializing shared preference object\r\n\t\tmPrefrnce = new ToroSharedPrefrnce(Receipt.this);\r\n\t\t\r\n\t\t/*if(!mPrefrnce.getPaymentViaCreditCard()){\r\n\t\t\timgReceipt_text2.setText(\"The amount above will be charged by cash and a receipt for the charge was sent to your registered email address\");\r\n\t\t}*/\r\n\t\tmIntent = getIntent();\r\n\t\tinitialize();\r\n\r\n\t\t//navDrawer();\r\n\r\n\t\t\r\n\t\t//setting values in text fields\r\n\t\t\r\n\t\tif(mIntent.getExtras().getString(\"payVia\").equals(\"0\")){\r\n\t\t\t\r\n\t\t\timgReceipt_text2.setText(getResources().getString(R.string.payvia0));\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\timgReceipt_text2.setText(getResources().getString(R.string.payvia1));\r\n\r\n\t\t}\r\n\t\t\r\n\t\ttxtPhone.setText(mIntent.getExtras().getString(\"driverPhone\"));\r\n\t\ttxtRating.setText(mIntent.getExtras().getString(\"rating\"));\r\n\t\ttxtTaxiModel.setText(mIntent.getExtras().getString(\"taxiModel\"));\r\n\t\ttxtTaxiNo.setText(mIntent.getExtras().getString(\"taxiNumber\"));\r\n\t\ttxtUserName.setText(mIntent.getExtras().getString(\"driverName\"));\r\n\t\ttxtDate.setText(mIntent.getExtras().getString(\"completedDate\"));\r\n\t\tif (!mIntent.getExtras().getString(\"tripAmount\")\r\n\t\t\t\t.equalsIgnoreCase(\"null\")) {\r\n\t\t\ttxtFair.setText( mIntent.getExtras().getString(\"tripAmount\"));\r\n\t\t} else {\r\n\t\t\ttxtFair.setText(\"$ \" + \"N/A\");\r\n\t\t}\r\n\t\tif (mIntent.getExtras().getString(\"taxiType\").equalsIgnoreCase(\"1\")) {\r\n\t\t\tcarIcon.setBackgroundResource(R.drawable.icon_blackcar_grey);\r\n\t\t} else if (mIntent.getExtras().getString(\"taxiType\")\r\n\t\t\t\t.equalsIgnoreCase(\"2\")) {\r\n\t\t\r\n\t\t\tcarIcon.setBackgroundResource(R.drawable.icon_mini_grey);\r\n\t\t} else if (mIntent.getExtras().getString(\"taxiType\")\r\n\t\t\t\t.equalsIgnoreCase(\"3\")) {\r\n\t\t\tcarIcon.setBackgroundResource(R.drawable.icon_mini_grey);\r\n\t\t} else if (mIntent.getExtras().getString(\"taxiType\")\r\n\t\t\t\t.equalsIgnoreCase(\"4\")) {\r\n\t\t\tcarIcon.setBackgroundResource(R.drawable.icon_suvcar_grey);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*if(mIntent.getStringExtra(\"payvia\").equals(\"0\")){\r\n\t\t\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}*/\r\n\t\t/*\r\n\t\t * ImageUtils.getInstance(Receipt.this).setImageUrlToView(\r\n\t\t * mIntent.getExtras().getString(\"driverImage\"), driverImage, null, 0,\r\n\t\t * false, true, 0, 0, false);\r\n\t\t */\r\n\r\n\t\tif (!mIntent.getExtras().getString(\"driverImage\").equals(\"\")) {\r\n\t\t\tPicasso.with(Receipt.this)\r\n\t\t\t\t\t.load(mIntent.getExtras().getString(\"driverImage\"))\r\n\t\t\t\t\t.resize(70, 70).centerCrop().into(driverImage);\r\n\t\t}\r\n\t}", "public void Click_me(View view) {\n weight = wt.getText().toString();\n height = ht.getText().toString();\n\n //function to handle null entries in edit text\n if (TextUtils.isEmpty(weight)) {\n\n /* to handle null entry in edit text\n Toast.makeText(this, \"Please enter valid weight\", Toast.LENGTH_SHORT).show();\n return; */\n\n //another way to handle null entry in edit text\n wt.setError(\"Please enter valid weight\");\n return;\n }\n\n if (TextUtils.isEmpty(height)) {\n\n /* to handle null entry in edit text\n Toast.makeText(this, \"Please enter valid height\", Toast.LENGTH_SHORT).show();\n return; */\n\n //another way to handle null entry in edit text\n ht.setError(\"Please enter valid height\");\n return;\n }\n\n //converting the inputted string into double type\n weight_1 = Double.parseDouble(weight) * factor;\n height_1 = (Double.parseDouble(height) / 100) * factor_1;\n height_2 = Double.parseDouble(height) * factor_1;\n\n //another way to convert string type value into float type\n //weight_1=Float.valueOf(weight);\n\n\n Intent intent = new Intent(MainActivity.this, Second_Activity.class);\n Bundle bundle = new Bundle();\n\n bundle.putInt(\"WC\", wc);\n bundle.putInt(\"HC\", hc);\n bundle.putString(\"Weight\",weight);\n bundle.putString(\"Height\",height);\n bundle.putDouble(\"Weight_1\", weight_1);\n bundle.putDouble(\"Height_1\", height_1);\n bundle.putDouble(\"Height_2\", height_2);\n\n //to align the text in center in java file\n // tv4.setGravity(Gravity.CENTER);\n intent.putExtras(bundle);\n startActivity(intent);\n }", "private void updateUserInterface(){\n\n if (user.gender){\n\n genderImg.setImageDrawable(getDrawable(R.drawable.ic_boy));\n }else{\n genderImg.setImageDrawable(getDrawable(R.mipmap.ic_launcher_foreground));\n }\n\n skillPoint.setText(String.valueOf(user.skillPoints));\n\n name.setText(user.name);\n Toast.makeText(this,\"User: \"+String.valueOf(user.name)+\" Created\",Toast.LENGTH_LONG).show();\n\n\n\n }", "private void setPhotoAttcher() {\n\n }", "void mo6660a(Context context, String str, ImageView imageView, C1492a aVar);", "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\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}" ]
[ "0.58810127", "0.5780765", "0.5670051", "0.561113", "0.553372", "0.5522519", "0.54951036", "0.5473106", "0.5468272", "0.5459216", "0.54524624", "0.5442448", "0.5438035", "0.5413432", "0.5408381", "0.5405635", "0.540544", "0.5401072", "0.5393252", "0.5351669", "0.535102", "0.53400135", "0.5338173", "0.5332808", "0.5318305", "0.5316734", "0.53049326", "0.53043056", "0.53040075", "0.5285365", "0.5284868", "0.52728117", "0.526414", "0.52425903", "0.52392024", "0.5229005", "0.52223015", "0.5221858", "0.5217675", "0.52174634", "0.52128136", "0.5196751", "0.5185303", "0.5181359", "0.5178281", "0.5177102", "0.5167213", "0.51552606", "0.5149404", "0.51467365", "0.51454157", "0.51452017", "0.5144005", "0.513962", "0.51392746", "0.51385766", "0.5133635", "0.51322085", "0.5129607", "0.51209015", "0.511796", "0.51126736", "0.51112294", "0.51046467", "0.51037085", "0.51028305", "0.510115", "0.51000905", "0.5099644", "0.5099123", "0.50939226", "0.5093455", "0.5093324", "0.5092738", "0.5090404", "0.50893474", "0.5088847", "0.5085175", "0.5084392", "0.50825274", "0.5078136", "0.5076364", "0.50758296", "0.5072379", "0.50711", "0.50655806", "0.506505", "0.50637054", "0.5063023", "0.5061075", "0.50602305", "0.5059082", "0.5056431", "0.5053164", "0.5048531", "0.5048461", "0.5047021", "0.5046736", "0.50365454", "0.50318855", "0.5024512" ]
0.0
-1
Test of add method, of class JUnitAssert.
@Test public void testAdd() { System.out.println("add"); int one = 6; int two = 5; JUnitAssert instance = new JUnitAssert(); int expResult = 11; int result = instance.add(one, two); assertEquals(expResult, result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAdd() {\n System.out.println(\"add\");\n al.add(1);\n Integer a = 1;\n assertEquals(a, al.get(0));\n }", "@Test\n\tvoid testAdd() {\n\t\tint result = calculator.add(1,3);//act\n\t\tassertEquals(4,result);//assert//customized the failed message \"Test failed\"\n\t}", "@Test\n public void addExerciseTest() {\n\n actual.addExercise(\"new exercise\");\n\n Assert.assertEquals(Arrays.asList(EXPECTED_EXERCISES), actual.getExercises());\n }", "@Test\r\n\tpublic void testAdd() {\n\t\tint num1=10;int num2=20;\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertEquals(30, ClientMain.add(num1,num2));\r\n\t\t\r\n\t\t\r\n\t}", "@Test\n public void add() {\n\n collection.add(\"test\");\n assertEquals(collection.getLast(),\"test\");\n }", "@Test\n public void addTest(){\n // Given\n CatHouse catHouse = new CatHouse();\n Cat tom = new Cat(\"tom\", new Date(), 1);\n\n // When\n catHouse.add(tom);\n Integer expected = 1;\n Integer actual = catHouse.getNumberOfCats();\n\n // Then\n Assert.assertEquals(expected, actual);\n }", "@Test\n public void addTest() {\n double expected = 5.5;\n double actual = calculatorApp.add();\n Assert.assertThat(\"Addition function in CalculatorApp: Expected != Real\", actual, is(expected));\n }", "@Test\r\n\tpublic void testAdd() {\r\n\t\tlist.add(new Munitions(23, 24, \"cuprum\"));\r\n\t\tAssert.assertEquals(16, list.size());\r\n\t\tAssert.assertTrue(list.get(15).equals(new Munitions(23, 24, \"cuprum\")));\r\n\t}", "public void testAdd() {\r\n assertEquals(0, list.size());\r\n list.add(\"A\");\r\n assertEquals(1, list.size());\r\n list.add(\"B\");\r\n assertEquals(2, list.size());\r\n assertEquals(\"B\", list.get(1));\r\n\r\n }", "@Test\n void addItem() {\n }", "@Test\n public void testAdd() {\n System.out.println(\"testing add\");\n Arithmetic arithmetic = new Arithmetic(); \n \n assertEquals(\"unexpected result of addition\", 8, arithmetic.add(3,5));\n assertEquals(\"unexpected result of addition\", 6, arithmetic.add(0,6));\n assertEquals(\"unexpected result of addition\", -14, arithmetic.add(0,-14));\n assertEquals(\"unexpected result of addition\", 0, arithmetic.add(-5,5));\n assertEquals(\"unexpected result of addition\", -6, arithmetic.add(-12,6));\n \n }", "@Test\n public void testAdd() {\n }", "@Test\n public void testAdd() {\n }", "@Test\n public void addMovie_test() {\n theater.getMovies().add(\"Love Actually\");\n String expected = \"Love Actually\";\n String actual = theater.getMovies().get(4);\n Assert.assertEquals(expected,actual);\n }", "@Test\n void addItem() {\n\n }", "@Test\r\n\tpublic void testAddE() {\r\n\t\tassertEquals(0, ll.size());\r\n\t\tassertTrue(ll.isEmpty());\r\n\t\t\r\n\t\tassertTrue(ll.add(t5));\r\n\t\tassertEquals(1, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\t\r\n\t\tassertTrue(ll.add(t4));\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t\r\n\t\tassertTrue(ll.add(t3));\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\tassertEquals(t3, ll.get(2));\r\n\t\t\r\n\t\tassertFalse(ll.add(null));\r\n\t\tassertFalse(ll.add(t3));\r\n\t\ttry {\r\n\t\t\tll.get(-1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tll.get(3);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t}", "@Test\n public void testAddMine() throws Exception {\n Mine.addMine(9, 9);\n assertEquals(\"success\", Mine.addMine(9, 9));\n\n }", "@Test(timeout = 50)\r\n\t// The below method is a test method\r\n\tpublic void testAdd() {\n\t\ttry {\r\n\t\t\tint calculatedValue = calc.add(20, 30);\r\n\t\t\tint expectedValue = 50;\r\n\t\t\tassertEquals(expectedValue, calculatedValue);\r\n\t\t} catch (NegativeNumberException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"Negative number\");\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\r\n public void testAddition() {\n }", "@Test\n public void testAddition() {\n Addition add = new Addition();\n assertEquals(\"Addition Failed!\", summation, add.AddOperation(v1, v2));\n System.out.println(\"Test for \" + v1 + \" and \" + v2 + \" has been passed!\\n\");\n }", "boolean testAdd(Tester t) {\n return t.checkExpect(this.p5.add(this.p7), new MyPosn(249, 50))\n && t.checkExpect(this.p6.add(this.p1), new MyPosn(51, 50));\n }", "@Test\n public void testAdd(){\n DogHouse testDogHouseAdd = new DogHouse();\n Integer expected = 1;\n\n Dog newDog = new Dog (\"Scully\", new Date(), 1);\n testDogHouseAdd.add(newDog);\n\n Integer actual = testDogHouseAdd.getNumberOfDogs();\n\n Assert.assertEquals(expected, actual);\n }", "public void testAddEntry(){\n }", "public void testAdd() {\r\n Object[] objects = new String[OPERATIONS];\r\n\r\n for (int i = 0; i < OPERATIONS; i++) {\r\n objects[i] = new String(\"stress\" + i);\r\n }\r\n\r\n //test add.\r\n long startTime = System.currentTimeMillis();\r\n\r\n for (int i = 0; i < OPERATIONS; i++) {\r\n target.add(objects[i]);\r\n }\r\n\r\n long endTime = System.currentTimeMillis();\r\n System.out.println(\"Stress tests ------ \" + \" add(Object) in \" + OPERATIONS + \" times in \" +\r\n Integer.toString((int) (endTime - startTime)) + \" ms\");\r\n\r\n //verify contains.\r\n Collection collection = new ArrayList();\r\n\r\n for (int i = 0; i < OPERATIONS; i++) {\r\n assertTrue(\"not contained.\", target.contains(objects[i]));\r\n collection.add(objects[i]);\r\n }\r\n\r\n assertTrue(\"The collection should be contained.\", target.containsAll(collection));\r\n }", "public void testAdd() {\n\t\tString input = \"add \\\"a new task\\\" 10/10/2015 flag\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected =\"a new task has been added sucessfully\";\n\t\tassertEquals(expected,actual);\n\t}", "@Test\n public void add() throws Exception {\n CollisionList list = new CollisionList();\n assertEquals(null, list.add(\"key\", \"value\"));\n assertEquals(\"value\", list.add(\"key\", \"value2\"));\n }", "@Test\n public void testAdd(){\n }", "private void testAdd(){\n System.out.println(\"------ TESTING: add(int element) -----\");\n try{\n // add values to list, the sequence is 0,1,....,iSize-1\n for(int i = 0; i < iSize; i++) {\n // if the add method returns false the program did not work correctly\n if (!iTestList.add(i))\n throw new RuntimeException(\"FAILED -> failed to add value to list\");\n }\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n }", "@Test\n\tpublic void addStudentTest() {\n\t\tint numberOfStudents = student.getNumberOfStudents();\n\n\t\t// add a new student\n\t\tstudent.newStudent();\n\n\t\t// expected number of students after adding a new student\n\t\tint expected = numberOfStudents++;\n\n\t\t// actual number of students\n\t\tint actual = student.getNumberOfStudents();\t\t\n\t\tassertEquals(expected, actual);\n\t}", "@Test\n public void addition() {\n\n }", "@Test\n\tpublic void testAddition() {\n\t assertEquals(\"4 + 5 must be 9\", 9, this.tester.addTwoNumbers(4, 5));\n\t }", "@Test // New test annotation without a try/catch\r\n\tpublic void testAdd1() {\n\t\t\r\n\t\t\ttry {\r\n\t\t\t\tint calculatedValue = calc.add(-20, 30);\r\n\t\t\t\tint expectedValue = 10;\r\n\t\t\t\tassertEquals(expectedValue, calculatedValue);\r\n\t\t\t} catch (NegativeNumberException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n//\t\t\t\te.printStackTrace();\r\n\t\t\t\tSystem.out.println(\"Negative number\");\r\n\t\t\t}\r\n\t}", "@Test\n public void addToIncreaseCount() {\n testList.add(42);\n assertEquals(1, testList.count());\n }", "@Test\n public void validAdd1() {\n assertEquals(i3, isl.get(2));\n\n //checks the amount of ingredient 4\n assertEquals(2.39, ((Ingredient) isl.get(3)).amountNeed, 0);\n assertEquals(1.01, ((Ingredient) isl.get(3)).amountHave, 0);\n\n //add an ingredient that is already present in the list\n //the amount should be added to the current amount 2.39 + 0.45 = 2.84\n //ignores the fact that category and unit don't match\n assertFalse(isl.add(new Ingredient(\"vANiLle\", \"niks\", 0.45, 0.69, \"none\")));\n assertEquals(2.84, ((Ingredient) isl.get(3)).amountNeed, 0.00001);\n assertEquals(1.7, ((Ingredient) isl.get(3)).amountHave, 0.00001);\n assertEquals(\"kruiden\", ((Ingredient) isl.get(3)).category);\n assertEquals(Unit.GRAMS, ((Ingredient) isl.get(3)).unit);\n\n //add a new ingredient and check if it's added correctly\n assertTrue(isl.add(new Ingredient(\"cookies\", \"yum\", 3, 4, \"none\")));\n assertEquals(\"cookies\", isl.get(5).name);\n assertEquals(\"yum\", ((Ingredient) isl.get(5)).category);\n assertEquals(3, ((Ingredient) isl.get(5)).amountNeed, 0);\n assertEquals(4, ((Ingredient) isl.get(5)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl.get(5)).unit);\n }", "@Test\n\tpublic void testAdd1() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\n\t\tint notadd = 3;\n\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\n\t\tlistObj2.add(notadd);\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t}", "@Test// to tell jUnit that method with @Test annotation has to be run. \n\tvoid testAdd() {\n\t\tSystem.out.println(\"Before assumption method: Add Method\");\n\t\tboolean isServerUp = false;\n\t\tassumeTrue(isServerUp,\"If this method ran without skipping, my assumption is right\"); //Eg: This is used in occasions like run only when server is up.\n\t\t\n\t\tint expected = 2;\n\t\tint actual = mathUtils.add(0, 2);\n\t\t//\t\tassertEquals(expected, actual);\n\t\t// can add a string message to log \n\t\tassertEquals(expected, actual,\"add method mathUtils\");\n\t}", "@Test\r\n public void addWorks() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n assertTrue(s.add(1));\r\n assertTrue(s.contains(1));\r\n assertFalse(s.add(1));\r\n }", "@Test\n public void testAdd() {\n System.out.println(\"add\");\n int cod = 0;\n int semestre = 0;\n String nombre = \"\";\n int cod_es = 0;\n cursoDAO instance = new cursoDAO();\n boolean expResult = false;\n boolean result = instance.add(cod, semestre, nombre, cod_es);\n assertEquals(expResult, result);\n \n }", "@Test\r\n public void testAdd() {\r\n Grocery entry1 = new Grocery(\"Mayo\", \"Dressing / Mayo\", 1, 2.99f, 1);\r\n System.out.println(entry1.toString());\r\n // Initial state\r\n assertEquals(0, instance.size());\r\n assertFalse(instance.contains(entry1));\r\n\r\n instance.add(entry1);\r\n\r\n // Test general case (size)\r\n assertEquals(1, instance.size());\r\n\r\n // Test general case (content)\r\n assertTrue(instance.contains(entry1));\r\n\r\n // Test combined quantity case\r\n // Test that matching ignores letter case\r\n// int initialQuantity = entry1.getQuantity();\r\n int diff = 1;\r\n// int newQuantity = initialQuantity + diff;\r\n Grocery duplicate = new Grocery(entry1.getName().toLowerCase(),\r\n entry1.getCategory());\r\n duplicate.setQuantity(diff);\r\n instance.add(duplicate);\r\n System.out.println(instance.toString());\r\n // and ? do we test anything here?\r\n }", "@Test\n @Tag(\"Math\")\n void testAdd() {\n int expected = 2;\n int result = utils.add(1,1);\n assertEquals(expected,result,\"this method adds the two integers and return integer\");\n }", "@Test\n public void addTest() {\n BinaryTree testTree = new BinaryTree();\n ComparableWords word=new ComparableWords(\"prueba\",\"test\",\"test\");\n assertNull(testTree.root);\n testTree.add(word);\n assertNotNull(testTree.root);\n }", "@Test\n public void addTest(){\n \n Assert.assertTrue(p1.getName().equals(\"banana\"));\n Assert.assertTrue(c1.getEmail().equals(\"e@mail.nu\"));\n \n }", "@Test\r\n\tpublic void testAddIntE() {\r\n\t\tassertEquals(0, ll.size());\r\n\t\tassertTrue(ll.isEmpty());\r\n\r\n\t\t// valid additions\r\n\t\tll.add(0, t3);\r\n\t\tassertEquals(1, ll.size());\r\n\t\tll.add(0, t2);\r\n\t\tassertEquals(2, ll.size());\r\n\t\tll.add(2, t4);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertFalse(ll.isEmpty());\r\n\r\n\t\t// invalid additions\r\n\t\ttry {\r\n\t\t\tll.add(-1, t1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(4, t5);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(0, t3);\r\n\t\t\tfail();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(0, null);\r\n\t\t\tfail();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t}", "@Test\n\tpublic void addTest() {\n\t\t\n\t\tFraction expected = new Fraction(120, 200);\n\t\tFraction actual = x.add(y);\n\t\t\n\t\tassertEquals(expected.getNumerator(), actual.getNumerator());\n\t\tassertEquals(expected.getDenominator(), actual.getDenominator());\n\t\tassertEquals(expected.toString(), actual.toString());\n\t\t\n\t}", "@Test\n\tpublic void testAdd(){\n\t\t\n\t\tFraction testFrac1 = new Fraction();\n\t\t\n\t\tassertTrue(\"Didn't add correctly\",testFrac1.add(new Fraction(25,15)).toString().equals(new Fraction(40,15).toString()));\n\t}", "@Test(expected = NoSuchElementException.class)\n public void whenAddElementInsertThenElementCouldBeReturnedByGetMethod() {\n testedLLC.add(zero, 0);\n testedLLC.add(insert, 2);\n assertThat(testedLLC.get(0), is(zero));\n assertThat(testedLLC.get(1), is(first));\n assertThat(testedLLC.get(2), is(insert));\n assertThat(testedLLC.get(3), is(second));\n assertThat(testedLLC.get(4), is(third));\n testedLLC.get(5);\n }", "@Test\r\n public void testAddNumber() {\r\n System.out.println(\"addNumber\");\r\n nc1.addNumber(n1);\r\n newarr_test1.add(n1);\r\n assertEquals(newarr_test1, nc1.ncarr);\r\n \r\n }", "@Test\n public void testAddMaterialOneMaterial() {\n String material = \"material\";\n planned.addMaterials(material);\n\n assertEquals(planned.getMaterials().size(), 1);\n\n assertTrue(planned.getMaterials().contains(material));\n\n }", "@Test\n public void add5_checkTotal_shouldBe5() {\n Calculator calculator = new Calculator();\n\n // Act - add 5\n calculator.add(5);\n\n // Assert - check that the new total is 5\n Assert.assertEquals(5, calculator.getTotal());\n }", "@Test\n public void testAddACopy() {\n }", "@Test (dataProvider=\"testdata\")\r\n\r\n\r\n\r\n\t //public void testAdd(Integer exp, Inputs i) {\r\n\r\n\t public void testAdd(Integer exp, int a, int b) {\n\r\n\t assertEquals( exp, (Integer) calci.add(a,b));\r\n\r\n\t //fail(\"expected exceotion didn't occur\");\r\n\r\n\t //assertTrue(false);\r\n\r\n\t }", "public void testADDWithData() throws Exception {\n String data =\"Some words about Helen of Troy\";\n doAdd(data, null);\n }", "@Test\n @DisplayName(\"Test for add employee to employee arrayList if correct\")\n public void testAddEmployeeTrue(){\n assertEquals(\"test\",department.getEmployees().get(0).getFirstName());\n assertEquals(\"test\",department.getEmployees().get(0).getLastName());\n assertEquals(\"test\",department.getEmployees().get(0).getPersonNumber());\n }", "@Test\n public void addDogTest() {\n Dog dog = new Dog(\"Her\", new Date(), 2);\n DogHouse.add(new Dog(\"Jim\", new Date(), 0));\n DogHouse.add(new Dog(\"Him\", new Date(), 1));\n Integer expected = DogHouse.getNumberOfDogs() + 1;\n DogHouse.add(dog);\n\n Assert.assertEquals(expected, DogHouse.getNumberOfDogs());\n }", "public void testAdd() {\n System.out.println(\"add\");\n String key = \"\";\n Object value = null;\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n Object expResult = null;\n Object result = instance.add(key, value);\n assertEquals(expResult, result);\n }", "@Test\n public void addPersonTest() {\n \tHelloWorldImpl hello=new HelloWorldImpl();\n \tPersonRequest pr1=new PersonRequest();\n \tpr1.setName(\"satish\");\n \tpr1.setSurname(\"namdeo\");\n \tpr1.setLocation(\"imppetus\");\n \tString actualResult=hello.addPerson(pr1);\n \t//check for result is not empty.\n \tassertNotNull(\"Result is not null\",actualResult);\n \tString expectedResult=\"person added\";\n \t//check for equality\n \tassertThat(actualResult).isEqualTo(expectedResult);\n \t//System.out.println(\"addPersonTest result : \"+result);\n }", "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 @DisplayName(\"Test for add patient to patient arrayList if correct\")\n public void testAddPatientTrue(){\n assertEquals(\"test\",department.getPatients().get(0).getFirstName());\n assertEquals(\"test\",department.getPatients().get(0).getLastName());\n assertEquals(\"test\",department.getPatients().get(0).getPersonNumber());\n }", "@Test\n @Ignore\n public void testAdd_3args() {\n System.out.println(\"add\");\n int[] number = null;\n int start = 0;\n int end = 0;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 0;\n int result = instance.add(number, start, end);\n assertEquals(expResult, result);\n // TODO Test muss noch erstellt werden..\n fail(\"Test muss noch erstellt werden.\");\n }", "@Test\n\tpublic void testAdd() {\n\t\t\n\t\ttestStructure.add(\"Dog\", 5);\n\t\ttestStructure.add(\"dog\", 1);\n\t\ttestStructure.add(\"dog\", 1);\n\t\ttestStructure.add(\"zebra\", 3);\n\t\ttestStructure.add(\"horse\", 5);\n\n\t\t\n\t\tSystem.out.println(testStructure.showAll());\n\t\tassertEquals(\"[dog: 1, 5\\n, horse: 5\\n, zebra: 3\\n]\", testStructure.showAll().toString());\n\t\t\n\t}", "@Test\n public void addTimeTest() {\n // TODO: test addTime\n }", "private void add() {\n\n\t}", "public void add() {\n }", "@Test\n public void addOrderTest() {\n Orders orders = new Orders();\n orders.addOrder(order);\n\n Order test = orders.orders.get(0);\n String[] itemTest = test.getItems();\n String[] priceTest = test.getPrices();\n\n assertEquals(items, itemTest);\n assertEquals(prices, priceTest);\n }", "@Test\n public void testSize() {\n System.out.println(\"size\");\n al.add(1);\n assertEquals(1, al.size());\n }", "@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\n public void testAddPlayer() {\n System.out.println(\"addPlayer\");\n Player player = new Player(\"New Player\");\n Team team = new Team();\n team.addPlayer(player);\n assertEquals(player, team.getPlayers().get(0));\n }", "@Test\r\npublic void unicoNumero(){\r\n try {\r\n assertEquals(Calculadora.add(\"1\"), 1);\r\n assertEquals(Calculadora.add(\"5\"), 5);\r\n assertEquals(Calculadora.add(\"9\"), 9);\r\n } catch (Exception ex) {\r\n fail(\"Error probando la calculadora con un único número\");\r\n }\r\n}", "@Test\r\n\tpublic void addFeedbackTest() {\n\t\tassertNotNull(\"Check if there is valid Feedback arraylist to add to\", feedbackList);\r\n\t\t// After feedback is added Feedback list size should increase - normal\r\n\t\tfeedbackList.add(fb1);\r\n\t\tassertEquals(\"Check that Feedback arraylist size is 1\", 1, feedbackList.size());\r\n\t\t// Then check if correct Feedback was added\r\n\t\tassertSame(\"Check that Feedback is added\", fb1, feedbackList.get(0));\r\n\t}", "@Test\n\t public void testAdd() {\n\t\t TestSuite suite = new TestSuite(RecommendationModelTest.class, AnalysisModelTest.class);\n\t\t TestResult result = new TestResult();\n\t\t suite.run(result);\n\t\t System.out.println(\"Number of test cases = \" + result.runCount());\n\n\t }", "@Test(expected = ListIndexOutOfBoundsException.class)\r\n\tpublic void testExceptionAdd() throws ListIndexOutOfBoundsException\r\n\t{\r\n\t\tthreeElementsInOrder.add(5, 8);\r\n\t}", "public void add();", "@Test\n\tpublic void testAddItem() throws IOException{\n\t\tModel.addItem(item, amount + \"\");\n\t\tassertEquals(amount + \"\", Model.hash.get(item));\n\t\t\n\t}", "@Test\npublic void testAddBalance(){ \n sut.addBalance(100,1,new Account());\n}", "public void add() {\n\t\t\n\t}", "@Test\r\n\tvoid testAdd() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tString output = test.toString();\r\n\t\tassertEquals(\"9 10 7\", output);\r\n\t}", "public void testAdd() {\r\n System.out.println(\"Add\");\r\n Double [][] n = new Double[][]{{-3., -2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E300, -1.1E300}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, 1.1E300, -1.1E300}, \r\n {-6., 0., -1., 0., 2., 0., 6.4, 7.2, 2.2E300, -2.2E300}};\r\n for(int i = 0; i < 10; i++){\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Add(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n }", "@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\r\n\tpublic void testAddObject() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\tassertEquals(0, testArray.size());\r\n\t\ttestArray.add(\"math\");\r\n\t\ttestArray.add(\"science\");\r\n\t\ttestArray.add(\"cs\");\r\n\t\tassertEquals(\"math\", testArray.get(0));\r\n\t\tassertEquals(\"science\", testArray.get(1));\r\n\t\tassertEquals(\"cs\", testArray.get(2));\r\n\t\ttry {\r\n\t\t\ttestArray.add(null);\r\n\t\t\tfail();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// skip\r\n\t\t}\r\n\t}", "abstract void add();", "public void add() {\n\n }", "@Test\r\n\tpublic void testAddNote() throws Exception {\r\n\t\tyakshaAssert(currentTest(), \"true\", exceptionTestFile);\r\n\t}", "@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 void addCustomerTest() {\n\t\tassertNotNull(\"Test if there is valid Customer arraylist to add to\", CustomerList);\r\n\t\t\r\n\t\t//Given an empty list, after adding 1 item, the size of the list is 1 - normal\r\n\t\t//The item just added is as same as the first item of the list\r\n\t\tCustomerMain.addCustomer(CustomerList, cust1);\t\t\r\n\t\tassertEquals(\"Test that Customer arraylist size is 1\", 1, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is added\", cust1, CustomerList.get(0));\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 2? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.addCustomer(CustomerList, cust2);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 2\", 2, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is added\", cust2, CustomerList.get(1));\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 3? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.addCustomer(CustomerList, cust3);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 2\", 3, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is added\", cust3, CustomerList.get(2));\r\n\t}", "@Test\n public void canAddBookToLibrary(){\n library.add(book);\n assertEquals(1, library.countBooks());\n }", "@Test\n public void testAddNewRate() {\n System.out.println(\"addNewRate\");\n int rate = 0;\n RateList instance = new RateList();\n Rate expResult = new Rate(0);\n Rate result = instance.addNewRate(rate);\n assertEquals(expResult, result);\n }", "@Test\r\n\tpublic void testAddPurchaseOrder() {\r\n\t\tassertNotNull(\"Test if there is valid purchase order list to add to\", purchaseOrder);\r\n\r\n\t\tpurchaseOrder.add(o1);\r\n\t\tassertEquals(\"Test that if the purchase order list size is 1\", 1, purchaseOrder.size());\r\n\r\n\t\tpurchaseOrder.add(o2);\r\n\t\tassertEquals(\"Test that if purchase order size is 2\", 2, purchaseOrder.size());\r\n\t}", "@Test\n\tpublic void testAddMoney() {\n\t\tcard.addMoney(200);\n\t\tassertEquals(300.0, card.getBalance());\n\t}", "@Test\n\tpublic void testAdd(){\n\t\tArrayIntList list = buildList(5);\n\t\tassertEquals(5, list.intCol.size());\n\t}", "@Test\n public void addRecipe_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertNotEquals(\"addRecipe - Returns True\", -1, returned);\n }", "public boolean add(T t);", "@api(\"Addition\")\r\n @TestCase(\"This test is for validating Addition of two numbers|Add 3 to 2|Result should be 5\")\r\n @Test\r\n public void hello() {\r\n AddClass ac = new AddClass();\r\n int actual = ac.add(2, 3);\r\n assertEquals(6, actual);\r\n }", "public boolean testAdd() {\n boolean succeeded = true;\n\n // Test positive addition\n this.mockCalculator.x = new Double(10);\n \n Double resultPositive = this.mockCalculator.x(new Double(5));\n Double expectedPositive = new Double(15);\n\n if (!resultPositive.equals(expectedPositive)) {\n succeeded = false;\n System.out.println(\"[FAIL] Calculator adds incorrectly\");\n } else {\n System.out.println(\"[ OK ] Calculator can add positive numbers\");\n }\n\n // Test negative addition\n this.mockCalculator.x = new Double(-10);\n \n Double resultNegative = this.mockCalculator.x(new Double(-5));\n Double expectedNegative = new Double(-15);\n \n if (!resultNegative.equals(expectedNegative)) {\n succeeded = false;\n System.out.println(\"[FAIL] Calculator adds with negative numbers incorrectly\");\n } else {\n System.out.println(\"[ OK ] Calculator can add a negative number\");\n }\n\n return succeeded;\n }", "private void testAddAtIndex(){\n System.out.println(\"------ TESTING : add(int index, int element) ------\");\n try{\n // The insertion will add values to the front\n // the sequence should be iSize-1....,1,0\n for(int i = 0; i < iSize ; i++){\n if(!iTestList.add(0,i))\n throw new RuntimeException(\"FAILED -> add(index,element) not working correctly\");\n }\n // we should test the out of edge cases\n // if we try the following code and the return value is true or if the\n // program crashes then there is a problem\n if(iTestList.add(iSize+10, 999 )){\n throw new RuntimeException(\"FAILED -> index should not be > SIZE\");\n }\n if(iTestList.add(-2,999 )){\n throw new RuntimeException(\"FAILED -> index should not be < 0\");\n }\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "public void testAdd() {\n\ttry {\n SynchronousQueue q = new SynchronousQueue();\n assertEquals(0, q.remainingCapacity());\n q.add(one);\n shouldThrow();\n } catch (IllegalStateException success){\n\t}\n }", "@Test\n public void testAddOneCard() {\n System.out.println(\"addOneCard\");\n Card addedCard = null;\n // TEST 1 : add a null card\n System.out.println(\" TEST 1 add a null card\");\n Deck instance = new Deck();\n try {\n instance.addOneCard(addedCard);\n }\n catch (NullPointerException aExp){\n assert(aExp.getMessage().contains(\"Null Card can't be added\"));\n }\n assertTrue(\"Adding a null card fail\", true);\n \n // TEST 2 : add a card, draw it and check it's the good one.\n System.out.println(\" TEST 2 add a card. Check it's on top\");\n instance = new Deck();\n Card card = new Card(cardColors.HEART, cardValues.THREE);\n int expResulti = 0;\n instance.addOneCard(card);\n Card drawnCard = instance.drawOneCard();\n assertEquals(expResulti, card.compare(drawnCard));\n \n // TEST 3 : add an existing card.\n }", "@Test\r\n\tpublic void addEmployeeTestCase1() {\n\t\tEmployee employee1 = new Employee();\r\n\t\temployee1.name = \"JosephKuruvila\";\r\n\t\temployee1.role = \"Software Developer\";\r\n\t\temployee1.employeeID = \"Jose2455\";\r\n\t\temployee1.email = \"joseph@chainsys.com\";\r\n\t\temployee1.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee1.gender = \"Male\";\r\n\t\temployee1.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee1.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tboolean isAddedEmployee = EmployeeOperations.addEmployee(employee1);\r\n\t\tassertTrue(isAddedEmployee);\r\n\t}", "public void add (Object t)\r\n {\r\n }", "@Test\n public void testAddCar() {\n\n }", "@Test\r\n\tpublic void testSum() { //testing the adding method\r\n\t\tnum1 = 2; \r\n\t\tnum2 = 8;\r\n\t\tresult = calculate.sum(num1, num2); //result stores the method of add\r\n\t\texpected = 10;\r\n\t\t\r\n\t\tassertEquals(expected,result); //compares add to the expected, if no match then error \r\n\t}" ]
[ "0.7867948", "0.7743135", "0.7653928", "0.76418257", "0.7574051", "0.75544935", "0.75213283", "0.74276453", "0.74139", "0.7390789", "0.7390758", "0.7341608", "0.7341608", "0.7292188", "0.72769094", "0.7251025", "0.721666", "0.7215764", "0.72128445", "0.72106624", "0.7174326", "0.7167116", "0.7163325", "0.7151481", "0.7125029", "0.7114634", "0.7084011", "0.7077741", "0.70726633", "0.70580274", "0.7038823", "0.70327574", "0.7020443", "0.70114094", "0.7009231", "0.6999112", "0.6992886", "0.69898796", "0.698183", "0.69594157", "0.69415474", "0.69249153", "0.690189", "0.6880086", "0.68703973", "0.6854127", "0.6850078", "0.6844062", "0.6838257", "0.68198454", "0.6811686", "0.68087655", "0.6797375", "0.6795861", "0.67661315", "0.67603105", "0.67585826", "0.6752857", "0.6746238", "0.6743808", "0.67404854", "0.6737833", "0.6737314", "0.6731091", "0.6730821", "0.6722027", "0.67130774", "0.6709014", "0.6702694", "0.6700714", "0.66961753", "0.6688525", "0.6685242", "0.66666836", "0.666049", "0.6659439", "0.6651957", "0.6649991", "0.66484815", "0.6639739", "0.663509", "0.6631032", "0.66140264", "0.6612445", "0.6611815", "0.6607232", "0.6603386", "0.66027635", "0.6593272", "0.6588328", "0.65789354", "0.6568248", "0.6567379", "0.6558511", "0.65545", "0.6551721", "0.6548306", "0.65344477", "0.6534447", "0.6524197" ]
0.82055944
0
Takes all important fields
public Scores() { date = new Date(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fillMandatoryFields() {\n\n }", "private void fillMandatoryFields_custom() {\n\n }", "@Override\n\tprotected void initializeFields() {\n\n\t}", "protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }", "Fields fields();", "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }", "public void formatFields() {\r\n\t}", "protected void fillAdditionalFields(U user, Map<String, Object> map) {\n\t}", "private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}", "public void testFields()\n {\n TestUtils.testNoAddedFields(getTestedClass(), null);\n }", "public void checkFields(){\n }", "private FundInfo() {\n initFields();\n }", "@Override\n\tprotected String[] ignoreFields() {\n\t\treturn null;\n\t}", "private OneOfEach() {\n initFields();\n }", "private void initFields() {\n\n tipPercent = 0.0;\n noPersons = 1;\n totalPay = 0.0;\n totalTip = 0.0;\n totalPerPerson = 0.0;\n\n }", "void onPrepareForSubmit() {\n\t\t// Create the same list as was rendered.\n\t\t// Loop will write its input field values into the list's objects.\n\n\t\tcreatePersonsList();\n\n\t\t// Prepare to take a copy of each field.\n\n\t\trowNum = -1;\n\t\tfirstNameFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tlastNameFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tregionFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tstartDateFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }", "private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }", "private TigerData() {\n initFields();\n }", "private void findFields() {\n for(Class<?> clazz=getObject().getClass();clazz != null; clazz=clazz.getSuperclass()) {\r\n\r\n Field[] fields=clazz.getDeclaredFields();\r\n for(Field field:fields) {\r\n ManagedAttribute attr=field.getAnnotation(ManagedAttribute.class);\r\n Property prop=field.getAnnotation(Property.class);\r\n boolean expose_prop=prop != null && prop.exposeAsManagedAttribute();\r\n boolean expose=attr != null || expose_prop;\r\n\r\n if(expose) {\r\n String fieldName = Util.attributeNameToMethodName(field.getName());\r\n String descr=attr != null? attr.description() : prop.description();\r\n boolean writable=attr != null? attr.writable() : prop.writable();\r\n\r\n MBeanAttributeInfo info=new MBeanAttributeInfo(fieldName,\r\n field.getType().getCanonicalName(),\r\n descr,\r\n true,\r\n !Modifier.isFinal(field.getModifiers()) && writable,\r\n false);\r\n\r\n atts.put(fieldName, new FieldAttributeEntry(info, field));\r\n }\r\n }\r\n }\r\n }", "public void clearAllFields(){\n\t\t//clear Page level Variables\n\t\tsetRateOfferedPk(null);\n\t\tsetCustomerRefNo(null);\n\t\tsetDocumentNumber(null);\n\t\tsetBeneficiaryName(null);\n\t\tsetBeneficiaryBankId(null);\n\t\tsetBeneficiaryBankName(null);\n\t\tsetRateOffered(null);\n\t\tsetCurrencyId(null);\n\t\tsetCurrencyName(null);\n\t\tsetTransctionAmount(null);\n\t\tsetCustomerRefAndName(null);\n\t\tsetRemitServiceId(null);\n\t\tsetRemitRemittanceId(null);\n\t\tsetRemitDeliveryId(null);\n\t\tsetCustomerId(null);\n\t\tsetCustomerName(null);\n\t\tsetRateOfferedPk(null);\n\t\tsetAmountAndQtyName(null);\n\t\tsetBeneficiaryMasterId(null);\n\t\tsetBeneficiaryAccountSeqId(null);\n\t\tsetCurrencyQtyName(null);\n\t\tsetRoutingCountry(null);\n\t\tsetRoutingBank(null);\n\t\tsetPaymentCode(null);\n\t\t//common Variables\n\t\tsetErrorMessage(null);;\n\t\tsetCreatedBy(null);\n\t\tsetCreatedDate(null);\n\t\tsetModifiedBy(null);\n\t\tsetModifiedDate(null);\n\t\tsetApprovedBy(null);\n\t\tsetApprovedDate(null);\n\t\tsetIsActive(null);\n\t\t\n\t\t//cheque and Card common Details\n\t\tsetRemitamount(null);;\n\t\tsetRemitBankId(null);;\n\t\tsetCheckRefNo(null);;\n\t\t//cheque Details\n\t\tsetRemitApproveCheckDate(null);;\n\t\tsetApprovalNumber(null);;\n\t\t\n\t\t//card Details\n\t\tsetCardNumber(null);;\n\t\tsetNameOfTheCard(null);\n\t\tsetApprovalNumberCard(null);\n\t\tsetCardBankId(null);\n\t\tsetLstRatePlaceOrderPk(null);\n\t\tsetBooRenderSaveOrExit(false);\n\t\tsetTotalAmount(null);\n\t\tsetPaymentAmountPanel(false);\n\t}", "public void updateNonDynamicFields() {\n\n\t}", "private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}", "private FieldInfo() {\r\n\t}", "public abstract List<String> requiredFields();", "default <T> T setAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers()) || Modifier.isTransient(field.getModifiers())) continue;\n\n try {\n set(field.getName(), field.get(object));\n } catch (IllegalAccessException e) {\n //hopefully we will be fine\n e.printStackTrace();\n }\n }\n\n return object;\n }", "private static void getAllFields(Class<?> clazz, ArrayList<Field> all_fields, ArrayList<Class<?>> all_classes) {\n\t\tif (clazz == Object.class)\n\t\t\treturn;\n\t\tall_classes.add(clazz);\n\t\t//Field [] element_fields_ = clazz.getFields();\n\t\tField [] element_fields = clazz.getDeclaredFields(); //clazz.getFields();\n\t\tfor (Field f: element_fields) {\n\t\t\tall_fields.add(f);\n\t\t}\n\t\tgetAllFields(clazz.getSuperclass(), all_fields, all_classes);\n\t\t\n\t\treturn;\n\t}", "@Override\n\tpublic void consumeFields(Schema schema) {\n\n\t}", "public void buildMetaFields() {\n for (AtreusMetaEntity metaEntity : environment.getMetaManager().getEntities()) {\n Class<?> entityType = metaEntity.getEntityType();\n\n // Build the fields\n for (Field field : entityType.getDeclaredFields()) {\n\n // Execute the meta property builder rule bindValue\n for (BaseEntityMetaComponentBuilder propertyBuilder : fieldPropertyBuilders) {\n if (!propertyBuilder.acceptsField((MetaEntityImpl) metaEntity, field)) {\n continue;\n }\n propertyBuilder.validateField((MetaEntityImpl) metaEntity, field);\n if (propertyBuilder.handleField((MetaEntityImpl) metaEntity, field)) {\n break;\n }\n }\n\n }\n }\n }", "@Override\n\tprotected String getFields()\n\t{\n\t\tString fields = \" GAZOID, GAZFLD, GAZPVN, GAZTYP, GAZCLN, GAZCLS \";\n\t\treturn fields;\n\t}", "@Override\n\tprotected String getParameterizedFields()\n\t{\n\t\tString fields = \" GAZOID=?, GAZFLD=?, GAZPVN=?, GAZTYP=?, GAZCLN=?, GAZCLS=? \";\n\t\treturn fields;\n\t}", "private void initFields(){\n labels.put(\"patientID\", new JLabel(\"Patient ID:\"));\n labels.put(\"newOwed\", new JLabel(\"New Owed:\"));\n \n fields.put(\"patientID\", new JTextField());\n fields.put(\"newOwed\", new JTextField());\n }", "protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (name.equals(\"AD_Client_ID\"))\n\t\t\t\tm_AD_Client_ID = 1000000;\n\t\t\telse if (name.equals(\"AD_Org_ID\"))\n\t\t\t\tm_AD_Org_ID = 1000000;\n\t\t\telse if (name.equals(\"DeleteOldImported\"))\n\t\t\t;//\tm_deleteOldImported = \"Y\".equals(para[i].getParameter());\n\t\t\telse if (name.equals(\"DocAction\"))\n\t\t;//\t\tm_docAction = (String)para[i].getParameter();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t}", "void initializeMandatorySectionFields();", "private void insertFields()\n {\n RideDetails details=new RideDetails();\n details.setStartPt(editStartingPt.getText().toString());\n details.setEndPt(editEndingPt.getText().toString());\n\n try {\n details.setTravelDate(dateFormatter.parse(editDate.getText().toString()));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n details.setNoSpot(Integer.parseInt(editNoSpot.getText().toString()));\n\n\n dbOperations(details);\n\n }", "public static void getSuperFields(Class<?> clazz, ArrayList<Field> all_fields) {\n\t\tif (clazz == Object.class)\n\t\t\treturn;\n\t\t\n\t\t//Field [] element_fields_ = clazz.getFields();\n\t\tField [] element_fields = clazz.getDeclaredFields(); //clazz.getFields();\n\t\tfor (Field f: element_fields) {\n\t\t\tall_fields.add(f);\n\t\t}\n\t\tgetSuperFields(clazz.getSuperclass(), all_fields);\n\t\t\n\t\treturn;\n\t}", "@Override\n protected Set<StepField> getUsedFields( KafkaConsumerInputMeta meta ) {\n return null;\n }", "private void setFields() {\n\t\tfirstname.setText(guest.getFirstName());\n\t\tlastname.setText(guest.getLastName());\n\t\tpassport.setText(guest.getPassportNumber());\n\t\ttelephone.setText(guest.getTelephoneNumber());\n\t\tarrival.setText(arrivalDate.toString());\n\t\tdeparture.setText(departureDate.toString());\n\n\t\tif (hotelChoice.getName() != null && hotelChoice.getName() != \"\"\n\t\t\t\t&& !(hotelChoice.getName() == Controller.DEFAULT_HOTEL_CHOICE)) {\n\t\t\thotel.setText(hotelChoice.getName());\n\t\t} else {\n\t\t\thotelChoice = new Hotel();\n\t\t\thotelChoice.setName(\"\");\n\t\t\thotel.clear();\n\t\t}\n\t\tif (roomQualityChoice.getQuality() != null && roomQualityChoice.getQuality() != \"\"\n\t\t\t\t&& !(roomQualityChoice.getQuality() == Controller.DEFAULT_QUALITY_CHOICE)) {\n\t\t\tquality.setText(roomQualityChoice.getQuality());\n\t\t} else {\n\t\t\troomQualityChoice = new RoomQuality();\n\t\t\troomQualityChoice.setQuality(\"\");\n\t\t\tquality.clear();\n\t\t}\n\t\tif (discountChoice > 0) {\n\t\t\tdiscount.setText(\"(-\" + discountChoice + \"%)\");\n\t\t}\n\n\t\tloadAvailableRooms();\n\n\t}", "private void sensorInformation(){\n\t\tthis.name = this.paramName;\n\t\tthis.version = this.paramVersion;\n\t\tthis.author = this.paramVersion;\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", name);\n params.put(\"ean\", ean);\n params.put(\"supplier\", supplier);\n params.put(\"offer\", offer);\n params.put(\"price\", price);\n\n return params;\n }", "private FundList() {\n initFields();\n }", "java.lang.String getFields();", "private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}", "default <T> T getAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers())) continue;\n if (Modifier.isTransient(field.getModifiers())) continue;\n\n if (!contains(field.getName())) continue;\n\n try {\n if (field.getType().equals(double.class)) {\n if (!isNumber(field.getName())) continue;\n field.setDouble(object, getDouble(field.getName()));\n } else if (field.getType().equals(float.class)) {\n if (!isNumber(field.getName())) continue;\n field.setFloat(object, (float) getDouble(field.getName()));\n } else if (field.getType().equals(int.class)) {\n if (!isNumber(field.getName())) continue;\n field.setInt(object, getInt(field.getName()));\n } else if (field.getType().equals(boolean.class)) {\n if (!isBoolean(field.getName())) continue;\n field.setBoolean(object, getBoolean(field.getName()));\n } else if (field.getType().equals(long.class)) {\n if (!isNumber(field.getName())) continue;\n field.setLong(object, getLong(field.getName()));\n } else if (field.getType().equals(short.class)) {\n if (!isNumber(field.getName())) continue;\n field.setShort(object, (short) getInt(field.getName()));\n } else if (field.getType().equals(byte.class)) {\n if (!isNumber(field.getName())) continue;\n field.setByte(object, (byte) getInt(field.getName()));\n } else {\n Object newValue = getType(field.getName(), field.getType());\n if (newValue == null) continue;\n\n field.set(object, newValue);\n }\n\n } catch (IllegalAccessException e) {\n //This should not happen hopefully.\n e.printStackTrace();\n }\n }\n\n return object;\n }", "private void prepareUserFieldMapping(JsonObject jsonObj) throws AutomicException {\n Set<Entry<String, JsonElement>> entrySet = jsonObj.entrySet();\n if (userInputFields == null) {\n resultFields = new ArrayList<String>(entrySet.size());\n List<String> excludeHeaders = getExcludedFields();\n for (Map.Entry<String, JsonElement> entry : entrySet) {\n String key = entry.getKey();\n JsonElement value = jsonObj.get(key);\n if (!excludeHeaders.contains(key)) {\n if (value.isJsonPrimitive()) {\n resultFields.add(key);\n } else if (value.isJsonObject()) {\n JsonObject jObj = (JsonObject) value;\n if (jObj.has(\"_refObjectName\")) {\n resultFields.add(key);\n }\n }\n }\n }\n userInputFields = resultFields;\n } else {\n resultFields = new ArrayList<String>();\n Map<String, String> tempMap = new HashMap<String, String>(entrySet.size());\n for (Map.Entry<String, JsonElement> entry : entrySet) {\n String key = entry.getKey();\n tempMap.put(key.toLowerCase(), key);\n }\n StringBuilder invalidFields = new StringBuilder();\n for (String userInput : userInputFields) {\n String resultKey = tempMap.get(userInput.toLowerCase());\n if (resultKey != null) {\n resultFields.add(resultKey);\n } else {\n invalidFields.append(userInput).append(\" \");\n }\n }\n if (invalidFields.length() != 0) {\n throw new AutomicException(\"Invalid export fields have been specified \" + invalidFields.toString());\n }\n }\n }", "public FieldScrapper() \r\n {\r\n }", "public void inputItemDetails()\r\n\t{\r\n\t\tserialNum = inputValidSerialNum();\r\n\t\tweight = inputValidWeight();\r\n\t}", "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 }", "@Override\n\tprotected String getParameterizedFields()\n\t{\n\t\tString fields = \" HBLNM=?, HBCFR=?, HBCFL=?, HBRNM=?, HBDLM=? \";\n\t\treturn fields;\n\t}", "protected void setupParameters() {\n \n \n\n }", "private Request() {\n initFields();\n }", "protected void doExtraValidation(Properties props) {\n /* nothing by default */\n }", "private void enableFields() {\n\t\t\t\t\t\tholderMain.editTextParametername.setEnabled(true);\n\t\t\t\t\t\tholderMain.editTextParameterValue.setEnabled(true);\n\n\t\t\t\t\t}", "@Override\n\tpublic void getFields(List<String> table) {\n\t\t\n\t}", "private void prepareFields(Entity entity, boolean usePrimaryKey) \r\n\t\t\tthrows IllegalArgumentException, IllegalAccessException, InvocationTargetException{\r\n\t\tprimaryKeyTos = new ArrayList<FieldTO>();\r\n\t\tfieldTos = new ArrayList<FieldTO>();\r\n\t\tField[] fields = entity.getClass().getDeclaredFields();\t\r\n\t\t\r\n\t\t//trunk entity to persistence\r\n\t\tfor(int i=0; i<fields.length; i++){\r\n\t\t\tField reflectionField = fields[i];\r\n\t\t\tif(reflectionField!=null){\r\n\t\t\t\treflectionField.setAccessible(true);\r\n\t\t\t\tAnnotation annoField = reflectionField.getAnnotation(GPAField.class);\r\n\t\t\t\tAnnotation annoFieldPK = reflectionField.getAnnotation(GPAPrimaryKey.class);\r\n\t\t\t\tAnnotation annoFieldBean = reflectionField.getAnnotation(GPAFieldBean.class);\r\n\t\t\t\t/* \r\n\t\t\t\t ainda falta validar a chave primária do objeto\r\n\t\t\t\t por enquanto so esta prevendo pk usando sequence no banco\r\n\t\t\t\t objeto id sempre é gerado no banco por uma sequence\r\n\t\t\t\t*/\r\n\t\t\t\tif(annoFieldPK!=null && annoFieldPK instanceof GPAPrimaryKey){\r\n\t\t\t\t\tGPAPrimaryKey pk = (GPAPrimaryKey)annoFieldPK;\r\n\t\t\t\t\t//if(pk.ignore() == true){\r\n\t\t\t\t\t//\tcontinue;\r\n\t\t\t\t\t//}else{\r\n\t\t\t\t\tString name = pk.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\t//}\r\n\t\t\t\t}\r\n\t\t\t\tif(annoField!=null && annoField instanceof GPAField){\r\n\t\t\t\t\tGPAField field = (GPAField)annoField;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif(annoFieldBean!=null && annoFieldBean instanceof GPAFieldBean){\r\n\t\t\t\t\tGPAFieldBean field = (GPAFieldBean)annoFieldBean;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void clearFields() {\r\n keywords = \"\";\r\n searchBy = \"\";\r\n }", "public void clearFields() {\n\t\tid.clear();\n\t\tfn.clear();\n\t\tln.clear();\n\t\tage.clear();\n\t\tun.clear();\n\t\tpass.clear();\n\t\tdate.setValue(null);\n\t}", "private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }", "protected void createJoinPointSpecificFields() {\n String[] fieldNames = null;\n // create the field argument field\n Type fieldType = Type.getType(m_calleeMemberDesc);\n fieldNames = new String[1];\n String fieldName = ARGUMENT_FIELD + 0;\n fieldNames[0] = fieldName;\n m_cw.visitField(ACC_PRIVATE, fieldName, fieldType.getDescriptor(), null, null);\n m_fieldNames = fieldNames;\n\n m_cw.visitField(\n ACC_PRIVATE + ACC_STATIC,\n SIGNATURE_FIELD_NAME,\n FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE,\n null,\n null\n );\n }", "protected void addMetadataFieldsFromParameters() {\n for (Map.Entry<String, String> e: parameters.entrySet()) {\n if (e.getKey().startsWith(\"meta-\")) {\n String fieldName = e.getKey().substring(5);\n String fieldValue = e.getValue();\n currentDoc.addTextualMetadataField(fieldName, fieldValue, getDocWriter().metadataFieldType(false));\n }\n }\n }", "@Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"fullname\", fullName);\n\n\n\n\n return params;\n }", "public void printSuperValuesWithoutGetters() {\n log.info(super.phone);\n log.info(super.lastName);\n log.info(super.firstName);\n }", "public void creightonIsExtraSpecial() {\n\t\tHashMap<String, Object> partToStatus = new HashMap<String, Object>();\n\t\t\n\t\tpartToStatus.put(\"autoTime\", autoTime);\n\t\tpartToStatus.put(\"matchTime\", matchTime);\n\t\t\n\t\tpartToStatus.get(\"autoTime\");\n\t\t\n\t\t\n\t}", "@Override\n\tprotected boolean verifyFields() {\n\t\treturn false;\n\t}", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "@Override\n\tprotected void prepare() {\n\t\tfor(ProcessInfoParameter parameter :getParameter()){\n\t\t\tString name = parameter.getParameterName();\n\t\t\tif(parameter.getParameter() == null){\n\t\t\t\t;\n\t\t\t}else if(name.equals(\"XX_TipoRetencion\")){\n\t\t\t\tp_TypeRetention = (String) parameter.getParameter();\n\t\t\t}\n\t\t\telse if(name.equals(\"C_Invoice_From_ID\"))\n\t\t\t\tp_Invoice_From = parameter.getParameterAsInt();\t\n\t\t\telse if(name.equals(\"C_Invoice_To_ID\"))\n\t\t\t\tp_Invoice_To = parameter.getParameterAsInt();\t\n\t\t\telse if(name.equals(\"DateDoc\"))\n\t\t\t\tp_DateDoc = (Timestamp) parameter.getParameter();\t\t\n\t\t}\n\t}", "public abstract void userValues();", "private Map<String,Field> getAllFields(Class clazz) {\n return this.getAllFields(clazz, false);\n }", "@Override\r\n protected Map<String, String> getParams() {\n\r\n Map<String, String> params = new HashMap<String, String>();\r\n params.put(\"name\", name);\r\n params.put(\"product\", product);\r\n params.put(\"email\", email);\r\n params.put(\"phone\", phone);\r\n params.put(\"quantity\", quantity);\r\n params.put(\"price\", price);\r\n params.put(\"address\", address);\r\n\r\n return params;\r\n }", "@Override\n\tpublic void grabar() {\n\t\t\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 void prepare( ) {\n super.prepare( schema.getCount( ) );\n serializer = new FieldSerializer[ fieldCount ];\n for ( int i = 0; i < fieldCount; i++ ) {\n FieldSchema field = schema.getField( i );\n serializer[i] = serializerByType[ field.getType().ordinal() ];\n }\n }", "@Override\r\n protected Object[] getFieldValues ()\r\n {\n return null;\r\n }", "private RowData() {\n initFields();\n }", "@Override\n\tprotected void prepare() {\n\t\t\n\t\t\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null);\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Client_ID\"))\n\t\t\t\tp_AD_Client_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Org_ID\"))\n\t\t\t\tp_AD_Org_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param01\"))\n\t\t\t\tparam_01 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param02\"))\n\t\t\t\tparam_02 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param03\"))\n\t\t\t\tparam_03 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param04\"))\n\t\t\t\tparam_04 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param05\"))\n\t\t\t\tparam_05 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param06\"))\n\t\t\t\tparam_06 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_User_ID\"))\n\t\t\t\tp_AD_User_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"Report\"))\n\t\t\t\tp_Report = (int)para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\t\n\t}", "private void clearFields(){\r\n fields.forEach(e -> e.clear());\r\n }", "private void populateCommonProperties(ExchangeBaseRequest exchangeBaseRequest, RequestType rt, String user, String fr) {\n String ad = rt.getAD();\n VerbosityType vb = rt.getVB();\n exchangeBaseRequest.setUsername(user);\n exchangeBaseRequest.setFluxDataFlow(rt.getDF());\n exchangeBaseRequest.setDf(rt.getDF());\n exchangeBaseRequest.setDate(new Date());\n exchangeBaseRequest.setPluginType(PluginType.FLUX);\n exchangeBaseRequest.setSenderOrReceiver(fr);\n exchangeBaseRequest.setOnValue(rt.getON());\n exchangeBaseRequest.setTo(rt.getTO() != null ? rt.getTO().toString() : null);\n exchangeBaseRequest.setTodt(rt.getTODT() != null ? rt.getTODT().toString() : null);\n exchangeBaseRequest.setAd(ad);\n }", "public GetFieldsOutput() {\n\t\tsuper();\n\t\tthis.succeed = null;\n\t\tthis.failed = null;\n\t\tthis.invalid = null;\n\t}", "private RandomData() {\n initFields();\n }", "public void changeFields() throws Exception {\n jTextField1.setText(String.valueOf(article.getItemCode()));\n jTextField2.setText(article.getName());\n jTextField3.setText(String.valueOf(article.getBrandCode()));\n jTextField4.setText(String.valueOf(article.getSalePrice()));\n jTextField5.setText(String.valueOf(article.getCostPrice()));\n jTextField6.setText(String.valueOf(article.getStock()));\n jTextField7.setText(article.getObservation());\n jTextField8.setText(String.valueOf(article.getHeadingCode()));\n \n }", "private void copyFields(NetcdfRecordInfo src, Set<String> excludedFields) {\n Iterator<String> keyIter = src.beanMap.keyIterator();\n Object val;\n while (keyIter.hasNext()) {\n String key = keyIter.next();\n if (this.beanMap.getWriteMethod(key) != null\n && !excludedFields.contains(key)) {\n val = src.beanMap.get(key);\n if (val != null) {\n this.beanMap.put(key, val);\n }\n }\n }\n }", "private void fillConstructorFields() {\n constructorId.setText(\"\"+ constructorMutator.getConstructor().getConstructorId());\n constructorUrl.setText(\"\"+ constructorMutator.getConstructor().getConstructorUrl());\n constructorName.setText(\"\"+ constructorMutator.getConstructor().getConstructorName());\n constructorNationality.setText(\"\"+ constructorMutator.getConstructor().getNationality());\n teamLogo.setImage(constructorMutator.getConstructor().getTeamLogo().getImage());\n // Display Drivers that were from the JSON File\n constructorMutator.getConstructor().setBuffer(new StringBuffer());\n // Java 8 Streaming\n constructorMutator.getConstructorsList().stream().forEach(constructorList -> constructorMutator.getConstructor().toString(constructorList));\n }", "Map<String, Object> extras();", "@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }", "private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }", "public void readFields(DataInput dataInput) throws IOException {\n }", "public void limparCampos() {\n\t\tcodigoField.setText(\"\");\n\t\tdescricaoField.setText(\"\");\n\t\tcodigoField.setEditable(true);\n\t\tBorder border = BorderFactory.createLineBorder(Color.RED);\n\t\tcodigoField.setBorder(border);\n\t\tcodigoField.requestFocus();\n\t\tBorder border1 = BorderFactory.createLineBorder(Color.BLACK);\n\t\tdescricaoField.setBorder(border1);\n\t\t\n\t\t\n\t}", "protected UserWordData() {\n\n\t}", "public void init() {\n\n\t\tif (optionFields == null) {\n\t\t\toptionFields = new HashMap<String, MetaVal>();\n\t\t}\n\t\tif (inputFields == null) {\n\t\t\tinputFields = new HashMap<String, MetaVal>();\n\t\t}\n\t\tif (outputFields == null) {\n\t\t\toutputFields = new HashMap<String, MetaVal>();\n\t\t}\n\n\t\t// repository xml key tag, metavalue default, web tag, and size are set here\n\t\t// OPTIONS\n\t\toptionFields.put(TAG_OPTION_DOMINANT_BUSINESS, new MetaVal(\"yes\", \"ReturnDominantBusiness:\", 0));\n\t\toptionFields.put(TAG_OPTION_INCLUDE_CENSUS, new MetaVal(\"false\", \"GrpCensus\", 0));\n\n\n\t\t// INPUTS\n\t\tinputFields.put(TAG_INPUT_BUSINESS_NAME, new MetaVal(\"\", \"comp\", 50));\n\t\tinputFields.put(TAG_INPUT_ADDRESS_LINE1, new MetaVal(\"\", \"a1\", 50));\n\t\tinputFields.put(TAG_INPUT_ADDRESS_LINE2, new MetaVal(\"\", \"a2\", 20));\n\t\tinputFields.put(TAG_INPUT_CITY, new MetaVal(\"\", \"city\", 50));\n\t\tinputFields.put(TAG_INPUT_STATE, new MetaVal(\"\", \"state\", 3));\n\t\tinputFields.put(TAG_INPUT_POSTAL_CODE, new MetaVal(\"\", \"postal\", 10));\n\t\tinputFields.put(TAG_INPUT_COUNTRY, new MetaVal(\"US\", \"ctry\", 50));\n\t\tinputFields.put(TAG_INPUT_PHONE, new MetaVal(\"\", \"phone\", 12));\n\t\tinputFields.put(TAG_INPUT_ADDRESS_KEY, new MetaVal(\"\", \"mak\", 50));\n\t\tinputFields.put(TAG_INPUT_STOCK_TICKER, new MetaVal(\"\", \"stock\", 10));\n\t\tinputFields.put(TAG_INPUT_WEB_ADDRESS, new MetaVal(\"\", \"web\", 50));\n\n\t\t// OUTPUTS\n\t\toutputFields.put(TAG_OUTPUT_RESULTS, new MetaVal(\"MD_Results\", \"Results\", 50));\n\t\toutputFields.put(TAG_OUTPUT_COMPANY_NAME, new MetaVal(\"MD_CompanyName\", \"CompanyName\", 50));\n\t\toutputFields.put(TAG_OUTPUT_ADDRESS_LINE1, new MetaVal(\"MD_AddressLine1\", \"AddressLine1\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SUITE, new MetaVal(\"MD_Suite\", \"Suite\", 50));\n\t\toutputFields.put(TAG_OUTPUT_CITY, new MetaVal(\"MD_City\", \"City\", 50));\n\t\toutputFields.put(TAG_OUTPUT_STATE, new MetaVal(\"MD_State\", \"State\", 50));\n\n\t\toutputFields.put(TAG_OUTPUT_COUNTRY_NAME, new MetaVal(\"MD_CountryName\", \"CountryName\", 50));\n\t\toutputFields.put(TAG_OUTPUT_COUNTRY_CODE, new MetaVal(\"MD_CountryCode\", \"CountryCode\", 50));\n\t\toutputFields.put(TAG_OUTPUT_EIN, new MetaVal(\"MD_EIN\", \"EIN\", 50));\n\n\t\toutputFields.put(TAG_OUTPUT_POSTAL_CODE, new MetaVal(\"MD_PostalCode\", \"PostalCode\", 10));\n\t\toutputFields.put(TAG_OUTPUT_LOCATION_TYPE, new MetaVal(\"MD_LocationType\", \"LocationType\", 50));\n// outputFields.put(TAG_OUTPUT_FEMALE_OWNED, new MetaVal(\"MD_FemaleOwned\", \"FemaleOwned\", 50));\n// outputFields.put(TAG_OUTPUT_SMALL_BUSINESS, new MetaVal(\"MD_SmallBusiness\", \"SmallBusiness\", 50));\n// outputFields.put(TAG_OUTPUT_HOME_BASED_BUSINESS, new MetaVal(\"MD_HomeBasedBusiness\", \"HomeBasedBusiness\", 50));\n\t\toutputFields.put(TAG_OUTPUT_PHONE, new MetaVal(\"MD_Phone\", \"Phone\", 50));\n// outputFields.put(TAG_OUTPUT_LOCAL_EMPLOYEES_ESTIMATE, new MetaVal(\"MD_LocalEmployeesEstimate\", \"LocalEmployeesEstimate\",\n// 50));\n// outputFields.put(TAG_OUTPUT_LOCAL_SALES_ESTIMATE, new MetaVal(\"MD_LocalSalesEstimate\", \"LocalSalesEstimate\", 50));\n\t\toutputFields.put(TAG_OUTPUT_EMPLOYEES_ESTIMATE, new MetaVal(\"MD_TotalEmployeesEstimate\", \"EmployeesEstimate\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SALES_ESTIMATE, new MetaVal(\"MD_TotalSalesEstimate\", \"SalesEstimate\", 50));\n\t\toutputFields.put(TAG_OUTPUT_STOCK_TICKER, new MetaVal(\"MD_StockTicker\", \"StockTicker\", 50));\n\t\toutputFields.put(TAG_OUTPUT_WEB_ADDRESS, new MetaVal(\"MD_WebAddress\", \"WebAddress\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SIC_CODE, new MetaVal(\"MD_SICCode1\", \"SICCode1\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SIC_DESCRIPTION, new MetaVal(\"MD_SICDescription1\", \"SICDescription1\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SIC_CODE2, new MetaVal(\"MD_SICCode2\", \"SICCode2\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SIC_DESCRIPTION2, new MetaVal(\"MD_SICDescription2\", \"SICDescription2\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SIC_CODE3, new MetaVal(\"MD_SICCode3\", \"SICCode3\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SIC_DESCRIPTION3, new MetaVal(\"MD_SICDescription3\", \"SICDescription3\", 50));\n\t\toutputFields.put(TAG_OUTPUT_NAICS_CODE, new MetaVal(\"MD_NAICSCode1\", \"NAICSCode1\", 50));\n\t\toutputFields.put(TAG_OUTPUT_NAICS_DESCRIPTION, new MetaVal(\"MD_NAICSDescription1\", \"NAICSDescription1\", 50));\n\t\toutputFields.put(TAG_OUTPUT_NAICS_CODE2, new MetaVal(\"MD_NAICSCode2\", \"NAICSCode2\", 50));\n\t\toutputFields.put(TAG_OUTPUT_NAICS_DESCRIPTION2, new MetaVal(\"MD_NAICSDescription2\", \"NAICSDescription2\", 50));\n\t\toutputFields.put(TAG_OUTPUT_NAICS_CODE3, new MetaVal(\"MD_NAICSCode3\", \"NAICSCode3\", 50));\n\t\toutputFields.put(TAG_OUTPUT_NAICS_DESCRIPTION3, new MetaVal(\"MD_NAICSDescription3\", \"NAICSDescription3\", 50));\n\n\t\toutputFields.put(TAG_OUTPUT_CENSUS_BLOCK, new MetaVal(\"MD_CensusBlock\", \"CensusBlock\", 50));\n\t\toutputFields.put(TAG_OUTPUT_CENSUS_TRACT, new MetaVal(\"MD_CensusTract\", \"CensusTract\", 50));\n\t\toutputFields.put(TAG_OUTPUT_COUNTY_FIPS, new MetaVal(\"MD_CountyFIPS\", \"CountyFIPS\", 50));\n\t\toutputFields.put(TAG_OUTPUT_COUNTY_NAME, new MetaVal(\"MD_CountyName\", \"CountyName\", 50));\n\t\toutputFields.put(TAG_OUTPUT_DELIVERY_INDICATOR, new MetaVal(\"MD_DeliveryIndicator\", \"DeliveryIndicator\", 50));\n\t\toutputFields.put(TAG_OUTPUT_LATITUDE, new MetaVal(\"MD_Latitude\", \"Latitude\", 50));\n\t\toutputFields.put(TAG_OUTPUT_LONGITUDE, new MetaVal(\"MD_Longitude\", \"Longitude\", 50));\n\t\toutputFields.put(TAG_OUTPUT_MD_ADDRESS_KEY, new MetaVal(\"MD_MelissaAddressKey\", \"MelissaAddressKey\", 50));\n\t\toutputFields.put(TAG_OUTPUT_MD_ADDRESS_KEY_BASE, new MetaVal(\"MD_MelissaAddressKeyBase\", \"MelissaAddressKeyBase\", 50));\n\t\toutputFields.put(TAG_OUTPUT_PLUS_4, new MetaVal(\"MD_Plus4\", \"Plus4\", 50));\n\t\toutputFields.put(TAG_OUTPUT_PLACE_NAME, new MetaVal(\"MD_PlaceName\", \"PlaceName\", 50));\n\t\toutputFields.put(TAG_OUTPUT_PLACE_CODE, new MetaVal(\"MD_PlaceCode\", \"PlaceCode\", 50));\n\n\t\toutputFields.put(TAG_OUTPUT_FIRST_NAME_1, new MetaVal(\"MD_FirstName1\", \"NameFirst\", 50));\n\t\toutputFields.put(TAG_OUTPUT_LAST_NAME_1, new MetaVal(\"MD_LastName1\", \"NameLast\", 50));\n\t\toutputFields.put(TAG_OUTPUT_GENDER_1, new MetaVal(\"MD_Gender1\", \"Gender\", 50));\n\t\toutputFields.put(TAG_OUTPUT_TITLE_1, new MetaVal(\"MD_Title1\", \"Title\", 50));\n\t\toutputFields.put(TAG_OUTPUT_EMAIL_1, new MetaVal(\"MD_Email1\", \"Email\", 50));\n\n\t\toutputFields.put(TAG_OUTPUT_FIRST_NAME_2, new MetaVal(\"MD_FirstName2\", \"NameFirst\", 50));\n\t\toutputFields.put(TAG_OUTPUT_LAST_NAME_2, new MetaVal(\"MD_LastName2\", \"NameLast\", 50));\n\t\toutputFields.put(TAG_OUTPUT_GENDER_2, new MetaVal(\"MD_Gender2\", \"Gender\", 50));\n\t\toutputFields.put(TAG_OUTPUT_TITLE_2, new MetaVal(\"MD_Title2\", \"Title\", 50));\n\t\toutputFields.put(TAG_OUTPUT_EMAIL_2, new MetaVal(\"MD_Email2\", \"Email\", 50));\n\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"preemail\",preemail);\n params.put(\"name\", name);\n params.put(\"email\", email);\n params.put(\"mobile\", mobile);\n return params;\n }", "public void setupProperties() {\n // left empty for subclass to override\n }", "private void callFormDetailFunctions() {\n ArrayList<Item> items = new ArrayList<>();\n items.addAll(computers);\n items.addAll(printers);\n getBuildingNames(items);\n getBrandNames(items);\n getOSNames(computers);\n setAdapters();\n }", "@Override\n protected void updateProperties() {\n }", "private WebRequest() {\n initFields();\n }", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null)\n\t\t\t\t;\n\t\t\telse if (name.equals(\"M_Requisition_ID\"))\n\t\t\t\tp_M_RequisitionFrom_ID = ((BigDecimal)para[i].getParameter()).intValue();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t}", "private void setupOptionalFields() {\n // Optional fields <-> labels\n Map<AutoCompleteTextView, TextView> map = new HashMap<>();\n map.put(mBind.backgroundEdit, mBind.backgroundLabel);\n map.put(mBind.maxWidthEdit, mBind.maxWidthLabel);\n map.put(mBind.maxHeightEdit, mBind.maxHeightLabel);\n\n for (Map.Entry<AutoCompleteTextView, TextView> e : map.entrySet()) {\n // On every keystroke, check if field is empty, and if yes, strike through its label\n e.getKey().addTextChangedListener(new MyTextWatcher() {\n @Override\n public void afterTextChanged(Editable s) {\n int mode = e.getValue().getPaintFlags();\n if (e.getKey().getText().toString().equals(\"\"))\n mode = Util.setFlag(mode, Paint.STRIKE_THRU_TEXT_FLAG);\n else\n mode = Util.unsetFlag(mode, Paint.STRIKE_THRU_TEXT_FLAG);\n e.getValue().setPaintFlags(mode);\n }\n });\n }\n }", "public void printInheritedValuesWithoutGetters() {\n log.info(phone);\n log.info(lastName);\n log.info(firstName);\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"user_id\", userIdInput);\n params.put(\"date\", selectedDate);\n params.put(\"type\", typeInput);\n\n return params;\n }" ]
[ "0.6979494", "0.6698762", "0.6617453", "0.65113544", "0.6426053", "0.63955", "0.6246195", "0.62384987", "0.6224278", "0.62028694", "0.61608595", "0.6148689", "0.611722", "0.60987073", "0.60974973", "0.6025649", "0.6018476", "0.5987343", "0.59619564", "0.59264344", "0.588931", "0.5853135", "0.5831752", "0.58257884", "0.58170587", "0.58090645", "0.58034897", "0.5760174", "0.57585156", "0.57456434", "0.5737088", "0.57289964", "0.5692863", "0.5687687", "0.56674767", "0.5633342", "0.5604891", "0.56048316", "0.55998045", "0.55928016", "0.55842227", "0.55766624", "0.5553451", "0.55463874", "0.55357504", "0.55213904", "0.55202633", "0.5506901", "0.5498789", "0.5494923", "0.5489471", "0.54887724", "0.5484573", "0.54802823", "0.5477963", "0.54712504", "0.54711044", "0.54675233", "0.54619503", "0.5448554", "0.5446517", "0.5443387", "0.5439554", "0.5432702", "0.54315495", "0.5427379", "0.5426908", "0.541667", "0.5405603", "0.5399951", "0.5397328", "0.5390539", "0.53844494", "0.5381612", "0.5378523", "0.53782475", "0.53780645", "0.53732127", "0.5352966", "0.5352272", "0.53487664", "0.5332335", "0.5327849", "0.5324297", "0.5317509", "0.5313465", "0.5309355", "0.5308505", "0.53013253", "0.5298801", "0.5294768", "0.5293541", "0.5293453", "0.52914816", "0.52866465", "0.5279385", "0.52699363", "0.5268361", "0.52619326", "0.5261922", "0.52611387" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent e) { origin.x=e.getX(); origin.y=e.getY(); }
{ "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 mouseDragged(MouseEvent e) { Point point=getLocation(); setLocation(point.x + (e.getX() - origin.x), point.y + (e.getY() - origin.y)); }
{ "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
LikeLynne lynne=LikeLynneApi.getInstance().getLikeLynne(); AddBmarkOrFolderUI abofu=new AddBmarkOrFolderUI(lynne); abofu.setAlwaysOnTop(true); abofu.setVisible(true);
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString command=e.getActionCommand();\r\n\t\tif(command.equals(\"cancel\")){\r\n\t\t\tthis.setVisible(false);\r\n\t\t}else if(command.equals(\"add\")){\r\n\t\t\tString newFolderName=JOptionPane.showInputDialog(bmarkSimpleTree,\"请输入新文件夹名字:\",\"\"+System.currentTimeMillis());\r\n//\t\t\tSystem.out.println(\"newFolderName=\"+newFolderName);\r\n\t\t\tif(null==newFolderName||\"\".equals(newFolderName)){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tint lastId=new LikeLynneUtils().getMaxId();\r\n\t\t\tif(lastId<0){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tLikeLynne parentNode=(LikeLynne) bmarkSimpleTree.getCurrentTreeNode().getUserObject();\r\n\t\t\tLikeLynne newFolder=new LikeLynne();\r\n\t\t\tnewFolder.setId((lastId+1));\r\n\t\t\tnewFolder.setParent(parentNode.getId());\r\n\t\t\tnewFolder.setTitle(newFolderName);\r\n\t\t\tnewFolder.setType(2);\r\n\t\t\tnewFolder.setChildren(new ArrayList<>());\r\n\t\t\tnewFolder.setDateAdded(System.currentTimeMillis());\r\n\t\t\tint resultCode=LikeLynneApi.getInstance().addLikeLynne(newFolder);\r\n\t\t\tif(resultCode==200){\r\n\t\t\t\taddNewLikeLynne(parentFrame.llynne, newFolder);\r\n\t\t\t\tbmarkSimpleTree.initTree(parentFrame.llynne,false);\r\n\t\t\t\tparentFrame.llynne=parentFrame.llynne;\r\n\t\t\t\tparentFrame.initBmarkWindow(parentFrame.llynne);\r\n\t\t\t\tparentFrame.addBmarkWindow.initComboFolders();\r\n\t\t\t}\r\n\t\t}else if(command.equals(\"save\")){\r\n\t\t\tString name=nameTxt.getText();\r\n\t\t\tif(\"\".equals(name)){\r\n\t\t\t\tJOptionPane.showMessageDialog(bmarkSimpleTree,\"请输入书签名字\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tString url=urlTxt.getText();\r\n\t\t\tif(\"\".equals(url)){\r\n\t\t\t\tJOptionPane.showMessageDialog(AddBmarkOrFolderUI.this,\"请输入书签链接\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(!Utils.isUrlFormat(url)){\r\n\t\t\t\tJOptionPane.showMessageDialog(bmarkSimpleTree,\"请输入有效书签链接\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n//\t\t\tJOptionPane.showMessageDialog(null,\"url=\"+url);\r\n\t\t\tint lastId=new LikeLynneUtils().getMaxId();\r\n\t\t\tif(lastId<0){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tLikeLynne parentNode=(LikeLynne) bmarkSimpleTree.getCurrentTreeNode().getUserObject();\r\n\t\t\tLikeLynne newLikeLynne=new LikeLynne();\r\n\t\t\tnewLikeLynne.setId((lastId+1));\r\n\t\t\tnewLikeLynne.setParent(parentNode.getId());\r\n\t\t\tnewLikeLynne.setTitle(name);\r\n\t\t\tnewLikeLynne.setUrl(url);\r\n\t\t\tnewLikeLynne.setType(1);\r\n\t\t\tnewLikeLynne.setDateAdded(System.currentTimeMillis());\r\n\t\t\tint resultCode=LikeLynneApi.getInstance().addLikeLynne(newLikeLynne);\r\n\t\t\tif(resultCode==200){\r\n\t\t\t\taddNewLikeLynne(parentFrame.llynne,newLikeLynne);\r\n\t\t\t\tthis.setVisible(false);\r\n\t\t\t\tparentFrame.llynne=parentFrame.llynne;\r\n\t\t\t\tparentFrame.initBmarkWindow(parentFrame.llynne);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void initialize(String ownid) {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(1000, 80, 200, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setTitle(ownid);\n\t\tframe.getContentPane().setLayout(cl);\t\n\t\t\n//\t\t我的好友的界面\n\t\tfinal JPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel, \"1\");\n\t\tpanel.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJButton button = new JButton(\"我的好友\");\t\t\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcl.show(frame.getContentPane(),\"3\");\t\t//切换到主界面\n\t\t\t}\n\t\t});\n\t\tpanel.add(button, BorderLayout.NORTH);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel.add(panel_1, BorderLayout.SOUTH);\n\t\tpanel_1.setLayout(new GridLayout(2, 1, 0, 0));\n\t\t\n\t\tJButton button_1 = new JButton(\"陌生人\");\n\n\t\tbutton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcl.show(frame.getContentPane(), \"2\"); //监听 切换到陌生人的界面\n\t\t\t}\n\t\t});\n\t\tpanel_1.add(button_1);\n\t\t\n\t\tJButton button_2 = new JButton(\"黑名单\");\n\t\tpanel_1.add(button_2);\n\t\t\n\t\t//显示我的好友列表\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tpanel.add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t\tjb1s =new JLabel[50];\n\t\tJPanel panel_2 = new JPanel();\n\t\t\n\t\tfor(int i=0;i<jb1s.length;i++)\n\t\t{\n\t\t\tjb1s[i]=new JLabel(i+1+\"\",new ImageIcon(\"image/mm.jpg\"),JLabel.LEFT);\n\t\t\tjb1s[i].setEnabled(false);\n\t\t\tif(jb1s[i].getText().equals(ownid)) {\n\t\t\t\tjb1s[i].setEnabled(true );\n\t\t\t}\n\t\t\tjb1s[i].addMouseListener(this);\n\t\t\tpanel_2.add(jb1s[i]);\n\t\t}\n\t\t\n\t\tpanel_2.setLayout(new GridLayout(50, 1, 0, 0));\n\t\tscrollPane.setViewportView(panel_2);\n\t\t\t\t\n\t\t\n//\t\t陌生人的界面\n\t\tJPanel panel_3 = new JPanel();\n\t\tframe.getContentPane().add(panel_3, \"2\");\n\t\tpanel_3.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_3.add(panel_4, BorderLayout.NORTH);\n\t\tpanel_4.setLayout(new GridLayout(2, 1, 0, 0));\n\t\t\n\t\tJButton button_3 = new JButton(\"我的好友\");\n\n\t\tbutton_3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcl.show(frame.getContentPane(), \"1\"); \t//监听 切换到我的好友的界面\n\n\t\t\t}\n\t\t});\n\t\tpanel_4.add(button_3);\n\t\t\n\t\tJButton button_4 = new JButton(\"陌生人\");\n\t\tbutton_4.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcl.show(frame.getContentPane(),\"3\");\t\t//切换到主界面\n\t\t\t}\n\t\t});\n\t\tpanel_4.add(button_4);\n\t\t\n\t\t//显示陌生人列表\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\n\t\tpanel_3.add(scrollPane_1, BorderLayout.CENTER);\n\t\t\n\t\tJLabel []jb1s2=new JLabel[20];\n\t\t\n\t\tJPanel panel_5 = new JPanel();\n\t\tfor(int j=0;j<jb1s2.length;j++)\n\t\t{\n\t\t\tjb1s2[j]=new JLabel(j+1+\"\",new ImageIcon(\"image/mm.jpg\"),JLabel.LEFT);\n\t\t\tjb1s2[j].addMouseListener(this);\n\t\t\tpanel_5.add(jb1s2[j]);\n\t\t}\n\t\tscrollPane_1.setViewportView(panel_5);\n\t\tpanel_5.setLayout(new GridLayout(20, 1, 0, 0));\n\t\t\n\t\tJButton button_5 = new JButton(\"黑名单\");\n\t\tpanel_3.add(button_5, BorderLayout.SOUTH);\n\t\t\n//\t\t主界面\n\t\tJPanel panel_6 = new JPanel();\n\t\tframe.getContentPane().add(panel_6, \"3\");\n\t\tpanel_6.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_6.add(panel_7, BorderLayout.NORTH);\n\t\tpanel_7.setLayout(new GridLayout(3, 1, 0, 0));\n\t\t\n\t\tJButton btnNewButton = new JButton(\"我的好友\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcl.show(frame.getContentPane(),\"1\");\t\t//显示我的好友的界面\n\t\t\t}\n\t\t});\n\t\tpanel_7.add(btnNewButton);\n\t\t\n\t\tJButton button_6 = new JButton(\"陌生人\");\n\t\tbutton_6.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcl.show(frame.getContentPane(),\"2\");\t\t//显示陌生人的界面\n\t\t\t}\n\t\t});\n\t\tpanel_7.add(button_6);\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"黑名单\");\n\t\tpanel_7.add(btnNewButton_1);\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n public void setOnTop(boolean arg0)\n {\n \n }", "private void Settings(){\n setUndecorated(true); \r\n\t setSize(250,70);\r\n\t setLocationRelativeTo(null);\r\n setAlwaysOnTop(true);\r\n\t setVisible(true);\r\n \r\n addMouseListener(new HandleStatusDialog());\r\n addWindowListener(new HandleStatusDialog());\r\n }", "void buildWindowAddFavorite(){ \n assert(false);\n \n //main.gui.addMenuItemGThread(\"menuFileNaviRefresh\", main.idents.menuFileNaviRefreshBar, actionRefreshFileTable); // /\n //main.gui.addMenuItemGThread(\"menubarFolderCreate\", main.idents.menuConfirmMkdirFileBar, main.mkCmd.actionOpenDialog); // /\n //main.gui.addMenuItemGThread(\"menubarFolderSearch\", main.idents.menuBarSearchFiles, actionSearchFiles); // /\n main.gui.menuBar.addMenuItem(\"menuBarFolderSyncMidRight\", main.idents.menuBarFolderSyncMidRight, actionSyncMidRight); // /\n //main.gui.addMenuItemGThread(\"menubarFileProps\", main.idents.menuFilePropsBar, main.filePropsCmd.actionOpenDialog);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuFileViewBar, main.viewCmd.actionOpenView);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuFileEditBar, main.actionEdit);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuBarEditIntern, main.editWind.actionOpenEdit);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuConfirmCopyBar, main.copyCmd.actionConfirmCopy);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuConfirmFileDelBar, main.deleteCmd.actionConfirmDelete);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuExecuteBar, main.executer.actionExecuteFileByExtension);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuExecuteCmdBar, main.cmdSelector.actionExecCmdWithFiles);\n\n //main.gui.menuBar.addMenuItem(\"menuBarCreateFavor\", main.idents.menuBarCreateFavor, actionCreateFavor); // /\n main.gui.menuBar.addMenuItem(\"menuDelTab\", main.idents.menuDelTab, actionDelTab); // /\n main.gui.menuBar.addMenuItem(\"menuSaveFavoriteSel\", main.idents.menuSaveFavoriteSel, actionSaveFavoritePathes); // /\n main.gui.menuBar.addMenuItem(\"menuReadFavoriteSel\", main.idents.menuReadFavoriteSel, actionReadFavoritePathes); // /\n\n\n \n main.gui.gralMng.selectPanel(\"primaryWindow\"); //\"output\"); //position relative to the output panel\n //panelMng.setPosition(1, 30+GralGridPos.size, 1, 40+GralGridPos.size, 1, 'r');\n main.gui.gralMng.setPosition(-19, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n \n\n windAddFavorite.window = main.gui.gralMng.createWindow(\"addFavoriteWindow\", \"add favorite\", GralWindow.windConcurrently);\n \n main.gui.gralMng.setPosition(4, GralPos.size -4, 1, GralPos.size +34, 'r');\n windAddFavorite.widgLabel = main.gui.gralMng.addTextField(\"addFavoriteTab\", true, \"label\", \"t\");\n windAddFavorite.widgLabel.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.tab.\");\n main.gui.gralMng.setPosition(4, GralPos.size -4, 35, GralPos.size +10, 'r');\n windAddFavorite.widgPersistent = main.gui.gralMng.addTextField(\"addFavoriteTab\", true, \"lmr ?\", \"t\");\n windAddFavorite.widgLabel.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.persist.\");\n \n main.gui.gralMng.setPosition(8, GralPos.size -4, 1, GralPos.size +45, 'd');\n windAddFavorite.widgShortName = main.gui.gralMng.addTextField(\"addFavoriteAlias\", true, \"alias (show in list)\", \"t\");\n windAddFavorite.widgShortName.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.alias.\");\n windAddFavorite.widgPath = main.gui.gralMng.addTextField(\"addFavoritePath\", true, \"the directory path\", \"t\");\n windAddFavorite.widgPath.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.dir.\");\n \n main.gui.gralMng.setPosition(-4, -1, 1, 6, 'r');\n main.gui.gralMng.addButton(\"addFavoriteEsc\", actionAddFavorite, \"esc\", null, \"esc\");\n main.gui.gralMng.setPosition(-4, -1, -14, GralPos.size +6, 'r',1);\n GralWidget widg = main.gui.gralMng.addButton(\"addFavoriteOk\", actionAddFavorite, \"temp\", null, \"temp\");\n widg.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.temp.\");\n widg = main.gui.gralMng.addButton(\"addFavoriteOk\", actionAddFavorite, \"ok\", null, \"Save\");\n widg.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.save.\");\n \n }", "private void getMarkAsTopNewsLinkPanel() {\n\t\ttry{\n\t\t\tMarkAsTopNewsLinkPanel asTopNewsLinkPanel = new MarkAsTopNewsLinkPanel(newsItem,feedNewsPresenter);\n\t\t\toptionPanel.add(asTopNewsLinkPanel);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public LinkStyleBreadCrumbGui() {\n initComponents();\n }", "public void windowBecameFront() \n {\n return; \n }", "public void makeVisible()\n {\n wall.makeVisible();\n roof.makeVisible();\n window.makeVisible();\n }", "public void setWindowVisible()\n {\n lobbyWindowFrame.setVisible(true);\n }", "void init() {\n setVisible(true);\n\n }", "private void favouriteChampion() {\r\n JFrame recordWindow = new JFrame(\"Favourite a champion\");\r\n// recordWindow.setLocationRelativeTo(null);\r\n// recordWindow.getContentPane().setLayout(new BoxLayout(recordWindow.getContentPane(), BoxLayout.Y_AXIS));\r\n initiateFavouriteChampionFields(recordWindow);\r\n new Frame(recordWindow);\r\n// recordWindow.pack();\r\n// recordWindow.setVisible(true);\r\n }", "public BuddyListWindow(AccountManager AM, IMWindowManager iwm) {\n \ttheAM = AM;\n theIwm = iwm;\n theModel = new BuddyListModel(theAM);\n this.setTitle(\"Buddy List\");\n initComponents();\n theASW = new AccountSettingsWindow();\n }", "private static void setup()\n {\n // Reimplementing Focus panel, GWT seems to break otherwise.\n usersWhoLikedPanelWrapper = new FlowPanel()\n {\n private final TimerFactory timerFactory = new TimerFactory();\n private boolean actuallyOut = false;\n private static final int TIMER_EXPIRATION = 250;\n \n @Override\n public void onBrowserEvent(final Event event)\n {\n super.onBrowserEvent(event);\n \n if (DOM.eventGetType(event) == Event.ONMOUSEOUT)\n {\n actuallyOut = true;\n \n timerFactory.runTimer(TIMER_EXPIRATION, new TimerHandler()\n {\n public void run()\n {\n if (actuallyOut)\n {\n usersWhoLikedPanelWrapper.setVisible(false);\n }\n \n }\n });\n }\n else if (DOM.eventGetType(event) == Event.ONMOUSEOVER)\n {\n actuallyOut = false;\n }\n else if (DOM.eventGetType(event) == Event.ONCLICK)\n {\n usersWhoLikedPanelWrapper.setVisible(false);\n }\n }\n };\n \n final Anchor transparentLikeLink = new Anchor();\n transparentLikeLink.addStyleName(\"transparent-like-link\");\n \n transparentLikeLink.addClickHandler(new ClickHandler()\n {\n public void onClick(final ClickEvent arg0)\n {\n if (!isLiked)\n {\n ActivityLikeModel.getInstance().update(\n new SetActivityLikeRequest(currentActivityId, LikeActionType.ADD_LIKE));\n \n arg0.stopPropagation();\n }\n }\n });\n \n usersWhoLikedPanelWrapper.add(transparentLikeLink);\n \n viewAll.setVisible(false);\n viewAll.addClickHandler(new ClickHandler()\n {\n public void onClick(final ClickEvent arg0)\n {\n DialogContent dialogContent = new LikersDialogContent(currentActivityId);\n Dialog dialog = new Dialog(dialogContent);\n dialog.setBgVisible(true);\n dialog.addStyleName(\"liker-modal\");\n dialog.center();\n }\n \n });\n \n usersWhoLikedPanelWrapper.setVisible(false);\n usersWhoLikedPanelWrapper.addStyleName(\"users-who-liked-activity-wrapper like-count-widget\");\n RootPanel.get().add(usersWhoLikedPanelWrapper);\n \n final FocusPanel innerLikeCountPanel = new FocusPanel();\n innerLikeCountPanel.addStyleName(\"like-count\");\n innerLikeCountPanel.add(innerLikeCountLink);\n \n usersWhoLikedPanelWrapper.add(innerLikeCountPanel);\n \n usersWhoLikedPanelWrapper.add(usersWhoLikedPanel);\n usersWhoLikedPanel.addStyleName(\"users-who-liked-activity\");\n \n FlowPanel userLikedHeader = new FlowPanel();\n userLikedHeader.addStyleName(\"users-who-liked-activity-header\");\n usersWhoLikedPanel.add(userLikedHeader);\n \n userLikedBody.addStyleName(\"users-who-liked-activity-body\");\n usersWhoLikedPanel.add(userLikedBody);\n \n FlowPanel userLikedFooter = new FlowPanel();\n userLikedFooter.addStyleName(\"users-who-liked-activity-footer\");\n usersWhoLikedPanel.add(userLikedFooter);\n \n userLikedBody.add(likedLabel);\n userLikedBody.add(avatarPanel);\n userLikedBody.add(viewAll);\n usersWhoLikedPanelWrapper.sinkEvents(Event.ONMOUSEOUT | Event.ONMOUSEOVER | Event.ONCLICK);\n \n hasUsersWhoLikedBeenAddedToRoot = true;\n }", "void setAlwaysOnTop(boolean always);", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n botonWeb1 = new botones.BotonWeb();\n botonWeb2 = new botones.BotonWeb();\n botonWeb3 = new botones.BotonWeb();\n splash = new javax.swing.JLabel();\n\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setPreferredSize(new java.awt.Dimension(1358, 652));\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n botonWeb1.setBackground(new java.awt.Color(255, 51, 153));\n botonWeb1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/soportetecnico.png\"))); // NOI18N\n botonWeb1.setLink(\"http://www.twitter.com\");\n getContentPane().add(botonWeb1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 11, 442, 120));\n\n botonWeb2.setBackground(new java.awt.Color(255, 51, 153));\n botonWeb2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/quienessomos.png\"))); // NOI18N\n botonWeb2.setLink(\"http://www.facebook.com\");\n getContentPane().add(botonWeb2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 137, 442, 130));\n\n botonWeb3.setBackground(new java.awt.Color(255, 51, 102));\n botonWeb3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/errorreportar.png\"))); // NOI18N\n botonWeb3.setLink(\"http://www.youtube.com\");\n getContentPane().add(botonWeb3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 285, 442, 120));\n\n splash.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ImagenesMenu/fondosplash.PNG\"))); // NOI18N\n getContentPane().add(splash, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 120, 710, 470));\n\n pack();\n }", "public void windowIconified(WindowEvent arg0)\n {\n ti.setImageAutoSize(true);\n\n try\n {\n SystemTray.getSystemTray().add(ti);\n cms.setVisible(false);\n ti.addMouseListener(new MouseListener()\n {\n public void mouseClicked(MouseEvent arg0)\n {\n SystemTray.getSystemTray().remove(ti);\n cms.setVisible(true);\n cms.setState(JFrame.NORMAL);\n }\n public void mouseEntered(MouseEvent arg0)\n {\n // Unused\n }\n public void mouseExited(MouseEvent arg0)\n {\n // Unused\n }\n public void mousePressed(MouseEvent arg0)\n {\n // Unused\n }\n public void mouseReleased(MouseEvent arg0)\n {\n // Unused\n }\n });\n }\n catch (AWTException e)\n {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic boolean setWindowToFront() {\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "protected abstract void showTopFace();", "public static void createGUI(GUIbrain draw) {\n JFrame window = new JFrame(\"BrainToC\");\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n window.setPreferredSize(new Dimension(500,520));\n window.getContentPane().add(draw);\n window.setGlassPane(draw);\n //window.setLocationRelativeTo(null);\n window.setResizable(false);\n window.pack();\n window.setVisible(true);\n draw.setFocusable(true);\n draw.setVisible(true);\n }", "@Override\n public boolean isOnTop()\n {\n return false;\n }", "private void todoListGui() {\r\n panelSelectFile.setVisible(false);\r\n if (panelTask != null) {\r\n panelTask.setVisible(false);\r\n }\r\n\r\n makePanelList();\r\n syncListFromTodo();\r\n\r\n jframe.setTitle(myTodo.getName());\r\n panelList.setBackground(Color.ORANGE);\r\n panelList.setVisible(true);\r\n }", "private void openHistoryManagementWindow() {\r\n\t\tnew JFrameHistory(this.jFrameMainWindow.getUser());\r\n\t}", "public JFrame_Banhang() {\n initComponents();\n }", "protected abstract void showBottomFace();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\thid();\n\t\t\t\tfinal JDialog jDialog=new JDialog();\n\t\t\t\tjDialog.setTitle(\"添加在线书架\");\n\t\t\t\tjDialog.setLayout(null);\n//\t\t\t\tjDialog.setLocationRelativeTo(null);\n\t\t\t\tjDialog.setSize(300, 200);\n\t\t\t\tJLabel jLabel=new JLabel(\"书架名\");\n\t\t\t\tjLabel.setBounds(50, 50, 80, 20);\n\t\t\t\tfinal JTextArea jTextArea=new JTextArea();\n\t\t\t\tjTextArea.setBounds(100, 50, 100, 20);\n\t\t\t\tjTextArea.setBorder(BorderFactory.createMatteBorder (1,1,1,1, Color.gray));\n\t\t\t\tJButton confirm=new JButton(\"确认\");\n\t\t\t\tconfirm.setBounds(50, 100, 80, 20);\n\t\t\t\tJButton cancel=new JButton(\"取消\");\n\t\t\t\tcancel.setBounds(150, 100, 80, 20);\n\t\t\t\tjDialog.add(jTextArea);\n\t\t\t\tjDialog.add(jLabel);\n\t\t\t\tjDialog.add(confirm);\n\t\t\t\tjDialog.add(cancel);\n\t\t\t\tjDialog.setVisible(true);\n\t\t\t\tjDialog.setAlwaysOnTop(true);\n\t\t\t\tconfirm.addActionListener(new ActionListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t\tAddOnlineShelf addOnlineShelf=new AddOnlineShelf(jTextArea.getText());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tcancel.addActionListener(new ActionListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}", "private void StatusBookmarks(){\n\t\tif(myDb.getAllRowsFavour().getCount()==0){\n\t\t\t\n\t\t\tRelativeLayout relative=(RelativeLayout) findViewById(R.id.mylayoutbookmark);\n\t\t\tmyText=new TextView(this);\n\t\t\tmyText.setTextColor(R.style.txtinLsViewSociaty);\n\t\t\tmyText.setText(\"Hiện tại bạn chưa thêm Bookmarks vào.\");\n\t\t\t\n\t\t\trelative.addView(myText);\n\t\t}\n\t}", "private JFrame getHlavneOkno() {\n\t\tif (hlavneOkno == null) {\n\t\t\thlavneOkno = new JFrame();\n\t\t\thlavneOkno.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\thlavneOkno.setBackground(new Color(238, 238, 238));\n\t\t\thlavneOkno.setResizable(true);\n\t\t\thlavneOkno.setLocation(new Point(200, 100));\n\t\t\thlavneOkno.setJMenuBar(getMenuLista());\n\t\t\thlavneOkno.setSize(571, 551);\n\t\t\thlavneOkno.setContentPane(getHlavneOknoObsah());\n\t\t\thlavneOkno.setTitle(\"SluchAnal v1.0\");\n\t\t}\n\t\treturn hlavneOkno;\n\t}", "public Frontpage() {\n initComponents();\n bt_notes.setVisible(false);\n bt_todo.setVisible(false);\n \n }", "void setAlwaysOnTop(boolean alwaysOnTop);", "public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }", "public void windowIconified(WindowEvent arg0) {\n //textArea1.append(\"Window is minimized\");\n\n }", "public Ventana() {\n initComponents();\n\n\n \n botonWeb1 = new botones.BotonWeb();\n botonWeb2 = new botones.BotonWeb();\n botonWeb3 = new botones.BotonWeb();\n splash = new javax.swing.JLabel();\n\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setPreferredSize(new java.awt.Dimension(1358, 652));\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n botonWeb1.setBackground(new java.awt.Color(255, 51, 153));\n botonWeb1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/soportetecnico.png\"))); // NOI18N\n botonWeb1.setLink(\"http://www.estadistico10.pe.hu\");\n getContentPane().add(botonWeb1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 11, 442, 120));\n\n botonWeb2.setBackground(new java.awt.Color(255, 51, 153));\n botonWeb2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/quienessomos.png\"))); // NOI18N\n botonWeb2.setLink(\"http://www.estadistico10.pe.hu\");\n getContentPane().add(botonWeb2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 137, 442, 130));\n\n botonWeb3.setBackground(new java.awt.Color(255, 51, 102));\n botonWeb3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/errorreportar.png\"))); // NOI18N\n botonWeb3.setLink(\"http://www.estadistico10.pe.hu\");\n getContentPane().add(botonWeb3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 285, 442, 120));\n\n splash.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ImagenesMenu/fondosplash.PNG\"))); // NOI18N\n getContentPane().add(splash, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 120, 710, 470));\n\n pack();\n }", "public void showWindows() {\n\t\t pack();\n\t setResizable(false);\n\t setLocationRelativeTo(null);\n\t setVisible(true);\n\t\t\n\t}", "public boolean setOnTop(String sname) {\n return windows.setOnTop(sname);\n }", "public void inicio(){\r\n Ventana v = new Ventana();\r\n v.setVisible(true); //se hace visible la ventana\r\n }", "public void OnShowingHandlerTownHall(WindowEvent event) {\r\n btnAccept.setMnemonicParsing(true);\r\n btnAccept.setText(\"_Accept\");\r\n btnCancel.setMnemonicParsing(true);\r\n btnCancel.setText(\"_Cancel\");\r\n }", "public void setWindowNotVisible()\n {\n lobbyWindowFrame.setVisible(false);\n }", "private void createAndShowGUI(String str) throws IOException\n {\n setUndecorated(true);\n setAlwaysOnTop(true);\n // Set some layout\n setLayout(new BorderLayout());\n \n closeButton = new JButton(\"Ok.\");\n closeButton.addActionListener(this);\n add(closeButton, BorderLayout.SOUTH);\n JLabel ico = new JLabel(str);\n ico.setIcon(new ImageIcon(ImageIO.read(new File(\"icons\\\\rarenep.png\"))));\n add(ico, BorderLayout.CENTER);\n\n pack();\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n //setSize(sizeX,sizeY);\n Dimension dialogSize = getSize();\n setLocation(screenSize.width/2-dialogSize.width/2, screenSize.height/2-dialogSize.height/2);\n setVisible(true);\n }", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\n\t\t\t\t\tshowwindow(presentadd_group);\n\t\t\t\t}", "public void majGui(){\n gui.reset();\n ArrayList<Ball> ballsArray = balls.getBalls();\n for (Ball b: ballsArray){\n Vector location = b.getLocation();\n gui.addGraphicalElement(\n new Oval(\n (int) location.x, (int) location.y, Color.decode(\"#FF77b4\"), Color.decode(\"#00FF48\"), 50));\n }\n }", "void show_info() {\n\t\tsetAlwaysOnTop(false);\n\n\t\tString msg = \"<html><ul><li>Shortcuts:<br/>\"\n\t\t\t\t+ \"(\\\") start macro<br/>\"\n\t\t\t\t+ \"(esc) exit<br/><br/>\"\n\t\t\t\t+ \"<li>Author: <b>Can Kurt</b></ul></html>\";\n\n\t\tJLabel label = new JLabel(msg);\n\t\tlabel.setFont(new Font(\"arial\", Font.PLAIN, 15));\n\n\t\tJOptionPane.showMessageDialog(null, label ,\"Info\", JOptionPane.INFORMATION_MESSAGE);\n\n\t\tsetAlwaysOnTop(true);\n\t}", "private JMenuItem getMniAddBookmark() {\r\n\t\tif (mniAddBookmark == null) {\r\n\t\t\tmniAddBookmark = new JMenuItem();\r\n\t\t\tmniAddBookmark.setText(\"Add bookmark...\");\r\n\t\t}\r\n\t\treturn mniAddBookmark;\r\n\t}", "public CloudSyncMain(){\n\n \t// initial SystemTray function\n \tsystemTray = SystemTray.getSystemTray();//获得系统托盘的实例\n \tjava.net.URL imgURL = this.getClass().getResource(\"images/sync-icon3.png\");\t//can not use \"image\\\\sync-icon3.png\"\n try {\n trayIcon = new TrayIcon(ImageIO.read(imgURL));\n systemTray.add(trayIcon);//设置托盘的图标,0.gif与该类文件同一目录\n }\n catch (IOException e1) {e1.printStackTrace();}\n catch (AWTException e2) {e2.printStackTrace();}\n frame.addWindowListener(new WindowAdapter(){ \n public void windowIconified(WindowEvent e){ \n frame.dispose();//窗口最小化时dispose该窗口 \n \t//frame.setVisible(false);\n } \n });\n trayIcon.addMouseListener(\n new MouseAdapter(){\n public void mouseClicked(MouseEvent e){\n if(e.getClickCount() == 1){\n frame.setExtendedState(Frame.NORMAL);\n frame.setVisible(true);\n }\n if(e.getClickCount() == 2){\n \tframe.setExtendedState(Frame.NORMAL);\n \tframe.setVisible(true);\n }\n }\n });\n try{\n \t\t//this.frame.setLayout(new GridLayout(1,3));\t\t// Have no idea what will happen after set this layout\n \tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n \tSwingUtilities.updateComponentTreeUI(frame.getContentPane());\n }catch(Exception e){\n \te.printStackTrace();\n }\n \n try {\n\t\t\tframe.setIconImage(ImageIO.read(imgURL));\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n \tjfc.setCurrentDirectory(new File(\"\\\\\"));// 文件选择器的初始目录定为d盘 \n frame.add(con);\n double lx = Toolkit.getDefaultToolkit().getScreenSize().getWidth(); \n double ly = Toolkit.getDefaultToolkit().getScreenSize().getHeight(); \n frame.setLocation(new Point((int) (lx / 2) - 250, (int) (ly / 2) - 250));// 设定窗口出现位置 \n frame.setSize(400, 440);// 设定窗口大小 \n \n label_sync_status_title.setBounds(110, 360, 70, 20);\n label_sync_status_content.setBounds(190, 360, 150, 20);\n \n list_title.setBounds(10, 10, 110, 20);\n text_sync_directory_path.setBounds(110, 330, 250, 20);\n button_add_directory.setBounds(120, 10, 90, 20); \n button_delete_directory.setBounds(220, 10, 140, 20);\n button_delete_directory.addActionListener(this);\n button_sync_to.setBounds(10, 330, 90, 20); \n button_sync_directory.setBounds(10, 360, 90, 20); \n button_add_directory.addActionListener(this); // 添加事件处理 \n button_sync_to.addActionListener(this); // 添加事件处理 \n button_sync_directory.addActionListener(this); // 添加事件处理 \n cbox_hour.setBounds(110, 295, 40, 20);\n cbox_minute.setBounds(180, 295, 40, 20);\n label_auto_sync.setBounds(10, 295, 100, 20);\n label_sync_hour.setBounds(155, 295, 40, 20);\n label_sync_minute.setBounds(225, 295, 40, 20);\n \n //initial ComboBox: cbox_hour & cbox_minute\n for(int i = 0; i < 24; i++){\n \tcbox_hour.insertItemAt(i, i);\n }\n cbox_hour.setSelectedIndex(0);\n \n for(int i = 0, k = 0; i < 60; i = i + 5, k++){\n \tcbox_minute.insertItemAt(i, k);\n }\n cbox_minute.setSelectedIndex(0);\n \n //con.add(label1); \n //con.add(text1); \n con.add(button_add_directory); \n //con.add(label2); \n con.add(text_sync_directory_path); \n con.add(button_sync_to); \n con.add(button_sync_directory); \n con.add(button_delete_directory);\n con.add(label_sync_status_title);\n con.add(label_sync_status_content);\n con.add(list_title);\n con.add(cbox_hour);\n con.add(cbox_minute);\n con.add(label_sync_hour);\n con.add(label_sync_minute);\n con.add(label_auto_sync);\n \n list_original = new JList(list_vector);\n scroll_pane = new JScrollPane(list_original);\n scroll_pane.setBounds(10, 35, 350, 250);\n con.add(scroll_pane);\n \n frame.setVisible(true);// 窗口可见\n frame.addWindowListener(this);\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// 使能关闭窗口,结束程序\n \n initial_list_original();\t\t// initial the JList (also the JScrollPane scroll_pane);\n initial_list_sync();\t\t\t//initial the JText\n initial_auto_sync_cbox();\t\t//initial the auto_sync_cbox hour & minute\n \n _sync_lock.open_lock();\n frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\t\t//dont kill the application when click \"X\" \n sync_in_background = new SyncInBackground(label_sync_status_content, text_sync_directory_path\n \t\t, default_list_model1, _sync_lock);\n \n int hour = (int) cbox_hour.getItemAt(cbox_hour.getSelectedIndex());\n int minute = (int) cbox_minute.getItemAt(cbox_minute.getSelectedIndex());\n cbox_hour.addActionListener(this);\n cbox_minute.addActionListener(this);\n sync_in_background.setSyncTime(hour, minute);\n sync_in_background.start();\n }", "void gui(){\n _hasGUI = true;\n }", "private void setVisibleBP(boolean a) {\n\t\tsetVisible(btnNewButton_1, a);\r\n\t}", "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}", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "public void addNotify() {\n synchronized (getTreeLock()) {\n if (peer == null) {\n peer = ((PeerBasedToolkit) getToolkit()).createWindow(this);\n }\n super.addNotify();\n }\n }", "@Override\n\t//显示聊天窗口\n\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\n\t\tif(e.getClickCount()==2)\n\t\t{\n\t\t\t//得到该好友的编号\n\t\t\tString friendNo=((JLabel)e.getSource()).getText();\n\t\t\tSystem.out.println(\"你希望和 \"+friendNo+\" 聊天\");\n\t\t\t//创建聊天窗口\n\t\t\tChat1 chat1 = new Chat1(ownid,friendNo);\n\t\t\t//把聊天窗口添加到管理界面\n\t\t\tManageChat.addChat(ownid+\" \"+friendNo, chat1);\n\t\t}\n\t}", "private void choseNetwork(java.awt.event.MouseEvent evt) { \n\t\t//new NetworkGameBrowser().setVisible(true);\n\t\t//this.setVisible(false);\n\t\t//this.dispose();\n\t}", "public SelectBelongsFrame() {\n initComponents();\n// for(int i = 0;i<belongsnumber;i++){\n// SelectBelongFrame sbf = new SelectBelongFrame();\n// sbf.setVisible(true);\n// while(sbf.isEnabled()){\n// \n// }\n// }\n// SelectBelongFrame sbf = new SelectBelongFrame();\n// sbf.setVisible(true);\n// while(sbf.isDisplayable()){\n// \n// }\n listModel = new DefaultListModel();\n jList1.setModel(listModel);\n root = new DefaultMutableTreeNode(\"属性\");\n // System.out.println(\"a\");\n // root = setNode(dataarray, root);\nsetNode();\n model = new DefaultTreeModel(root);\n jTree1.setModel(model);\n\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 630, 550);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(650,400);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(0, 0, 614, 512);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJButton buttonTreinos = new JButton(\"Visualizar treinos\");\n\t\tbuttonTreinos.setBounds(224, 136, 186, 23);\n\t\tpanel.add(buttonTreinos);\n\t\t\n\t\tJButton btnAlunos = new JButton(\"Lista de Alunos\");\n\t\tbtnAlunos.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tnew ListaDeAlunos().frame.setVisible(true);\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnAlunos.setBounds(224, 163, 186, 23);\n\t\tpanel.add(btnAlunos);\n\t\t\n\t\tJLabel lblGymManager = new JLabel(\"Gym Manager\");\n\t\tlblGymManager.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\n\t\tlblGymManager.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblGymManager.setBounds(220, 46, 165, 27);\n\t\tpanel.add(lblGymManager);\n\t\t\n\t\tJButton btnMatricularAluno = new JButton(\"Matricular Aluno\");\n\t\tbtnMatricularAluno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tnew TelaAlunoCadastro().setVisible(true);\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnMatricularAluno.setBounds(224, 192, 186, 23);\n\t\tpanel.add(btnMatricularAluno);\n\t}", "private void btndanhsachbandocActionPerformed(java.awt.event.ActionEvent evt) {\n showDuLieu();\n }", "private void setBackgrond(){\t\n this.background = new JLabel();\n this.background.setIcon(backgrondP);\n this.background.setVisible(true);\n this.background.setLocation(0, 0);\n this.background.setSize(backgrondP.getIconWidth(),backgrondP.getIconHeight());\n this.add(background);\n\t}", "public InventryAdd() {\n initComponents();\n //setExtendedState(java.awt.Frame.MAXIMIZED_BOTH);\n setVisible(true);\n //loadCategory();\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); \n \n }", "public void showIt(){\n this.setVisible(true);\n }", "private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened\njam(); \nJOptionPane.showMessageDialog(rootPane, \"Welcome to REMINDER'S NOTE\");\n \n }", "@FXML\n\tvoid showreBTNE(MouseEvent event) throws IOException {\n\t\tMainAllControllers.setWindowVar(\"UserShowRequests\");\n\t\tMainAllControllers.changeWin();\n\t}", "public MyGUI() {\n \t super(\"Mastermind\");\n \t guiManager = new GUIManager();\n createMenuComponents();\n createMastermindComponents(this,2);\n \n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"欢迎【\"+user.getUaccount()+\"】使用光盘借阅系统\");\n\t\tframe.setBounds(600, 250, 689, 541);\n\t\tframe.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setUndecorated(true); // 去掉窗口的装饰 \n\t\tframe.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);//采用指定的窗口装饰风格 \n\t\t//禁止调整大小\n\t\tframe.setResizable(false); \n\t\t/**\n\t\t * 用户操作方法模块\n\t\t */\n\t\tUserOperate userOp = new UserOperate();\n\t\t/**\n\t\t * 添加界面背景\n\t\t */\n\t\tJPanel bj = new JPanel() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tImage image;\n\t\t\t\ttry {\n\t\t\t\t\timage = ImageIO.read(new File(\"src/Image/8.jpg\"));\n\t\t\t\t\tg.drawImage(image, 0, 0,getWidth(),getHeight(),null);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\tframe.setContentPane(bj);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframe.addWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(null, \"是否退出\", \"提示\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(option==JOptionPane.YES_OPTION) { \n\t\t\t\t\tframe.dispose();\n\t\t\t\t}\n\t\t}\t\t\n\t\t\t \n\t\t});\n\t\t\n\t\t\n\t\tJPanel panel2 = new JPanel();\n\t\t\n\t\t\n\t\tFont font = new Font(\"黑体\", Font.PLAIN, 20);\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tmenuBar.setBounds(0, 0, 689, 38);\n\t\tframe.getContentPane().add(menuBar);\n\t\t\n\t\tJMenu mnNewMenu = new JMenu(\"个人信息\");\n\t\tmnNewMenu.setFont(font);\n\t\tmnNewMenu.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tmnNewMenu.setForeground(Color.BLUE);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\tmnNewMenu.setForeground(Color.BLACK);\n\t\t\t}\n\t\t});\n\t\tmenuBar.add(mnNewMenu);\n\t\t\n\t\tJMenuItem mntmNewMenuItem = new JMenuItem(\"查看个人信息\");\n\t\tmntmNewMenuItem.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t/**\n\t\t\t\t * 查看个人信息\n\t\t\t\t */\n\t\t\t\tmenuBar.setVisible(false);\n\t\t\t\t//刷新面板\n\t\t\t\tqueryPanelInit(menuBar);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmNewMenuItem.setFont(font);\n\t\tmnNewMenu.add(mntmNewMenuItem);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_1 = new JMenuItem(\"修改个人信息\");\n\t\tmntmNewMenuItem_1.addMouseListener(new MouseAdapter() {\n\t\t\t/**\n\t\t\t * 修改个人信息\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t//查看修改权限\n\t\t\t\tString modifyRoot = userOp.queryRoot(user.getUaccount()).getModifyRoot();\n\t\t\t\tif(modifyRoot==null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您没有修改个人信息的权限,请联系管理员\", \"提示\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}else if(modifyRoot.equals(\"启用\")) {\n\t\t\t\t\tmenuBar.setVisible(false);\n\t\t\t\t\t//刷新面板\n\t\t\t\t\tmodifyPanelInit(menuBar);\n\t\t\t\t}else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您没有修改个人信息的权限,请联系管理员\", \"提示\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmNewMenuItem_1.setFont(font);\n\t\tmnNewMenu.add(mntmNewMenuItem_1);\n\t\tJMenu menu = new JMenu(\"光盘管理\");\n\t\tmenu.setFont(font);\n\t\tmenu.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tmenu.setForeground(Color.BLUE);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\tmenu.setForeground(Color.BLACK);\n\t\t\t}\n\t\t});\n\t\tmenuBar.add(menu);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_2 = new JMenuItem(\"借阅光盘\");\n\t\tmntmNewMenuItem_2.addMouseListener(new MouseAdapter() {\n\t\t\t/**\n\t\t\t * 借阅光盘\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t//查看借阅权限\n\t\t\t\tString borrowRoot = userOp.queryRoot(user.getUaccount()).getBorrowRoot();\n\t\t\t\tif(borrowRoot==null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您没有借阅光盘的权限,请联系管理员\", \"提示\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}else if(borrowRoot.equals(\"启用\")) {\n\t\t\t\t\t/**\n\t\t\t\t\t * 允许借阅\n\t\t\t\t\t */\n\t\t\t\t\tString inputID = JOptionPane.showInputDialog(\"请输入将借阅的光盘编号\");\n\t\t\t\t\t//待借阅CD对象\n\t\t\t\t\tCD cd = userOp.queryCD(inputID);\n\t\t\t\t\tif(cd==null) {\t\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"此光盘不存在\", \"提示\", JOptionPane.ERROR_MESSAGE); \n\t\t\t\t\t}else if(cd.getBorrowed()!=null) {//判断是否已被借阅\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"此光盘已经被借阅\", \"提示\", JOptionPane.INFORMATION_MESSAGE); \n\t\t\t\t\t}else {//借阅\n\t\t\t\t\t\tif(userOp.borrowCD(cd, user)) {\n\t\t\t\t\t\t\t//借阅成功则更新记录表\n\t\t\t\t\t\t\tuserOp.recordBorrowCD(user, cd);\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"光盘借阅成功\", \"提示\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"光盘借阅失败\", \"提示\", JOptionPane.ERROR_MESSAGE); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您没有借阅光盘的权限,请联系管理员\", \"提示\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmNewMenuItem_2.setFont(font);\n\t\tmenu.add(mntmNewMenuItem_2);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_3 = new JMenuItem(\"归还光盘\");\n\t\tmntmNewMenuItem_3.addMouseListener(new MouseAdapter() {\n\t\t\t/**\n\t\t\t * 归还光盘\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tString inputID = JOptionPane.showInputDialog(\"请输入将归还的光盘编号\");\n\t\t\t\t//待归还CD对象\n\t\t\t\tCD cd = userOp.queryCD(inputID);\n\t\t\t\tif(cd==null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"此光盘不存在\", \"提示\", JOptionPane.ERROR_MESSAGE); \n\t\t\t\t}else if(cd.getBorrowed()==null){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您尚未借阅该光盘\", \"提示\", JOptionPane.INFORMATION_MESSAGE); \n\t\t\t\t}else if(!cd.getBorrowed().equals(user.getUaccount())) {//判断是否已被自己借阅\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您尚未借阅该光盘\", \"提示\", JOptionPane.INFORMATION_MESSAGE); \n\t\t\t\t}else {//归还\n\t\t\t\t\tif(userOp.returnCD(cd)) {\n\t\t\t\t\t\t//归还成功则更新记录表\n\t\t\t\t\t\tuserOp.recordReturnCD(user, cd);\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"光盘归还成功\", \"提示\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"光盘归还失败\", \"提示\", JOptionPane.ERROR_MESSAGE); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmNewMenuItem_3.setFont(font);\n\t\tmenu.add(mntmNewMenuItem_3);\n\t\t\n\t\tJMenu menu_1 = new JMenu(\"查询光盘\");\n\t\tmenu_1.setFont(font);\n\t\tmenu.add(menu_1);\n\t\t\n\t\tJMenuItem menuItem_1 = new JMenuItem(\"按编号查询\");\n\t\tmenuItem_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tString inputID = JOptionPane.showInputDialog(\"请输入待查询的光盘编号\");\n\t\t\t\tList<CD> cdList= new ArrayList<CD>();\n\t\t\t\tCD cd = null;\n\t\t\t\t//查询\n\t\t\t\tcd = userOp.queryCD(inputID);\n\t\t\t\tif(cd==null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"此光盘不存在\", \"提示\", JOptionPane.ERROR_MESSAGE); \n\t\t\t\t}else {\n\t\t\t\t\tcdList.add(cd);\n\t\t\t\t\tmenuBar.setVisible(false);\n\t\t\t\t\tqueryCDPanel(cdList,menuBar);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmenuItem_1.setFont(font);\n\t\tmenu_1.add(menuItem_1);\n\t\t\n\t\tJMenuItem menuItem_2 = new JMenuItem(\"按名称查询\");\n\t\tmenuItem_2.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tString inputName = JOptionPane.showInputDialog(\"请输入待查询的光盘名称\");\n\t\t\t\tList<CD> cdList= (List<CD>) userOp.queryCDs(inputName);\n\t\t\t\t\n\t\t\t\tif(cdList.size()==0||cdList==null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"此类光盘不存在\", \"提示\", JOptionPane.ERROR_MESSAGE); \n\t\t\t\t}else {\n\t\t\t\t\tmenuBar.setVisible(false);\n\t\t\t\t\tqueryCDPanel(cdList,menuBar);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmenuItem_2.setFont(font);\n\t\tmenu_1.add(menuItem_2);\n\t\t\n\t\tJMenu mnNewMenu_3 = new JMenu(\"按类型查询\");\n\t\tmnNewMenu_3.setFont(font);\n\t\tmenu_1.add(mnNewMenu_3);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_7 = new JMenuItem(\"教育\");\n\t\tmntmNewMenuItem_7.setFont(font);\n\t\tmntmNewMenuItem_7.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tqueryCDByType(\"教育\", menuBar);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnNewMenu_3.add(mntmNewMenuItem_7);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_8 = new JMenuItem(\"科普\");\n\t\tmntmNewMenuItem_8.setFont(font);\n\t\tmntmNewMenuItem_8.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tqueryCDByType(\"科普\", menuBar);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnNewMenu_3.add(mntmNewMenuItem_8);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_9 = new JMenuItem(\"惊悚\");\n\t\tmntmNewMenuItem_9.setFont(font);\n\t\tmntmNewMenuItem_9.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tqueryCDByType(\"惊悚\", menuBar);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnNewMenu_3.add(mntmNewMenuItem_9);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_10 = new JMenuItem(\"音乐\");\n\t\tmntmNewMenuItem_10.setFont(font);\n\t\tmntmNewMenuItem_10.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tqueryCDByType(\"音乐\", menuBar);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnNewMenu_3.add(mntmNewMenuItem_10);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_11 = new JMenuItem(\"历史\");\n\t\tmntmNewMenuItem_11.setFont(font);\n\t\tmntmNewMenuItem_11.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tqueryCDByType(\"历史\", menuBar);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnNewMenu_3.add(mntmNewMenuItem_11);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_12 = new JMenuItem(\"文学\");\n\t\tmntmNewMenuItem_12.setFont(font);\n\t\tmntmNewMenuItem_12.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tqueryCDByType(\"文学\", menuBar);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnNewMenu_3.add(mntmNewMenuItem_12);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_13 = new JMenuItem(\"娱乐\");\n\t\tmntmNewMenuItem_13.setFont(font);\n\t\tmntmNewMenuItem_13.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tqueryCDByType(\"娱乐\", menuBar);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnNewMenu_3.add(mntmNewMenuItem_13);\n\t\t\n\t\t\t\tJMenuItem menuItem_4 = new JMenuItem(\"查看可借阅光盘\");\n\t\t\t\tmenuItem_4.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\tList<CD> cdList= (List<CD>) userOp.queryCDsCouldBeBorrowed();\n\t\t\t\t\t\tif(cdList.size()==0||cdList==null) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"当前无可借阅光盘\", \"提示\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tmenuBar.setVisible(false);\n\t\t\t\t\t\t\tqueryCDPanel(cdList,menuBar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tmenuItem_4.setFont(font);\n\t\t\t\tmenu_1.add(menuItem_4);\n\t\t\n\t\t\t\n\t\t\t\n\t\t\tJMenuItem menuItem = new JMenuItem(\"已借阅光盘\");\n\t\t\tmenuItem.addMouseListener(new MouseAdapter() {\n\t\t\t\t/**\n\t\t\t\t * 查看已借阅光盘\n\t\t\t\t */\n\t\t\t\t@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\tList<CD> cdList= (List<CD>) userOp.queryCDsHaveBeBorrowed(user.getUaccount());\n\t\t\t\t\t\n\t\t\t\t\tif(cdList.size()==0||cdList==null) {\n\t\t\t\t\t\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您当前没有借阅任何光盘\", \"提示\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tmenuBar.setVisible(false);\n\t\t\t\t\t\tqueryCDPanel(cdList,menuBar);\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t});\n\t\t\tmenuItem.setFont(font);\n\t\t\tmenu.add(menuItem);\n\t\t\n\t\tJMenu mnNewMenu_1 = new JMenu(\"权限管理\");\n\t\tmnNewMenu_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tmnNewMenu_1.setForeground(Color.BLUE);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\tmnNewMenu_1.setForeground(Color.BLACK);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_1.setFont(font);\n\t\tmenuBar.add(mnNewMenu_1);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_5 = new JMenuItem(\"查看个人权限\");\n\t\tmntmNewMenuItem_5.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t/**\n\t\t\t\t * 获得权限信息\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tString useraccount = user.getUaccount();\n\t\t\t\tRoot root =userOp.queryRoot(useraccount);\n\t\t\t\tif(root==null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"查询不到权限信息,请联系管理员\", \"提示\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}else {\n\t\t\t\t\tmenuBar.setVisible(false);\n\t\t\t\t\t/**\n\t\t\t\t\t * 调用面板\n\t\t\t\t\t */\n\t\t\t\t\tshowRootPanel(menuBar, root);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmNewMenuItem_5.setFont(font);\n\t\tmnNewMenu_1.add(mntmNewMenuItem_5);\n\t\t\n\t\tJMenuItem menuItem_3 = new JMenuItem(\"申请权限\");\n\t\tmenuItem_3.setFont(font);\n\t\tmenuItem_3.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenuBar.setVisible(false);\n\t\t\t\t/**\n\t\t\t\t * 调用面板\n\t\t\t\t */\n\t\t\t\tRoot root = userOp.queryRoot(user.getUaccount());\n\t\t\t\tshowApplyRootPanel(menuBar,root);\n\t\t\t}\n\t\t});\n\t\tmnNewMenu_1.add(menuItem_3);\n\t\t\n\t\tJMenu menu_2 = new JMenu(\"系统\");\n\t\tmenu_2.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tmenu_2.setForeground(Color.BLUE);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\tmenu_2.setForeground(Color.BLACK);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tJMenu mnNewMenu_2 = new JMenu(\"借阅记录\");\n\t\tmnNewMenu_2.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tmnNewMenu_2.setForeground(Color.BLUE);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\tmnNewMenu_2.setForeground(Color.BLACK);\n\t\t\t}\n\t\t});\n\t\t\n\t\tmnNewMenu_2.setFont(font);\n\t\tmenuBar.add(mnNewMenu_2);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_6 = new JMenuItem(\"查询借阅记录\");\n\t\tmntmNewMenuItem_6.addMouseListener(new MouseAdapter() {\n\t\t\t/**\n\t\t\t * 查询借阅记录\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tList<Record> recordList= null;\n\t\t\t\t/**\n\t\t\t\t * 调用查询方法\n\t\t\t\t */\n\t\t\t\trecordList = userOp.queryRecordByUesrAccount(user.getUaccount());\n\t\t\t\t\n\t\t\t\tmenuBar.setVisible(false);\n\t\t\t\t/**\n\t\t\t\t * 调用面板\n\t\t\t\t */\n\t\t\t\tShowBorrowedRecordPanel(menuBar,recordList);\n\t\t\t}\n\t\t});\n\t\tmntmNewMenuItem_6.setFont(font);\n\t\tmnNewMenu_2.add(mntmNewMenuItem_6);\n\t\tmenu_2.setFont(font);\n\t\tmenuBar.add(menu_2);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_4 = new JMenuItem(\"退出\");\n\t\tmntmNewMenuItem_4.addMouseListener(new MouseAdapter() {\n\t\t\t/**\n\t\t\t * 退出\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(null, \"是否退出操作界面\", \"提示\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(option==JOptionPane.YES_OPTION) {//确认退出\n\t\t\t\t\t//退出时销毁窗口\n\t\t\t\t\tframe.dispose();\n\t\t\t\t}else {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJMenuItem mntmNewMenuItem_14 = new JMenuItem(\"锁定\");\n\t\tmntmNewMenuItem_14.addMouseListener(new MouseAdapter() {\n\t\t\t/**\n\t\t\t * 锁定\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenuBar.setVisible(false);\n\t\t\t\t/**\n\t\t\t\t * 调用面板\n\t\t\t\t */\n\t\t\t\tshowLockPanel(menuBar);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmNewMenuItem_14.setFont(font);\n\t\tmenu_2.add(mntmNewMenuItem_14);\n\t\tmntmNewMenuItem_4.setFont(font);\n\t\tmenu_2.add(mntmNewMenuItem_4);\n\t\t\n\n\t\n\t\tframe.setVisible(true);\n\t}", "private void InitGUI() {\n\n\t\t//Configuraciones de la ventana principal\n\t\tcontenedor = getContentPane();\n\t\tcontenedor.removeAll();\n\t\tgetContentPane().setLayout(null);\n\t\tthis.setUndecorated(true);\n\t\tlistener = new ManejadorDeBotones();\n\t\tmanejadorDesplazamientoVentana(this);\n\n\t\t// Logo del sofa\n\t\tJLabel imagenSofa = new JLabel(\"\");\n\t\timagenSofa.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/sofa.png\")));\n\t\timagenSofa.setBounds(199, 15, 120, 80);\n\t\tgetContentPane().add(imagenSofa);\n\n\t\t// Etiqueta para el nombre al ladpo del logo\n\t\tJLabel lblMueblesYMuebles = new JLabel(\" Muebles y Muebles\");\n\t\tlblMueblesYMuebles.setFont(font);\n\t\tlblMueblesYMuebles.setForeground(Color.WHITE);\n\t\tlblMueblesYMuebles.setBounds(390, 77, 152, 32);\n\t\tgetContentPane().add(lblMueblesYMuebles);\n\n\t\t// Etiqueta para el logo XYZ\n\t\tJLabel imagenLogo = new JLabel(\"\");\n\t\timagenLogo.setIcon(\n\t\t\t\tnew ImageIcon(GUIMenuAdmin.class.getResource(\"/images/logo_blanco.png\")));\n\t\timagenLogo.setBounds(288, 23, 213, 82);\n\t\tgetContentPane().add(imagenLogo);\n\n\t\t//Boton para inicial crear ordenes de trabajo\n\t\tcrearOrden = new JButton(\"CREAR\");\n\t\tcrearOrden.setForeground(SystemColor.textHighlight);\n\t\tcrearOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tcrearOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tcrearOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_crear.png\")));\n\t\tcrearOrden.setFocusPainted(false);\n\t\tcrearOrden.setBorderPainted(false);\n\t\tcrearOrden.setOpaque(true);\n\t\tcrearOrden.setBackground(new Color(227, 227, 227));\n crearOrden.setFont(font);\n crearOrden.setBounds(117, 219, 140, 120);\n crearOrden.addActionListener(listener);\n getContentPane().add(crearOrden);\n\n\t\t//Boton para modificar ordenes de trabajo\n\t\tmodificarOrden = new JButton(\"MODIFICAR\");\n\t\tmodificarOrden.setForeground(SystemColor.textHighlight);\n\t\tmodificarOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tmodificarOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tmodificarOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_editar.png\")));\n\t\tmodificarOrden.setFocusPainted(false);\n\t\tmodificarOrden.setBorderPainted(false);\n\t\tmodificarOrden.setOpaque(true);\n\t\tmodificarOrden.setBackground(new Color(227, 227, 227));\n\t\tmodificarOrden.setFont(font);\n\t\tmodificarOrden.setBounds(267, 219, 140, 120);\n modificarOrden.addActionListener(listener);\n getContentPane().add(modificarOrden);\n\n\t\t//Boton para inicial la actualizacion de los usuarios\n\t\tconsultarOrden = new JButton(\"CONSULTAR\");\n\t\tconsultarOrden.setForeground(SystemColor.textHighlight);\n\t\tconsultarOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tconsultarOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tconsultarOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_buscar.png\")));\n\t\tconsultarOrden.setFocusPainted(false);\n\t\tconsultarOrden.setBorderPainted(false);\n\t\tconsultarOrden.setOpaque(true);\n\t\tconsultarOrden.setBackground(new Color(227, 227, 227));\n\t\tconsultarOrden.setFont(font);\n\t\tconsultarOrden.setBounds(417, 219, 140, 120);\n consultarOrden.addActionListener(listener);\n getContentPane().add(consultarOrden);\n\n //Boton salir\n\t\tsalir = new JButton(\"\");\n\t\tsalir.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/salir.png\")));\n\t\tsalir.setBorderPainted(false);\n\t\tsalir.setBorder(null);\n\t\tsalir.setMargin(new Insets(0, 0, 0, 0));\n\t\tsalir.setContentAreaFilled(false);\n\t\tsalir.addActionListener(listener);\n\t\tsalir.setBounds(588, 411, 81, 59);\n\t\tgetContentPane().add(salir);\n\n\t\t//-- Eriqueta --//\n\t\tlabel_1 = new JLabel(\"ORDENES DE TRABAJO\");\n\t\tlabel_1.setForeground(SystemColor.textHighlight);\n\t\tlabel_1.setFont(font);\n\t\tlabel_1.setBounds(117, 192, 140, 14);\n\t\tgetContentPane().add(label_1);\n\n\t\t//-- Separadores --//\n\t\tseparator_1 = new JSeparator();\n\t\tseparator_1.setForeground(SystemColor.textHighlight);\n\t\tseparator_1.setBackground(new Color(255, 255, 255));\n\t\tseparator_1.setBounds(260, 199, 297, 9);\n\t\tgetContentPane().add(separator_1);\n\t\t\n\t\t//Etiqueta salir\n\t\tlblSalir = new JLabel(\"SALIR\");\n\t\tlblSalir.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblSalir.setForeground(SystemColor.textHighlight);\n\t\tlblSalir.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblSalir.setBounds(597, 391, 49, 14);\n\t\tgetContentPane().add(lblSalir);\n\t\t//Etiqueta superior azul\n\t\tJLabel fondoAzul = new JLabel(\"\");\n\t\tfondoAzul.setOpaque(true);\n\t\tfondoAzul.setBackground(new Color(45, 118, 232));// azul #2D76E8\n\t\tfondoAzul.setBounds(0, 0, 679, 120);\n\t\tgetContentPane().add(fondoAzul);\n\n\t\t//Titulo para tipo de usuario\n\t\tJLabel titulo = new JLabel(\"JEFE DE TALLER\");\n\t\ttitulo.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\ttitulo.setForeground(SystemColor.textHighlight);\n\t\ttitulo.setBounds(417, 146, 140, 21);\n\t\tgetContentPane().add(titulo);\n\n\t\t\n\t\t// Etiqueta principal blanca\n\t\tJLabel fondoBlanco = new JLabel(\"\");\n\t\tfondoBlanco.setOpaque(true);\n\t\tfondoBlanco.setBackground(new Color(255, 255, 255));\n\t\tfondoBlanco.setBounds(0, 120, 679, 377);\n\t\tgetContentPane().add(fondoBlanco);\n\n\t\t//Configuraciones adicionales de la ventana principal\n\t\tsetSize(679, 497);\n\t\tsetResizable(false);\n\t\tsetVisible(true);\n\t\tsetLocationRelativeTo(null);\n\t\tsetShape(new java.awt.geom.RoundRectangle2D.Double(0, 0, getWidth(), getHeight(), 5, 5));\n\n }", "public void showWindow(Link link) {\n\t\tlinkToEdit = link;\n\t\tthis.workingLink = link.clone();\n\t\tupdate();\n\t\tMenuStart.centerWindow(this);\n\t\tsetVisible(true);\n\t}", "public NewJFrame() {\n initComponents();\n // HidenLable.setVisible(false);\n }", "void openDialog()\n {\n if(main.copyCmd.listEvCopy.size() >0){\n widgCopy.setBackColor(GralColor.getColor(\"rd\"), 0);\n } else {\n widgCopy.setBackColor(GralColor.getColor(\"wh\"), 0);\n }\n \n windStatus.setFocus(); //setWindowVisible(true);\n\n }", "public ViewBotonesListas() {\n initComponents();\n }", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tGridLayout gl;\n\t\t//fenetre.setLayout(gl=new GridLayout(3, 2));\n\t\tfenetre.setLayout(new FlowLayout());\n\t\tfenetre.add(label_pseudal);\n\t\tfenetre.add(pseudo);\n\t\t\n\t \n\t\tfenetre.setTitle(\"Travail sur des taches\");\n\t\tfenetre.add(bouton_ok);\n\t\t\n\t\tfenetre.setSize(400, 500);\n\t\t//gl.setColumns(2);\n\t\t//gl.setRows(3);\n\t\t\n\t\tfenetre.setLocationRelativeTo(null);\n\t\t\n\t\tfenetre.setVisible(true); \n\t\t\n\t\t\n\n\t\tbouton_ok.addMouseListener(new MouseListener(){\n\t\n\t\t @SuppressWarnings(\"deprecation\")\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t \t\n\t\t \ttry {\n\t\t \t\t\n\t\t\t\t\t\n\t\t\t \tString username = pseudo.getText();\n\n\t\t\t\t\tSystem.out.println(\"Etablir une liste de room\");\n\t\t\t\t\t\n\t\t\t\t\t // Now start our bot up.\n\t\t\t BotGetRoom botg = new BotGetRoom();\n\t\t\t \n\t\t\t // Enable debugging output.\n\t\t\t botg.setVerbose(true);\n\t\t\t \n\t\t\t // Connect to the IRC server.\n\t\t\t \n\t\t\t\t\tbotg.connect(\"irc.freenode.net\");\n\t\t\t\t\t\n\t\t\t // Join the channel.\n\t\t\t botg.joinChannel(\"#TEST_TER_GRID_JH\");\n\t\t\t // on ask le provider\n\t\t\t \n\t\t\t botg.sendMessage(\"#TEST_TER_GRID_JH\", \"problem?\");\n\t\t\t \n\t\t\t File resume = new File(\"resume.txt\");\n\t\t\t while(!resume.exists())\n\t\t\t {\t\n\t\t\t \tSystem.out.println(\"On attend le fichier qui resume tout les probleme disponible\");\n\t\t\t \tThread.sleep(500);\n\t\t\t } \n\t\t\t Scanner scanner = new Scanner(new File(\"resume.txt\"));\n\t\t\t\t\twhile (scanner.hasNextLine()) {\n\t\t\t\t\t\tString line = scanner.nextLine();\n\t\t\t\t\t\tcomboPrb.addItem(line);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"Fin de etablir une liste de room\");\n\n\t\t\t\t\t\n\t\t\t\t\tfenetre.remove(label_pseudal);\n\t\t\t\t\tfenetre.remove(pseudo);\n\t\t\t\t\t\n\t\t\t\t\tfenetre.remove(bouton_ok);\n\t\t\t\t\tfenetre.setVisible(false); \n\t\t\t\t\t\n\t\t\t\t\t//On rafraichit \n\t\t\t\t\tfenetre.add(affichage);\n\t\t\t\t\tfenetre.add(comboPrb);\n\t\t\t\t\tfenetre.add(bouton_ok_channel);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tbouton_ok_channel.setProblemeCourant(comboPrb.getSelectedItem().toString());\n\t\t\t\t\tbouton_ok_channel.setUsername(username);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfenetre.setVisible(true); \n\t\t\t\t\t\t\t\n\t\t\t\t} catch (NickAlreadyInUseException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IrcException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (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 }\n\t\n\t\t public void mousePressed(MouseEvent e) {\n\t\n\t\t }\n\t\n\t\t public void mouseReleased(MouseEvent e) {\n\t\n\t\t }\n\t\n\t\t public void mouseEntered(MouseEvent e) {\n\t\n\t\t }\n\t\n\t\t public void mouseExited(MouseEvent e) {\n\t\n\t\t\t}\n\t\t});\n\t}", "@FXML\n public void addNoodleHaus() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingNoodlehaus(0, 0));\n }", "private ShowFitaMT() {\r\n setLocationRelativeTo(null);\r\n initComponents();\r\n setSize(600,120);\r\n setModal(true);\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel4 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n Panel = new javax.swing.JPanel();\n userPanel = new javax.swing.JPanel();\n Home1 = new javax.swing.JLabel();\n Setting1 = new javax.swing.JLabel();\n Account1 = new javax.swing.JLabel();\n Bayar = new javax.swing.JLabel();\n LihatPenggunaan = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n Adminpanel = new javax.swing.JPanel();\n Home = new javax.swing.JLabel();\n Setting = new javax.swing.JLabel();\n Account = new javax.swing.JLabel();\n DaftarUser = new javax.swing.JLabel();\n DaftarTagihan = new javax.swing.JLabel();\n DaftarBayar = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n HomeCanvas = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jLabel4MouseReleased(evt);\n }\n });\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 70, 50, 50));\n\n jLabel6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jLabel6MouseReleased(evt);\n }\n });\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(640, 0, 40, 50));\n\n Panel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n userPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n userPanel.add(Home1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 120, 30, 20));\n userPanel.add(Setting1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 70, 70, 20));\n\n Account1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n Account1MouseReleased(evt);\n }\n });\n userPanel.add(Account1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 50, 70, 20));\n userPanel.add(Bayar, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 30, 70, 10));\n\n LihatPenggunaan.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n LihatPenggunaanMouseReleased(evt);\n }\n });\n userPanel.add(LihatPenggunaan, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 80, 10));\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/image/UserMenu.jpg\"))); // NOI18N\n userPanel.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, 150));\n\n Panel.add(userPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, 150));\n\n Adminpanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n Adminpanel.add(Home, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 120, 30, 20));\n Adminpanel.add(Setting, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 90, 70, 20));\n\n Account.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n AccountMouseReleased(evt);\n }\n });\n Adminpanel.add(Account, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 70, 70, 20));\n\n DaftarUser.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n DaftarUserMouseReleased(evt);\n }\n });\n Adminpanel.add(DaftarUser, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 50, 70, 20));\n Adminpanel.add(DaftarTagihan, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 30, 70, 20));\n Adminpanel.add(DaftarBayar, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, 60, 20));\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/image/AdminMenu.jpg\"))); // NOI18N\n Adminpanel.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n Panel.add(Adminpanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, 150));\n\n getContentPane().add(Panel, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 110, 100, 150));\n\n HomeCanvas.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/image/Menu.jpg\"))); // NOI18N\n HomeCanvas.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n HomeCanvasMouseReleased(evt);\n }\n });\n getContentPane().add(HomeCanvas, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "private static void initAndShowGUI() {\n }", "boolean isAlwaysOnTop();", "@Override\n public void onCreate(Bundle savedInstanceState) \n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n \n likemenuButton = (Button)(findViewById(R.id.likemenu));\n \n likemenuButton.setOnClickListener(new View.OnClickListener() \n {\n public void onClick(View v) \n {\n \tDemoMyWindow popup = new DemoMyWindow(v);\n \tpopup.showLikeQuickAction();\n }\n });\n\n \n //DemoMyWindow popup = new DemoMyWindow(this.findViewById(android.R.id.content).getRootView());\n //popup.showLikePopDownMenu();\n }", "private static void createAndShowGUI() {\n if (!SystemTray.isSupported()) {\n log.error(\"SystemTray is not supported\");\n return;\n }\n\n SystemTray tray = SystemTray.getSystemTray();\n\n Image icon = createImage(\"/images/b2b.gif\", \"tray icon\");\n trayIcon = new TrayIcon(icon);\n trayIcon.setImageAutoSize(true);\n trayIcon.setToolTip(\"back2back\");\n\n PopupMenu popupMenu = new PopupMenu();\n {\n openWebUIMenuItem = new MenuItem(\"Open back2back web interface\");\n openWebUIMenuItem.addActionListener(B2BTrayIcon::openWebUI);\n popupMenu.add(openWebUIMenuItem);\n }\n popupMenu.addSeparator();\n {\n startAutomaticallyMenuItem = new CheckboxMenuItem(\"Start automatically with system\");\n startAutomaticallyMenuItem.addItemListener(e -> {\n int newState = e.getStateChange();\n setAutoStart(newState == ItemEvent.SELECTED);\n });\n startAutomaticallyMenuItem.setEnabled(serviceController != null);\n popupMenu.add(startAutomaticallyMenuItem);\n }\n popupMenu.addSeparator();\n {\n startMenuItem = new MenuItem(\"Start back2back engine\");\n startMenuItem.setEnabled(false);\n startMenuItem.addActionListener(evt -> {\n try {\n startEngine();\n } catch (ControlException e) {\n log.error(\"Failed to start engine\", e);\n trayIcon.displayMessage(\"back2back\", \"Failed to start engine: \" + e.toString(), TrayIcon.MessageType.ERROR);\n }\n });\n popupMenu.add(startMenuItem);\n }\n {\n stopMenuItem = new MenuItem(\"Stop back2back engine\");\n stopMenuItem.setEnabled(false);\n stopMenuItem.addActionListener(evt -> {\n try {\n stopEngine();\n } catch (ControlException e) {\n trayIcon.displayMessage(\"back2back\", \"Failed to stop engine: \" + e.toString(), TrayIcon.MessageType.ERROR);\n }\n });\n popupMenu.add(stopMenuItem);\n }\n popupMenu.addSeparator();\n {\n MenuItem item = new MenuItem(\"About\");\n item.addActionListener(B2BTrayIcon::about);\n popupMenu.add(item);\n }\n {\n MenuItem item = new MenuItem(\"Check for update\");\n item.setEnabled(updateManager != null);\n item.addActionListener(B2BTrayIcon::checkForUpdate);\n popupMenu.add(item);\n }\n {\n MenuItem item = new MenuItem(\"Close tray icon\");\n item.addActionListener(e -> {\n tray.remove(trayIcon);\n System.exit(0);\n });\n popupMenu.add(item);\n }\n\n// popupMenu.addActionListener(e -> log.debug(\"POPUP ACTION\"));\n trayIcon.setPopupMenu(popupMenu);\n\n trayIcon.addActionListener(e -> log.debug(\"TRAY ACTION\"));\n\n try {\n tray.add(trayIcon);\n } catch (AWTException e) {\n log.error(\"TrayIcon could not be added.\", e);\n return;\n }\n\n //trayIcon.displayMessage(\"back2back\", \"Tray icon ready\", TrayIcon.MessageType.INFO);\n\n // start status update on background thread\n Thread thread = new Thread(B2BTrayIcon::pollStatus);\n thread.setDaemon(true);\n thread.start();\n\n log.info(\"Tray icon ready.\");\n }", "public GDThemBanDoc1() {\n initComponents();\n btnQuayLai.addActionListener(this);\n this.setLocationRelativeTo(null);\n load();\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n lbFoto = new javax.swing.JLabel();\r\n lbTitulo = new javax.swing.JLabel();\r\n lblEstrella = new javax.swing.JLabel();\r\n lblFav_id = new javax.swing.JLabel();\r\n\r\n setBackground(new java.awt.Color(38, 11, 32));\r\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n lbFoto.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));\r\n lbFoto.setMaximumSize(new java.awt.Dimension(109, 129));\r\n lbFoto.setMinimumSize(new java.awt.Dimension(109, 129));\r\n lbFoto.setPreferredSize(new java.awt.Dimension(109, 129));\r\n add(lbFoto, new org.netbeans.lib.awtextra.AbsoluteConstraints(43, 18, 109, 129));\r\n\r\n lbTitulo.setFont(new java.awt.Font(\"Segoe UI\", 0, 12)); // NOI18N\r\n lbTitulo.setForeground(new java.awt.Color(255, 255, 255));\r\n lbTitulo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n lbTitulo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/iconos/titulo.png\"))); // NOI18N\r\n lbTitulo.setText(\"titulo\");\r\n add(lbTitulo, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 165, 176, -1));\r\n\r\n lblEstrella.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/vista/iconos/estrella desactivada.png\"))); // NOI18N\r\n add(lblEstrella, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 0, -1, 30));\r\n\r\n lblFav_id.setForeground(new java.awt.Color(38, 11, 32));\r\n lblFav_id.setText(\"jLabel1\");\r\n add(lblFav_id, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 60, -1));\r\n }", "public GUIBusqueda() {\r\n initComponents();\r\n this.setLocationRelativeTo(null);\r\n this.setExtendedState(this.MAXIMIZED_BOTH); \r\n }", "public interface GUI {\n\n /**\n * Adds a MouseListener to the GUI.\n * @param mouseListener added to the GUI.\n */\n void addMouseListener(MouseListener mouseListener);\n\n /**\n * Get list link button for other GUIs. \n * @return List of ButtonLink\n */\n List<ButtonLink> getBtnActionLinks();\n\n /**\n * Sets the link identifier of the GUI.\n * @param linkActionGUI link identifier.\n */\n void setMainAction(LinkActionGUI linkActionGUI);\n\n /**\n * Set the boundaries from a rectangle.\n * @param rectangle for borders.\n */\n void setBounds(Rectangle rectangle);\n\n /**\n * Set visibility of the GUI.\n * @param visible for visibility.\n */\n void setVisible(boolean visible);\n\n /**\n * Set background image.\n * @param path of image.\n */\n void setImageBackground(String path);\n\n /**\n * Set the border color and thickness.\n * @param color for border.\n * @param thickness for border.\n */\n void setBorder(Color color, int thickness);\n\n /**\n * Set visibility of the foreground panel of the GUI.\n * @param visible for visibility panel.\n */\n void setVisibleGlassPanel(Visibility visible);\n\n /**\n * Close the GUI and destroyed JFrame.\n */\n void close();\n\n}", "public Mainwindow(){\n \n try \n {\n //LookAndFeel asd = new SyntheticaAluOxideLookAndFeel();\n //UIManager.setLookAndFeel(asd);\n } \n catch (Exception e) \n {\n e.printStackTrace();\n }\n initComponents();\n \n \n userinitComponents();\n \n \n }", "public GlowneOkno() {\n initComponents();\n }", "private void butAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butAddActionPerformed\n AddBorrower ab = new AddBorrower();\n ab.setVisiblePanel(0);\n ab.setVisible(true);\n }", "private void setAttributes() {\n this.setVisible(true);\n this.setSize(500, 500);\n this.setTitle(\"cuttco.com\");\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\n }", "private void initProcess(){\n this.getScPanelFriends().getViewport().setOpaque(false);\n this.getScPanelTopics().getViewport().setOpaque(false);\n this.getCenterPanel().setSize(0,0);\n this.getEastPanel().setSize(1700,800);\n //Administrador inhabilitado por defecto hasta implementación\n this.getBtnAdmin().setEnabled(false);\n this.getMenuOption().setLocationRelativeTo(this);\n }", "public void showGui()\n {\n // TODO\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setResizable(false);\n\t\tframe.setUndecorated(true);\n\t\tframe.setBounds(100, 100, 587, 465);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblName = new JLabel(\"\");\n\t\tlblName.setIcon(new ImageIcon(SpriteBar.class.getResource(\"/pic/common/Sprite_Name.png\")));\n\t\tlblName.setBackground(Color.WHITE);\n\t\tlblName.setForeground(new Color(102, 102, 51));\n\t\tlblName.setFont(new Font(\"Comic Sans MS\", Font.ITALIC, 23));\n\t\tlblName.setBounds(26, 60, 117, 40);\n\t\tframe.getContentPane().add(lblName);\n\t\t\n\t\tJLabel lblLevel = new JLabel(\"\");\n\t\tlblLevel.setIcon(new ImageIcon(SpriteBar.class.getResource(\"/pic/common/Sprite_Level.png\")));\n\t\tlblLevel.setBackground(Color.WHITE);\n\t\tlblLevel.setForeground(new Color(102, 102, 51));\n\t\tlblLevel.setFont(new Font(\"Comic Sans MS\", Font.ITALIC, 23));\n\t\tlblLevel.setBounds(26, 105, 117, 40);\n\t\tframe.getContentPane().add(lblLevel);\n\t\t\n\t\tJLabel lblHp = new JLabel(\"\");\n\t\tlblHp.setIcon(new ImageIcon(SpriteBar.class.getResource(\"/pic/common/Sprite_HP.png\")));\n\t\tlblHp.setBackground(Color.WHITE);\n\t\tlblHp.setForeground(new Color(102, 102, 51));\n\t\tlblHp.setFont(new Font(\"Comic Sans MS\", Font.ITALIC, 23));\t\n\t\tlblHp.setBounds(26, 150, 117, 40);\n\t\tframe.getContentPane().add(lblHp);\n\t\t\n\t\tJLabel lblMp = new JLabel(\"\");\n\t\tlblMp.setIcon(new ImageIcon(SpriteBar.class.getResource(\"/pic/common/Sprite_MP.png\")));\n\t\tlblMp.setBackground(Color.WHITE);\n\t\tlblMp.setForeground(new Color(102, 102, 51));\n\t\tlblMp.setFont(new Font(\"Comic Sans MS\", Font.ITALIC, 23));\n\t\tlblMp.setBounds(26, 195, 117, 40);\n\t\tframe.getContentPane().add(lblMp);\n\t\t\n\t\tJLabel lblStrength = new JLabel(\"\");\n\t\tlblStrength.setIcon(new ImageIcon(SpriteBar.class.getResource(\"/pic/common/Sprite_Strength.png\")));\n\t\tlblStrength.setBackground(Color.WHITE);\n\t\tlblStrength.setForeground(new Color(102, 102, 51));\n\t\tlblStrength.setFont(new Font(\"Comic Sans MS\", Font.ITALIC, 23));\n\t\tlblStrength.setBounds(26, 245, 127, 40);\n\t\tframe.getContentPane().add(lblStrength);\n\t\t\n\t\tJLabel lblAttack = new JLabel(\"\");\n\t\tlblAttack.setIcon(new ImageIcon(SpriteBar.class.getResource(\"/pic/common/Sprite_Attack.png\")));\n\t\tlblAttack.setBackground(Color.WHITE);\n\t\tlblAttack.setForeground(new Color(102, 102, 51));\n\t\tlblAttack.setFont(new Font(\"Comic Sans MS\", Font.ITALIC, 23));\n\t\tlblAttack.setBounds(26, 290, 127, 40);\n\t\tframe.getContentPane().add(lblAttack);\n\t\t\n\t\tJLabel lblDefence = new JLabel(\"\");\n\t\tlblDefence.setIcon(new ImageIcon(SpriteBar.class.getResource(\"/pic/common/Sprite_Defence.png\")));\n\t\tlblDefence.setBackground(Color.WHITE);\n\t\tlblDefence.setForeground(new Color(102, 102, 51));\n\t\tlblDefence.setFont(new Font(\"Comic Sans MS\", Font.ITALIC, 23));\n\t\tlblDefence.setBounds(26, 335, 127, 40);\n\t\tframe.getContentPane().add(lblDefence);\n\t\t\n\t\tJLabel name = new JLabel(\"name\");\n\t\tname.setText(sprite.getName());\n\t\tname.setFont(new Font(\"Comic Sans MS\", Font.BOLD, 21));\n\t\tname.setForeground(new Color(204, 102, 0));\n\t\tname.setBounds(163, 71, 110, 18);\n\t\tframe.getContentPane().add(name);\n\t\t\n\t\tJLabel level = new JLabel(\"level\");\n\t\tlevel.setText(\"\" + sprite.getLevel());\n\t\tlevel.setForeground(new Color(0, 204, 0));\n\t\tlevel.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 21));\n\t\tlevel.setBounds(163, 117, 72, 18);\n\t\tframe.getContentPane().add(level);\n\t\t\n\t\tJLabel hp = new JLabel(\"hp\");\n\t\thp.setText(sprite.getHp() + \"/\" + sprite.getMaxHp());\n\t\thp.setForeground(new Color(255, 0, 0));\n\t\thp.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 21));\n\t\thp.setBounds(163, 160, 110, 18);\n\t\tframe.getContentPane().add(hp);\n\t\t\n\t\tJLabel mp = new JLabel(\"mp\");\n\t\tmp.setText(sprite.getMp() + \"/\" + sprite.getMaxMp());\n\t\tmp.setForeground(new Color(51, 51, 255));\n\t\tmp.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 21));\n\t\tmp.setBounds(163, 209, 110, 18);\n\t\tframe.getContentPane().add(mp);\n\t\t\n\t\tJLabel strength = new JLabel(\"strength\");\n\t\tstrength.setText(\"\" + sprite.getStrength());\n\t\tstrength.setForeground(new Color(153, 0, 255));\n\t\tstrength.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 21));\n\t\tstrength.setBounds(163, 258, 72, 18);\n\t\tframe.getContentPane().add(strength);\n\t\t\n\t\tJLabel attack = new JLabel(\"attack\");\n\t\tattack.setText(\"\" + sprite.getAttack());\n\t\tattack.setForeground(new Color(153, 51, 255));\n\t\tattack.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 21));\n\t\tattack.setBounds(163, 303, 72, 18);\n\t\tframe.getContentPane().add(attack);\n\t\t\n\t\tJLabel defence = new JLabel(\"defence\");\n\t\tdefence.setText(\"\" + sprite.getDefence());\n\t\tdefence.setForeground(new Color(153, 51, 255));\n\t\tdefence.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 21));\n\t\tdefence.setBounds(163, 348, 72, 18);\n\t\tframe.getContentPane().add(defence);\n\t\t\n\t\tJButton btnBack = new JButton(\"\");\n\t\tbtnBack.setIcon(new ImageIcon(SpriteBar.class.getResource(\"/pic/menu/Back.png\")));\n\t\tbtnBack.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(menuBar == null)\n\t\t\t\t\tmenuBar = new MenuBar(sprite);\n\t\t\t\telse\n\t\t\t\t\tmenuBar.updateSprite(sprite);\n\t\t\t\tmenuBar.main();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnBack.setIcon(new ImageIcon(MenuBar.class.getResource(\"/pic/menu/back_1.png\")));\n\t\tbtnBack.setRolloverIcon(new ImageIcon(MenuBar.class.getResource(\"/pic/menu/back_2.png\")));\n\t\tbtnBack.setBorderPainted(false);\n\t\tbtnBack.setOpaque(false);\t\n\t\tbtnBack.setBounds(14, 385, 110, 59);\n\t\tbtnBack.setBackground(Color.BLACK);\n\t\tframe.getContentPane().add(btnBack);\n\t\t\n\t\tJLabel lblBackground = new JLabel(\"\");\n\t\tlblBackground.setIcon(new ImageIcon(SpriteBar.class.getResource(\"/pic/common/demo1.png\")));\n\t\tlblBackground.setBounds(0, 0, 587, 465);\n\t\tframe.getContentPane().add(lblBackground);\n\t}", "private static void createAndShowGUI() {\r\n\t\tlogger.info(\"Creating and showing the GUI\");\r\n\t\tJFrame frame = new JFrame(\"BowlingSwing\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.add(new BowlingSwing());\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "private void createTray(Display display) \n\t{\n Tray tray;\n TrayItem item;\n tray = display.getSystemTray();\n\n if (tray == null) {\n System.out.println(\"The system tray is not available\");\n } else {\n item = new TrayItem(tray, SWT.NONE);\n item.setToolTipText(\"Arper Express\");\n item.addListener(SWT.Show, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"show\");\n }\n });\n\n item.addListener(SWT.Hide, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"hide\");\n }\n });\n\n item.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"selection\");\n }\n });\n\n item.addListener(SWT.DefaultSelection, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"default selection\");\n }\n });\n\n final Menu menu = new Menu(shell, SWT.POP_UP);\n\n MenuItem openMenuItem = new MenuItem(menu, SWT.PUSH);\n openMenuItem.setText(\"Mostrar\");\n openMenuItem.addListener(SWT.Selection, new Listener() {\n\n public void handleEvent(Event event) {\n shell.setVisible(true);\n shell.setMaximized(true);\n }\n });\n\n MenuItem exitMenuItem = new MenuItem(menu, SWT.PUSH);\n exitMenuItem.setText(\"Salir\");\n exitMenuItem.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event event) {\n System.exit(0);\n }\n });\n\n item.addListener(SWT.MenuDetect, new Listener() {\n public void handleEvent(Event event) {\n menu.setVisible(true);\n }\n });\n\n // image = SWTResourceManager.getImage(MakeBreak.class, \"Backup-Green-Button-icon.png\");\n // image = SWTResourceManager.getImage(WpCommenter.class, \"images/mb4.png\");\n// ImageData imageData = new ImageData(\"lib/impresora.png\");\n ImageData imageData = new ImageData(Home.class.getClassLoader().getResourceAsStream(\"impresora.png\"));\n //ImageData imageData = new ImageData(getClass().getResourceAsStream(\"impresora.png\"));\n\n item.setImage(new Image(display,imageData));\n \n shell.addShellListener(new ShellListener() {\n \tpublic void shellActivated(ShellEvent event) {\n\n \t}\n\n \tpublic void shellClosed(ShellEvent event) {\n \t\tevent.doit = false; //!! for this code i looked long time\n shell.setVisible(false);\n }\n\n public void shellDeactivated(ShellEvent event) {\n \n }\n\n public void shellDeiconified(ShellEvent event) {\n\n }\n\n public void shellIconified(ShellEvent event) {\n //shell.setVisible(false);\n }\n });\n \n }\n }", "public ModUsu() {\n setUndecorated(true);\n initComponents();\n this.setLocationRelativeTo(null);\n \n this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n i();\n \n }", "private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private static void createAndShowGUI() {\n if (!SystemTray.isSupported()) {\r\n return;\r\n }\r\n final PopupMenu popup = new PopupMenu();\r\n final TrayIcon trayIcon =\r\n new TrayIcon(createImage(\"/config/mut3.png\", \"JFileImporter\"));\r\n final SystemTray tray = SystemTray.getSystemTray();\r\n Font itemFont = new Font(\"Ariel\",Font.BOLD,12);\r\n // Create a popup menu components\r\n MenuItem aboutItem = new MenuItem(\"About\");\r\n MenuItem maxItem = new MenuItem(\"Maximize\");\r\n MenuItem minItem = new MenuItem(\"Minimize\");\r\n MenuItem showSchedulerItem = new MenuItem(\"Show Scheduler\");\r\n MenuItem showImporterItem = new MenuItem(\"Show Importer\");\r\n MenuItem exitItem = new MenuItem(\"Exit\");\r\n\r\n aboutItem.setFont(itemFont);\r\n maxItem.setFont(itemFont);\r\n minItem.setFont(itemFont);\r\n showSchedulerItem.setFont(itemFont);\r\n showImporterItem.setFont(itemFont);\r\n exitItem.setFont(itemFont);\r\n //Add components to popup menu\r\n popup.add(aboutItem);\r\n popup.addSeparator();\r\n popup.add(maxItem);\r\n popup.add(minItem);\r\n popup.addSeparator();\r\n popup.add(showSchedulerItem);\r\n popup.add(showImporterItem); \r\n popup.addSeparator();\r\n popup.add(exitItem);\r\n \r\n trayIcon.setPopupMenu(popup);\r\n \r\n try {\r\n tray.add(trayIcon);\r\n } catch (AWTException e) {\r\n \tJOptionPane.showMessageDialog(null, \"Tray Icon could not be added \"+e, \"Error creating Tray Icon\", JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n trayIcon.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tJImporterMain.maximize();\r\n }\r\n });\r\n \r\n maxItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tJImporterMain.maximize();\r\n }\r\n });\r\n minItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \ttrayIcon.displayMessage(\"JFileImporter\", \"Importer Still Running! Right Click for more options\", TrayIcon.MessageType.INFO);\r\n \tJImporterMain.minimize();\r\n \t\r\n }\r\n });\r\n \r\n aboutItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \ttrayIcon.displayMessage(\"About\", \"JFileImporter\\nVersion\\t1.00\\nDeveloped By:\\tAnil Sehgal\", TrayIcon.MessageType.INFO);\r\n }\r\n });\r\n \r\n showImporterItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tJImporterMain.showImporter();\r\n }\r\n });\r\n showSchedulerItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tString schedulerShown = LoadProfileUI.showScheduler();\r\n \tif(schedulerShown.equals(\"npe\")){\r\n \t\ttrayIcon.displayMessage(\"Scheduler\", \"Please initialize the Scheduler from Menu\", TrayIcon.MessageType.WARNING);\r\n \t}else if(schedulerShown.equals(\"ge\")){\r\n \t\ttrayIcon.displayMessage(\"Scheduler\", \"Error Launching Scheduler, Please contact technical support\", TrayIcon.MessageType.ERROR);\r\n \t}\r\n }\r\n });\r\n trayIcon.setImageAutoSize(true);\r\n trayIcon.setToolTip(\"JFileImporter\"); \r\n exitItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tint option = JOptionPane.showConfirmDialog(null, \"If You Quit the Application, the scheduled job will terminate!\", \"Exit Confirmation\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);\r\n \tif(option == JOptionPane.OK_OPTION){\r\n\t tray.remove(trayIcon);\r\n\t System.exit(0);\r\n \t}\r\n }\r\n });\r\n }", "private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "public void ver() {\n\t\tthis.setVisible(true);\n\t}", "public SetTopBox(){\n\t\t\n\t\ttry {\n\t\t\tc = new Client(DEFAULT_HOST, DEFAULT_PORT);\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//Buttons\n\t\tPanel p = new Panel();\n\t\tsetLayout(new BorderLayout());\n\t\tb1 = new JButton(\"Rechercher Multimedia\");\n\t\tb2 = new JButton(\"Jouer Multimedia\");\n\t\tb3 = new JButton(\"EXIT\");\n\t\tp.add(b1);\n\t\tp.add(b2);\n\t\tp.add(b3);\n\t\tthis.add(p, BorderLayout.SOUTH);\n\t\t//Text Area and Scroll\n\t\ttext = new JTextArea(10, 50);\n\t\ttext.append(\">Introduce name of file: \\n\");\n\t\tjp = new JScrollPane(text);\n\t\tadd(jp, BorderLayout.CENTER);\n\t\t\n\t\t//New Actions for Menu and ToolBar\n\t\ta1 = new MenuActions(\"Rechercher Multimedia\");\n\t\ta2 = new MenuActions(\"Jouer Multimedia\");\n\t\ta3 = new MenuActions(\"Exit\");\n\t\t\n\t\t//Create Menu with actions\n\t\tmenubar = new JMenuBar();\n\t\tmenu = new JMenu(\"Menu\");\n\t\tmenubar.add(menu);\n\t\tmenu.add(a1);\n\t\tmenu.add(a2);\n\t\tmenu.add(a3);\n\t\tthis.setJMenuBar(menubar);\n\t\t\n\t\t//Create ToolBar with actions\n\t\ttoolbar = new JToolBar(\"ToolBar\");\n\t\ttoolbar.add(a1);\n\t\ttoolbar.add(a2);\n\t\ttoolbar.add(a3);\n\t\tadd(toolbar, BorderLayout.NORTH);\n\t\t\n\t\t// Add Listeners to buttons\n\t\tb1.addActionListener(this);\n\t\tb2.addActionListener(this);\n\t\tb3.addActionListener(this);\n\t\t\n\t\tsetLocationByPlatform(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tpack();\n\t\tsetVisible(true);\n\t}", "public void createNoBanButton() {\n\t\tnoban = new JButton(\"Click here if the current team missed a ban\");\n\t\tnoban.setName(\"noban\");\n\t\tnoban.setBackground(Color.GRAY);\n\t\tnoban.setForeground(Color.WHITE);\n\t\tnoban.setBorderPainted(false);\n\t\tnoban.addActionListener(this);\n\t\tnoban.setBounds(400, 50, 400, 100);\n\t\tbottomPanel.add(noban, new Integer(1));\n\t}", "public JfrmAdviserSignUp() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n setTitle(\"MARKETING DIGITAL\");\n setIconImage(new ImageIcon(getClass().getResource(\"/imagenes/icono.png\")).getImage());\n ((JPanel)getContentPane()).setOpaque(false);\n ImageIcon uno=new ImageIcon(this.getClass().getResource(\"/imagenes/fondo3.jpg\"));\n JLabel fondo= new JLabel();\n fondo.setIcon(uno);\n getLayeredPane().add(fondo,JLayeredPane.FRAME_CONTENT_LAYER);\n fondo.setBounds(0,0,uno.getIconWidth(),uno.getIconHeight());\n }", "public static void prikaziDodajClanaGUI() {\r\n\t\tif (dodajClanaGui == null) {\r\n\t\t\tdodajClanaGui = new DodajClanaGUI();\r\n\t\t\tdodajClanaGui.setLocationRelativeTo(null);\r\n\t\t\tdodajClanaGui.setVisible(true);\r\n\t\t} else {\r\n\t\t\tdodajClanaGui.toFront();\r\n\t\t}\r\n\t}", "private void btnThemChongChiDinhActionPerformed(java.awt.event.ActionEvent evt) {\n ThemChongChiDinh.setVisible(true);\n ThemChongChiDinh.setLocationRelativeTo(null);\n\n hienThiToanBenh();\n hienThiToanBoThuoc();\n }", "public EditorBarajasGUI() {\n\t\t//dibujamos el cursor\n\t\tImageIcon cursor = new ImageIcon(\"../imagenes/cursores/puntero.gif\");\n\t\tImage image = cursor.getImage();\n\t\tCursor puntero = Toolkit.getDefaultToolkit().createCustomCursor(image, new Point(0, 0), \"img\");\n\t\tthis.setCursor(puntero);\n\n\t\ttry {\n\t\t\tjbInit();\n\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected void windowInit ()\n {\n }", "void setNilSearchWindowStart();" ]
[ "0.650983", "0.6088605", "0.5973184", "0.5958207", "0.58560854", "0.58557105", "0.5825043", "0.5791545", "0.575044", "0.5749598", "0.5721906", "0.5721071", "0.57208306", "0.571221", "0.56847996", "0.5680795", "0.56669056", "0.56533813", "0.5637532", "0.5612463", "0.56104887", "0.56026334", "0.55966204", "0.5583661", "0.557954", "0.5579226", "0.5577136", "0.55742496", "0.5558442", "0.5554215", "0.5545788", "0.55425876", "0.55265373", "0.55202186", "0.5516663", "0.55097395", "0.5506466", "0.5504334", "0.5502669", "0.5495666", "0.5493315", "0.5491048", "0.54877394", "0.5486562", "0.54846025", "0.54539174", "0.5447703", "0.5446344", "0.54440486", "0.5441626", "0.5427106", "0.5425938", "0.54122007", "0.5411067", "0.54028904", "0.54017454", "0.5391283", "0.5390365", "0.5376253", "0.5374564", "0.5370518", "0.53674346", "0.5367211", "0.5362145", "0.5358018", "0.53567505", "0.53543013", "0.53530306", "0.5352583", "0.53506744", "0.5347253", "0.53461957", "0.5344161", "0.5342539", "0.53389716", "0.53351027", "0.53333247", "0.53315157", "0.5330044", "0.53293586", "0.5329287", "0.5323774", "0.53227663", "0.53080845", "0.5301881", "0.5301783", "0.5301615", "0.52989405", "0.52987313", "0.5296905", "0.52909285", "0.52906066", "0.5283483", "0.528191", "0.52805936", "0.5276361", "0.5274195", "0.5271429", "0.5270688", "0.52684444", "0.52661866" ]
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { String command=e.getActionCommand(); if(command.equals("cancel")){ this.setVisible(false); }else if(command.equals("add")){ String newFolderName=JOptionPane.showInputDialog(bmarkSimpleTree,"请输入新文件夹名字:",""+System.currentTimeMillis()); // System.out.println("newFolderName="+newFolderName); if(null==newFolderName||"".equals(newFolderName)){ return; } int lastId=new LikeLynneUtils().getMaxId(); if(lastId<0){ return; } LikeLynne parentNode=(LikeLynne) bmarkSimpleTree.getCurrentTreeNode().getUserObject(); LikeLynne newFolder=new LikeLynne(); newFolder.setId((lastId+1)); newFolder.setParent(parentNode.getId()); newFolder.setTitle(newFolderName); newFolder.setType(2); newFolder.setChildren(new ArrayList<>()); newFolder.setDateAdded(System.currentTimeMillis()); int resultCode=LikeLynneApi.getInstance().addLikeLynne(newFolder); if(resultCode==200){ addNewLikeLynne(parentFrame.llynne, newFolder); bmarkSimpleTree.initTree(parentFrame.llynne,false); parentFrame.llynne=parentFrame.llynne; parentFrame.initBmarkWindow(parentFrame.llynne); parentFrame.addBmarkWindow.initComboFolders(); } }else if(command.equals("save")){ String name=nameTxt.getText(); if("".equals(name)){ JOptionPane.showMessageDialog(bmarkSimpleTree,"请输入书签名字"); return; } String url=urlTxt.getText(); if("".equals(url)){ JOptionPane.showMessageDialog(AddBmarkOrFolderUI.this,"请输入书签链接"); return; } if(!Utils.isUrlFormat(url)){ JOptionPane.showMessageDialog(bmarkSimpleTree,"请输入有效书签链接"); return; } // JOptionPane.showMessageDialog(null,"url="+url); int lastId=new LikeLynneUtils().getMaxId(); if(lastId<0){ return; } LikeLynne parentNode=(LikeLynne) bmarkSimpleTree.getCurrentTreeNode().getUserObject(); LikeLynne newLikeLynne=new LikeLynne(); newLikeLynne.setId((lastId+1)); newLikeLynne.setParent(parentNode.getId()); newLikeLynne.setTitle(name); newLikeLynne.setUrl(url); newLikeLynne.setType(1); newLikeLynne.setDateAdded(System.currentTimeMillis()); int resultCode=LikeLynneApi.getInstance().addLikeLynne(newLikeLynne); if(resultCode==200){ addNewLikeLynne(parentFrame.llynne,newLikeLynne); this.setVisible(false); parentFrame.llynne=parentFrame.llynne; parentFrame.initBmarkWindow(parentFrame.llynne); } } }
{ "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
Created by apple on 2018/11/28 Useful:
public interface IPullWxUser { /** * 把公众号推荐给用户 */ void pull(WxPullPublicObservable publicObservable) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "private void strin() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void perish() {\n \n }", "public void mo38117a() {\n }", "private stendhal() {\n\t}", "private void m50366E() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo4359a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public static void listing5_14() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo21877s() {\n }", "@Override\n public int describeContents() { return 0; }", "public void method_4270() {}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo12930a() {\n }", "static void feladat9() {\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo12628c() {\n }", "protected void mo6255a() {\n }", "static void feladat4() {\n\t}", "public void mo9848a() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void m23075a() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "static void feladat6() {\n\t}", "static void feladat7() {\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo97908d() {\n }", "public static void listing5_16() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private final zzgy zzgb() {\n }", "public void mo21825b() {\n }", "public abstract void mo70713b();", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo21782G() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo23813b() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "static void feladat5() {\n\t}", "public abstract void mo56925d();", "private void m50367F() {\n }", "public void mo21878t() {\n }", "public final void mo91715d() {\n }", "void m1864a() {\r\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo44053a() {\n }", "public void mo115190b() {\n }", "public void smell() {\n\t\t\n\t}", "public void mo21794S() {\n }", "public void baocun() {\n\t\t\n\t}", "public void mo21793R() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo56167c() {\n }", "public void mo1531a() {\n }", "private void test() {\n\n\t}", "public void mo21795T() {\n }", "public void mo21791P() {\n }", "public void mo3749d() {\n }", "public void mo21792Q() {\n }", "public void Tyre() {\n\t\t\r\n\t}", "public void skystonePos6() {\n }", "public void mo5382o() {\n }", "public void mo21787L() {\n }", "public void skystonePos4() {\n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public static void listing5_15() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override public int describeContents() { return 0; }", "void mo57277b();", "public void mo21781F() {\n }", "private test5() {\r\n\t\r\n\t}", "public void mo21879u() {\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "private void level7() {\n }", "protected boolean func_70041_e_() { return false; }" ]
[ "0.5814177", "0.57563156", "0.5637791", "0.56216556", "0.5616397", "0.5594625", "0.5592693", "0.5589965", "0.55848366", "0.5478457", "0.54291344", "0.54291344", "0.54291344", "0.54291344", "0.54291344", "0.54291344", "0.54291344", "0.5423483", "0.54217935", "0.5376257", "0.5359844", "0.5358338", "0.5356318", "0.5339901", "0.53381217", "0.53381217", "0.5327313", "0.5316582", "0.5307052", "0.5304624", "0.52931195", "0.52916014", "0.52873814", "0.52816874", "0.52734435", "0.52420694", "0.5228561", "0.5218977", "0.52169317", "0.5195618", "0.51834023", "0.5180562", "0.5175885", "0.51746553", "0.5173598", "0.51572007", "0.515672", "0.5154941", "0.5154328", "0.5150634", "0.51505417", "0.5148127", "0.5143529", "0.5138741", "0.51367533", "0.51356447", "0.5132503", "0.5131857", "0.513037", "0.51293766", "0.5128591", "0.5127121", "0.51224846", "0.5120218", "0.5107511", "0.5106379", "0.50941193", "0.50937015", "0.5089949", "0.5087135", "0.5086784", "0.50852513", "0.50836", "0.50833976", "0.50820136", "0.50795615", "0.50769085", "0.50609136", "0.5059043", "0.50570935", "0.5053086", "0.5045703", "0.5045068", "0.5042874", "0.5032822", "0.5024831", "0.50228876", "0.5022601", "0.5020512", "0.5019818", "0.5004383", "0.5001251", "0.50002456", "0.499507", "0.49943504", "0.49921915", "0.49855366", "0.4983103", "0.4982823", "0.49805942", "0.4974119" ]
0.0
-1
This interfaces represents a message that can be sent by the Comm layer.
public interface ObjMessageIF extends Serializable { public boolean hasMsgId(); public long getMsgId(); void setMsgId(long msgId); boolean isResponse(); void setResponse(boolean isReponse); boolean isError(); void setError(boolean isError); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface SendMessage {\n\n void sendMsg(byte[] msg);\n}", "public interface MessageInterface {\n\t\n\t/** \n\t * Get Message type.<br>\n\t * \n\t * Operations on Server operate based on the Message type. A type can never be overridden.\n\t * @return A String for the Message type.\n\t */\n\tString getType();\n\n\t/** \n\t * Set Message status.<br>\n\t * \n\t * Message status can be used for validation of operations. All Client Messages will receive a reply from the Server. \n\t * The Client can use the Status to determine the success or failure of an operation.<br>\n\t * \n\t * @return A String for the Message type.\n\t */\n\tvoid setStatus(String status);\n\n\t/** \n\t * Get Message status.<br>\n\t * \n\t * Message status can be used for validation of operations. All Client Messages will receive a reply from the Server.<br> \n\t * The Client can use the Status to determine the success or failure of an operation.\n\t * \n\t */\n\tString getStatus();\n\t\n\t/** \n\t * Set Message content.<br>\n\t * \n\t * Each Message contains a payload that is used for operations. Such operations will require that content for the operation to work. \n\t */\n\tvoid setContent(Map<String, Object> content);\n\t\n\t/** \n\t * Get Message content.<br>\n\t * \n\t * Each Message contains a payload that is used for operations. Such operations will require that content for the operation to work. \n\t * \n\t * @return A Map containing content.\n\t */\n\tMap<String, Object> getContent();\n}", "public interface Command extends Message {\n\n}", "public interface ClientMessage extends Message {\n}", "public interface Message extends Serializable {\n\t/**\n\t * Kui server saab kliendi sõnumi vastu\n\t * @param s kliendi sessioon\n\t */\n\tvoid onReceive(ClientSession s);\n\t/**\n\t * Kui klient võtab serveri sõnumi\n\t * \n\t * @param c - Client\n\t */\n\tvoid onReceive(Client c);\n\t/**\n\t * Meetod tagastab adressaadi.\n\t * @return aadress, kellele sõnu saadetakse\n\t */\n\tString getAdress();\n}", "public interface RequestMessage extends Message{\n}", "public sealed interface Message permits BusinessMessage, ContextualMessage, DeviceMessage, ServerMessage {\n}", "public interface MessageComponent {\n}", "public interface Sendable {\n /**\n * Raw message to send\n */\n String getRawMessage();\n}", "public interface Sendable {\n\n}", "@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "public void send(Message msg);", "public interface MessageInputChannel extends\r\n Channel<MessageInput, MessageInputChannelAPI>, OneDimensional, MessageCallback {\r\n\r\n}", "public abstract void sendMessage(String message);", "@Override\n\tpublic void send(String msg) {\n\t}", "public interface Communicator {\n void sendPositionAndJson(int position , String json);\n}", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}", "public interface MessageContract {\n \n /**\n * Decodes the bytebuffer into a Message under the current contract.\n * @param buffer buffer to read stuff from\n * @param messageSupplier supplier of messages and subgroups, if needed\n * @return the message decoded\n */\n Message decode(ByteBuffer buffer, Supplier<Message> messageSupplier);\n\n /**\n * Encodes the message into the ByteBuffer\n *\n * @param buffer buffer to encode stuff into\n * @param message message to encode\n */\n void encode(ByteBuffer buffer, Message message);\n\n /**\n * Returns the message def of this contract, or group def if this is a sub message\n *\n * @return the message def\n */\n MessageDef getMessageDef();\n}", "public interface CommunicationUser {\n\t\n\t/**\n\t * Provide communication API that allows for communication with other object in the simulator.\n\t * Method is a callback for the registration of the object in {@link CommunicationModel}\n\t * @param api the access to the communication infrastructure \n\t */\n\tvoid setCommunicationAPI(CommunicationAPI api);\n\t\n\t/**\n\t * Get position. The position is required to determine the entities you can communicate with \n\t * @return positing on the communication user or <code>null</code> if object is not positioned \n\t */\n\tPoint getPosition();\n\t\n\t/**\n\t * Get the distance in which you want to communicate. \n\t * @return\n\t */\n\tdouble getRadius();\n\t\n\t/**\n\t * Get the connection reliability. This is probability (0,1] that the message is send/received.\n\t * When two entities communicate the probability of message delivery is a product of their reliability. \n\t * @return\n\t */\n\tdouble getReliability();\n\t\n\t/**\n\t * Receive the message. Multiple messages might be delivered during one tick of the simulator. \n\t * The simple implementation of handling multiple messages is provided in {@link Mailbox} \n\t * @param message delivered\n\t */\n\tvoid receive(Message message);\n}", "void send(IMessage message, IChannel channel);", "@Override\n public void sendMessage(Message m) {\n commSender.sendMessage(m);\n }", "public void send(Serializable msg) throws IOException;", "@Override\n\tpublic void sendMsg(String msg) {\n\n\t}", "public abstract void send(String message) throws IOException;", "public interface RobotCommunicationProtocol {\n}", "public interface I_ShowBlueSend {\n /**蓝牙连接提示*/\n void showMessage(String message);\n}", "public interface Message {\n Device getTargetDevice();\n Device getSourceDevice();\n}", "public interface ToNetworkProcessor {\n\n /**\n * Send message.\n *\n * @param message the message\n */\n void sendMessage(String message);\n}", "public interface IHelloMessage {\r\n String sayHello();\r\n}", "public interface ISendingMessage {\n void send(Message message);\n\n String checkMessageStatus(Message message);\n}", "public interface IMessage {\n\n public Long getId();\n\n public void setId(Long id);\n\n public Date getDate();\n\n public void setDate(Date date);\n\n public String getText();\n\n public void setText(String tex);\n}", "public abstract void message();", "com.polytech.spik.protocol.SpikMessages.SendMessage getSendMessage();", "void transmit(String protocol, String message);", "public interface Sender {\r\n public void send();\r\n}", "public interface Message extends Serializable {\n\t/**\n\t * set current message object\n\t * @param messageObject\n\t * @throws UtilsException\n\t */\n\tpublic void setObjet(Object messageObject) throws UtilsException;\n\t\n\t/**\n\t * return current's message object\n\t * @return\n\t */\n\tpublic Object getObject() ;\n\t\n\t/**\n\t * return true if this message match filter\n\t * @param filter\n\t * @return\n\t */\n\tpublic boolean matchFilter(Map<String,String> filter);\n\t\n\t/**\n\t * add a new text property to current message\n\t * @param propertyName\n\t * @param propertyValue\n\t * @throws UtilsException\n\t */\n\tpublic void setStringProperty(String propertyName,String propertyValue) throws UtilsException;\n\n\tvoid rewriteStringProperty(String propertyName,String propertyValue) throws UtilsException;\n\t\n\t/**\n\t * return value of property propertyName\n\t * @param propertyName\n\t * @return\n\t */\n\tpublic String getStringProperty(String propertyName) ;\n}", "void sendMessage(String msg);", "void mo23214a(Message message);", "public interface MessageProcesser {\n\n public void sendMultipleMessage();\n\n public void sendSingleMessage(int tag);\n\n public void parseMessage(String readMessage);\n}", "public interface CellPhone {\n\tpublic void sendMsg(String languageType, char[] message, String fileName) throws InvalidLanguageException;\n\tpublic void readMsg(String languageType, String fileName) throws InvalidLanguageException;\n}", "public abstract interface INetworkMessage extends Serializable\r\n{\r\n public String getMessageId();\r\n}", "public interface DocumentMessage extends Message {\n\n}", "public interface Communicator {\n\n\n public void sendData(String string);\n public void sendNIDcardObject(NIDCard nidCard);\n public void startWelcomeFragment();\n public void stopWelcomeFragment();\n public void startStepOne();\n}", "public interface MsgSenderInterface {\n\n public boolean sendMsgToMQ(String jsonStr);\n\n}", "public interface MessageProcessor{\n\n public void execMessage(MessageWrapper messageWrapper);\n}", "void sendMessage() {\n\n\t}", "abstract void message(String message);", "public abstract void message(String channel, String message);", "public void sendMessage(String message) {}", "public interface SocketMessageListerner {\n void onGetMessageAck(Message message, int type);\n}", "public interface IReceiveMessage {\n void onConnectSuccess();// 连接成功\n\n void onConnectFailed();// 连接失败\n\n void onClose(); // 关闭\n\n void onMessage(String text);\n}", "void send(final IMessage<A, ?> msg);", "public interface SendMessageListener {\n abstract void onSendOK(Message msg);\n\n abstract void onSendFailed(Message msg, String reason);\n}", "private void SendMessage(Object m, MessageType type)\n\t{\n\t\tMessage message = new Message();\n\t\tmessage.messageType = type;\n\t\tmessage.message = m;\n\t\t\n\t\ttry {\n\t\t\tout.writeObject(message);\n\t\t\tout.flush();\n\t\t} catch (IOException e) {\n\t\t\tApplicationManager.textChat.write(\"Cant send message\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface Sender {\n\n public void send();\n}", "public interface Sender {\n\n public void send();\n}", "public void sendmsg(Message msg){\n try {\n oos.writeObject(new Datapacket(1, null, msg,null, null));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public interface Response extends Message\n\t{\n public static final String RESPONSE_TO = \"aether.response.response-to\";\n\t}", "public interface Message\n\t{\n\t\tpublic static final String LINK_ID = \"aether.message.link.id\";\n }", "public interface Sender {\n public void send();\n}", "public void sendMessage(String message);", "void writeCommand(CommProtocolCommands command, Object ... params) throws IOException;", "void send(ByteBuffer data) throws CCommException, IllegalStateException;", "void sendMessage(Message m) throws IOException {\n String msg = m.toString();\n\n buffer = msg.getBytes(\"Windows-1256\");\n toServer = new DatagramPacket(buffer, buffer.length,\n InetAddress.getByName(sendGroup), port);\n if (m.getType() == Message.DATA) {\n manager.mManager.addMessage(m);\n }\n\n System.out.println(getName() + \"-->\" + m);\n serverSocket.send(toServer);\n }", "protected void send(O operation)\n {\n }", "@Override\n\tpublic void directSendMessage(TransactionMessage transactionMessage) {\n\t\t\n\t}", "public interface nndmMessage_Out\n{\n\n /**\n * Status flag to indicate that a message is ready for retreival from message\n * out queue and to be transformed into a disease-specific message\n * format - value is <code> A </code> .\n */\n public static final String READY_FOR_TRANSFORM_STATUS = \"RDY_FOR_TRNSFRM\";\n\n /**\n * Status flag to indicate that a message is in the process of being transformed\n * into a disease-specific message format - value is <code> TRNSFRM_IN_PROG </code> .\n */\n public static final String TRANSFORM_IN_PROGRESS_STATUS = \"TRNSFRM_IN_PROG\";\n\n\n /**\n * Status flag to indicate that a message has been successfully transformed\n * into a disease-specific message format - value is <code> TRNSFRM_COMP </code> .\n */\n public static final String TRANSFORM_COMPLETE_STATUS = \"TRNSFRM_COMP\";\n\n\n /**\n * Status flag to indicate that an error has occurred while transforming a\n * message into a disease-specific message format, (transformation unsuccessful)\n * - value is <code> TRNSFRM_ERR </code> .\n */\n public static final String TRANSFORM_ERROR_STATUS = \"TRNSFRM_ERR\";\n\n\n /**\n * Status flag to indicate that an error has occurred while <i> transporting </i> a\n * a disease-specific message to the transport out queue, (write to queue failed),\n * or, the ebXML application errored while processing the message.\n * - value is <code> TRNSPRT_ERR </code> .\n */\n public static final String TRANSPORT_ERROR_STATUS = \"TRNSPRT_ERR\";\n\n\n /**\n * Status flag to indicate that a disease-specific message is ready to be processed\n * by <i> PHINMS </i> data interchange application\n * - value is <code> RDY_FOR_PHINMS </code> .\n */\n public static final String READY_FOR_PHINMS_STATUS = \"RDY_FOR_PHINMS\";\n\n\n /**\n * Status flag to indicate that a message has been successfully transformed\n * into a disease-specific message format - value is <code> PHINMS_COMP </code> .\n */\n public static final String PHINMS_COMPLETE_STATUS = \"PHINMS_COMP\";\n\n /**\n * Status flag to indicate that a message has been failed while processing in\n * PHINMS stage - value is <code> PHINMS_ERR </code>\n */\n public static final String PHINMS_ERROR_STATUS = \"PHINMS_ERR\";\n\n\n /**\n * Represents the Disease Message, <i> before </i> disease_specific transformation.\n */\n public static final String MESSAGE_OUT_ATTACHEMNT = \"attachment_txt\";\n\n\n /** This method returns a collection of message id keys with the given status.\n * @param status String that indicates the status of the message record; use one\n * of the acceptable values of nndmMessage_Out.ACTIVE_STATUS, or\n * nndmMessage_Out.TRANSFORM_IN_PROGRESS_STATUS, etc.\n * @return list containing the collection of keys\n * @see #ACTIVE_STATUS\n * @see #TRANSFORM_IN_PROGRESS_STATUS\n * @see #TRANSFORM_COMPLETE_STATUS\n * @see #TRANSFORM_ERROR_STATUS\n * @see #READY_FOR_PHINMS_STATUS\n * @see #TRANSPORT_ERROR_STATUS\n * @see #PHINMS_COMPLETE_STATUS\n */\n public List<MessageKey> listMessages(String status);\n\n\n /** This method retrieves the message record from the message_out database.\n * The SELECT sql is formatted to support specific database implementations\n * (currently MSSQL 2000 and Oracle 8i).\n * Only records with a status_cd of <code> nndmMessage_Out.ACTIVE_STATUS </code> can be retrieved.\n * @param key String that contains the record identifier for the message that failed.\n * @param status String that indicates the status of the message record; use one\n * of the acceptable values of nndmMessage_Out.ACTIVE_STATUS, or\n * nndmMessage_Out.TRANSFORM_IN_PROGRESS_STATUS, etc.\n * @return Map containing the mapping of column name to its value fetched from the database.\n * @see #ACTIVE_STATUS\n */\n\tpublic Map<String,String> getMessage(Long messageUid, String status);\n\n\n /** This method updates the message record indicated by the key argument as\n * indicated by the second argument.\n * @param key String that contains the record identifier to set status for\n * @param status String that indicates the status of the message record; use one\n * of the acceptable values of nndmMessage_Out.ACTIVE_STATUS, or\n * nndmMessage_Out.TRANSFORM_IN_PROGRESS_STATUS, etc.\n * @see #ACTIVE_STATUS\n * @see #TRANSFORM_IN_PROGRESS_STATUS\n * @see #TRANSFORM_COMPLETE_STATUS\n * @see #TRANSFORM_ERROR_STATUS\n * @see #READY_FOR_PHINMS_STATUS\n * @see #TRANSPORT_ERROR_STATUS\n * @see #PHINMS_COMPLETE_STATUS\n */\n public void setStatus(Long messageUid, String status);\n\n\n /** This method adds an error log record to the Message_Out database and\n * sets the status appropriately.\n * @param key String that contains the record identifier for the message that failed.\n * @param errorMessage String the contains the short description of the error.\n * @param status String that indicates the status of the message record; use one\n * of the acceptable values of nndmMessage_Out.TRANSFORM_ERROR_STATUS, or\n * nndmMessage_Out.TRANSPORT_ERROR_STATUS.\n */\n public void setError(Long messageUid, String notificationLocalId, String errorMessage, String status);\n\n}", "public interface Message extends Serializable {\r\n\t\r\n\t/**\r\n\t * An unique serial number.\r\n\t */\r\n\tstatic final long serialVersionUID = -2075547926990832957L;\r\n\r\n}", "public interface ActivityClientInterfaceTCP {\r\n void clientCallBackTCP(String commandID, String text);\r\n}", "public interface SendService {\n\n public void sendMessage(RemotingCommand remotingCommand, long timeout);\n}", "public interface IMessage {\n\t\n\t/**\n\t * Returns the text of the message.\n\t * \n\t * @return The text of the message.\n\t */\n\tpublic String getMessageText();\n\t\n\t/**\n\t * Returns the HTML-formatted text of the message.\n\t * \n\t * @return The HTML-formatted text of the message.\n\t */\t\n\tpublic String getMessageTextAsHTML();\n}", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "void send(String message);", "public interface IPacketProcessor {\n\n\t/**\n\t * Processes the incoming chat message.\n\t * \n\t * @param msg The message.\n\t * @param addr The sender of the the message.\n\t * @param port The port of the sender.\n\t */\n\tvoid processMessage(JSONObject msg, InetAddress addr, int port);\n\t\n\t/**\n\t * Notifies the observers of an error during the connection process\n\t * \n\t * @param notification A detailed notification.\n\t */\n\tvoid onError(ModelNotification notification);\n\t\n\t/**\n\t * Notifies the observers of the establishment of the connection\n\t */\n\tvoid onSuccessfulStarted();\n\t\n}", "private void sendMessage(ChatMessage msg) throws IOException {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n sOutput.close();\n sInput.close();\n e.printStackTrace();\n }\n //sOutput.flush();\n }", "public interface Ot {\n\n /**\n * Send two possible messages for the recipient to choose from.\n *\n * @param messageZero\n * Message zero to send\n * @param messageOne\n * Message one to send\n */\n void send(StrictBitVector messageZero, StrictBitVector messageOne);\n\n /**\n * Receive one-out-of-two messages.\n *\n * @param choiceBit\n * Bit indicating which message to receive. False means message zero\n * and true means message one.\n * @return The message indicated by the choice bit\n */\n StrictBitVector receive(boolean choiceBit);\n}", "public interface MessageTransceiver {\n\n public void shutdown();\n\n public void send(Serializable message) throws MessageException;\n\n public void addMessageListener(MessageListener l);\n\n public void removeMessageListener(MessageListener l);\n\n}", "@Override\n\tpublic void messageSent(IoSession arg0, Object arg1) throws Exception {\n\n\t}", "@Override\n\tpublic void messageSent(IoSession arg0, Object arg1) throws Exception {\n\n\t}", "public interface DeliverSMRequest extends SmscRequest {\n\n}", "public interface VSmartCardProtocol {\n void disconnect();\n int readCommand() throws IOException;\n byte[] readData() throws IOException;\n void writeData(byte[] data) throws IOException;\n}", "public interface MessageHandler {\n\n public void setMessage(TextMessage message,String msg);\n}", "com.polytech.spik.protocol.SpikMessages.SendMessageOrBuilder getSendMessageOrBuilder();", "public void send() {\n\t}", "void send() throws ImsException;", "public interface EmitterOperations {\r\n void sendMessage(String to, String message) throws dialogue.notExistingPseudo;\r\n}", "public interface IMessageInputStrategy{\n public abstract Message getMessage();\n}", "@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}", "public interface StructuredPushConsumer extends StructuredPushConsumerOperations, CosNotifyComm.NotifyPublish, org.omg.CORBA.portable.IDLEntity \n{\n}", "@objid (\"5451d474-f72f-46a9-b8b5-35997413d584\")\npublic interface CommunicationChannel extends UmlModelElement {\n /**\n * The metaclass simple name.\n */\n @objid (\"6e808325-1178-4f5a-9ca8-269f71745b8d\")\n public static final String MNAME = \"CommunicationChannel\";\n\n /**\n * The metaclass qualified name.\n */\n @objid (\"20f1621a-db2d-4fb3-8e34-8502c8d522e0\")\n public static final String MQNAME = \"Standard.CommunicationChannel\";\n\n /**\n * Getter for relation 'CommunicationChannel->StartToEndMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"d089f797-963a-472b-9102-e08e9087b6cd\")\n EList<CommunicationMessage> getStartToEndMessage();\n\n /**\n * Filtered Getter for relation 'CommunicationChannel->StartToEndMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"066dba33-47f2-4d51-911f-d869593b015d\")\n <T extends CommunicationMessage> List<T> getStartToEndMessage(java.lang.Class<T> filterClass);\n\n /**\n * Getter for relation 'CommunicationChannel->Channel'\n * \n * Metamodel description:\n * <i>References the Link the communication channel represents.</i>\n */\n @objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();\n\n /**\n * Setter for relation 'CommunicationChannel->Channel'\n * \n * Metamodel description:\n * <i>References the Link the communication channel represents.</i>\n */\n @objid (\"590a2bf3-2953-41dc-8b02-1f07ac23249c\")\n void setChannel(Link value);\n\n /**\n * Getter for relation 'CommunicationChannel->Start'\n * \n * Metamodel description:\n * <i>Node starting the channel.</i>\n */\n @objid (\"afa7354b-88c4-40d5-b8dd-215055f8955c\")\n CommunicationNode getStart();\n\n /**\n * Setter for relation 'CommunicationChannel->Start'\n * \n * Metamodel description:\n * <i>Node starting the channel.</i>\n */\n @objid (\"c3f1412d-ca73-479b-8bf7-561601b3f34c\")\n void setStart(CommunicationNode value);\n\n /**\n * Getter for relation 'CommunicationChannel->NaryChannel'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"42f8450d-1aca-4f83-a91e-9f7e7fc3c5c7\")\n NaryLink getNaryChannel();\n\n /**\n * Setter for relation 'CommunicationChannel->NaryChannel'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"92b2c0f0-fd35-4625-a34a-228b33b2cc4d\")\n void setNaryChannel(NaryLink value);\n\n /**\n * Getter for relation 'CommunicationChannel->EndToStartMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"20dbaa0c-b05b-4a47-a12e-306a021a47aa\")\n EList<CommunicationMessage> getEndToStartMessage();\n\n /**\n * Filtered Getter for relation 'CommunicationChannel->EndToStartMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"1842961e-730c-46db-8ef2-47e5d4f8ba30\")\n <T extends CommunicationMessage> List<T> getEndToStartMessage(java.lang.Class<T> filterClass);\n\n /**\n * Getter for relation 'CommunicationChannel->End'\n * \n * Metamodel description:\n * <i>Node at the end of the channel.</i>\n */\n @objid (\"a401b5aa-a324-4104-b9f3-8aa6e8adc133\")\n CommunicationNode getEnd();\n\n /**\n * Setter for relation 'CommunicationChannel->End'\n * \n * Metamodel description:\n * <i>Node at the end of the channel.</i>\n */\n @objid (\"cfed1cf5-bd4d-45f7-9acf-65e9e11fac88\")\n void setEnd(CommunicationNode value);\n\n}", "public abstract void sendToChain(String mesg);", "public interface MessageProducer {\n String getMessage();\n}", "public abstract void contactMessage(Message m);", "public void simpleCommunication(String communication);", "@Override\n\tpublic void SendMessage(String message) {\n\t\t\n\t\ttry\n\t\t{\n\t\tprintWriters.get(clients.get(0)).println(message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}", "protected void sendMessage() throws IOException {\r\n\t\tif (smscListener != null) {\r\n\t\t\tint procCount = processors.count();\r\n\t\t\tif (procCount > 0) {\r\n\t\t\t\tString client;\r\n\t\t\t\tSimulatorPDUProcessor proc;\r\n\t\t\t\tlistClients();\r\n\t\t\t\tif (procCount > 1) {\r\n\t\t\t\t\tSystem.out.print(\"Type name of the destination> \");\r\n\t\t\t\t\tclient = keyboard.readLine();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(0);\r\n\t\t\t\t\tclient = proc.getSystemId();\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = 0; i < procCount; i++) {\r\n\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(i);\r\n\t\t\t\t\tif (proc.getSystemId().equals(client)) {\r\n\t\t\t\t\t\tif (proc.isActive()) {\r\n\t\t\t\t\t\t\tSystem.out.print(\"Type the message> \");\r\n\t\t\t\t\t\t\tString message = keyboard.readLine();\r\n\t\t\t\t\t\t\tDeliverSM request = new DeliverSM();\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\trequest.setShortMessage(message);\r\n\t\t\t\t\t\t\t\tproc.serverRequest(request);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Message sent.\");\r\n\t\t\t\t\t\t\t} catch (WrongLengthOfStringException e) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Message sending failed\");\r\n\t\t\t\t\t\t\t\tevent.write(e, \"\");\r\n\t\t\t\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\t\t\t} catch (PDUException pe) {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.out.println(\"This session is inactive.\");\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} else {\r\n\t\t\t\tSystem.out.println(\"No client connected.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "void send(TransportPacket pkt) throws CCommException, IllegalStateException;", "public interface IMessageNotSupportedByDeviceResponseModel extends Serializable {\n String getMessageType();\n\n void setMessageType(String messageType);\n}", "private void sendMessage(String content, String room) {\n }" ]
[ "0.7080895", "0.7003382", "0.6997325", "0.69172513", "0.6764016", "0.6762734", "0.6718099", "0.65808153", "0.65797", "0.65754217", "0.65602046", "0.655718", "0.6545833", "0.6509002", "0.6497884", "0.6459141", "0.6439991", "0.63916343", "0.6375266", "0.636611", "0.6350713", "0.6333015", "0.63229966", "0.6320197", "0.63108623", "0.6302925", "0.6299376", "0.6285083", "0.6256727", "0.6245297", "0.62411076", "0.6240093", "0.62371457", "0.62368554", "0.6227578", "0.62189454", "0.6213657", "0.6202478", "0.61946523", "0.6191673", "0.6175795", "0.61748165", "0.61695594", "0.6167855", "0.6163532", "0.6160414", "0.61558235", "0.6147699", "0.6145233", "0.6139866", "0.61265415", "0.6124802", "0.61031365", "0.60863155", "0.60785186", "0.6077678", "0.6077678", "0.6071305", "0.60624325", "0.60584164", "0.60539514", "0.60303736", "0.60183233", "0.6016596", "0.6011187", "0.60070276", "0.6004544", "0.60017145", "0.59979475", "0.599487", "0.59931123", "0.599262", "0.5992193", "0.5988338", "0.59802973", "0.59749204", "0.59744865", "0.59736466", "0.5971711", "0.5971711", "0.59555966", "0.5946409", "0.5946242", "0.59458464", "0.5944261", "0.5938806", "0.5938731", "0.5932884", "0.593073", "0.5926319", "0.59208375", "0.59156", "0.59082186", "0.5907515", "0.59054255", "0.5894841", "0.58946997", "0.5886866", "0.58861864", "0.5883602" ]
0.62779593
28
Get menu detail base on id
UmsMenu getItem(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Menu findMenuById(Long id) {\n\t\treturn menuDao.findOne(id);\n\t}", "MenuInfo selectByPrimaryKey(Integer menuid);", "public void getDetail(int id) {\n\t\t\n\t}", "UmsMenu selectByPrimaryKey(String menuId);", "public MenuItem findItem(int id);", "UsrMmenus selectByPrimaryKey(String menuid);", "@Override\n\tpublic Tmenu findByKey(String id) throws Exception {\n\t\treturn menuMapper.findForObject(id);\n\t}", "@Transactional\r\n\tpublic Menu getMenu(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\r\n\t\t// Now retrive read from database using primary key\r\n\t\tMenu theMenu = currentSession.get(Menu.class, theId);\r\n\t\treturn theMenu;\r\n\t}", "public TbAdminMenu selectByPrimaryKey(Integer id) {\n TbAdminMenu key = new TbAdminMenu();\n key.setId(id);\n TbAdminMenu record = (TbAdminMenu) getSqlMapClientTemplate().queryForObject(\"tb_admin_menu.ibatorgenerated_selectByPrimaryKey\", key);\n return record;\n }", "PensionRoleMenu selectByPrimaryKey(Long id);", "public Menu consultMenuXId(int id) throws Exception {\r\n\t\treturn em.find(Menu.class, id);\r\n\t}", "public Map<Long, Menu> fetchMenu() {\n\t\tlogger.info(\"fetching menu details from h2 database\");\n\t\tList<Menu> menuList = menuDaoImpl.getMenuDetails();\n\t\tMap<Long, Menu> map = menuList.stream().collect(Collectors.toMap(Menu::getId, menu -> menu));\n\t\treturn map;\n\t}", "@Override\n\tpublic List<Menu> getMenuPerById(Menu menu,Integer roleId) {\n\t\treturn this.menuDao.getMenuPerById(menu,roleId);\n\t}", "@RequestMapping(value = \"view/{menuId}\", method = RequestMethod.GET)\n public String viewMenu(Model model, @PathVariable int menuId) {\n\n\n\n Menu menu = menuDao.findOne(menuId);\n model.addAttribute(\"title\", menu.getName());\n model.addAttribute(\"cheeses\", menu.getCheeses());\n model.addAttribute(\"menuId\", menu.getId());\n\n\n\n return \"menu/view\";\n }", "public Integer getMenuId() {\n return menuId;\n }", "public Integer getMenuId() {\n return menuId;\n }", "@Override\n\tpublic List<Menu> findMenuByRoleId(Long id) {\n\t\treturn menuDao.findMenuByRoleId(id);\n\t}", "public Integer getMenuid() {\n return menuid;\n }", "public MasterMenu getId(int id) {\n\t\treturn menuDao.getId(id);\r\n\t}", "@Override\n\tpublic List<Menu> getOneMenuInfo(Menu menu) {\n\t\treturn this.menuDao.getOneMenuInfo(menu);\n\t}", "public List<MenuBean> queryMenuById(String id) {\n\t\treturn menuDao.queryMenuById(id);\r\n\t}", "public int getMenuId() {\n return 0;\n }", "@Override\n\tpublic List<MenuRoleDto> getMenu(String roleId) {\n\t\tList<MenuRoleDto> menu = mapper.getMenu(roleId);\n\t\treturn menu;\n\t}", "@GET\r\n\t\t@Path(\"/info/{id}\")\r\n\t\t@Produces(MediaType.APPLICATION_JSON)\r\n\t\tpublic LevelBean getbyId( @PathParam(\"id\") String id)\r\n\t\t{\r\n\t\t\tlong lID = Long.parseLong(id);\r\n\t\tLevel entity = dao.getById(lID);\r\n\t\tLevelBean bean = LevelBean.get(entity);\r\n\t\treturn bean;\r\n\t\t\r\n\t\t}", "@Override\n public Menu findByLocale(int idLocale) {\n Menu ret;\n String selectQuery = \"SELECT V FROM Menu V WHERE V.idLocale = ?1 \";\n Query searchById = em.createQuery(selectQuery);\n searchById.setParameter(1, idLocale);\n try{\n ret = (Menu) searchById.getSingleResult();\n }\n catch (Exception e){\n System.out.println(\"[Menu Facade] errore, nessun menu trovato per il locale\");\n ret = null;\n }\n return ret;\n }", "@Override\n\tpublic MenuItem getMenuItem(long menuItemId) \n\t{\n\t\tList<MenuItem> list=this.menuItemList;\n\t\tfor(MenuItem m:list)\n\t\t{\n\t\t\tif(m.getId()==menuItemId)\n\t\t\t{\n\t\t\t\treturn m;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "@GET(\"api/Kategori/tampil\")\n Call<GetMenu> listMenu(@Query(\"id_user\") String id_user);", "@Override\r\n\tpublic Menu getMenu(int mid) \r\n\t{\n\t\ttry {\r\n\t\t\tMenu dummy=new Menu();\r\n\t\t\tdummy.setMid(mid);\r\n\t\r\n\t\t\tif(allMenuList.contains(dummy))\r\n\t\t\t{\r\n\t\t\t\tint index=allMenuList.indexOf(dummy);\r\n\t\t\t\treturn allMenuList.get(index);\r\n\t\t\t}\r\n\t\t\t//if not found from the list then get from db and add it to the list\r\n\t\tConnection connection=DBConnection.getConnection();\r\n\t\tString sqlQuery=\"select * from \"+TABLEmenu+\" where \"+COLmid+\" = \"+\"?\";\r\n\t\t\r\n\t\t\tPreparedStatement pst=connection.prepareStatement(sqlQuery);\r\n\t\t\tpst.setInt(1, mid);\r\n\t\t\tSystem.out.println(pst);\r\n\t\t\tpst.executeQuery();\r\n\t\t\tResultSet rs=pst.getResultSet();\r\n\t\t\t//if not even a single line is returned there is no student with this id\r\n\t\t\tif(rs.next()==false) return null;\r\n\t\t\t\r\n\t\t\tint vid=rs.getInt(COLvid);\r\n\t\t\tString mname=rs.getString(COLmname);\r\n\t\t\tint mprice=rs.getInt(COLmprice);\r\n\t\t\tString vname=rs.getString(COLvname);\r\n\t\t\r\n\t\t\tMenu menu=new Menu(mid,vid,mname,mprice,vname);\r\n\t\t\t\r\n\t\t\tallMenuList.add(menu);\r\n\t\t\treturn menu;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String detail() {\n\t\tSystem.out.println(\"detailView.\");\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\trequest.put(\"bean\", bean);\r\n\t\t\t\treturn \"detail\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"detail\";\r\n\t}", "List<MenuInfo> selectByExample(MenuInfoExample example);", "List<UmsMenu> list(Long parentId, Integer pageSize, Integer pageNum);", "public List<MenuBean> queryMenuBytreepath(String id) {\n\t\treturn menuDao.queryMenuBytreepath(id);\r\n\t}", "@Override\n\tpublic String getMenuId() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Botany show(int id) {\n\t\treturn dao.show(id);\r\n\t}", "@Transactional(readOnly = true) \r\n public OsiMenuEntriesDTO findOne(Long id) {\r\n log.debug(\"Request to get OsiMenuEntries : {}\", id);\r\n /* OsiMenuEntries osiMenuEntries = osiMenuEntriesRepository.findOne(id);\r\n OsiMenuEntriesDTO osiMenuEntriesDTO = osiMenuEntriesMapper.osiMenuEntriesToOsiMenuEntriesDTO(osiMenuEntries);\r\n return osiMenuEntriesDTO;*/\r\n return null;\r\n }", "@RequestMapping(value = \"/agent/enrollment/viewHelpItem\", method = RequestMethod.GET)\n public ModelAndView getHelpItem(@RequestParam(\"helpItemId\") long id) throws PortalServiceException {\n String signature = \"EnrollmentController#getHelpItem(long id)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\" }, new Object[] { id });\n\n try {\n HelpItem helpItem = helpService.get(id);\n ModelAndView model = new ModelAndView(\"admin/help_detail\");\n model.addObject(\"helpItem\", helpItem);\n\n return LogUtil.traceExit(getLog(), signature, model);\n } catch (PortalServiceException e) {\n LogUtil.traceError(getLog(), signature, e);\n throw e;\n }\n }", "@Override\n\tpublic OrderDetail getById(String id) {\n\t\tOrderDetail detail = orderDetailDao.getById(id);\n\t\treturn detail;\n\t}", "public void setMenuid(Integer menuid) {\n this.menuid = menuid;\n }", "public SysRoleMenu selectByPrimaryKey(Integer rolemenuId) throws SQLException {\r\n SysRoleMenu key = new SysRoleMenu();\r\n key.setRolemenuId(rolemenuId);\r\n SysRoleMenu record = (SysRoleMenu) sqlMapClient\r\n .queryForObject(\"SYS_ROLE_MENU.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public void onItemClick(AdapterView<?> l, View v, int position, long id) {\n\t\t\t Bundle b = new Bundle();\n\t\t\t Intent intent = new Intent();\n\t\t\t intent.setClass(menu_layout.getContext(), ListItemDetail.class);\n\t\t\t b.putInt(\"position\", position);\n\t\t\t // Or / And\n\t\t\t b.putLong(\"id\", id);\n\t\t\t b.putStringArray(\"directories\", dirs);\n\t\t\t b.putStringArray(\"totals\", t);\n\t\t\t intent.putExtras(b);\n\t\t\t startActivity(intent);\n\t\t\t }", "@Override\n public DetalleVenta get(int id) {\n return detalleVentaJpaRepository.getOne(id);\n }", "AdminTab selectByPrimaryKey(String id);", "@Override\r\n\tpublic List<Tree> queryListMenu(String uiId) {\n\t\treturn permissionDao.queryListMenu(uiId);\r\n\t}", "public News getByid(News news);", "@GetMapping(\"/{id}\")\n\tpublic String getById(@PathVariable int id) {\n\t\tSystem.out.println(\"recuperer la commande avec l'id= \" +id);\n\t\tOptional<Commande> optional = commandeRepository.findById(id);\n\t\tif (optional.isPresent()) {\n\t\t\tSystem.out.println(\"Commande= \" +optional.get());\n\t\t} else {\n\t\t\tSystem.out.println(\"La commande avec l'id \" +id+ \" n'existe pas.\");\n\t\t}\n\t\treturn \"details_commande\";\n\t}", "@GetMapping(\"/getItem/{id}\")\n\tpublic ModelAndView getItemById(@PathVariable(value=\"id\") long id) {\n\t\tModelAndView mv = new ModelAndView();\n\t\tItem item = itemService.findItemById(id);\n\t\tmv.setViewName(\"editItem\");// Set the view name\n\t\tmv.addObject(\"item\", item);// Add an item to the model and view object\n\t\t\n\t\treturn mv;\n\t}", "public String getDetail_id() {\n return detail_id;\n }", "SchoolMasterVo getSchoolMasterDetail(int id);", "@Override\n\tpublic ThematicItem getItem(Long id) {\n\t\treturn repository.getItem(id);\n\t}", "public void testFindByMenuId() {\n\t\tSearchDocument sdocument = dao.findByMenuId(999);\r\n\t\tassertNull(sdocument);\r\n\r\n\t\t// Try with an existing settings\r\n\t\tsdocument = dao.findByMenuId(Menu.MENUID_PERSONAL);\r\n\t\tassertNotNull(sdocument);\r\n\t\tassertEquals(Menu.MENUID_PERSONAL, sdocument.getMenuId());\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Bundle extras = getIntent().getExtras();\n if(extras !=null)\n {\n int Value = extras.getInt(\"id\");\n if(Value>0){\n getMenuInflater().inflate(R. menu.display_contact, menu);\n }\n else{\n getMenuInflater().inflate(R.menu.menu_main, menu);\n }\n }\n return true;\n }", "public void setMenuId(Integer menuId) {\n this.menuId = menuId;\n }", "public void setMenuId(Integer menuId) {\n this.menuId = menuId;\n }", "public OrderDetail getOrderDetail(final String id);", "@Override\r\npublic Detalle_pedido read(int id) {\n\treturn detalle_pedidoDao.read(id);\r\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic Menu consultMenuFather(int idMenu) throws Exception {\r\n\t\tList<Menu> results = em\r\n\t\t\t\t.createQuery(\r\n\t\t\t\t\t\t\"SELECT m.menuPadre FROM Menu m \"\r\n\t\t\t\t\t\t\t\t+ \"WHERE m.id=:idMenu AND m.fechaFinVigencia IS NULL \")\r\n\t\t\t\t.setParameter(\"idMenu\", idMenu).getResultList();\r\n\t\tif (results.size() > 0) {\r\n\t\t\treturn results.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@RequestMapping(\"/{id}\")\n \tpublic String getOne(@PathVariable Long id, ModelMap model) {\n \t\tmodel.addAttribute(\"agent\", agentManagerService.getOne(id));\n \t\treturn \"agent/detail\";\n \t}", "public List<Categoria> getMenuPrincipal(){\n this.menuPrincipal = categoriaService.findAllMenu();\n System.out.println(\" ssss *********\"+menuPrincipal.toString());\n return menuPrincipal;\n }", "String getChildId();", "@Override\n\tpublic List<MenuDto> menuInfo() {\n\t\tList<MenuDto> menuByParent = mapper.menuByParent(0);\n\t\treturn menuByParent;\n\t}", "Menu getMenuEdit();", "@Override \r\n public Menu findMenu(String prmIdMenu) throws Exception {\r\n String jsonResponse = null;\r\n String requestJson = findMenuRequestJson(prmIdMenu);\r\n try {\r\n mySocket.connect();\r\n jsonResponse = mySocket.sendStream(requestJson);\r\n mySocket.closeStream();\r\n mySocket.disconnect();\r\n\r\n } catch (IOException ex) {\r\n Logger.getLogger(MenuAccessImplSockets.class.getName()).log(Level.SEVERE, \"No hubo conexión con el servidor\", ex);\r\n }\r\n if (jsonResponse == null) {\r\n throw new Exception(\"No se pudo conectar con el servidor. Revise la red o que el servidor esté escuchando. \");\r\n } else {\r\n if (jsonResponse.contains(\"error\")) {\r\n //Devolvió algún error\r\n Logger.getLogger(MenuAccessImplSockets.class.getName()).log(Level.INFO, jsonResponse);\r\n throw new Exception(extractMessages(jsonResponse));\r\n } else {\r\n //Encontró el menu\r\n Menu menu = jsonToMenu(jsonResponse);\r\n return menu;\r\n }\r\n }\r\n }", "public DetailItem getItem(int id) {\n return mTags.get(id);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Bundle extras = getIntent().getExtras();\n\n if(extras !=null) {\n int Value = extras.getInt(\"id\");\n if(Value>0){\n getMenuInflater().inflate(R.menu.display_contact, menu);\n } else{\n getMenuInflater().inflate(R.menu.main_menu, menu);\n }\n }\n return true;\n }", "CatalogItem getItembyId(final Long id);", "String get(String id);", "@GetMapping(path = \"/view/{id}\")\n public String showById(@PathVariable(\"id\") Long id, Model model) {\n log.info(\"READ itinerary by ID : {}\", id);\n \n Itinerary itinerary = itineraryService.findById(id);\n \n if (Objects.isNull(itinerary)) {\n log.info(\"Any sector found with ID : {}\", id);\n return \"redirect:/itineraries/view\";\n }\n \n TreeSet<Comment> comments = new TreeSet<>(itinerary.getComments());\n \n model.addAttribute(\"itinerary\", itinerary);\n model.addAttribute(\"comment\", new Comment());\n model.addAttribute(\"comments\", comments);\n \n return VIEW;\n }", "public Tree<Esysmeudef> getSysMenuTree(Long id);", "public Object getMenuV2(String menuItemkey) {\n\t\tlogger.info(\":::inside getMenuV2:::\");\r\n\t\tArrayList<HubMenuModelV2> subMenuList=null;\r\n\t\tSqlRowSet rst=null,rst1=null;\r\n\t\tHubMenuModelV2 menuModel=new HubMenuModelV2();\r\n\t\ttry{\r\n\t\t\trst=jdbcTemplateObject.queryForRowSet(\"select * from tbl_hub_menu_list where menu_key='\"+menuItemkey+\"'\");\r\n\t\t\tif(rst.next()){\r\n\t\t\t\tmenuModel.setKey(rst.getString(\"menu_key\"));\r\n\t\t\t\tmenuModel.setValue(rst.getString(\"value\"));\r\n\t\t\t\tmenuModel.setIcon(rst.getString(\"icon\"));\r\n\t\t\t\tmenuModel.setSelected_icon(rst.getString(\"selected_icon\"));\r\n\t\t\t\tmenuModel.setDeeplink_url(rst.getString(\"deeplink_url\"));\r\n\t\t\t\tmenuModel.setSort_order_id(rst.getString(\"sort_order_id\"));\r\n\t\t\t\trst1=jdbcTemplateObject.queryForRowSet(\"select * from tbl_hub_sub_menu_list where menu_id=\"+rst.getInt(\"menu_id\"));\r\n\t\t\t\tif(rst1!=null){\r\n\t\t\t\t\tsubMenuList=new ArrayList<HubMenuModelV2>();\r\n\t\t\t\t}\r\n\t\t\t\twhile(rst1.next()){\r\n\t\t\t\t\tHubMenuModelV2 menuModel1=new HubMenuModelV2();\r\n\t\t\t\t\tmenuModel1.setKey(rst1.getString(\"menu_key\"));\r\n\t\t\t\t\tmenuModel1.setValue(rst1.getString(\"value\"));\r\n\t\t\t\t\tmenuModel1.setIcon(rst1.getString(\"icon\"));\r\n\t\t\t\t\tmenuModel1.setSelected_icon(rst1.getString(\"selected_icon\"));\r\n\t\t\t\t\tmenuModel1.setDeeplink_url(rst1.getString(\"deeplink_url\"));\r\n\t\t\t\t\tmenuModel1.setSort_order_id(rst1.getString(\"sort_order_id\"));\r\n\t\t\t\t\tsubMenuList.add(menuModel1);\r\n\t\t\t\t}\r\n\t\t\t\tif(subMenuList!=null){\r\n\t\t\t\t\tmenuModel.setSubMenuList(subMenuList);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.info(\":::Exception in getting menu:::\"+e.getLocalizedMessage());\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t\treturn menuModel;\r\n\t}", "AppStandard selectById(String id);", "public String getItem(int id) {\n return mprimo.get(id);\n }", "public Orderdetail findById(String id) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Map<String, Object> read(int id) {\n\t\treturn rolDao.read(id);\n\t}", "public Menu getMenu() { return this.menu; }", "public Local_Prova getByIdLocal_Prova(Integer id);", "abstract int getItemID(int level);", "public String chooseMenu() {\n String input = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"menu_id\");\n setName(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"name\"));\n setType(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"type\"));\n setMenu_id(Integer.parseInt(input));\n return \"EditMenu\";\n\n }", "@Override\r\n\tpublic Log get(int id) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tLog log = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetById);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tlog = generate(rs);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn log;\r\n\t}", "@RequestMapping(value=\"ProductDetail/{id}\",method=RequestMethod.GET)\r\n\tpublic String searchId(@PathVariable(\"id\")String id,ModelMap model){\r\n\t\tProductTO productTO=new ProductTO();\r\n\t\tproductTO=searchService.getProductById(id);\r\n\t\tmodel.addAttribute(\"productTO\", productTO);\r\n\t\treturn \"ProductDetail\";\r\n\t}", "private BaseItem getItemById(int id) {\n\t\tfor (BaseItem item : mItems) {\n\t\t\tif (item.mId == id) {\n\t\t\t\treturn item;\n\t\t\t}\n\t\t}\n\t\treturn getDefault();\n\t}", "@Override\r\n\tpublic Disease findByDiseaseId(int id) {\r\n\t\t// setting logger info\r\n\t\tlogger.info(\"Get the disease details By Id\");\r\n\t\tOptional<Disease> disease = diseaseRepo.findById(id);\r\n\t\tif(!disease.isPresent()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tlogger.info(disease.get());\r\n\t\treturn disease.get();\r\n\t}", "@Override\n\tpublic List<Tmenu> selectByRole(String roleId) {\n\t\treturn menuMapper.selectByRole(roleId);\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Menu> consultMenusMethod(int idMetodo) throws Exception {\r\n\t\tStringBuilder query = new StringBuilder();\r\n\t\tquery.append(\"SELECT mm.menu FROM MetodoMenu mm \");\r\n\t\tquery.append(\"WHERE mm.metodo.id=:idMetodo \");\r\n\t\tQuery q = em.createQuery(query.toString());\r\n\t\tq.setParameter(\"idMetodo\", idMetodo);\r\n\t\treturn q.getResultList();\r\n\t}", "public Profilo get( Integer id ) {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Recupero il Profilo\r\n\t\tProfilo profilo = (Profilo) session.get(Profilo.class, id);\r\n\t\t\r\n\t\t//Restituisco il Profilo trovato\r\n\t\treturn profilo;\r\n\t}", "@Override\r\n\tpublic ezs_accessory selectByPrimaryKey(Long id) {\n\t\treturn this.accessoryMapper.selectByPrimaryKey(id);\r\n\t}", "public void navigateToStaffDetailPageById(int id) {\n String rowIndex = String.valueOf(getRowIndexById(id));\n String xpathIdLink = xpathTableCell.replace(\"*row*\", rowIndex).replace(\"*col*\", \"1\");\n xpathIdLink = xpathIdLink + \"//a\";\n assertAndClick(xpathIdLink);\n logger.info(\"# Clicked on id link: \" + id);\n }", "List<ViewDefinition> listForMenu();", "public Artista select (int id) {\n EntityManager e = IndConnector.getConnection();\n Artista a = e.find(Artista.class, new Long(id));\n e.close();\n return a;\n }", "@RequestMapping(value = \"/details/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Detail> getDetail(@PathVariable Long id) {\n log.debug(\"REST request to get Detail : {}\", id);\n Detail detail = detailRepository.findOne(id);\n return Optional.ofNullable(detail)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "@Override\n\tpublic void setMenuId(String menuId) {\n\t\t\n\t}", "@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"underItem\")\n\tpublic ZuelResult underItem(Long id) throws Exception {\n\t\treturn service.underItem(id);\n\t}", "@GetMapping(\"/directorDetails/{id}\")\n public String showDirectorDetails(@PathVariable(\"id\") long id, Model model) {\n\n model.addAttribute(\"directors\", directorRepo.findOne(id));\n return \"directorDetails\";\n }", "@Override\n\tpublic DvdCd getById(Integer id) {\n\t\tlogger.info(\"Buscando DVD/CD por ID \"+id);\n\t\tOptional<DvdCd> obj = itemRepository.findById(id);\n\t\tif (!obj.isPresent()) {\n\t\t\tlogger.error(\"DvdCd nao encontrado, \"+DvdCdServiceImpl.class);\n\t\t\tthrow new ObjectNotFoundException(\"DvdCd nao encontrado, id: \"+id);\n\t\t}\n\t\t\n\t\treturn obj.get();\n\t}", "public RobotInfo get(int id){\n \treturn info[id % HASH];\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Bundle extras = getIntent().getExtras();\n\n if (extras != null) {\n\n int Value = extras.getInt(\"id\");\n if (Value > 0) {\n\n getMenuInflater().inflate(R.menu.menu_displayfriend, menu);\n }\n else {\n\n getMenuInflater().inflate(R.menu.menu_main, menu);\n }\n\n }\n return true;\n }", "@Override\n public void selectGolem(int id) {\n }", "M getWithLaziesById(Serializable id);", "public PartidaOli getById(Long id) throws InfrastructureException {\r\n\t\tPartidaOli partida;\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"getById ini\");\r\n\t\t\tpartida = (PartidaOli)getHibernateTemplate().load(PartidaOli.class, id);\t\r\n\t\t\tlogger.debug(\"getById fin\");\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"getById failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\treturn partida;\r\n\t}", "IMenu getMainMenu();", "@Override\r\n\tpublic Admin selectById(int id) {\n\t\treturn adminMapper.selectById(id);\r\n\t}" ]
[ "0.73449576", "0.72529376", "0.719819", "0.7164232", "0.7112432", "0.70923233", "0.7061996", "0.6998919", "0.6956228", "0.6657997", "0.66183734", "0.6558338", "0.6553541", "0.6547062", "0.65339726", "0.65339726", "0.65188515", "0.6516568", "0.6429436", "0.6369815", "0.63615924", "0.63438386", "0.6204446", "0.6197507", "0.61762506", "0.6139328", "0.6128702", "0.61026394", "0.60227203", "0.60076964", "0.60048264", "0.59962225", "0.5973396", "0.59686226", "0.5957376", "0.5939709", "0.59219", "0.5919991", "0.5916115", "0.5904872", "0.5896467", "0.5875252", "0.5862832", "0.58561164", "0.58489895", "0.5846284", "0.5822311", "0.58116615", "0.58034587", "0.57965314", "0.5786491", "0.5785752", "0.5785752", "0.57672656", "0.5758443", "0.57564014", "0.5754909", "0.57474416", "0.5741322", "0.5740536", "0.57400745", "0.5730481", "0.5727474", "0.5708019", "0.5688085", "0.56754655", "0.56697124", "0.56510055", "0.5650568", "0.5647735", "0.56449217", "0.5640023", "0.5624366", "0.56037986", "0.56006134", "0.5600447", "0.5599", "0.5594364", "0.55902535", "0.5590017", "0.55779415", "0.55779403", "0.5573051", "0.5568861", "0.5555242", "0.5549589", "0.5548666", "0.5548023", "0.55322146", "0.55312353", "0.55297", "0.55261594", "0.55189973", "0.5512717", "0.5509173", "0.55026966", "0.5502184", "0.5502099", "0.54996145", "0.54993796" ]
0.7767579
0
Delete menu base on id
int delete(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean delete(int menuId);", "@Override\n\tpublic void delete(String id) throws Exception {\n\t\tmenuMapper.deleteByKey(id);\n\t}", "int deleteByPrimaryKey(String menuId);", "public void delete(int id) {\n\t\tMasterMenu masterMenu=new MasterMenu();\r\n\t\tmasterMenu.setId(id);\r\n\t\tmenuDao.delete(masterMenu);\r\n\t}", "public void deleteMenu() {\n deleteMenuGroupError = true;\n String input = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"menu_id\");\n menu_id = Integer.parseInt(input);\n setMenu_id(menu_id);\n if (menu.deleteMenu()) {\n createMenuError = false;\n updateMenuError = false;\n deleteMenuError = true;\n } else {\n deleteMenuError = false;\n }\n }", "int deleteByPrimaryKey(String menuid);", "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}", "public boolean delete(String username, int menuId);", "int deleteByPrimaryKey(Integer menuid);", "@Override\n public void delete(Long menuId) {\n log.info(\"Looking up weekmenu service to delete a week menu with id: \" + menuId);\n final UriComponents uriComponents = UriComponentsBuilder.newInstance().scheme(\"http\").host(serviceUrl).path(\"/menu/\" + menuId)\n .port(servicePort).build();\n final RestTemplate restTemplate = new RestTemplate();\n final String uriString = uriComponents.toUriString();\n restTemplate.delete(uriString);\n }", "public void delete(Long id) {\r\n log.debug(\"Request to delete OsiMenuEntries : {}\", id);\r\n osiMenuEntriesRepository.delete(id);\r\n }", "ReturnCode deleteMenus(MmtConfig cfg);", "@Override\n\tpublic void deleteMenus(int parseInt) {\n\t\trd.deleteMenus(parseInt);\n\t}", "@Override\n\tpublic void deleteRolemenuByRoleId(Integer roleid) {\n\t\tjdbcTemplate.update(\"delete from menurole where roleid=?\",roleid);\n\t}", "int deleteByExample(MenuInfoExample example);", "public int deleteByPrimaryKey(Integer id) {\n TbAdminMenu key = new TbAdminMenu();\n key.setId(id);\n int rows = getSqlMapClientTemplate().delete(\"tb_admin_menu.ibatorgenerated_deleteByPrimaryKey\", key);\n return rows;\n }", "MenuItem getMenuItemDelete();", "void deleteMataKuliah (int id);", "void supprimerMenu(int numeroArticle);", "private void deleteTodoMenu(User u) {\n\t\t\n\t}", "public void deleteItem(MenuItem menuItem) {\n\n // delete shopping list item from database\n dbHandler.deleteShoppingListItem((int) id);\n\n // display \"Item deleted!\" toast\n Toast.makeText(this, \"Item deleted!\", Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic Integer deletePersByMenuId(Integer menuId) {\n\t\treturn this.menuDao.deletePersByMenuId(menuId);\n\t}", "public void delete(int id) {\n\n\t}", "@Override\r\n\tpublic void del(Integer id) {\n\t\t\r\n\t}", "@Override\n public void deleteMenu(MenuDto menuDto)\n {\n Menu menu = new Menu();\n BeanUtils.copyProperties(menuDto, menu);\n menu.setStat(DataStatus.DISABLED);\n menuDao.updateMenu(menu);\n }", "public void delete(int id);", "@Override\n\tpublic void deleteClick(int id) {\n\t\t\n\t}", "public void testDeleteByMenuId() {\n\t\tboolean settings = dao.deleteByMenuId(999);\r\n\t\tassertTrue(settings);\r\n\r\n\t\t// Try with an existing settings\r\n\t\tsettings = dao.deleteByMenuId(Menu.MENUID_PERSONAL);\r\n\t\tassertTrue(settings);\r\n\t\t\r\n\t\t// Verify that the search document has been deleted\r\n\t\tSearchDocument sdocument = dao.findByMenuId(Menu.MENUID_PERSONAL);\r\n\t\tassertNull(sdocument);\r\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case R.id.salvarContato:\n salvar();\n return true;\n case R.id.delContato:\n mFireBaseRef.child(firebaseID).removeValue();\n Toast.makeText(getApplicationContext(),\"Removido com sucesso\",Toast.LENGTH_SHORT).show();\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "public void delete(Integer id) {\n\r\n\t}", "@Override\n\tpublic void deleteClick(Object id) {\n\t\t\n\t}", "private Boolean deleteMenu(String menuItemkey) {\n\r\n\t\tBoolean flag=false;\r\n\t\tint i=0;\r\n\t\tSqlRowSet rst=null;\r\n\t\tint menuId=0;\r\n\t\ttry {\r\n\t\t\trst=jdbcTemplateObject.queryForRowSet(\"select menu_id from tbl_hub_menu_list where menu_key='\"+menuItemkey+\"'\");\r\n\t\t\tif(rst.next())\r\n\t\t\t\tmenuId=rst.getInt(\"menu_id\");\r\n\t\t\ti=jdbcTemplateObject.update(\"delete from tbl_hub_menu_list where menu_id=\"+menuId);\r\n\t\t\tif(i>0){\r\n\t\t\t\ti=jdbcTemplateObject.update(\"delete from tbl_hub_sub_menu_list where menu_id=\"+menuId);\r\n\t\t\t\tflag=true;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tlogger.info(\"Exception in delete menu:::\"+e.getLocalizedMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "@Override\r\n\tpublic void deleteLeftmenu(Map<String, Object> map) throws Exception {\n\t\tleftmenuDAO.deleteLeftmenu(map);\r\n\t}", "void removeMenuItem(int itemId, String itemName);", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "@Override\n\tpublic void deletebyid(Integer id) {\n\t\t\n\t}", "public void delete(Integer idRol);", "public void delete(Long id) {\n\r\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "public void eliminar(Long id) throws AppException;", "public int delete( Integer idConge ) ;", "int deleteByExample(PensionRoleMenuExample example);", "@Override\n\tpublic void delete(int id) {\n\t}", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "@CrossOrigin(origins = \"http://localhost:8081\")\n @DeleteMapping(path=\"/{id}\") // path name after '/option'\n public @ResponseBody ResponseEntity<?> deleteOption(@PathVariable(\"id\") Integer id) {\n // check if the option exists, then delete it if exists\n final Optional<MenuOp> menuOp = menuOpRepository.findById(id);\n if (!menuOp.isPresent()) {\n return ResponseEntity.notFound().build();\n }\n menuOpRepository.delete(menuOp.get());\n return ResponseEntity.ok().build();\n }", "@Override\n\tpublic void delete(Integer id) {\n\n\t}", "@Override\n public void delete(int id) {\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Permiso : {}\", id);\n permisoRepository.delete(id);\n }", "@Override\n public void delete(int id) {\n repr.delete(id);\n }", "@Override\n\tpublic void delete(Integer id) {\n\t\t\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_detalhe, menu);\n if(firebaseID == null){\n MenuItem item = menu.findItem(R.id.delContato);\n item.setVisible(false);\n }\n return true;\n }", "@Override\r\n\tpublic void delete(Integer id) {\n\r\n\t}", "void deleteCategory(long id);", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "public void deleteById(Integer id) {\n\n\t}", "@RequestMapping(value=\"/delete/{id}\")\n\tpublic String delete(@PathVariable(\"id\") Integer id)\n\t{\n\t\tItemMap.remove(id);\n\t\tSystem.out.println(\"Item number \"+id+\" is Removed\");\n\t\t\n\t\treturn \"Item number \"+ id+\" is Removed\";\n\t}", "void deleteById(int id);", "@Override\r\n\tpublic void excluir(int id) throws Exception {\n\t\t\r\n\t}", "@Override\n\tpublic void delete(String id) {\n\n\t}", "public void removeItem(int id);", "@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}", "void deleteCategory(Integer id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "@Override\r\n\tpublic void delete(String id) {\n\r\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(String id) {\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 }", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@Override\n\tpublic void del(Object id) {\n\n\t}", "static void delete(long id) {\n SQLiteDatabase db = instance.getWritableDatabase();\n db.delete(\"entries\", \"_id = \" + id, null);\n }", "public int menuDelete(MenuVO menuVO) {\n\t\treturn mapper.menuDelete(menuVO);\r\n\t}", "@Override\n\tpublic int delete(int id) {\n\t\treturn rolDao.delete(id);\n\t}", "void delete(Integer id);", "void delete(Integer id);", "void delete(int id);", "void delete(int id);", "public void delete(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t template.delete(e); \n\t}", "@Override\r\n\tpublic void Delete(long id) {\n\t\t\r\n\t}", "public void delete(int id) {\n\t \t\n\t T entity = getEntityManager().find(getEntityClass(), id);\n\t System.out.print(\"------ \" + ((Conexion)entity).getCamposConexion().size()+ \" - - - - - \");\n\t getEntityManager().getTransaction().begin();\n\t getEntityManager().remove(entity);\n\t getEntityManager().getTransaction().commit();\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 }", "public void deleteById(long id) {\n\t\t\n\t}", "@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"deleteItem\")\n\tpublic ZuelResult deleteItem(Long id) throws Exception {\n\t\treturn service.deleteItem(id);\n\t}", "public void delete(Long id);", "public void delete(Long id);" ]
[ "0.8361499", "0.7895665", "0.77381825", "0.77298933", "0.76981556", "0.7613157", "0.7545948", "0.7466563", "0.74389786", "0.7384461", "0.7333951", "0.730931", "0.7095563", "0.709267", "0.70611143", "0.69783276", "0.6955663", "0.6887647", "0.68633056", "0.6845163", "0.68241715", "0.6769033", "0.6768254", "0.6755832", "0.6751446", "0.6729979", "0.6723943", "0.6714087", "0.6674403", "0.66694033", "0.6660861", "0.66188383", "0.6616294", "0.65926415", "0.6576194", "0.65670294", "0.65670294", "0.65670294", "0.6563575", "0.65588194", "0.65517753", "0.6541904", "0.6541904", "0.6541904", "0.6541904", "0.6537618", "0.65250564", "0.65245503", "0.6523008", "0.6518477", "0.6518477", "0.6518477", "0.6518477", "0.6518477", "0.6508482", "0.65028816", "0.6489966", "0.6486429", "0.64713", "0.64709544", "0.64549047", "0.6450345", "0.6449056", "0.64471436", "0.6440924", "0.64385694", "0.6438113", "0.6437756", "0.6424672", "0.6424497", "0.64230055", "0.642072", "0.64158213", "0.6414173", "0.6414173", "0.6414173", "0.6414173", "0.6414173", "0.6414173", "0.6402627", "0.6390232", "0.6390232", "0.6385197", "0.6371856", "0.6371856", "0.6364866", "0.6364105", "0.63604987", "0.6357661", "0.6351731", "0.6351731", "0.63515306", "0.63515306", "0.63513994", "0.6351112", "0.63480604", "0.6346693", "0.6345893", "0.634479", "0.63422525", "0.63422525" ]
0.0
-1
Paging get menu list
List<UmsMenu> list(Long parentId, Integer pageSize, Integer pageNum);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "@Override\r\n\tpublic String list() {\n\t\tList<HeadLine> dataList=new ArrayList<HeadLine>();\r\n\t\tPagerItem pagerItem=new PagerItem();\r\n\t\tpagerItem.parsePageSize(pageSize);\r\n\t\tpagerItem.parsePageNum(pageNum);\r\n\t\t\r\n\t\tLong count=headLineService.count();\r\n\t\tpagerItem.changeRowCount(count);\r\n\t\t\r\n\t\tdataList=headLineService.pager(pagerItem.getPageNum(), pagerItem.getPageSize());\r\n\t\tpagerItem.changeUrl(SysFun.generalUrl(requestURI, queryString));\r\n\t\t\r\n\t\trequest.put(\"DataList\", dataList);\r\n\t\trequest.put(\"pagerItem\", pagerItem);\r\n\t\t\r\n\t\t\r\n\t\treturn \"list\";\r\n\t}", "public List<String> iterateProgramPageList();", "@Command\n\t@NotifyChange(\"*\")\n\tpublic void paginarLista(){\n\t\tint page=pagAnalistas.getActivePage();\n\t\tcambiarAnalistas(page, null, null);\n\t}", "@Override\n public int doStartTag() throws JspException {\n\n int pageCount = (this.recordCount + this.pageSize - 1) / this.pageSize;\n StringBuilder sb = new StringBuilder();\n\n if (this.recordCount != 0 && this.recordCount > this.pageSize) {\n sb.append(\"<ol class=\\\"paginator\\\">\");\n if (this.pageNo > pageCount) {\n this.pageNo = pageCount;\n }\n if (this.pageNo < 1) {\n this.pageNo = 1;\n }\n HttpServletRequest request = (HttpServletRequest) this.pageContext.getRequest();\n\n url = request.getAttribute(\"originalUrl\").toString();\n url += \"?\";\n if (StringUtil.isNotEmpty(request.getQueryString())) {\n String queryString = request.getQueryString();\n url += queryString.replaceAll(\"page=[0-9]*\", \"\");\n if (!url.endsWith(\"&\") && !url.endsWith(\"?\")) {\n url += \"&\";\n }\n }\n\n if (this.pageNo > 1) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--prev\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + (this.pageNo - 1) + \"'><span class=\\\"paginator__item__text__icon\\\"></span></a></li>\");\n }\n int start = 1;\n if (this.pageNo > 4) {\n start = this.pageNo - 1;\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=1'>1</a></li>\");\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=2'>2</a></li>\");\n sb.append(\"<li class=\\\"paginator__item paginator__item--ellipsis\\\"><span class=\\\"paginator__item__text\\\"><span class=\\\"paginator__item__text__icon\\\"></span></span></li>\");\n }\n int end = this.pageNo + 1;\n if (end > pageCount) {\n end = pageCount;\n }\n for (int i = start; i <= end; i++) {\n if (this.pageNo == i) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--number paginator__item--current\\\"><span class=\\\"paginator__item__text\\\">\" + i + \"</span></li>\");\n } else {\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + i + \"'>\").append(i).append(\"</a></li>\");\n }\n }\n if (end < pageCount - 2) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--ellipsis\\\"><span class=\\\"paginator__item__text\\\"><span class=\\\"paginator__item__text__icon\\\"></span></span></li>\");\n }\n if (end < pageCount - 1) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + (pageCount - 1) + \"'>\").append((pageCount - 1) + \"</a></li>\");\n }\n if (end < pageCount) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + pageCount + \"'>\").append(pageCount + \"</a></li>\");\n }\n if (this.pageNo != pageCount) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--next\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + (this.pageNo + 1) + \"'><span class=\\\"paginator__item__text__icon\\\"></span></a></li>\");\n }\n }\n if (anchor != null) {\n sb.append(\"<script type='text/javascript'>$('.paginator a').each(function(){var href=$(this).attr('href');$(this).attr('href',href+'\" + anchor + \"')});</script>\");\n }\n sb.append(\"</ol>\");\n try {\n this.pageContext.getOut().println(sb.toString());\n } catch (IOException e) {\n // TODO Auto-generated catch block\n\n e.printStackTrace();\n }\n return 0;\n }", "Pages getPages();", "public void paging(ModelAndView mav);", "@Override\n protected void onResume() {\n getList(currentPage.toString(), tag);\n super.onResume();\n }", "public List<T> getPageElementsList();", "public List<Object> retrievePagingList(PageBean pageBean) ;", "int getPage();", "String getMenus(MmtConfig cfg);", "public abstract void onLoadMore(int page, int totalItemsCount);", "public abstract void onLoadMore(int page, int totalItemsCount);", "public void list_of_menu_items() {\n\t\tdriver.findElement(open_menu_link).click();\n\t}", "public List<Page> getPageList() {\n return conf.getPages().getPage();\n }", "@Override\n\t\t\tpublic int getCount(){\n\t\t\t\treturn menus.size();\n\t\t\t}", "private void viewList() {\r\n PrintListMenuView listMenu = new PrintListMenuView();\r\n listMenu.displayMenu();\r\n }", "private void getMenu() {\n compositeDisposable.add(mcApi.getMenu()\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Consumer<List<Category>>() {\n @Override\n public void accept(List<Category> categories) throws Exception {\n displayMenu(categories);\n }\n\n }));\n }", "List<JournalPage> getAllPages();", "LiveData<PagedList<Response>> pagedList();", "private ArrayList<Integer> getPageLinks() {\n int numberOfPages = sqlData.getNumberOfPages();\n\n int n = (pageNumInt / numberOfPages);\n Integer startPage = n * numberOfPages;\n\n ArrayList<Integer> pageLinks = new ArrayList<Integer>();\n\n // iterate and add to the array\n for(int i=0; i < numberOfPages; i++) {\n pageLinks.add(++startPage); \n }\n\n return pageLinks;\n \n }", "List<ShopItem> findAllByInTopPageTrue();", "List<ViewDefinition> listForMenu();", "protected static List prepPage(SessionState state)\n\t{\n\t\tList rv = new Vector();\n\n\t\t// access the page size\n\t\tint pageSize = ((Integer) state.getAttribute(STATE_PAGESIZE)).intValue();\n\n\t\t// cleanup prior prep\n\t\tstate.removeAttribute(STATE_NUM_MESSAGES);\n\n\t\t// are we going next or prev, first or last page?\n\t\tboolean goNextPage = state.getAttribute(STATE_GO_NEXT_PAGE) != null;\n\t\tboolean goPrevPage = state.getAttribute(STATE_GO_PREV_PAGE) != null;\n\t\tboolean goFirstPage = state.getAttribute(STATE_GO_FIRST_PAGE) != null;\n\t\tboolean goLastPage = state.getAttribute(STATE_GO_LAST_PAGE) != null;\n\t\tstate.removeAttribute(STATE_GO_NEXT_PAGE);\n\t\tstate.removeAttribute(STATE_GO_PREV_PAGE);\n\t\tstate.removeAttribute(STATE_GO_FIRST_PAGE);\n\t\tstate.removeAttribute(STATE_GO_LAST_PAGE);\n\n\t\t// are we going next or prev message?\n\t\tboolean goNext = state.getAttribute(STATE_GO_NEXT) != null;\n\t\tboolean goPrev = state.getAttribute(STATE_GO_PREV) != null;\n\t\tstate.removeAttribute(STATE_GO_NEXT);\n\t\tstate.removeAttribute(STATE_GO_PREV);\n\n\t\t// read all channel messages\n\t\tList allMessages = readAllResources(state);\n\n\t\tif (allMessages == null)\n\t\t{\n\t\t\treturn rv;\n\t\t}\n\t\t\n\t\tString messageIdAtTheTopOfThePage = null;\n\t\tObject topMsgId = state.getAttribute(STATE_TOP_PAGE_MESSAGE_ID);\n\t\tif(topMsgId == null)\n\t\t{\n\t\t\t// do nothing\n\t\t}\n\t\telse if(topMsgId instanceof Integer)\n\t\t{\n\t\t\tmessageIdAtTheTopOfThePage = ((Integer) topMsgId).toString();\n\t\t}\n\t\telse if(topMsgId instanceof String)\n\t\t{\n\t\t\tmessageIdAtTheTopOfThePage = (String) topMsgId;\n\t\t}\n\n\t\t// if we have no prev page and do have a top message, then we will stay \"pinned\" to the top\n\t\tboolean pinToTop = (\t(messageIdAtTheTopOfThePage != null)\n\t\t\t\t\t\t\t&&\t(state.getAttribute(STATE_PREV_PAGE_EXISTS) == null)\n\t\t\t\t\t\t\t&&\t!goNextPage && !goPrevPage && !goNext && !goPrev && !goFirstPage && !goLastPage);\n\n\t\t// if we have no next page and do have a top message, then we will stay \"pinned\" to the bottom\n\t\tboolean pinToBottom = (\t(messageIdAtTheTopOfThePage != null)\n\t\t\t\t\t\t\t&&\t(state.getAttribute(STATE_NEXT_PAGE_EXISTS) == null)\n\t\t\t\t\t\t\t&&\t!goNextPage && !goPrevPage && !goNext && !goPrev && !goFirstPage && !goLastPage);\n\n\t\t// how many messages, total\n\t\tint numMessages = allMessages.size();\n\n\t\tif (numMessages == 0)\n\t\t{\n\t\t\treturn rv;\n\t\t}\n\n\t\t// save the number of messges\n\t\tstate.setAttribute(STATE_NUM_MESSAGES, new Integer(numMessages));\n\n\t\t// find the position of the message that is the top first on the page\n\t\tint posStart = 0;\n\t\tif (messageIdAtTheTopOfThePage != null)\n\t\t{\n\t\t\t// find the next page\n\t\t\tposStart = findResourceInList(allMessages, messageIdAtTheTopOfThePage);\n\n\t\t\t// if missing, start at the top\n\t\t\tif (posStart == -1)\n\t\t\t{\n\t\t\t\tposStart = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// if going to the next page, adjust\n\t\tif (goNextPage)\n\t\t{\n\t\t\tposStart += pageSize;\n\t\t}\n\n\t\t// if going to the prev page, adjust\n\t\telse if (goPrevPage)\n\t\t{\n\t\t\tposStart -= pageSize;\n\t\t\tif (posStart < 0) posStart = 0;\n\t\t}\n\t\t\n\t\t// if going to the first page, adjust\n\t\telse if (goFirstPage)\n\t\t{\n\t\t\tposStart = 0;\n\t\t}\n\t\t\n\t\t// if going to the last page, adjust\n\t\telse if (goLastPage)\n\t\t{\n\t\t\tposStart = numMessages - pageSize;\n\t\t\tif (posStart < 0) posStart = 0;\n\t\t}\n\n\t\t// pinning\n\t\tif (pinToTop)\n\t\t{\n\t\t\tposStart = 0;\n\t\t}\n\t\telse if (pinToBottom)\n\t\t{\n\t\t\tposStart = numMessages - pageSize;\n\t\t\tif (posStart < 0) posStart = 0;\n\t\t}\n\n\t\t// get the last page fully displayed\n\t\tif (posStart + pageSize > numMessages)\n\t\t{\n\t\t\tposStart = numMessages - pageSize;\n\t\t\tif (posStart < 0) posStart = 0;\n\t\t}\n\n\t\t// compute the end to a page size, adjusted for the number of messages available\n\t\tint posEnd = posStart + (pageSize-1);\n\t\tif (posEnd >= numMessages) posEnd = numMessages-1;\n\t\tint numMessagesOnThisPage = (posEnd - posStart) + 1;\n\n\t\t// select the messages on this page\n\t\tfor (int i = posStart; i <= posEnd; i++)\n\t\t{\n\t\t\trv.add(allMessages.get(i));\n\t\t}\n\n\t\t// save which message is at the top of the page\n\t\tBrowseItem itemAtTheTopOfThePage = (BrowseItem) allMessages.get(posStart);\n\t\tstate.setAttribute(STATE_TOP_PAGE_MESSAGE_ID, itemAtTheTopOfThePage.getId());\n\t\tstate.setAttribute(STATE_TOP_MESSAGE_INDEX, new Integer(posStart));\n\n\n\t\t// which message starts the next page (if any)\n\t\tint next = posStart + pageSize;\n\t\tif (next < numMessages)\n\t\t{\n\t\t\tstate.setAttribute(STATE_NEXT_PAGE_EXISTS, \"\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstate.removeAttribute(STATE_NEXT_PAGE_EXISTS);\n\t\t}\n\n\t\t// which message ends the prior page (if any)\n\t\tint prev = posStart - 1;\n\t\tif (prev >= 0)\n\t\t{\n\t\t\tstate.setAttribute(STATE_PREV_PAGE_EXISTS, \"\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstate.removeAttribute(STATE_PREV_PAGE_EXISTS);\n\t\t}\n\n\t\tif (state.getAttribute(STATE_VIEW_ID) != null)\n\t\t{\n\t\t\tint viewPos = findResourceInList(allMessages, (String) state.getAttribute(STATE_VIEW_ID));\n\t\n\t\t\t// are we moving to the next message\n\t\t\tif (goNext)\n\t\t\t{\n\t\t\t\t// advance\n\t\t\t\tviewPos++;\n\t\t\t\tif (viewPos >= numMessages) viewPos = numMessages-1;\n\t\t\t}\n\t\n\t\t\t// are we moving to the prev message\n\t\t\tif (goPrev)\n\t\t\t{\n\t\t\t\t// retreat\n\t\t\t\tviewPos--;\n\t\t\t\tif (viewPos < 0) viewPos = 0;\n\t\t\t}\n\t\t\t\n\t\t\t// update the view message\n\t\t\tstate.setAttribute(STATE_VIEW_ID, ((BrowseItem) allMessages.get(viewPos)).getId());\n\t\t\t\n\t\t\t// if the view message is no longer on the current page, adjust the page\n\t\t\t// Note: next time through this will get processed\n\t\t\tif (viewPos < posStart)\n\t\t\t{\n\t\t\t\tstate.setAttribute(STATE_GO_PREV_PAGE, \"\");\n\t\t\t}\n\t\t\telse if (viewPos > posEnd)\n\t\t\t{\n\t\t\t\tstate.setAttribute(STATE_GO_NEXT_PAGE, \"\");\n\t\t\t}\n\t\t\t\n\t\t\tif (viewPos > 0)\n\t\t\t{\n\t\t\t\tstate.setAttribute(STATE_PREV_EXISTS,\"\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstate.removeAttribute(STATE_PREV_EXISTS);\n\t\t\t}\n\t\t\t\n\t\t\tif (viewPos < numMessages-1)\n\t\t\t{\n\t\t\t\tstate.setAttribute(STATE_NEXT_EXISTS,\"\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstate.removeAttribute(STATE_NEXT_EXISTS);\n\t\t\t}\t\t\t\n\t\t}\n\n\t\treturn rv;\n\n\t}", "void loadAll(int pageNum, LoadView mLoadView);", "public void getWantedPageFromPagination()throws Exception{\r\n SearchPageFactory pageFactory = new SearchPageFactory(driver);\r\n List<WebElement> pageOrderList = pageFactory.searchPagePaginationList;\r\n WebElement wantedPageOrder = pageOrderList.get(1);\r\n clickElement(wantedPageOrder, Constant.explicitTime);\r\n }", "@Override\r\n\tpublic List<ReviewVO> listPage(int page) throws Exception {\n\t\tif(page<=0) {\r\n\t\t\tpage=1;\r\n\t\t}\r\n\t\t\r\n\t\tpage = (page-1)*10; // 한 페이지에 10개의 글 보이기\r\n\t\t\r\n\t\treturn ss.selectList(\"listPage\", page);\r\n\t}", "private void setupMenuFetched(MenuData menuData) {\n mMenuTabsPagerAdapter =\n new MenuTabsPagerAdapter(getUpdatedMenuCategoriesList(menuData.getMenuCategoriesList()), getSupportFragmentManager(), OrderOnlineActivity.this);\n mMenuViewPager = (ViewPager) findViewById(R.id.menuPager);\n mMenuViewPager.setAdapter(mMenuTabsPagerAdapter);\n // Give the TabLayout the ViewPager\n TabLayout tabLayout = (TabLayout) findViewById(R.id.sliding_tabs);\n tabLayout.setupWithViewPager(mMenuViewPager);\n\n mSearchViewToShow = true;\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n supportInvalidateOptionsMenu();\n// showSearhView();\n }", "List<Menu> listarMenuPorUsuario(String nombre);", "public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}", "public List<Blog> list2(String permission,Page page);", "@Override\n\t\tpublic void onLoadMore() {\n\t\t\tpageIndex++;\n\t\t\tloadInfo(pageIndex, 1);\n\t\t\tif (DzqcStu.isDebug) {\n\t\t\t\tLog.i(\"pageIndex------\", pageIndex+\"\");\n\t\t\t}\n\t\t}", "private void paginate() {\n List<ItemModel> old = adapter.getItems();\n List<ItemModel> New = new ArrayList<>(addList());\n CardStackCallback callback = new CardStackCallback(old, New);\n DiffUtil.DiffResult result = DiffUtil.calculateDiff(callback);\n adapter.setItems(New);\n result.dispatchUpdatesTo(adapter);\n }", "@Override\r\n\tpublic List<TypeModePaiement> listeAllPagination(int page) {\n\t\treturn null;\r\n\t}", "public List<PageContent> getAllPageContent();", "public PageInfo<Book> getBookList() {\n \tPageHelper.startPage(1,2);\r\n List<Book> list = bookMapper.getBookList();\r\n PageInfo<Book> pageInfo=new PageInfo<Book>(list);\r\n\t\treturn pageInfo;\r\n \r\n }", "private void show(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tInteger page = request.getParameter(\"page\") == \"\" || request.getParameter(\"page\") == null ? 1\r\n\t\t\t\t: Integer.valueOf(request.getParameter(\"page\"));\r\n\t\tint count = service.selectCount();\r\n\t\trequest.setAttribute(\"page\", page);\r\n\t\trequest.setAttribute(\"count\", count);\r\n\t\tList<Notice> list = service.selectAll((page - 1) * 5, 5);\r\n\t\trequest.setAttribute(\"list\", list);\r\n\r\n\t\trequest.getRequestDispatcher(\"/WEB-INF/jsp/GongGaoGuanLi.jsp\").forward(request, response);\r\n\t}", "List<ProductView> getAllByPage(PageableAndSortable pageableAndSortable) throws ProductException;", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "Integer getPage();", "PageInfo list(Date beginDate, Date endDate, List<Integer> resources, int pageNo, int pageSize);", "public abstract <T> Page<T> list(Pageable pageable, Class<T> clazz);", "private void pagination(){\n recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n }\n\n @Override\n public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n if (dy>0){\n LinearLayoutManager layoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();\n int lastItem = layoutManager.findLastCompletelyVisibleItemPosition(); //finds last visible item\n int currentTotalCount = layoutManager.getItemCount(); //find total number of displayed items\n\n if (mLoadingItems){\n if (currentTotalCount > previousTotal){\n mLoadingItems = false;\n previousTotal = currentTotalCount;\n }\n }\n if (!mLoadingItems && (currentTotalCount <= (lastItem +view_threshold))) {\n mLoadingItems = true;\n //Increment number of items on the list\n firstItemVisible = firstItemVisible+10;\n lastItemVisible = lastItemVisible+10;\n //Update adapter\n jsonParse();\n }\n }\n }\n });\n }", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "int getPagesize();", "public void onLoadMenuTop10Selected(List<Track> topTenMediaItems);", "public List getList(int start, int pernum, SearchParam param);", "@Override\r\n\tpublic List<Menu> getAllMenu() {\n\t\t\r\n\t\tallMenuList=new ArrayList<Menu>();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tConnection connection=DBConnection.getConnection();\r\n\t\t\tString sqlQuery=\"select * from Menu\";\r\n\t\t\t\r\n\t\t\tPreparedStatement pst=connection.prepareStatement(sqlQuery);\r\n\t\t\t\r\n\t\t\tpst.executeQuery();\r\n\t\t\tResultSet rs=pst.getResultSet();\r\n\t\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tint mid=rs.getInt(COLmid);\r\n\t\t\t\tint vid=rs.getInt(COLvid);\r\n\t\t\t\tString mname=rs.getString(COLmname);\r\n\t\t\t\tint mprice=rs.getInt(COLmprice);\r\n\t\t\t\tString vname=rs.getString(COLvname);\r\n\t\t\t\r\n\t\t\t\tMenu menu=new Menu(mid,vid,mname,mprice,vname);\r\n\t\t\t\t\r\n\t\t\t\tallMenuList.add(menu);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn allMenuList;\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\r\n\t\t\r\n\t\t\r\n\t}", "public static void showOpportunities(ArrayList<Opportunity> opportunities, boolean firstPage, boolean lastPage, boolean fromAccount) {\n setMenuLines(\"\", 1, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21);\n if (opportunities.size() == 0) {\n setMenuLines(HIGHLIGHT_COLOR + \"There are no Opportunities\" + HIGHLIGHT_COLOR, 4);\n } else {\n setMenuLines(HIGHLIGHT_COLOR + \"Available Opportunities\" + HIGHLIGHT_COLOR, 4);\n }\n // String is built with the current page of opportunities and then the corresponding menu String lines are set\n int initialLine = 6;\n StringBuilder opportunityString = new StringBuilder(\"\");\n for (Opportunity opportunity : opportunities) {\n opportunityString.append(opportunity.toString()).append(\"\\n\");\n }\n setLinesFromConcatString(opportunityString.toString(), initialLine);\n if (firstPage && lastPage) {\n setMenuLines(HIGHLIGHT_COLOR + \"ENTER \" + ANSI_RESET + (fromAccount ? \"- return to Account\" : \"- return to the main menu\"), 20);\n } else if (firstPage) {\n setMenuLines(HIGHLIGHT_COLOR + \"next \" + ANSI_RESET + \"- go to the next page |\" + HIGHLIGHT_COLOR +\n \"back \" + ANSI_RESET + (fromAccount ? \"- return to Account\" : \"- return to the main menu\"), 20);\n } else if (lastPage) {\n setMenuLines(HIGHLIGHT_COLOR + \"previous \" + ANSI_RESET + \"- return to the previous page | \" + HIGHLIGHT_COLOR +\n \"back \" + ANSI_RESET + (fromAccount ? \"- return to Account\" : \"- return to the main menu\"), 20);\n } else {\n setMenuLines(HIGHLIGHT_COLOR + \"next\" + ANSI_RESET + \"- go to the next page |\" + HIGHLIGHT_COLOR +\n \"previous \" + ANSI_RESET + \"- return to the previous page |\" + HIGHLIGHT_COLOR +\n \"back \" + ANSI_RESET + (fromAccount ? \"- return to Account\" : \"- return to the main menu\"), 20);\n }\n PrinterMenu.printMenu(\"\");\n }", "@Override\n public int getCount() {\n return PAGE_COUNT;\n }", "@RequestMapping(value = \"/debug_board_list.do\", method = RequestMethod.GET)\n\tpublic String List(@RequestParam(\"offset\") int offset, @RequestParam(\"pagelink\") int pagelink, Model model) {\n\t\t\n\t\tmodel.addAttribute(\"boardCount\", boardService.getContentsCount());\n\t\tmodel.addAttribute(\"boardList\", boardService.getBoardList(offset,limit) );\n\t\tmodel.addAttribute(\"PagingCount\",boardService.showPaging(pagelink,\"/debug_board_list.do\"));\n\t\tmodel.addAttribute(\"offset\",offset);\n\t\tmodel.addAttribute(\"pagelink\",pagelink);\n\t\treturn \"debug_board/List\";\n\t}", "IPager createPager(PagedList.Config config);", "List<UmsMenu> selectAll();", "@RequestMapping (\"/members\")\r\n\tpublic String list(@RequestParam(\"page\") int page, Model model) {\n\t\tint pagenumber = page;\r\n\t\tmodel.addAttribute(\"pagenumber\", pagenumber);\r\n\t\t\r\n\t\t//Row count for following calculations\r\n\t\tint maxrows = membersService.getMemberCount();\r\n\t\t\r\n\t\t//Find the Max number of pages and see if an extra page is needed\r\n\t\tif (maxrows >= 7){\r\n\t\t\tint maxpages = maxrows / 7;\r\n\t\t\tint pageTest = maxpages * 7; \r\n\t\t\tint addPage = maxrows - pageTest;\r\n\t\t\tint zero = 0;\r\n\t\t//Add an extra page if TRUE\r\n\t\t\tif (addPage > zero){\r\n\t\t\t\tint extraPage = maxpages + 1;\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", extraPage);\r\n\t\t//Do not add an extra page if FALSE\t\t\r\n\t\t\t}else {\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", maxpages);\r\n\t\t\t}\r\n\t\t//Only one page is needed because at least 7 rows are not available \r\n\t\t}else{\r\n\t\t\tmodel.addAttribute(\"maxpages\", 1);\r\n\t\t }\r\n\t\t//pull the first 7 on page 1\r\n\t\tif (pagenumber <= 1) {\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(0, 7));\r\n\t\t}else{\r\n\t\t\tint stopSQL = 7; //Offset\r\n\t\t\tint pageNumber = pagenumber - 1; \r\n\t\t\tint startSQL = 7 * pageNumber; //What row should the query start at, e.g. 7 * 2 = 14 (start at row 14 and pull the next 7 rows)\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(startSQL, stopSQL));\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn \"members\";\r\n\t}", "public List<Longpay> listpage(HashMap<String, Object> map) {\n\t\treturn sm.selectList(\"com.lanzhou.entity.Longpay.listpage\", map);\n\t}", "List<? extends Page> getPages();", "public PageList<Hoppy> getPageList(Hoppy hoppy, int pageSize, int pageNum) throws DataAccessException;", "@Override\n public int getCount() {\n return PAGE_COUNT;\n }", "private void pagination()\n {\n if (value==0)\n {\n aBoolean=true;\n setAdapter(postModels);\n value=1;\n count=count+10;\n }\n else if (value==1)\n {\n if (count<page_count)\n {\n aBoolean=true;\n count=count+10;\n temp_list.addAll(postModels);\n adapter.notifyDataSetChanged();\n }\n }\n }", "List<ProductView> getAllByPage(int pageNumber, int itemsPerPage) throws ProductException;", "@Override\n\tpublic List<Tmenu> findList(Tmenu t) throws Exception {\n\t\tt.setTotalNum(menuMapper.findCount(t));\n\t\treturn menuMapper.findForList(t);\n\t}", "List<RiceCooker> getPerPage(long startRow, long maxRows);", "@Override\n\tpublic List<Product> getListByPage(int page) {\n\t\tlog.warn(\"warn\");\n\t\tlog.error(\"error\");\n\t\tList<Product> listPro = getListByPage.getListByPage(page*20,20); // 替换为 repository\n\t\treturn listPro;\n\t}", "@Override\n public void onPageSelected(int position) {\n tljr_txt_page.setText(position + 1 + \"/\" + uList.size());\n currentPosition = position;\n }", "private void setUpPageItem() {\n displaylimit = xmlhandler.getItemDisplayLimit();\n itemrow = inventory.getItemRow();\n Back.setEnabled(false);\n Begin.setEnabled(false);\n if(getPageEnd()==1) {\n Forward.setEnabled(false);\n End.setEnabled(false);\n }\n }", "List<T> findPage(int pageNumber);", "@Override\n\tpublic List<?> selectPage(Map<String, Object> params) {\n\t\treturn this.tableConfigDao.selectPage(params);\n\t}", "private void createMenuList() {\n SlideMenuItem menuItem0 = new SlideMenuItem(ContentFragment.CLOSE, R.drawable.ic_action_remove);\n list.add(menuItem0);\n SlideMenuItem menuItem = new SlideMenuItem(ContentFragment.GAMES, R.drawable.ic_action_gamepad);\n list.add(menuItem);\n\n SlideMenuItem menuItem3 = new SlideMenuItem(ContentFragment.FRIENDS, R.drawable.ic_action_person);\n list.add(menuItem3);\n SlideMenuItem menuItem4 = new SlideMenuItem(ContentFragment.SETTINGS, R.drawable.ic_action_settings);\n list.add(menuItem4);\n }", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "public List<Project> findByPage(Map<String, Object> map) {\n\tString key=map.get(\"currpage\").toString()+map.get(\"rows\").toString()+\"prlist\";\n\tList<Object> olist=redistemplateutil.lGet(key, 0, -1);\n\tList<Project> list=new ArrayList<Project>();\n\tif(null!=olist &&olist.size()>0) {\n\t\tlist=(List<Project>) olist.get(0);\n\t\treturn list;\n\t}else{\n\t\n\tList<Project> ulist= projectmapper.findByPage(map);\n\tredistemplateutil.lSet(key, ulist,3);\n\treturn ulist;\n\t}\n}", "public Integer getPerPage();", "public ResultMap<BaseNode> listChildren(Pagination pagination);", "Page getList(ViewResourceSearchVO viewResourceSearchVO) throws Exception;", "int getFirstItemOnPage();", "public static void showLeads(ArrayList<Lead> leads, boolean firstPage, boolean lastPage) {\n setMenuLines(\"\", 1, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21);\n if (leads.size() == 0) {\n setMenuLines(HIGHLIGHT_COLOR + \"There are no Leads\" + HIGHLIGHT_COLOR, 4);\n } else {\n setMenuLines(HIGHLIGHT_COLOR + \"Available Leads\" + HIGHLIGHT_COLOR, 4);\n }\n // String is built with the current page of leads and then the corresponding menu String lines are set\n int initialLine = 6;\n StringBuilder leadString = new StringBuilder(\"\");\n for (Lead lead : leads) {\n leadString.append(lead.toString()).append(\"\\n\");\n }\n setLinesFromConcatString(leadString.toString(), initialLine);\n\n if (firstPage && lastPage) {\n setMenuLines(HIGHLIGHT_COLOR + \"ENTER \" + ANSI_RESET + \"- return to the main menu\", 20);\n } else if (firstPage) {\n setMenuLines(HIGHLIGHT_COLOR + \"next \" + ANSI_RESET + \"- go to the next page |\" + HIGHLIGHT_COLOR +\n \" back \" + ANSI_RESET + \"- return to the main menu\", 20);\n } else if (lastPage) {\n setMenuLines(HIGHLIGHT_COLOR + \"previous \" + ANSI_RESET + \"- return to the previous page | \" + HIGHLIGHT_COLOR +\n \"back \" + ANSI_RESET + \" - return to the main menu\", 20);\n } else {\n setMenuLines(HIGHLIGHT_COLOR + \"next\" + ANSI_RESET + \"- go to the next page | \" + HIGHLIGHT_COLOR +\n \"previous \" + ANSI_RESET + \"- return to the previous page | \" + HIGHLIGHT_COLOR +\n \"back \" + ANSI_RESET + \"- return to the main menu\", 20);\n }\n PrinterMenu.printMenu(\"\");\n }", "public static void readMenu(){\n\t\tSystem.out.println(\"Menu....\");\n\t\tSystem.out.println(\"=====================\");\n\t\tSystem.out.println(\"1. Book A Ticket\\t2. See Settings\\n3. Withdraw\\t4. Deposit\");\n\n\t}", "@GetMapping(\"/pagina\")\t\n\tpublic ResponseEntity<?> listar(Pageable pageable) {\n\t\tPageable pageableEnv = PageRequest.of(pageable.getPageNumber() - 1, pageable.getPageSize());\n\t\treturn ResponseEntity.ok().body(service.findAll(pageableEnv));\n\t}", "void onPagesAdded(List<Integer> pageList);", "Page<Accessprofile> listAllByPage(Pageable pageable);", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn thisPageList.size();\n\t\t}", "@Override\n\tpublic Page getItems(int current, String userID) {\n\t\tPage page = new Page(current);\n\t\tint count = exGroupMapper.count(userID);\n\t\tpage.setCount(count);\n\t\tint offset = page.getOffset();\n\t\tint size = page.getSize();\n\t\tSystem.out.println(\"offset: \"+offset+\" size:\"+size+\"userID\"+userID);\n\t\tList<ExpandGroup> items = exGroupMapper.showPage(offset,size, userID);\n\t\tSystem.out.println(items);\n\t\tpage.setList(items);\n\t\treturn page;\n\t}", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage();", "@Transactional\r\n\tpublic List<Menu> getMenu() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\r\n\r\n\t\t// create a query\r\n\t\tQuery<Menu> theQuery = currentSession.createQuery(\"from Menu\", Menu.class);\r\n\r\n\t\t// execute query and get result list\r\n\t\tList<Menu> m = theQuery.getResultList();\r\n\t\t// return the results\r\n\t\treturn m;\r\n\r\n\t}", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "private void searchMenu(){\n\t\t\n\t}", "protected String getPageNavigation()\n {\n return \"\";\n }", "@Override\r\n\tpublic String select() {\n\t\tList<Object> paramList=new ArrayList<Object>();\r\n\t\tparamList.add(numPerPage*(pageIndex-1));\r\n\t\tparamList.add(numPerPage);\r\n\t\tthis.setResultMesg(adminDao.doCount(), adminDao.doSelect(paramList));\r\n\t\treturn SUCCESS;\r\n\t}", "@Override\n\tpublic synchronized void onLoadMore() {\n\t\ttry {\n\t\t\t// 如果总页数大于当前页码数,加载更多\n\t\t\tif (pageSize > curPage) {\n\t\t\t\tURL = URL.substring(0, URL.lastIndexOf(\"_\") + 1);\n\t\t\t\tcurPage++;\n\t\t\t\tURL = URL + curPage + \".xml\";\n\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t} else {\n\t\t\t\tlistView.setPullLoadEnable(false);\n\t\t\t\tonLoadStop();\n\t\t\t\tToast toast = Toast.makeText(getActivity(), \"数据已经加载完毕!\",\n\t\t\t\t\t\tToast.LENGTH_LONG);\n\t\t\t\t// toast.getView().setBackgroundResource(R.drawable.red_toast_bg);\n\t\t\t\ttoast.getView().setPadding(20, 10, 20, 10);\n\t\t\t\ttoast.show();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "List<MasterZipcode> getByPage(int pageNo);", "@Override\n\tpublic void onLoadMore() {\n\t\tLog.d(\"load\", \"\");\n\t\tcurrentPage++;\n\t\tmodel.getPostsByType(userId, currentPage, method, postListiner);\n\t}", "@Override\n\t\tpublic synchronized void onLoadMore() {\n\t\t\ttry {\n\t\t\t\t//如果总页数大于当前页码数,加载更多\n\t\t\t\tif(pageSize > curPage){\n\t\t\t\t\tURL = URL.substring(0, URL.lastIndexOf(\"_\")+1);\n\t\t\t\t\tcurPage++;\n\t\t\t\t\tURL = URL+curPage+\".xml\";\n\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t}else{\n\t\t\t\t\tlistView.setPullLoadEnable(false);\n\t\t\t\t\tonLoadStop();\n\t\t\t\t\tToast toast = Toast.makeText(getActivity(), \"数据已经加载完毕!\", Toast.LENGTH_LONG);\n//\t\t\t\t\ttoast.getView().setBackgroundResource(R.drawable.red_toast_bg);\n\t\t\t\t\ttoast.getView().setPadding(20, 10, 20, 10);\n\t\t\t\t\ttoast.show();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void viewMenu() {\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\n\t\t\tmm.clear();\n\n\t\t\tmm = (ArrayList<AlacarteMenu>) ois.readObject();\n\n\t\t\tString leftAlignFormat = \"| %-10s | %-37s | %-5s | %-12s | %n\";\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\t\n\t\t\t\n\t\t\tCollections.sort(mm); \n\t\t\tfor (AlacarteMenu item : mm) {\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\n\t\t\t\tSystem.out.format(leftAlignFormat, item.getMenuName(), item.getMenuDesc(), item.getMenuPrice(),\n\t\t\t\t\t\titem.getMenuType());\n\t\t\t}\n\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t} catch (IOException e) {\n\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\t//System.out.println(\"No menu items found!\");\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException c) {\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "private static List<Integer> getPageNumberList(int currentPage, int totalPage, int maxPageDisplay) {\n\n\t\tList<Integer> pageNumberList = new ArrayList<Integer>();\n\n\t\tint pageMin, pageMax;\n\t\tpageMin = currentPage - (maxPageDisplay - 1) / 2;\n\t\tpageMax = currentPage + (maxPageDisplay - 1) / 2;\n\n\t\tif (pageMin <= 0) {\n\t\t\tpageMin = 1;\n\t\t\tpageMax = maxPageDisplay;\n\t\t}\n\n\t\tif (pageMax > totalPage) {\n\t\t\tpageMax = totalPage;\n\t\t\tpageMin = totalPage - maxPageDisplay + 1;\n\t\t}\n\n\t\tfor (int i = pageMin; i <= pageMax; i++) {\n\t\t\tif (i > 0) {\n\t\t\t\tpageNumberList.add(i);\n\t\t\t}\n\t\t}\n\n\t\treturn pageNumberList;\n\t}", "@Override\n\tpublic void onLoadMore() {\n\t\tpage++;\n\t\texecutorService.submit(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "List<Navigation> getNavigationList();", "@Override\r\n\t\tpublic int getCount() {\n\t\t\treturn mPagers.size();\r\n\t\t}" ]
[ "0.660154", "0.629304", "0.6172711", "0.61062074", "0.6098847", "0.6036257", "0.59983134", "0.5972275", "0.5954697", "0.59544885", "0.59462994", "0.5926573", "0.59255165", "0.59255165", "0.59158415", "0.5889223", "0.5876623", "0.5859342", "0.5830825", "0.5820406", "0.5818253", "0.5807767", "0.57989144", "0.5765487", "0.573707", "0.57334167", "0.5729275", "0.56968635", "0.56965685", "0.5678094", "0.56629914", "0.56629544", "0.56538206", "0.5648749", "0.56296676", "0.5623085", "0.5620894", "0.56144494", "0.5613385", "0.559101", "0.55817634", "0.5557542", "0.5547897", "0.5538564", "0.55349684", "0.5531558", "0.55251133", "0.55211747", "0.55192053", "0.5516818", "0.55140513", "0.5514028", "0.55123186", "0.55100995", "0.5506272", "0.5505651", "0.54989743", "0.54927003", "0.5484293", "0.5478535", "0.5462176", "0.544981", "0.54417753", "0.5441568", "0.5437141", "0.5430642", "0.54189634", "0.5404223", "0.53998035", "0.5399566", "0.53978896", "0.53961945", "0.53942347", "0.538179", "0.53803784", "0.5379359", "0.53785497", "0.5378318", "0.5374932", "0.5374124", "0.53732336", "0.53727", "0.5364229", "0.53642124", "0.5363117", "0.5363117", "0.5363117", "0.5363117", "0.53619313", "0.53584075", "0.535716", "0.5355723", "0.53556186", "0.53546065", "0.5352569", "0.5349002", "0.5341788", "0.5332992", "0.5332074", "0.5328158" ]
0.7006157
0
Tree structure return all menu lists
List<UmsMenuNode> treeList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<Menu> menuList() {\n\t\tList<Menu> menuList = menuRepositoryDao.findAll(); //获取所有的菜单集合\r\n\t\t\r\n\t\tMap<Long,String> parentNameMap = new HashMap<>();\r\n\t\tfor(Menu menu : menuList){\r\n\t\t\tparentNameMap.put(menu.getParentId(), menuRepositoryDao.getParentName(menu.getParentId())); //根据父ID获取父菜单\r\n\t\t\tmenu.setParentName(parentNameMap.get(menu.getParentId()));\r\n\t\t}\r\n\t\t\r\n\t\treturn menuList;\r\n\t}", "@Override\r\n\tpublic List<Menu> selAll() {\n\t\tList<Menu> list=mapper.selAll();\r\n\t\tfor(Menu menu:list){\r\n\t\t\tList<Menu> listChildren=mapper.selByPid(menu.getId());\r\n\t\t\tfor(Menu child:listChildren){\r\n\t\t\t\tAttributes att=new Attributes();\r\n\t\t\t\tatt.setFilename(child.getFilename());\r\n\t\t\t\tchild.setAttributes(att);\r\n\t\t\t}\r\n\t\t\tmenu.setChildren(listChildren);\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public List<HashMap<String, Object>> getMenuTreeRetrieve() {\n\t\treturn mapper.getMenuTreeRetrieve();\r\n\t}", "List<ViewDefinition> listForMenu();", "@Override\n\tpublic List<Menu> findAllMenuList() {\n\t\treturn (List<Menu>) menuDao.findAll();\n\t}", "List<String> getTrees();", "@Override\r\n\tpublic List<Menu> getAllMenu() {\n\t\t\r\n\t\tallMenuList=new ArrayList<Menu>();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tConnection connection=DBConnection.getConnection();\r\n\t\t\tString sqlQuery=\"select * from Menu\";\r\n\t\t\t\r\n\t\t\tPreparedStatement pst=connection.prepareStatement(sqlQuery);\r\n\t\t\t\r\n\t\t\tpst.executeQuery();\r\n\t\t\tResultSet rs=pst.getResultSet();\r\n\t\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tint mid=rs.getInt(COLmid);\r\n\t\t\t\tint vid=rs.getInt(COLvid);\r\n\t\t\t\tString mname=rs.getString(COLmname);\r\n\t\t\t\tint mprice=rs.getInt(COLmprice);\r\n\t\t\t\tString vname=rs.getString(COLvname);\r\n\t\t\t\r\n\t\t\t\tMenu menu=new Menu(mid,vid,mname,mprice,vname);\r\n\t\t\t\t\r\n\t\t\t\tallMenuList.add(menu);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn allMenuList;\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic List<Tree> queryListMenu(String uiId) {\n\t\treturn permissionDao.queryListMenu(uiId);\r\n\t}", "@Override\n\tpublic List<Menu> getAllMenu() {\n\t\treturn this.menuDao.getAllMenu();\n\t}", "@Override\n\tpublic List<MenuDto> menuInfo() {\n\t\tList<MenuDto> menuByParent = mapper.menuByParent(0);\n\t\treturn menuByParent;\n\t}", "String getMenus(MmtConfig cfg);", "public Tree<Esysmeudef> getSysMenuTree(Long id);", "@Override\n\tpublic List<Tmenu> selectParentMenu() {\n\t\treturn menuMapper.selectParentMenu();\n\t}", "public List<MenuBean> queryMenuBytreepath(String id) {\n\t\treturn menuDao.queryMenuBytreepath(id);\r\n\t}", "public List getMenu() {\n createMenuGroupError = false;\n menulist = new Menus_List();\n return menulist.getMenu();\n }", "List<UmsMenu> selectAll();", "@Override\n public List<MMenu> getMenus()\n {\n return null;\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}", "List<Menu> listarMenuPorUsuario(String nombre);", "@Override\n\tpublic List<Tmenu> selectAllList() {\n\t\treturn menuMapper.selectAllList();\n\t}", "List<UmsMenu> list(Long parentId, Integer pageSize, Integer pageNum);", "public abstract Tree extractMenuBarItems (Object obj) throws SAFSException;", "public List<Menu> getMenu() {\n return mMenu;\n }", "public List<MasterMenu> getAll() {\n\t\treturn menuDao.getAll();\r\n\t}", "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}", "@Override\n\tpublic List<Menu> getAllMainMenu() {\n\t\treturn this.menuDao.getAllMainMenu();\n\t}", "private List<PSActionMenu> structureActions(Map<String, List<PSActionMenu>> folderActions)\n {\n boolean alwaysShowSubmenu = true;\n String skipFolders = PSServer.getProperty(SERVER_PROP_SKIP_FOLDERS);\n if (skipFolders != null)\n alwaysShowSubmenu = skipFolders.trim().equalsIgnoreCase(\"false\");\n List<PSActionMenu> retList = new ArrayList<>();\n List<PSActionMenu> thisLevelActions = folderActions.get(\"\");\n\n // add all without any further path\n if (thisLevelActions != null)\n {\n retList.addAll(thisLevelActions);\n alwaysShowSubmenu = (thisLevelActions.size() > 0);\n }\n // split out the first part of the path\n Map<String, List<String>> pathSplit = new HashMap<>();\n for (String path : folderActions.keySet())\n {\n if (path.length() > 0)\n {\n String left;\n String right;\n if (!path.contains(\"/\"))\n {\n left = path;\n right = \"\";\n }\n else\n {\n left = path.substring(0, path.indexOf(\"/\"));\n right = path.substring(path.indexOf(\"/\") + 1);\n }\n List<String> rights = pathSplit.get(left);\n if (rights == null)\n {\n rights = new ArrayList<>();\n pathSplit.put(left, rights);\n }\n rights.add(right);\n }\n }\n\n // loop through each direct subfolder\n Set<String> folders = pathSplit.keySet();\n\n for (String folder : folders)\n {\n Map<String, List<PSActionMenu>> submenuActions = new HashMap<>();\n // create a modified action map stripping off the first part of the\n // path\n for (String right : pathSplit.get(folder))\n {\n String testPath = folder;\n if (right.length() > 0)\n testPath += \"/\" + right;\n submenuActions.put(right, folderActions.get(testPath));\n }\n\n // recursive call to get results from next level\n List<PSActionMenu> subResult = structureActions(submenuActions);\n // if more than one direct subfolder with the same name create new\n // submenu\n // if only one add it directly to current level.\n\n if (folders.size() > 1 || alwaysShowSubmenu)\n {\n PSActionMenu subMenu = new PSActionMenu(\"sub-\" + folder, folder, PSMenuAction.TYPE_MENU, \"\",\n PSMenuAction.HANDLER_CLIENT, 0);\n subMenu.setChildren(subResult);\n retList.add(subMenu);\n }\n else\n {\n retList.addAll(subResult);\n }\n }\n\n Collections.sort(retList, actionComparator);\n return retList;\n }", "public abstract Tree extractMenuItems (Object obj) throws SAFSException;", "public void populateTreeTable() {\n root = new DefaultTreeNode(\"root\", null);\n Session session = HibernateUtil.getSessionFactory().openSession();\n try {\n String sqlMenu = \"SELECT o from Tblobjeto o WHERE o.tipoObjeto LIKE 'menu' ORDER BY o.idObjeto\";\n menus = session.createQuery(sqlMenu).list();\n\n for (Tblobjeto mnu : menus) {\n TreeNode nodeMenu = new DefaultTreeNode(mnu, root);\n nodes.add(nodeMenu);\n\n Criteria cMenu = session.createCriteria(Tblobjeto.class);\n cMenu.add(Restrictions.eq(\"tblobjeto\", mnu));\n subMenus = (List<Tblobjeto>) cMenu.list();\n\n for (Tblobjeto smnu : subMenus) {\n TreeNode nodeSubMenu = new DefaultTreeNode(smnu, nodeMenu);\n nodes.add(nodeSubMenu);\n\n Criteria cSubMenu = session.createCriteria(Tblobjeto.class);\n cSubMenu.add(Restrictions.eq(\"tblobjeto\", smnu));\n acciones = (List<Tblobjeto>) cSubMenu.list();\n\n for (Tblobjeto ac : acciones) {\n nodes.add(new DefaultTreeNode(ac, nodeSubMenu));\n }\n }\n }\n } catch (HibernateException e) {\n logger.throwing(getClass().getName(), \"ObjetosBean\", e);\n } finally {\n session.close();\n }\n }", "@Override\n\tpublic List<Tmenu> findList(Tmenu t) throws Exception {\n\t\tt.setTotalNum(menuMapper.findCount(t));\n\t\treturn menuMapper.findForList(t);\n\t}", "@Override\n\tpublic List<Menu> getList(Long parentId) {\n\t\tString hql = \" from Menu where 1=1 \";\n\t\tif (parentId != null) {\n\t\t\thql += \" and parentId=\" + parentId;\n\t\t}\n\t\thql+=\" order by menuOrder asc\";\n\t\tQuery query = getCurrentSession().createQuery(hql);\n\t\treturn query.list();\n\t}", "public List<MenuDTO> getMenuAll() throws NamingException, SQLException\n {\n Connection con = null;\n PreparedStatement pst =null;\n ResultSet rs = null;\n List<MenuDTO> list = null;\n try\n {\n con = dbultis.DBUtils.makeConnection();\n if(con!=null)\n {\n String sql = \"use [J3.L.P0013]\\n\"\n + \"select MenuID,[Menu Name],[Information Food], Price\\n\"\n + \"from MenuAndprice\";\n pst = con.prepareStatement(sql);\n rs = pst.executeQuery();\n if(rs!=null)\n {\n list = new ArrayList<>();\n while(rs.next())\n {\n int id;\n String menuName,informationFood;\n float price;\n id = rs.getInt(\"MenuID\");\n menuName = rs.getString(\"Menu Name\");\n informationFood = rs.getString(\"Information Food\");\n price = rs.getFloat(\"Price\");\n list.add(new MenuDTO(id, menuName, informationFood, price));\n }\n }\n }\n }\n finally\n {\n if(con!=null)\n {\n con.close();\n }\n }\n return list;\n }", "public Object getMenuStructure(Map<String, Object> params) {\r\n\t\treturn menuEditor.getMenuStructure(null, params);\r\n\t}", "@Override\n public Collection<String> getMenuCategories() {\n return emptyCollection;\n }", "@Transactional\r\n\tpublic List<Menu> getMenu() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\r\n\r\n\t\t// create a query\r\n\t\tQuery<Menu> theQuery = currentSession.createQuery(\"from Menu\", Menu.class);\r\n\r\n\t\t// execute query and get result list\r\n\t\tList<Menu> m = theQuery.getResultList();\r\n\t\t// return the results\r\n\t\treturn m;\r\n\r\n\t}", "ArrayList< LinkedList< Node > > levellist(Node root)\n{\n\t//results contain all the linkedlists containing all the nodes on each level of the tree\n\tArrayList< LinkedList< Node > > results = new ArrayList< LinkedList< Node > > ();\n\t//basic condition for the following built-in calling of recursive\n\tlevellist(root, results, 0);\n\t//because results is used as a parameter in the recursive and then we all need to return the output\n\treturn results;\n}", "private List<LevelInformation> getLevelListToRun(String path, SubMenuAnimation<Task<Void>> subMenu)\n throws IOException {\n List<LevelSpecificationReader> levelSpecificationReaderList = new ArrayList<>();\n LevelSetReader levelSetReader = new LevelSetReader(Paths.get(path));\n levelSetReader.fromReader(new FileReader(path));\n Map<String, List<String>> levelSetMap = levelSetReader.getMapToAdd();\n List<String> keyStringList = new ArrayList<>();\n List<String> messageStringList = new ArrayList<>();\n List<String> pathStringList = new ArrayList<>();\n\n for (Map.Entry<String, List<String>> entry : levelSetMap.entrySet()) {\n levelSpecificationReaderList.add(new LevelSpecificationReader(\n Paths.get(entry.getValue().get(1))));\n\n keyStringList.add(entry.getKey() + \"\");\n messageStringList.add(\"Press (\" + entry.getKey() + \") for \" + entry.getValue().get(0) + \" Level\");\n pathStringList.add(entry.getValue().get(1));\n\n\n }\n int i = 0;\n for (LevelSpecificationReader lsr : levelSpecificationReaderList) {\n subMenu.addSelection(keyStringList.get(i),\n messageStringList.get(i)\n , new StartTask(this,\n levelSpecificationReaderList.get(i).fromReader(new FileReader(pathStringList.get(i)))));\n i++;\n }\n\n return new ArrayList<>();\n }", "public List<Menu> findMenus(User user) {\n\n List<Resource> resources = findAll(new Sort(Sort.Direction.DESC,\"parentId\",\"weight\"));\n Set<String> userPermissions = userAuthService.findStringPermissions(user);\n Iterator<Resource> iter = resources.iterator();\n while (iter.hasNext()) {\n if (!hasPermission(iter.next(), userPermissions)) {\n iter.remove();\n }\n }\n return convertToMenus(resources);\n }", "public LinkedList<Menu_Item> getMenu_list() {\n\t\treturn menu_list;\n\t}", "public List<MenuItem> getMenuItems(){\n return menuItems;\n }", "private JMenuBar getMenuLista() {\n\t\tif (menuLista == null) {\n\t\t\tmenuLista = new JMenuBar();\n\t\t\tmenuLista.add(getFileMenu());\n\t\t\tmenuLista.add(getHelpMenu());\n\t\t}\n\t\treturn menuLista;\n\t}", "public void viewMenu() {\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\n\t\t\tmm.clear();\n\n\t\t\tmm = (ArrayList<AlacarteMenu>) ois.readObject();\n\n\t\t\tString leftAlignFormat = \"| %-10s | %-37s | %-5s | %-12s | %n\";\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\t\n\t\t\t\n\t\t\tCollections.sort(mm); \n\t\t\tfor (AlacarteMenu item : mm) {\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\n\t\t\t\tSystem.out.format(leftAlignFormat, item.getMenuName(), item.getMenuDesc(), item.getMenuPrice(),\n\t\t\t\t\t\titem.getMenuType());\n\t\t\t}\n\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t} catch (IOException e) {\n\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\t//System.out.println(\"No menu items found!\");\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException c) {\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "protected LinkedList<IMenuEntry> buildLeftMenu() {\n\n\t\tfinal LinkedList<IMenuEntry> menuItems = new LinkedList<IMenuEntry>();\n\n\t\tmenuItems.addAll(menuBuilder.getMenuList(\"bankportal\"));\n\t\t\n\t\t// Add Home Page to left menu\n\t\tfinal MenuEntry hmMenuEntry = new MenuEntry(\"left.menu.home\", BtpnConstants.PRIV_UI_HOME_BANK_PORTAL,\n\t\t\tBankPortalHomePage.class);\n\t\thmMenuEntry.setActive(true);\n\t\tmenuItems.add(hmMenuEntry);\n\n\t\t// Add Manage Profile Page to left menu\n\t\tfinal MenuEntry mpMenuEntry = new MenuEntry(\"left.menu.manageprofile\",\n\t\t\tBtpnConstants.PRIV_UI_BANK_MANAGE_PROFILE, ManageProfilePage.class);\n\t\tmpMenuEntry.setActive(false);\n\t\tmenuItems.add(mpMenuEntry);\n\t\t\n\t\t// Add Sample Menu 1\n\t\tfinal MenuEntry mpSample1 = new MenuEntry(\"left.menu.elimit\",\n\t\t\tBtpnConstants.PRIV_UI_BANK_LIMITEX, ElimitPage.class);\n\t\tmpSample1.setActive(false);\n\t\tmenuItems.add(mpSample1);\n\t\t\n\t\t// Add Sample Menu 2\n\t\tfinal MenuEntry mpSample2 = new MenuEntry(\"left.menu.approvalelimit\",\n\t\t\tBtpnConstants.PRIV_UI_BANK_LIMITEX_APPROVE, ElimitApprovePage.class);\n\t\tmpSample2.setActive(false);\n\t\tmenuItems.add(mpSample2);\n\t\t\n\t\t// Add Bank Admin Registration Page to left menu\n\t\tfinal MenuEntry bankAdmRegMenuEntry = new MenuEntry(\"left.menu.bank.admin.registration\",\n\t\t\tBtpnConstants.PRIV_UI_BANK_ADMIN_REGISTRATION, BankAdminRegistrationPage.class);\n\t\tbankAdmRegMenuEntry.setActive(false);\n\t\tmenuItems.add(bankAdmRegMenuEntry);\n\t\t\n\t\t// Add Custom Cash In Page to left menu\n\t\tfinal MenuEntry cashInCustomMenuEntry = new MenuEntry(\"left.menu.bank.portal.cashIn\",\n\t\t\tBtpnConstants.PRIV_CUSTOMER_CASHIN_AT_AGENT, BankPortalCustomCashInPage.class);\n\t\tcashInCustomMenuEntry.setActive(false);\n\t\tmenuItems.add(cashInCustomMenuEntry); \n\t\t\n\t\t// Add Custom Cash Out Page to left men\n\t\tfinal MenuEntry cashOutCustomMenuEntry = new MenuEntry(\"left.menu.bank.portal.cashOut\",\n\t\t\tBtpnConstants.PRIV_CUSTOMER_CASHOUT_AT_AGENT, BankPortalCustomCashOutPage.class);\n\t\tcashOutCustomMenuEntry.setActive(false);\n\t\tmenuItems.add(cashOutCustomMenuEntry);\n\n\t\t// Add Bank User Registration Page to left menu\n\t\tfinal MenuEntry bankUserRegMenuEntry = new MenuEntry(\"left.menu.bank.user.registration\",\n\t\t\tBtpnConstants.PRIV_UI_BANK_USER_REGISTRATION, BankUserRegistrationPage.class);\n\t\tbankUserRegMenuEntry.setActive(false);\n\t\tmenuItems.add(bankUserRegMenuEntry);\n\n\t\t// Add Change Language Page to left menu\n\t\tfinal MenuEntry approvalRegPage = new MenuEntry(\"left.menu.consumer.approval\",\n\t\t\tBtpnConstants.PRIV_UI_CUSTOMER_REGISTRATION_APPROVAL, BankCheckerApprovalPage.class);\n\t\tapprovalRegPage.setActive(false);\n\t\tmenuItems.add(approvalRegPage);\n\n\t\t// Registration Menu Entry\n\t\tfinal MenuEntry registrationMenuEntry = new MenuEntry(\"left.menu.consumerRegistration\",\n\t\t\tBtpnConstants.PRIV_UI_CUSTOMER_REGISTRATION, ConsumerRegistrationMobileNumberPage.class);\n\t\tregistrationMenuEntry.setActive(false);\n\t\tmenuItems.add(registrationMenuEntry);\n\n\t\tfinal MenuEntry officerAgentMenuEntry = new MenuEntry(\"left.menu.officer.approval\",\n\t\t\tBtpnConstants.PRIV_UI_OFFICER_AGENT_APPROVAL, BankCheckerApprovalPage.class);\n\t\tofficerAgentMenuEntry.setActive(false);\n\t\tmenuItems.add(officerAgentMenuEntry);\n\n\t\t// Add Activate/Deactivate Menu to left menu\n\t\tfinal MenuEntry activateDeactivateMenu = new MenuEntry(\"left.menu.bank.activate.deactivate.menu\",\n\t\t\tBtpnConstants.PRIV_UI_BANK_PORTAL_ACTIVATE_DEACTIVATE_MENU, ActivateDeactivateMenuPage.class);\n\t\tactivateDeactivateMenu.setActive(false);\n\t\tmenuItems.add(activateDeactivateMenu);\n\n\t\t//TOP Agen Cash IN\n\t\t/*\n\t\tfinal MenuEntry cashInMenuEntry = new MenuEntry(\"left.menu.bank.portal.AgentCashIn\",\n\t\t\tBtpnConstants.PRIV_TOPAGENT_CASHIN_AT_BANK, BankPortalCashinPage.class);\n\t\tcashInMenuEntry.setActive(false);\n\t\tmenuItems.add(cashInMenuEntry);\n\t\t*/\n\t\t//change to:\n\t\tfinal MenuEntry cashInMenuEntry = new MenuEntry(\"left.menu.bank.portal.AgentCashIn\",\n\t\t\tBtpnConstants.PRIV_TOPAGENT_CASHIN_AT_BANK, BankPortalTopAgentCashInPage.class);\n\t\tcashInMenuEntry.setActive(false);\n\t\tmenuItems.add(cashInMenuEntry);\n\t\t\n\t\t\n\t\t//TOP Agen Cash OUT\n\t\t/*\n\t\tfinal MenuEntry cashOutMenuEntry = new MenuEntry(\"left.menu.bank.portal.AgentCashOut\",\n\t\t\tBtpnConstants.PRIV_UI_TOP_AGENT_CASH_OUT, BankPortalCashOutPage.class);\n\t\tcashOutMenuEntry.setActive(false);\n\t\tmenuItems.add(cashOutMenuEntry);\n\t\t*/\n\t\t//change to\n\t\tfinal MenuEntry cashOutMenuEntry = new MenuEntry(\"left.menu.bank.portal.AgentCashOut\",\n\t\t\t\tBtpnConstants.PRIV_TOPAGENT_CASHOUT_AT_BANK, BankPortalTopAgentCashOutPage.class);\n\t\tcashOutMenuEntry.setActive(false);\n\t\tmenuItems.add(cashOutMenuEntry);\n\t\t\t\n\t\t\n\t\t// Approve Customer data\n\t\tfinal MenuEntry transReport = new MenuEntry(\"left.menu.transReport\",\n\t\t\tBtpnConstants.PRIV_UI_TRANSACTION_DETAILS_REPORT, TransactionDetailsReportPage.class);\n\t\ttransReport.setActive(false);\n\t\tmenuItems.add(transReport);\n\n\t\t// Add Change Language Page to left menu\n\t\tfinal MenuEntry clMenuEntry = new MenuEntry(\"left.menu.changeLanguage\", BtpnConstants.PRIV_UI_CHANGE_LANGUAGE,\n\t\t\tChangeLanguagePage.class);\n\t\tclMenuEntry.setActive(false);\n\t\tmenuItems.add(clMenuEntry);\n\t\t\n\t\t// Add Search Salary upload to left menu\n\t\t/*//jadi satu di : UI_BATCH_UPLOAD_CHECKER_PRIVILEGE\n\t\tfinal MenuEntry batchTrans = new MenuEntry(\"left.menu.batch.transaction\",\n\t\t\tBtpnConstants.PRIV_UI_BATCH_TRANSACTION_UPLOAD, SearchSalaryDataPage.class);\n\t\tbatchTrans.setActive(false);\n\t\tmenuItems.add(batchTrans);\n\t\t*/\n\t\t\n\t\t// Add Search Salary upload to left menu\n\t\t/* //jadi satu di : UI_BATCH_UPLOAD_CHECKER_PRIVILEGE\n\t\t final MenuEntry searchTrans = new MenuEntry(\"left.menu.search.transaction\",\n\t\t\tBtpnConstants.PRIV_UI_SEARCH_TRANSACTION_DATA, SearchSalaryDataPage.class);\n\t\tsearchTrans.setActive(false);\n\t\tmenuItems.add(searchTrans);\n\t\t*/\n\t\t\n\t\t// Add Manage Products Menu\n\t\tfinal MenuEntry mgProductsMenuEntry = new MenuEntry(\"left.menu.manageProducts\",\n\t\t\tBtpnConstants.PRIV_UI_MANAGE_PRODUCTS, ManageProductsPage.class);\n\t\tmgProductsMenuEntry.setActive(false);\n\t\tmenuItems.add(mgProductsMenuEntry);\n\n\t\t// Add Manage Products Menu\n\t\tfinal MenuEntry mgLimitMenuEntry = new MenuEntry(\"left.menu.manageLimit\", BtpnConstants.PRIV_UI_MANAGE_LIMIT,\n\t\t\tManageLimitPage.class);\n\t\tmgLimitMenuEntry.setActive(false);\n\t\tmenuItems.add(mgLimitMenuEntry);\n\n\t\t// Add Manage Fee Page\n\t\tfinal MenuEntry mgFeeEntry = new MenuEntry(\"left.menu.manageFee\", BtpnConstants.PRIV_UI_MANAGE_FEE,\n\t\t\t\tManageCustomUseCaseFeePage.class);\n\t\tmgFeeEntry.setActive(false); \n\t\tmenuItems.add(mgFeeEntry);\n\n\n\t\t// Add Approve Fee Page\n\t\tfinal MenuEntry aprFeeEntry = new MenuEntry(\"left.menu.approveFee\", BtpnConstants.PRIV_UI_MANAGE_FEE_APPROVAL,\n\t\t\t\tManageCustomUseCaseFeeApprovePage.class);\n\t\tmgFeeEntry.setActive(false); \n\t\tmenuItems.add(aprFeeEntry);\n\t\t\n\t\t// Add BillPayment by : Imam\n\t\tfinal MenuEntry pgBillPayment = new MenuEntry(\"left.menu.billPayment\", BtpnConstants.PRIV_UI_BANK_PORTAL_BILL_PAYMENT,\n\t\t\t\tBankBillPaymentPage.class);\n\t\tpgBillPayment.setActive(false); \n\t\tmenuItems.add(pgBillPayment);\n\t\t\n\t\t// Add Manage Biller Fee Page \n\t\t//@author :Andi Samalangi ManageCustomBillerFeePage, \n\t\t//@modified: Feny -> dipindahkan ke ManageBillPaymentFee\n\t\tfinal MenuEntry mgBillerFeeEntry = new MenuEntry(\"left.menu.manageBillPaymentFee\", BtpnConstants.PRIV_UI_MANAGE_BILL_PAYMENT_FEE,\n\t\t\t\tManageBillPaymentFeePage.class);\n\t\tmgBillerFeeEntry.setActive(false); \n\t\tmenuItems.add(mgBillerFeeEntry);\n\t\t\n\t\t// Add Approve Biller Fee page\n\t\tfinal MenuEntry mgAppBillerFeeEntry = new MenuEntry(\"left.menu.manageAppBillPaymentFee\", BtpnConstants.PRIV_UI_MANAGE_BILL_PAYMENT_FEE_APPROVAL,\n\t\t\t\tManageBillPaymentFeeApprovePage.class);\n\t\tmgAppBillerFeeEntry.setActive(false); \n\t\tmenuItems.add(mgAppBillerFeeEntry);\n\t\t\n\t\t// Add Manage Fee Page\n\t\tfinal MenuEntry mgAttFeeEntry = new MenuEntry(\"left.menu.manageAttFee\",\n\t\t\tBtpnConstants.PRIV_UI_MANAGE_AIRTIME_TOPUP_FEE, ManageAirtimeTopupFeePage.class);\n\t\tmgAttFeeEntry.setActive(false);\n\t\tmenuItems.add(mgAttFeeEntry);\n\n\t\t// Add Manage Products Menu\n\t\tfinal MenuEntry apprvProductsMenuEntry = new MenuEntry(\"left.menu.approveProducts\",\n\t\t\tBtpnConstants.PRIV_UI_APPROVE_PRODUCTS, ManageProductsApprovePage.class);\n\t\tapprvProductsMenuEntry.setActive(false);\n\t\tmenuItems.add(apprvProductsMenuEntry);\n\t\t\n\t\t// Add Approve Fee/Limit Menu\n\t\tfinal MenuEntry apprvfeeLimitMenuEntry = new MenuEntry(\"left.menu.approve.fee.limit\",\n\t\t\tBtpnConstants.PRIV_UI_APPROVE_FEE_LIMIT, ApproveFeePage.class);\n\t\tapprvfeeLimitMenuEntry.setActive(false);\n\t\tmenuItems.add(apprvfeeLimitMenuEntry);\n\n\t\t// Add Approve Fee/Limit Menu\n\t\tfinal MenuEntry childSubAgentApprovalMenuEntry = new MenuEntry(\"left.menu.child.sub.agent.approval\",\n\t\t\tBtpnConstants.PRIV_UI_CHILD_SUB_AGENT_APPROVAL, BankCheckerApprovalPage.class);\n\t\tchildSubAgentApprovalMenuEntry.setActive(false);\n\t\tmenuItems.add(childSubAgentApprovalMenuEntry);\n\t\t\n\t\t// Add Change Language Page to left menu\n\t\tfinal MenuEntry topupRegPage = new MenuEntry(\"left.menu.topup.agent.registration\",\n\t\t\tBtpnConstants.PRIV_UI_TOP_AGENT_REGISTRATION, TopAgentRegistrationMobileNumberPage.class);\n\t\ttopupRegPage.setActive(false);\n\t\tmenuItems.add(topupRegPage);\n\n\t\t// Add Transaction Reversal Page to left menu\n//\t\tfinal MenuEntry manageGLTransaction = new MenuEntry(\"left.menu.manageGL\", BtpnConstants.PRIV_UI_MANAGE_GL,\n//\t\t\tManageGeneralLedgerPage.class);\n//\t\tmanageGLTransaction.setActive(false);\n//\t\tmenuItems.add(manageGLTransaction);\n\t\t\n\t\t// Add Manage GL Page to left menu\n\t\tfinal MenuEntry manageGLTransaction = new MenuEntry(\"left.menu.manageGL\", BtpnConstants.PRIV_UI_MANAGE_GL,\n\t\t\t\tManageCustomGLPage.class);\n\t\tmanageGLTransaction.setActive(false);\n\t\tmenuItems.add(manageGLTransaction);\n\n\t\t// Add Transaction Reversal Page to left menu\n\t\tfinal MenuEntry approveGL = new MenuEntry(\"left.menu.approveGL\", BtpnConstants.PRIV_UI_APPROVE_GL,\n\t\t\tManageCustomGLApprovePage.class);\n\t\tapproveGL.setActive(false);\n\t\tmenuItems.add(approveGL);\n\n\t\t// Add Transaction GL\n\t\tfinal MenuEntry transactionGL = new MenuEntry(\"left.menu.transactionGL\",\n\t\t\tBtpnConstants.PRIV_UI_MANAGE_TRANSACTION_GL, TransactionGeneralLedgerPage.class);\n\t\ttransactionGL.setActive(false);\n\t\tmenuItems.add(transactionGL);\n\n\t\t// Add Transaction GL\n\t\tfinal MenuEntry approveTransactionGL = new MenuEntry(\"left.menu.approveTransactionGL\",\n\t\t\tBtpnConstants.PRIV_UI_APPROVE_TRANSACTION_GL, ApproveTransactionGeneralLedgerPage.class);\n\t\tapproveTransactionGL.setActive(false);\n\t\tmenuItems.add(approveTransactionGL);\n\n\t\t// Add Salary Upload to left menu\n\t\tfinal MenuEntry salaryUpload = new MenuEntry(\"left.menu.bulk.upload\", \n\t\t\t\"UI_BATCH_UPLOAD_MAKER_PRIVILEGE\", SalaryUploadPage.class);\n\t\tsalaryUpload.setActive(false);\n\t\tmenuItems.add(salaryUpload);\n\n\t\t// Add Search Salary upload to left menu\n\t\tfinal MenuEntry searchSalaryUpload = new MenuEntry(\"left.menu.bulk.search\",\n\t\t\t\"UI_BATCH_UPLOAD_CHECKER_PRIVILEGE\", SearchSalaryDataPage.class);\n\t\tsearchSalaryUpload.setActive(false);\n\t\tmenuItems.add(searchSalaryUpload);\n\n\t\t// Add Transaction Reversal Page to left menu\n\t\tfinal MenuEntry transactionReversalPage = new MenuEntry(\"left.menu.transactionReversal\",\n\t\t\tBtpnConstants.PRIV_UI_TRANSACTION_REVERSAL, TransactionReversalPage.class);\n\t\ttransactionReversalPage.setActive(false);\n\t\tmenuItems.add(transactionReversalPage);\n\n\t\t// Add Approve Transaction Reversal Page to left menu\n\t\tfinal MenuEntry approveTransactionReversalPage = new MenuEntry(\"left.menu.approveTransactionReversal\",\n\t\t\tBtpnConstants.PRIV_UI_APPROVE_TRANSACTION_REVERSAL, ApproveTxnReversalPage.class);\n\t\tapproveTransactionReversalPage.setActive(false);\n\t\tmenuItems.add(approveTransactionReversalPage);\n\n\t\t// Add Approve MSISDN Page to left menu\n\t\tfinal MenuEntry approveMsisdnPage = new MenuEntry(\"left.menu.approveMsisdn\",\n\t\t\tBtpnConstants.PRIV_CHANGE_MSISDN_CHECKER, ApproveMsisdnPage.class);\n\t\tapproveMsisdnPage.setActive(false);\n\t\tmenuItems.add(approveMsisdnPage);\n\n\t\t/*// jadi satu : UI_BATCH_UPLOAD_MAKER_PRIVILEGE\n\t\tfinal MenuEntry consumerUpload = new MenuEntry(\"left.menu.consumerUpload\",\n\t\t\tBtpnConstants.PRIV_UI_CUSTOMER_UPLOAD, RegUploadPage.class);\n\t\tconsumerUpload.setActive(false);\n\t\tmenuItems.add(consumerUpload);\n\t\t*/\n\t\t\n\t\t/*//jadi satu di : UI_BATCH_UPLOAD_CHECKER_PRIVILEGE\n\t\tfinal MenuEntry searchConsumerRegData = new MenuEntry(\"left.menu.searchConsumerRegData\",\n\t\t\tBtpnConstants.PRIV_UI_SEARCH_CUSTOMER_DATA, SearchRegDataPage.class);\n\t\tsearchConsumerRegData.setActive(false);\n\t\tmenuItems.add(searchConsumerRegData);\n\t\t*/\n\n\t\t// Add Manage Interest Page\n\t\tfinal MenuEntry mgIntEntry = new MenuEntry(\"left.menu.manageInterest\",\n\t\t\tBtpnConstants.PRIV_INTEREST_MAKER, ManageInterestPage.class);\n\t\tmgIntEntry.setActive(false);\n\t\tmenuItems.add(mgIntEntry);\n\t\t\n\t\t// Add Manage Interest Tax Page\n\t\tfinal MenuEntry mgIntTaxEntry = new MenuEntry(\"left.menu.manageInterestTax\",\n\t\t\tBtpnConstants.PRIV_INTEREST_TAX_MAKER, ManageInterestTaxPage.class);\n\t\tmgIntEntry.setActive(false);\n\t\tmenuItems.add(mgIntTaxEntry);\n\t\t\n\t\t// Add Manage Interest Approve Page\n\t\tfinal MenuEntry mgIntAppEntry = new MenuEntry(\"left.menu.manageInterestApprove\",\n\t\t\tBtpnConstants.PRIV_INTEREST_CHECKER, ManageInterestApprovePage.class);\n\t\tmgIntAppEntry.setActive(false);\n\t\tmenuItems.add(mgIntAppEntry);\n\t\t\n\t\t// Add Manage Interest Tax Approve Page\n\t\tfinal MenuEntry mgIntTaxAppEntry = new MenuEntry(\"left.menu.manageInterestTaxApprove\",\n\t\t\tBtpnConstants.PRIV_INTEREST_TAX_CHECKER, ManageInterestTaxApprovePage.class);\n\t\tmgIntTaxAppEntry.setActive(false);\n\t\tmenuItems.add(mgIntTaxAppEntry);\n\t\t\n\t\t\n\t\tfinal MenuEntry holidayCalender = new MenuEntry(\"left.menu.holidayCalender\",\n\t\t\tBtpnConstants.PRIV_UI_HOLIDAY_CALENDAR, HolidayCalender.class);\n\t\tholidayCalender.setActive(false);\n\t\tmenuItems.add(holidayCalender);\n\n\t\t// Approve Holiday Calendar Menu\n\t\tfinal MenuEntry approveHolidayCalendar = new MenuEntry(\"left.menu.pproveHolidays\",\n\t\t\tBtpnConstants.PRIV_UI_HOLIDAY_CALENDAR_APPROVAL, ApproveHolidayCalendarPage.class);\n\t\tapproveHolidayCalendar.setActive(false);\n\t\tmenuItems.add(approveHolidayCalendar);\n\n\t\t// FIXME Approve Customer data\n//\t\tfinal MenuEntry approveCustomerData = new MenuEntry(\"left.menu.approveCustomerData\",\n//\t\t\tBtpnConstants.PRIV_UI_APPROVE_CUSTOMER_DATA, ApproveCustomerData.class);\n//\t\tapproveCustomerData.setActive(false);\n//\t\tmenuItems.add(approveCustomerData);\n\t\t\n\t\t// FIXME Approve Customer data\n//\t\tfinal MenuEntry approveAllAgentsData = new MenuEntry(\"left.menu.approveAgentData\",\n//\t\t\tBtpnConstants.PRIV_UI_APPROVE_ALL_AGENTS_DATA, ApproveCustomerData.class);\n//\t\tapproveCustomerData.setActive(false);\n//\t\tmenuItems.add(approveAllAgentsData);\n\n\t\t// Help\n\t\tfinal MenuEntry addHelp = new MenuEntry(\"left.menu.addHelp\", BtpnConstants.PRIV_UI_ADD_HELP, AddHelpPage.class);\n\t\taddHelp.setActive(false);\n\t\tmenuItems.add(addHelp);\n\n\t\treturn menuItems;\n\t}", "public String[] getTreeNames();", "public TreeView<String> getTagsMenu(){\n return TREE_VIEW;\n }", "private JTree getTreeMenu( )\n {\n if( treeMenu == null )\n {\n // treeMenu = new JTree( window.getMenuTree( ) );\n\n MenuItem rootMenu = window.getMenuTree( );\n DefaultMutableTreeNode rootDMTN = new DefaultMutableTreeNode( rootMenu );\n\n loadNodes( rootDMTN, rootMenu );\n\n treeMenu = new JTree( rootDMTN );\n treeMenu.setModel( new menuItemModel( ( TreeNode )treeMenu.getModel( ).getRoot( ) ) );\n treeMenu.setRootVisible( false );\n // treeMenu.getModel( ).addTreeModelListener( new menuItemListener( treeMenu ) );\n treeMenu.setCellRenderer( new MenuTeeRender( ) );\n // treeMenu.setCellEditor( new menuItemEditor( new JTextField( \"CONSTRUCTOR!!!\") ) );\n treeMenu.setEditable( true );// TODO cambiar para que solo lo tenga el administrador\n treeMenu.setComponentOrientation( ComponentOrientation.LEFT_TO_RIGHT );\n treeMenu.setRootVisible( true );\n treeMenu.addMouseListener( new MouseListener( )// TODO poner listener para el teclado\n {\n\n public void mouseReleased( MouseEvent e )\n {\n\n }\n\n public void mousePressed( MouseEvent e )\n {\n\n }\n\n public void mouseExited( MouseEvent e )\n {\n\n }\n\n public void mouseEntered( MouseEvent e )\n {\n\n }\n\n public void mouseClicked( MouseEvent e )\n {\n TreePath path = treeMenu.getPathForLocation( e.getX( ), e.getY( ) );\n\n if( path != null )\n {\n selectedNode = path;\n String path2 = path.toString( ).replace( \"[\", \"\" ).replace( \"]\", \"\" ).replace( \", \", \",\" );\n if( e.getButton( ) == MouseEvent.BUTTON3 && window.getSelectedItem( ).getLevel( ) == MenuItem.LEVEl_CATEGORY )\n {\n popupmenuCategory.show( e.getComponent( ), e.getX( ), e.getY( ) );\n }\n else if( e.getButton( ) == MouseEvent.BUTTON3 && window.getSelectedItem( ).getLevel( ) == MenuItem.LEVEl_ITEM )\n {\n popupmenuItem.show( e.getComponent( ), e.getX( ), e.getY( ) );\n }\n else if( e.getButton( ) == MouseEvent.BUTTON3 && window.getSelectedItem( ).getLevel( ) == MenuItem.LEVEL_MENU )\n {\n popupmenuMenu.show( e.getComponent( ), e.getX( ), e.getY( ) );\n }\n else\n {\n window.setSelectedItem( getMenuItembyPath( selectedNode ) );\n }\n }\n }\n } );\n }\n treeMenu.addKeyListener( new KeyListener( )\n {\n @Override\n public void keyTyped( KeyEvent e )\n {\n }\n @Override\n public void keyReleased( KeyEvent e )\n {\n selectedNode = treeMenu.getSelectionPath( );\n window.setSelectedItem( getMenuItembyPath( selectedNode ) );\n }\n @Override\n public void keyPressed( KeyEvent e )\n {\n }\n } );\n return treeMenu;\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 }", "@Override\r\n\tpublic List<Map<String, Object>> leftmenuList(Map<String, Object> map) throws Exception {\n\t\treturn leftmenuDAO.leftmenuList(map);\r\n\t}", "@Override\n public List<WebElement> getSubMenu() {\n\n final List<WebElement> subMenus = DriverConfig.getDriver().findElements(\n By.xpath(\"//*[@id='submenu']/a\"));\n if (subMenus != null) {\n for (final WebElement webElement : subMenus) {\n DriverConfig.setLogString(\"SubMenu :\" + webElement.getText(), true);\n }\n }\n return subMenus;\n }", "@Override\n\tpublic List<Tmenu> selectMenuByUser(Tadmin admin) {\n\t\treturn menuMapper.selectMenuByUser(admin);\n\t}", "@Override\n\tpublic List<Function> findMenu() {\n\t\tUser user = BosContext.getLoginUser();\n\t\tif(user.getUsername().equals(\"admin\")){\n\t\t\treturn functionDao.findAllMenu();\n\t\t}else{\n\t\t\treturn functionDao.findMenuByUserId(user.getId());\n\t\t}\n\t\t\n\t}", "public ArrayList<Node> getList(){\n \treturn this.children;\n }", "@Override\n\tpublic <K extends BasePojo> List<K> getTreeViewList() throws Exception {\n\t\treturn null;\n\t}", "public List<T> levelorder() {\n ArrayList<T> list = new ArrayList<T>();\n Queue<BSTNode<T>> queue = new LinkedList<>();\n if (root != null) {\n queue.add(root);\n levelorderHelper(list, queue);\n }\n return list;\n }", "public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}", "private void getMenu() {\n compositeDisposable.add(mcApi.getMenu()\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Consumer<List<Category>>() {\n @Override\n public void accept(List<Category> categories) throws Exception {\n displayMenu(categories);\n }\n\n }));\n }", "public List<Component> getAllTree() {\n\t\tList<Component> ret = new ArrayList<>();\n\t\tret.add(this);\n\t\tfor (Component c : getChilds()) {\n\t\t\tList<Component> childs = c.getAllTree();\n\t\t\t// retire les doublons\n\t\t\tfor (Component c1 : childs) {\n\t\t\t\tif (!ret.contains(c1)) {\n\t\t\t\t\tret.add(c1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "Collection<Tree<V, E>> getTrees();", "public List<TreeNode> getChildrenNodes();", "public Iterable<Entity> getAllSubMenus() {\n\t\treturn new UtilDataSourceAPI().listEntities(KIND_SUBMENU, null, null);\n\t }", "private void showFullMenu() {\n final Menu[] menu = MenuFactory.showMenu();\n System.out.println(\"Food_Id\" + \"\\t\" + \"Food_Name\" + \"\\t\" + \"Price\" + \"\\t\" + \"Prepration_Time\");\n for (final Menu m : menu) {\n System.out.println(m.getFoodId() + \"\\t\" + m.getFoodName() + \"\\t\" + m.getPrice() + \"\\t\" + m.getPreprationTime());\n }\n }", "protected abstract List<OpcionMenu> inicializarOpcionesMenu();", "@Override\r\n\tpublic List<TPortalMenu> getAllPortalMenu() throws SQLException {\n\t\tString sql = \"SELECT `ID`, `MENU_ID`, `MENU_NAME`, `PARAM4`, `PARAM5` \" +\r\n\t\t\t\t\"FROM `T_SCS_PORTAL_MENU`;\";\r\n\t\tBeanPropertyRowMapper<TPortalMenu> subActMapper = new BeanPropertyRowMapper<TPortalMenu>(TPortalMenu.class);\r\n\t \r\n\t\tList<TPortalMenu> tPortalList = null;\r\n\t\ttry {\r\n\t\t\ttPortalList = this.getJdbcTemplate().query(sql, new RowMapperResultSetExtractor<TPortalMenu>(subActMapper));\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new SQLException(\"query error,error msg:\" + e.getMessage());\r\n\t\t}\r\n\t\treturn tPortalList;\r\n\t}", "@Override\n\tpublic List<Menu> getListByUsername(String username) {\n\t\tString hql = \" from Menu where enable=1 and autoId in(select menuId from GroupMenu where groupId in(SELECT groupId FROM UserMenuGroup where username='\"\n\t\t\t\t+ username + \"'))\";\n\t\thql+=\" order by menuOrder asc\";\n\t\tQuery query = getCurrentSession().createQuery(hql);\n\t\treturn query.list();\n\t}", "public static ArrayList<Level> loadAll(){\n\t\tArrayList<Level> all = new ArrayList<Level>();\n\t\tboolean unlocked =false;\n\t\ttry{\n\t\t\tFile dir = new File(\"levels/\");\n\t\t\tFile[] directoryListing = dir.listFiles();\n\t\t\tif(directoryListing != null){ // Use default level directory to create buttons\n\t\t\t\tfor(File child : directoryListing){\n\t\t\t\t\tif (child.getName().equals(\".DS_Store\")) continue;\n\t\t\t\t\tLevelState tmp = new LevelState();\n\t\t\t\t\ttmp.loadState(child.getName());\n\t\t\t\t\tString levelType = tmp.getLevelType();\n\t\t\t\t\tif(levelType != null){\n\t\t\t\t\t\tLevel newLevel = null;\n\t\t\t\t\t\tif(levelType.equals(LevelEditorState.PUZZLE)){\n\t\t\t\t\t\t\tnewLevel = new PuzzleLevel(tmp);\n\t\t\t\t\t\t} else if(levelType.equals(LevelEditorState.LIGHTNING)) {\n\t\t\t\t\t\t\tnewLevel = new LightningLevel(tmp);\n\t\t\t\t\t\t} else if(levelType.equals(LevelEditorState.RELEASE)) {\n\t\t\t\t\t\t\tnewLevel = new ReleaseLevel(tmp);\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(newLevel.getAchievement().getAchievement()>0){\n\t\t\t\t\t\t\tunlocked = true;\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tunlocked = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(unlocked){\n\t\t\t\t\t\t\tnewLevel.setLocked(false);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tnewLevel.setLocked(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tall.add(newLevel);\n\t\t\t\t\t}\n\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\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn all;\n\n\t}", "@Override\r\n\tpublic List<Map<String, Object>> s_listLeftmenu(Map<String, Object> map) throws Exception {\n\t\treturn leftmenuDAO.s_listLeftmenu(map);\r\n\t}", "@Override\n\tpublic List<Menu> getListByUsernameAndParentId(String username,\n\t\t\tLong parentId) {\n\t\tString hql = \" from Menu where enable=1 and autoId in(select menuId from GroupMenu where groupId in(SELECT groupId FROM UserMenuGroup where username='\"\n\t\t\t\t+ username + \"')) and parentId=\" + parentId;\n\t\thql+=\" order by menuOrder asc\";\n\t\tQuery query = getCurrentSession().createQuery(hql);\n\t\treturn query.list();\n\t}", "public static void printMenu() {\n System.out.print(\"\\n(A)dd Item (R)emove Item (F)ind Item (I)nitialize Tree (N)ew Tree (Q)uit\\n\");\n }", "public List<FeatureDataBean> getAllMenuMenuitemFeatures() throws GenericDatabaseException {\n List<String> MenutypesRequired = new ArrayList<>();\n MenutypesRequired.add(\"Menu\");\n MenutypesRequired.add(\"MenuItem\");\n return (convertFeatureDataBeanToFeatureModel(featureService.retrieveAllFeaturesByListOfMenuType(MenutypesRequired, null, true, false)));\n }", "public ArrayList<AlacarteMenu> getAlacarteMenu() {\n\t\tArrayList<AlacarteMenu> mmForOrders = new ArrayList<AlacarteMenu>();\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\tmmForOrders.clear();\n\t\t\tmmForOrders = (ArrayList<AlacarteMenu>) ois.readObject();\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t} catch (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} catch (ClassNotFoundException c) {\n\t\t\tc.printStackTrace();\n\t\t}\n\t\treturn mmForOrders;\n\t}", "public ArrayList<MenuItem> getMenuItems() throws SQLException\r\n {\r\n ArrayList<MenuItem> result = new ArrayList<>();\r\n String sqlQuery = \"SELECT * FROM menuitems\";\r\n myRs = myStmt.executeQuery(sqlQuery);\r\n while (myRs.next()) {\r\n result.add(new MenuItem(\r\n myRs.getString(1), \r\n myRs.getString(2), \r\n myRs.getString(3), \r\n Integer.parseInt(myRs.getString(4)), \r\n Integer.parseInt(myRs.getString(5)), \r\n Float.parseFloat(myRs.getString(6)), \r\n Float.parseFloat(myRs.getString(7)), \r\n Float.parseFloat(myRs.getString(8)), \r\n Float.parseFloat(myRs.getString(9)), \r\n Integer.parseInt(myRs.getString(10))\r\n ));\r\n }\r\n return result;\r\n }", "public ResultMap<BaseNode> listChildren();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n Stack<StackItem> stack = new Stack<>();\n List<MenuItem> items = this.items;\n Collections.reverse(items);\n for (MenuItem i : items) {\n stack.push(new StackItem(i, 0));\n }\n while (stack.size() != 0) {\n StackItem stackItem = stack.pop();\n sb.append(this.getMenuItemRepresentation(stackItem.getMenuItem().toString(), stackItem.getLevel()));\n List<MenuItem> childs = stackItem.getMenuItem().getChilds();\n Collections.reverse(childs);\n for (MenuItem child : childs) {\n stack.push(new StackItem(child, stackItem.getLevel() + 1));\n }\n }\n return sb.toString();\n }", "@Override\r\n\tpublic void buildTree() {\r\n\t\t\r\n\t\t// root level \r\n\t\trootNode = new TreeNode<String>(\"\");\r\n\t\t\r\n\t\t//first level\r\n\t\tinsert(\".\", \"e\");\r\n\t\tinsert(\"-\", \"t\");\r\n\t\t\r\n\t\t//second level\r\n\t\t\r\n\t\tinsert(\". .\", \"i\");\r\n\t\tinsert(\".-\", \"a\");\r\n\t\tinsert(\"-.\", \"n\"); \r\n\t\tinsert(\"--\", \"m\");\r\n\t\t\r\n\t\t//third level\r\n\t\tinsert(\"...\", \"s\");\r\n\t\tinsert(\"..-\", \"u\");\r\n\t\tinsert(\".-.\", \"r\");\r\n\t\tinsert(\".--\", \"w\");\r\n\t\tinsert(\"-..\", \"d\");\r\n\t\tinsert(\"-.-\", \"k\");\r\n\t\tinsert(\"--.\", \"g\");\r\n\t\tinsert(\"---\", \"o\");\r\n\t\t\r\n\t\t//fourth level\r\n\t\tinsert(\"....\", \"h\");\r\n\t\tinsert(\"...-\", \"v\");\r\n\t\tinsert(\"..-.\", \"f\");\r\n\t\tinsert(\".-..\", \"l\");\r\n\t\tinsert(\".--.\", \"p\");\r\n\t\tinsert(\".---\", \"j\");\r\n\t\tinsert(\"-...\", \"b\");\r\n\t\tinsert(\"-..-\", \"x\");\r\n\t\tinsert(\"-.-.\", \"c\");\r\n\t\tinsert(\"-.--\", \"y\");\r\n\t\tinsert(\"--..\", \"z\");\r\n\t\tinsert(\"--.-\", \"q\");\r\n\t\t\r\n\t}", "public List<Tree> getTrees() {\n return trees;\n }", "private void showFullMenu() {\r\n Menu[] menu = MenuFactory.showMenu();\r\n System.out.println(\"Menu_Id \\t Food_Name \\t Food_Type \\t\\t Calories \\t Food_Amount\");\r\n for (Menu m : menu) {\r\n System.out.println(m.getFoodId() + \"\\t\\t\" + m.getFoodName() + \"\\t\\t\" + m.getFoodType() + \"\\t\\t\\t\" + m.getCalories() + \"\\t\\t\" + m.getFoodAmt());\r\n }\r\n }", "public void list() {\n\t\ttraverseInOrder(root);\n\t}", "public List<OpcionMenu> getElementosMenu()\n\t{\n\t\treturn elementosMenu;\n\t}", "public String getParentMenu();", "private void createMenuList() {\n SlideMenuItem menuItem0 = new SlideMenuItem(ContentFragment.CLOSE, R.drawable.ic_action_remove);\n list.add(menuItem0);\n SlideMenuItem menuItem = new SlideMenuItem(ContentFragment.GAMES, R.drawable.ic_action_gamepad);\n list.add(menuItem);\n\n SlideMenuItem menuItem3 = new SlideMenuItem(ContentFragment.FRIENDS, R.drawable.ic_action_person);\n list.add(menuItem3);\n SlideMenuItem menuItem4 = new SlideMenuItem(ContentFragment.SETTINGS, R.drawable.ic_action_settings);\n list.add(menuItem4);\n }", "ReturnCode createMenus(MmtConfig cfg, String menuJson);", "private Content getTreeForClassHelper(Type type) {\n Content li = new HtmlTree(HtmlTag.LI);\n if (type.equals(classDoc)) {\n Content typeParameters = getTypeParameterLinks(\n new LinkInfoImpl(configuration, LinkInfoImpl.Kind.TREE,\n classDoc));\n if (configuration.shouldExcludeQualifier(\n classDoc.containingPackage().name())) {\n li.addContent(type.asClassDoc().name());\n li.addContent(typeParameters);\n } else {\n li.addContent(type.asClassDoc().qualifiedName());\n li.addContent(typeParameters);\n }\n } else {\n Content link = getLink(new LinkInfoImpl(configuration,\n LinkInfoImpl.Kind.CLASS_TREE_PARENT, type)\n .label(configuration.getClassName(type.asClassDoc())));\n li.addContent(link);\n }\n return li;\n }", "private static void treeList(TreeNode node) {\n if (node != null) {\n treeList(node.left); // Print items in left subtree.\n System.out.println(\" \" + node.item); // Print item in the node.\n treeList(node.right); // Print items in the right subtree.\n }\n }", "private void buildeAccessoryTree() {\n\t DefaultKingdeeTreeNode root = new DefaultKingdeeTreeNode(\"版模类型\");\r\n\t DefaultKingdeeTreeNode parentrNode = root;\r\n\t DefaultKingdeeTreeNode currentNode = null;\r\n\t \r\n//\t for(AccessoryTypeEnum s : AccessoryTypeEnum.getEnumList()){\r\n//\t\t\r\n//\t }\r\n\t List accessorylist =AccessoryTypeEnum.getEnumList();\r\n\t Class clz = AccessoryTypeEnum.class;\r\n\t for (int i=0;i<accessorylist.size();i++) {\r\n\t\tSystem.out.println(accessorylist.get(i));\r\n\t\tcurrentNode = new DefaultKingdeeTreeNode(accessorylist.get(i));\r\n\t\tcurrentNode.setUserObject(accessorylist.get(i));\r\n\r\n\t\tparentrNode.add(currentNode);\r\n\t }\r\n\t kDTree1.setModel(new KingdeeTreeModel(root));\r\n\t kDTree1.setSelectionNode(root);\r\n\t \r\n\t}", "public static void main(String[] args){\n TreeNode root = new TreeNode(1);\n root.left = new TreeNode(2);\n root.right = new TreeNode(2);\n root.left.left = new TreeNode(6);\n root.left.right = new TreeNode(4);\n root.right.left = new TreeNode(4);\n root.right.right = new TreeNode(6);\n \n System.out.println(levelOrder(root)); // output: [[1], [2, 2], [6, 4, 4, 6]]\n }", "public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < depth; i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(p.getValue());\n\t\t}\n\t}", "private Content getClassInheritenceTree(Type type) {\n Type sup;\n HtmlTree classTreeUl = new HtmlTree(HtmlTag.UL);\n classTreeUl.addStyle(HtmlStyle.inheritance);\n Content liTree = null;\n do {\n sup = Util.getFirstVisibleSuperClass(\n type instanceof ClassDoc ? (ClassDoc) type : type.asClassDoc(),\n configuration);\n if (sup != null) {\n HtmlTree ul = new HtmlTree(HtmlTag.UL);\n ul.addStyle(HtmlStyle.inheritance);\n ul.addContent(getTreeForClassHelper(type));\n if (liTree != null)\n ul.addContent(liTree);\n Content li = HtmlTree.LI(ul);\n liTree = li;\n type = sup;\n }\n else\n classTreeUl.addContent(getTreeForClassHelper(type));\n }\n while (sup != null);\n if (liTree != null)\n classTreeUl.addContent(liTree);\n return classTreeUl;\n }", "public List<MenuBean> queryMenuById(String id) {\n\t\treturn menuDao.queryMenuById(id);\r\n\t}", "private List<MenuObject> getMenuObjects() {\n\n List<MenuObject> menuObjects = new ArrayList<>();\n\n MenuObject close = new MenuObject();\n close.setResource(R.drawable.close);\n\n /* MenuObject yourAccount = new MenuObject(\"YOUR ACCOUNT\");\n yourAccount.setResource(R.drawable.coins);\n\n MenuObject weeklyReport = new MenuObject(\"WEEKLY REPORT\");\n weeklyReport.setResource(R.drawable.graphup);*/\n\n MenuObject profile = new MenuObject(\"Profile\");\n profile.setResource(R.drawable.manageaccount);\n\n\n /* MenuObject homeWork = new MenuObject(\"HOME WORK\");\n homeWork.setResource(R.drawable.book2);\n\n MenuObject yourTeacher = new MenuObject(\"YOUR TEACHER\");\n yourTeacher.setResource(R.drawable.smile);\n MenuObject getKytabuHelp = new MenuObject(\"GET KYTABU HELP\");\n getKytabuHelp.setResource(R.drawable.kytabuhelp);*/\n\n menuObjects.add(close);\n /*menuObjects.add(yourAccount);\n menuObjects.add(weeklyReport);\n menuObjects.add(homeWork);*/\n menuObjects.add(profile);\n /* menuObjects.add(yourTeacher);\n menuObjects.add(getKytabuHelp);*/\n return menuObjects;\n }", "private static void printMenu() {\n\t\tchar select, select1;\n\t\tBinaryTree tree = null, upDated = null;\n\t\tString data;\n\t\tString haku;\n\t\t\n\t\ttree = new BinaryTree(\"juurisolmu\");\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehti\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehti1\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehti2\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehti3\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"l1\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"l12\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"l123\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"l1234\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehtipuuuuuuuu\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehtipuuuuuuuuu\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehtipuuuuuuuuuu\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehtipuuuuuuuuuuu\"));\n\t\tdo {\n\n\t\t\tSystem.out.println(\"\\n\\t\\t\\t1. Luo juurisolmu.\");\n\t\t\tSystem.out.println(\"\\t\\t\\t2. Päivitä uusi solmu.\");\n\t\t\tSystem.out.println(\"\\t\\t\\t3. Käy puu läpi esijärjestyksessä.\");\n\t\t\tSystem.out.println(\"\\t\\t\\t4. Etsi solmu.\");\n\t\t\tSystem.out.println(\"\\t\\t\\t5. Poista solmu.\");\n\t\t\tSystem.out.println(\"\\t\\t\\t6. Jaoittelu haku.\");\n\t\t\tSystem.out.println(\"\\t\\t\\t7. lopetus \");\n\t\t\tSystem.out.print(\"\\n\\n\"); // tehdään tyhjiä rivejä\n\t\t\tselect = Lue.merkki();\n\t\t\tswitch (select) {\n\t\t\tcase '1':\n\t\t\t\tSystem.out.println(\"Anna juuren sisältö (merkkijono)\");\n\t\t\t\tdata = new String(Lue.rivi());\n\t\t\t\ttree = new BinaryTree(data);\n\t\t\t\tbreak;\n\t\t\tcase '2':\n\t\t\t\tif (tree == null)\n\t\t\t\t\tSystem.out.println(\"Et ole muodostanut juurisolmua.\");\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Anna solmun sisältö (merkkijono)\");\n\t\t\t\t\tBinaryTree newTree = new BinaryTree(new String(Lue.rivi()));\n\t\t\t\t\ttree.findWithPreOrder(newTree);\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '3':\n\t\t\t\ttree.preOrder();\n\t\t\t\tchar h = Lue.merkki(); // pysäytetään kontrolli\n\t\t\t\tbreak;\n\t\t\tcase '4':\n\t\t\t\tSystem.out.println(\"Anna haettavan solmun sisältö (merkkijono)\");\n\t\t\t\thaku = Lue.rivi();\n\t\t\t\ttree.setNotFound();\n\t\t\t\tif (tree.findOrder(haku)) {\n\t\t\t\t\tSystem.out.println(tree.getFound());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Ei löydy.\");\n\t\t\t\t\tSystem.out.println(tree.getFound());\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase '5':\n\t\t\t\tSystem.out.println(\"Anna poistettavan solmun sisältö (merkkijono)\");\n\t\t\t\tString poisto = Lue.rivi();\n\t\t\t\tupDated = tree.findOrderDelete(poisto);\n\t\t\t\tif (upDated != null) {\n\t\t\t\t\tSystem.out.println(\"Solu poistettu.\");\n\t\t\t\t\tif (upDated.getRoot().left() != null) {\n\t\t\t\t\t\ttree.findWithPreOrder(upDated.getRoot().left());\n\t\t\t\t\t}\n\n\t\t\t\t\tif (upDated.getRoot().right() != null) {\n\t\t\t\t\t\ttree.findWithPreOrder(upDated.getRoot().right());\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Solua ei löydy.\");\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase '6':\n\t\t\t\tSystem.out.println(\"Anna haettavan solmun sisältö (merkkijono)\");\n\t\t\t\thaku = Lue.rivi();\n\t\t\t\ttree.setNotFound();\n\t\t\t\tif (tree.searchWithPreOrder(haku)) {\n\t\t\t\t\tSystem.out.println(tree.getFound());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Ei löydy.\");\n\t\t\t\t\tSystem.out.println(tree.getFound());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '7':\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (select != '7');\n\t}", "public abstract List<Node> getChildNodes();", "private static String getMenu() { // method name changes Get_menu to getMenu()\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"\\nLibrary Main Menu\\n\\n\")\r\n\t\t .append(\" M : add member\\n\")\r\n\t\t .append(\" LM : list members\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" B : add book\\n\")\r\n\t\t .append(\" LB : list books\\n\")\r\n\t\t .append(\" FB : fix books\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" L : take out a loan\\n\")\r\n\t\t .append(\" R : return a loan\\n\")\r\n\t\t .append(\" LL : list loans\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" P : pay fine\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" T : increment date\\n\")\r\n\t\t .append(\" Q : quit\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\"Choice : \");\r\n\t\t \r\n\t\treturn sb.toString();\r\n\t}", "@Override\n\tpublic List<MenuItem> getMenuItemListAdmin() {\n\t\treturn this.menuItemList ;\n\t}", "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 CreateJTree(List<MainCategoryDTO> allTree) {\n \n \n DefaultMutableTreeNode root = new DefaultMutableTreeNode(\"Listem\");\n for (int i = 0; i < allTree.size(); i++) {\n MainCategoryDTO mainCategory = allTree.get(i);\n DefaultMutableTreeNode mainCategoryTree = new DefaultMutableTreeNode(mainCategory.getName());\n CreatSubCategory(mainCategory.getList(),mainCategoryTree);\n root.add(mainCategoryTree);\n } \n \n \n DefaultTreeModel model = new DefaultTreeModel(root); \n jTree1.setModel(model); \n jTree1.setRootVisible(false);\n jTree1.addTreeSelectionListener((javax.swing.event.TreeSelectionEvent evt) -> {\n JTree1ValueChanged(evt);\n });\n \n }", "public void recursiveList(String path) {\n Directory tDir = Directory.getDir(path);\n if (tDir == null) {\n str += \"Error: the input path \" + path + \" does not exist!\\n\";\n } else if (tDir.getSubContent().isEmpty()) {\n str += tDir.getName() + \"\\n\";\n } else {\n str += tDir.getName() + \":\";\n indentation += \"\\t\";\n for (int i = 0; i < tDir.getSubContent().size(); i++) {\n str += indentation;\n recursiveList(tDir.getSubContent().get(i).getAbsolutePath());\n }\n indentation = indentation.substring(0, indentation.length() - 1);\n }\n }", "public List<Topic> getTopicTree(Topic topic);", "public static void main(String[] args) {\n\n\t\tTreeNode<Character> root = new TreeNode<Character>('A');\n\t\troot.left = new TreeNode<Character>('B');\n\t\troot.right = new TreeNode<Character>('C');\n\n\t\troot.left.left = new TreeNode<Character>('D');\n\t\troot.left.right = new TreeNode<Character>('E');\n\n\t\troot.right.right = new TreeNode<Character>('F');\n\t\t\n\t\tSystem.out.println(getLists(root));\n\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 List<INode> getAllNodes();" ]
[ "0.7328303", "0.72481215", "0.7116208", "0.6773764", "0.6717316", "0.6697839", "0.66722876", "0.6655045", "0.66489834", "0.6614094", "0.66022825", "0.6521268", "0.64606965", "0.6441559", "0.6426947", "0.6416285", "0.64090914", "0.63919276", "0.6313909", "0.6292483", "0.626628", "0.62555504", "0.6246452", "0.6242731", "0.6234108", "0.6229884", "0.62016463", "0.6160492", "0.6087101", "0.60762405", "0.60711175", "0.60119146", "0.5999475", "0.5994758", "0.59784055", "0.5939941", "0.5880261", "0.5875982", "0.5870933", "0.58683676", "0.58544147", "0.58122313", "0.5811936", "0.579058", "0.5774704", "0.5773454", "0.57623357", "0.5757445", "0.5752573", "0.57390815", "0.57227534", "0.5710945", "0.56929016", "0.5673662", "0.56702876", "0.56575084", "0.5651987", "0.5621399", "0.56045777", "0.55992156", "0.5584625", "0.55725133", "0.55630904", "0.55618", "0.55606747", "0.55390716", "0.55328053", "0.5527903", "0.551443", "0.5509319", "0.55084693", "0.5507554", "0.55066276", "0.55014783", "0.548517", "0.5484016", "0.54824036", "0.54761326", "0.54648507", "0.5464508", "0.54580504", "0.5427596", "0.5425155", "0.542138", "0.5417587", "0.5414104", "0.5401699", "0.5401364", "0.53947264", "0.5390631", "0.53888154", "0.5386115", "0.5385251", "0.5384847", "0.5384475", "0.5370362", "0.5368984", "0.5362548", "0.5356539", "0.5351038" ]
0.826135
0
Modify menu display status
int updateHidden(Long id, Integer hidden);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void changeMenu()\n {\n if (_menuMode)\n {\n menuLayout.getChildAt(0).setVisibility(View.VISIBLE);\n menuLayout.getChildAt(1).setVisibility(View.VISIBLE);\n menuLayout.getChildAt(2).setVisibility(View.GONE);\n menuLayout.getChildAt(3).setVisibility(View.GONE);\n menuLayout.getChildAt(4).setVisibility(View.VISIBLE);\n _switchMode.setText(\"Watch Mode\");\n\n }\n else\n {\n menuLayout.getChildAt(0).setVisibility(View.GONE);\n menuLayout.getChildAt(1).setVisibility(View.VISIBLE);\n _switchMode.setText(\"Paint Mode\");\n menuLayout.getChildAt(2).setVisibility(View.VISIBLE);\n menuLayout.getChildAt(3).setVisibility(View.VISIBLE);\n menuLayout.getChildAt(4).setVisibility(View.GONE);\n _timeBar.setProgress((int) (_paintArea.getPercent() * 100f));\n }\n _paintArea.setPaintMode(_menuMode);\n _menuMode = !_menuMode;\n }", "private void checkMenuItemStatus() {\n\t\tif (VozCache.instance().getCookies() == null) { // not logged in yet\n\t\t\tlogoutMenu.setVisible(false);\t\t\t\n\t\t\tloginMenu.setVisible(true);\n\t\t\tloginWithPresetMenu.setVisible(true);\n\t\t} else { // logged in\n\t\t\tlogoutMenu.setVisible(true);\t\t\t\n\t\t\tloginMenu.setVisible(false);\n\t\t\tloginWithPresetMenu.setVisible(false);\n\t\t}\t\t\n\t\tif (VozCache.instance().canShowReplyMenu()) {\n\t\t\tif(VozCache.instance().getCookies() != null) {// logged in\n\t\t\t\tquickRepMenu.setVisible(true);\n\t\t\t} else {\n\t\t\t\tquickRepMenu.setVisible(false);\n\t\t\t}\n\t\t} else {\n\t\t\tquickRepMenu.setVisible(false);\n\t\t}\n\t\t\n\t\tif (canShowPinnedMenu()) {\n\t\t\tpinMenu.setVisible(true);\n\t\t} else {\n\t\t\tpinMenu.setVisible(false);\n\t\t}\n\t\t\n\t\tif (canShowUnpinnedMenu()) {\n\t\t\tunpinMenu.setVisible(true);\n\t\t} else {\n\t\t\tunpinMenu.setVisible(false);\n\t\t}\n\t}", "private void updateMenuTitles() {\n boolean isFollow = MainActivity.discussionsImIn.contains(discussionTableName);\n menu.findItem(R.id.settings_follow).setVisible(!isFollow);\n menu.findItem(R.id.settings_unfollow).setVisible(isFollow);\n }", "private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}", "private void updateEnableStatus()\n {\n this.menu.setEnabled(this.menu.getItemCount() > 0);\n }", "private void updateMenu() {\n\n\t\t\tblockActionsStart();\n\n\t\t\tArrayList<OutputConfig> theConfigs = OutputConfig.getConfigs(getDbID(), type);\n\t\t\ttheConfigs.add(0, OutputConfig.getDefaultObject(type));\n\t\t\tif (!theConfigs.contains(config)) {\n\t\t\t\ttheConfigs.add(0, config);\n\t\t\t}\n\t\t\tif (showNullObject && !config.isNull()) {\n\t\t\t\ttheConfigs.add(0, OutputConfig.getNullObject(type));\n\t\t\t}\n\n\t\t\tconfigMenu.removeAllItems();\n\t\t\tfor (OutputConfig theConfig : theConfigs) {\n\t\t\t\tconfigMenu.addItem(theConfig);\n\t\t\t}\n\t\t\tconfigMenu.setSelectedItem(config);\n\n\t\t\tupdateConfig();\n\n\t\t\tblockActionsEnd();\n\t\t}", "private void displayMenu() {\r\n System.out.println(\"\\nSelect an option from below:\");\r\n System.out.println(\"\\t1. View current listings\");\r\n System.out.println(\"\\t2. List your vehicle\");\r\n System.out.println(\"\\t3. Remove your listing\");\r\n System.out.println(\"\\t4. Check if you won bid\");\r\n System.out.println(\"\\t5. Save listings file\");\r\n System.out.println(\"\\t6. Exit application\");\r\n\r\n }", "private void displayEditMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Edit Menu ------------\");\r\n System.out.println(\"(1) Edit Car Colour\");\r\n System.out.println(\"(2) Edit Car Price\");\r\n System.out.println(\"(3) Back to Main Menu\");\r\n }", "public void menuDisplay() {\n\t\t\n\t\tjava.lang.System.out.println(\"\");\n\t\tjava.lang.System.out.println(\"~~~~~~~~~~~~Display System Menu~~~~~~~~~~~~\");\n\t\tjava.lang.System.out.println(\"**** Enter a Number from the Options Below ****\");\n\t\tjava.lang.System.out.println(\"Choice 1 – Print System Details\\n\" + \n\t\t\t\t\t\t \"Choice 2 - Display System Properties\\n\" +\n\t\t\t\t\t\t \"Choice 3 – Diagnose System\\n\" + \n\t\t\t\t\t\t \"Choice 4 – Set Details\\n\" + \n\t\t\t\t\t\t \"Choice 5 – Quit the program\");\n\t\t\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 }", "public static void proManagerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Project Manager's Information\");\n System.out.println(\"2 - Would you like to search for a Project Manager's information\");\n System.out.println(\"3 - Adding a new Project Manager's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "private void updateMenuItems(){\n String awayState = mStructure.getAway();\n MenuItem menuAway = menu.findItem(R.id.menu_away);\n if (KEY_AUTO_AWAY.equals(awayState) || KEY_AWAY.equals(awayState)) {\n menuAway.setTitle(R.string.away_state_home);\n } else if (KEY_HOME.equals(awayState)) {\n menuAway.setTitle(R.string.away_state_away);\n }\n }", "private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\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 }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.settings, menu);\n MenuItem settings = menu.findItem(R.id.settings);\n if(currentScreenGameState == GameState.STOPPED ){\n settings.setVisible(true);\n }else{\n settings.setVisible(false);\n }\n return true;\n }", "public void setRefreshMenu() {\n }", "protected void updateMenuItemsVisibility(Menu menu) {\n\n MenuItem deleteItem = menu.findItem(R.id.action_delete);\n MenuItem editItem = menu.findItem(R.id.action_edit);\n MenuItem saveItem = menu.findItem(R.id.action_save);\n\n if( (deleteItem == null) || (editItem == null) || (saveItem == null) ) {\n return;\n }\n\n switch(mAction) {\n case NDEFEditorFragment.ADD_NDEF_RECORD:\n deleteItem.setVisible(false);\n editItem.setVisible(false);\n saveItem.setVisible(true);\n break;\n\n case NDEFEditorFragment.VIEW_NDEF_RECORD:\n deleteItem.setVisible(true);\n editItem.setVisible(true);\n saveItem.setVisible(false);\n break;\n\n case NDEFEditorFragment.EDIT_NDEF_RECORD:\n deleteItem.setVisible(false);\n editItem.setVisible(false);\n saveItem.setVisible(true);\n break;\n }\n }", "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "public static void updateMainMenu() {\n instance.updateMenu();\n }", "public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }", "public void updateMenu() {\n updateMenuGroupError = true;\n if (menu.updateMenu()) {\n deleteMenuError = false;\n createMenuError = false;\n updateMenuError = true;\n } else {\n setName(menu.name);\n updateMenuError = false;\n }\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n Log.i(\"Menus\", \"onPrepareOptionsMenu\");\n //Get MenuItem for 'show archived', change the text if its already visible\n MenuItem showArchivedMenu = menu.findItem(R.id.show_archived);\n if (mArchivedItemsList.getVisibility() == View.VISIBLE)\n showArchivedMenu.setTitle(\"Hide Archived\");\n else\n showArchivedMenu.setTitle(\"Show Archived\");\n\n return true;\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}", "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }", "public void status(){\n lblStats.setText(\"\"+level+\"L\");\n }", "private void displayColourMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------- Colour Menu ---------------\");\r\n System.out.println(\"(1) To edit Colour1\");\r\n System.out.println(\"(2) To edit Colour2\");\r\n System.out.println(\"(3) To edit Colour3\");\r\n }", "private void updateMenus()\n {\n m_KernelMenu.updateMenu();\n m_AgentMenu.updateMenu();\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}", "static void displayMenu(){\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Select operation:\");\n\t\tSystem.out.println(\"1-List movies\");\n\t\tSystem.out.println(\"2-Show movie details\");\n\t\tSystem.out.println(\"3-Add a movie\");\n\t\tSystem.out.println(\"4-Add an example set of 5 movies\");\n\t\tSystem.out.println(\"5-Exit\");\n\t}", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public void menu() {\n\t\tstate.menu();\n\t}", "public void branchMenu(int option){\n switch(option){\n case 1:\n System.out.println(\"Starting security view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.SECURITY);\n break;\n case 2:\n System.out.println(\"Starting application view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.APPLICATION);\n break;\n case 3:\n System.out.println(\"Starting manager view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.MANAGER);\n break;\n case 4:\n System.out.println(\"Starting swipe view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.SWIPE);\n break;\n case 5:\n System.out.println(\"Quitting application...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.QUIT);\n break;\n }\n }", "protected void showSystemMenu() {\n windowMenu.doClick(0);\n }", "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}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_status_screen, menu);\r\n return true;\r\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onLoadMenuShow(String result) {\n\n\t\t\t\t\t\t\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(uk.echosoft.garage.opener.R.menu.menu_status, menu);\n return true;\n }", "private void printMenu() {\n\t\tSystem.out.printf(\"\\n********** MiRide System Menu **********\\n\\n\");\n\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Create Car\", \"CC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Book Car\", \"BC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Complete Booking\", \"CB\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Display ALL Cars\", \"DA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Specific Car\", \"SS\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Available Cars\", \"SA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Seed Data\", \"SD\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Load Cars\", \"LC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Exit Program\", \"EX\");\n\t\tSystem.out.println(\"\\nEnter your selection: \");\n\t\tSystem.out.println(\"(Hit enter to cancel any operation)\");\n\t}", "public void mainMenu() {\n\n System.out.println(\"\\n HOTEL RESERVATION SYSTEM\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.println(\" COMMANDS:\");\n System.out.println(\" - View Tables\\t\\t(1)\");\n System.out.println(\" - Add Records\\t\\t(2)\");\n System.out.println(\" - Update Records\\t(3)\");\n System.out.println(\" - Delete Records\\t(4)\");\n System.out.println(\" - Search Records\\t(5)\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.print(\" > \");\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.activity_refresh, menu);\n refereshMenu = menu.findItem(R.id.refresh_type);\n if (/*ispeding.equalsIgnoreCase(\"1\") && */containsImg == true)\n refereshMenu.setVisible(true);\n else\n refereshMenu.setVisible(false);\n return true;\n }", "public static void readMenu(){\n\t\tSystem.out.println(\"Menu....\");\n\t\tSystem.out.println(\"=====================\");\n\t\tSystem.out.println(\"1. Book A Ticket\\t2. See Settings\\n3. Withdraw\\t4. Deposit\");\n\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n mOption = menu;\n getMenuInflater().inflate(R.menu.menu, menu);\n int menunya = sharedpreferences.getInt(\"menu\", 0);\n SharedPreferences.Editor editor = sharedpreferences.edit();\n if (menunya == 0) {\n editor.putInt(\"menu\", 2);\n editor.commit();\n f2.setVisibility(View.VISIBLE);\n f3.setVisibility(View.GONE);\n navigation.setSelectedItemId(R.id.navigation_dashboard);\n } else if (menunya == 2) {\n f2.setVisibility(View.VISIBLE);\n f3.setVisibility(View.GONE);\n navigation.setSelectedItemId(R.id.navigation_dashboard);\n } else if (menunya == 3) {\n f2.setVisibility(View.GONE);\n f3.setVisibility(View.VISIBLE);\n navigation.setSelectedItemId(R.id.navigation_notifications);\n } else {\n editor.putInt(\"menu\", 2);\n editor.commit();\n f2.setVisibility(View.VISIBLE);\n f3.setVisibility(View.GONE);\n }\n return true;\n }", "public static void structEngineerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Structural Engineer's Information\");\n System.out.println(\"2 - Would you like to search for a Structural Engineer's Information\");\n System.out.println(\"3 - Adding a new Structural Engineer's Information\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_status, menu);\n return true;\n }", "private void presentMenu() {\n System.out.println(\"\\nHi there, kindly select what you would like to do:\");\n System.out.println(\"\\ta -> add a task\");\n System.out.println(\"\\tr -> remove a task\");\n System.out.println(\"\\tc -> mark a task as complete\");\n System.out.println(\"\\tm -> modify a task\");\n System.out.println(\"\\tv -> view all current tasks as well as tasks saved previously\");\n System.out.println(\"\\tct -> view all completed tasks\");\n System.out.println(\"\\ts -> save tasks to file\");\n System.out.println(\"\\te -> exit\");\n }", "public static void displayMenu() {\r\n System.out.print(\"\\nName Saver Server Menu\\n\\n\"\r\n +\"1. Add a name\\n2. Remove a name\\n3. List all names\\n\"\r\n +\"4. Check if name recorded\\n5. Exit\\n\\n\"\r\n +\"Enter selection [1-5]:\");\r\n }", "private void displayMenuOptions()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n System.out.println(\"COMMAND OPTIONS:\");\n System.out.println(\"\");\n System.out.println(\" 'on' to force power controller to ON state\");\n System.out.println(\" 'off' to force power controller to OFF state\");\n System.out.println(\" 'status' to see current power controller state\");\n System.out.println(\" 'sunrise' to display sunrise time.\");\n System.out.println(\" 'sunset' to display sunset time.\");\n System.out.println(\" 'next' to display next scheduled event.\");\n System.out.println(\" 'time' to display current time.\");\n System.out.println(\" 'coord' to display longitude and latitude.\");\n System.out.println(\" 'help' to display this menu.\");\n System.out.println(\"\");\n System.out.println(\"PRESS 'CTRL-C' TO TERMINATE\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_commonone, menu);\n MenuItem item3 = menu.findItem(R.id.messager);\n MenuItem item4 = menu.findItem(R.id.search);\n item3.setIcon(R.drawable.openmessage);\n item4.setIcon(R.drawable.search);\n try{\n if (loggedIn.equals(\"noValue\")) {\n\n\n item3.setVisible(false);\n\n } else {\n\n item3.setVisible(true);\n\n }}\n catch (Exception e){\n\n }\n return true;\n }", "private void updateLogInMenuItem() {\n\t\tif (mLogInMenuItem != null) {\n\t\t\tif (mUserService.isSignedIn())\n\t\t\t\tmLogInMenuItem.setTitle(R.string.board_menu_my_profile);\n\t\t\telse\n\t\t\t\tmLogInMenuItem.setTitle(R.string.menu_log_in);\n\t\t}\n\t}", "private void menu() { \r\n\t\tSystem.out.println(\" ---------WHAT WOULD YOU LIKE TO DO?---------\");\r\n\t\tSystem.out.println(\"1) Move\");\r\n\t\tSystem.out.println(\"2) Save\");\r\n\t\tSystem.out.println(\"3) Quit\");\r\n\t\t\r\n\t}", "public void setMenuLabel(java.lang.String value);", "public void showMainMenu() {\r\n\t\tmenu.setThreadSuspended(false);\r\n\t\tmenu.setVisible(true);\r\n\t\tsetVisible(false);\r\n\t\tsetVisible(true);\r\n\t}", "private void printEditMenu(){\n System.out.println(\"fh - Flip horizontal \\n fv - Flip vertical \\n sl - Slide left \\n sr - Slide right \\n su - Slide up \\n sd - Slide down \\n nr - Slide number right. Currently=\" + numberRight + \"\\n nl - Slide number left. Currently=\" + numberLeft + \"\\n nd - Slide number down. Currently=\" + numberDown + \"\\n nu - Slide number up. Currently=\" + numberUp + \"\\n r - Repeat last operation (Default slide left) \\n q - Quit (Return to main menu)\");\n }", "public void setMenu(){\n opciones='.';\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n this.menu = menu;\n publicMenuItem = menu.findItem(R.id.action_public_invites);\n privateMenuItem = menu.findItem(R.id.action_private_invites);\n if(savedDbQuery){\n publicMenuItem.setVisible(true);\n privateMenuItem.setVisible(false);\n }else{\n publicMenuItem.setVisible(false);\n privateMenuItem.setVisible(true);\n }\n publicMenuItem = menu.findItem(R.id.action_public_invites);\n privateMenuItem = menu.findItem(R.id.action_private_invites);\n return true;\n }", "static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }", "public static void displayMenu(){\n //*Displays the Menu\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Food Item\", \"Size\", \"Options\", \"Price\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"---------\", \"----\", \"-------\", \"-----\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Drink\", \"S,M,L\", \"Sprite, Rootbeer, and Orange Fanta\", \"$5.50 for small, +$.50 for each size increase\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Burger\", \"N/A\", \"Extra Patty, bacon, cheese, lettuce\", \"$3.00 for a burger, +$.50 for additional toppings\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"tomato, pickles, onions\", \"\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Pizza\", \"S,M,L\", \"Pepperoni, sausage, peppers, chicken\", \"$5.00 for small, +$2.50 for each size increase,\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"salami, tomatoes, olives, anchovies\", \"+$1.00 for each extra topping\" );\n }", "private void printMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opret\");\n System.out.println(\"(2) Find\");\n System.out.println(\"(3) Slet\");\n System.out.print(\"Valg: \");\n }", "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }", "private static void displayUserMenu() {\n\t\tSystem.out.println(\"\\t User Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"ar <reponame> : To add a new repo \\n\"\n\t\t\t\t+ \"dr <reponame> : To delete a repo \\n\"\n\t\t\t\t+ \"or <reponame> : To open repo \\n\"\n\t\t\t\t+ \"lr : To list repo \\n\"\n\t\t\t\t+ \"lo : To logout \\n\"\n\t\t\t\t+ \"====================================\\n\");\n\t}", "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 }", "public static void afficherMenu() {\r\n System.out.println(\"\\n## Menu de l'application ##\\n\" +\r\n \" Actions Membres :\\n\"+\r\n \" [ 1] : Inscription d'un Membre\\n\" +\r\n \" [ 2] : Désinscription d'un Membre\\n\" +\r\n \" ( 3) : Afficher liste des Membres\\n\" +\r\n \" [ 4] : Payer Cotisation\\n\" +\r\n \" Actions vote Arbres d'un Membre :\\n\" +\r\n \" ( 5) : Voter pour un Arbre\\n\" +\r\n \" ( 6) : Afficher liste des votes\\n\" +\r\n \" ( 7) : Retirer un vote\\n\" +\r\n \" ( 8) : Supprimer les votes d'un Membre.\\n\" +\r\n \" ( 9) : Remplacer un vote\\n\" +\r\n \" Actions Arbres :\\n\" +\r\n \" (10) : Afficher la liste des Arbres\\n\" +\r\n // ...\r\n \" Actions Administration :\\n\" +\r\n \" (11) : Nommer nouveau Président\\n\" +\r\n // ...\r\n \"\\n ( 0) : Quitter l'application\\n\" +\r\n \" - Veuillez saisir une action. -\");\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_status_list, menu);\n return true;\n }", "public void displaymenu()\r\n\t{\r\n\t\tSystem.out.println(\"Welcome to the COMP2396 Authentication system!\");\r\n\t\tSystem.out.println(\"1. Authenticate user\");\r\n\t\tSystem.out.println(\"2. Add user record\");\r\n\t\tSystem.out.println(\"3. Edit user record\");\r\n\t\tSystem.out.println(\"4. Reset user password\");\r\n\t\tSystem.out.println(\"What would you like to perform?\");\r\n\t}", "private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}", "private static void showMenu() {\n System.out.println(\"1. Dodaj zadanie\");\n System.out.println(\"2. Wykonaj zadanie.\");\n System.out.println(\"3. Zamknij program\");\n }", "public void updateMenuWindow() {\n\t\twindowMenu.update();\n\t}", "@Override\n public void onMenuToggle(boolean b) {\n }", "public void updateEnabled() {\r\t\tfor (MenuHeader header : this.getMenuHeaders()) {\r\t\t\theader.updateState();\r\t\t}\r\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_scout_status_page, menu);\n return true;\n }", "public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n }", "public static void architectUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the architects\");\n System.out.println(\"2 - Would you like to search for a architect's information\");\n System.out.println(\"3 - Adding a new architect's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }", "static void mostrarMenu(){\n \t\t\n\t\tout.println();\n\t\tout.println(\"1. Crear lavadora.\");\n\t\tout.println(\"2. Mostrar lavadoras.\");\n\t\tout.println(\"3. Seleccionar lavadora.\");\n\t\tout.println(\"4. Cargar agua.\");\n\t\tout.println(\"5. Cargar ropa.\");\n\t\tout.println(\"6. Cargar detergente.\");\n\t\tout.println(\"7. Especificar tiempo.\");\n\t\tout.println(\"8. Drenar.\");\n\t\tout.println(\"9. Mostrar estado de la lavadora.\");\n\t\tout.println(\"10. Mostrar estado de la ropa.\");\n\t\tout.println(\"11. Pausar o Reanudar lavadora\");\n\t\tout.println(\"12. Probar sistema.\");\n\t\tout.println(\"13. Reiniciar sistema.\");\n\t\tout.println(\"22. Salir\");\n\t\tout.println((SELECTNOW != -1) ? \"!/*!/* Lv seleccionada: \" + SELECTNOW + \" !/*!/*\": \"\");\n\t\tout.println();\n\t}", "@Override\n\t\t\t\t\tpublic void onLoadMenuShow(String result) {\n\n\t\t\t\t\t}", "private void updateStatus() {\n if (bold != null) {\n bold.setDown(basic.isBold());\n }\n\n if (italic != null) {\n italic.setDown(basic.isItalic());\n }\n\n if (underline != null) {\n underline.setDown(basic.isUnderlined());\n }\n\n if (subscript != null) {\n subscript.setDown(basic.isSubscript());\n }\n\n if (superscript != null) {\n superscript.setDown(basic.isSuperscript());\n }\n\n if (strikethrough != null) {\n strikethrough.setDown(extended.isStrikethrough());\n }\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_window, menu);\n MenuItem m = menu.add(2,4,9,\"Debug Service\");\n m.setCheckable(true);\n m.setChecked(GRClient.getInstance().isDebug());\n\n menu.add(3,9,1, (isSocalConnected) ? \"Sign Out\" : \"Sign In\");\n menu.add(3,8,100,\"Send Feedback\");\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n if ( currentTabSection == PLAYER_STATS_TAB || currentTabSection == GAME_STATS_TAB )\n {\n \tmenu.findItem(R.id.action_add).setVisible(false);\n } else\n {\n \tmenu.findItem(R.id.action_add).setVisible(true);\n }\n return true;\n }", "public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public void update() {\n menu = new PopupMenu();\n\n final MenuItem add = new MenuItem(Messages.JOINCHANNEL);\n\n final MenuItem part = new MenuItem(Messages.PARTCHANNEL);\n\n final MenuItem reload = new MenuItem(Messages.RELOAD);\n\n final Menu language = new Menu(Messages.LANGUAGE);\n\n final MenuItem eng = new MenuItem(Messages.ENGLISH);\n\n final MenuItem fr = new MenuItem(Messages.FRENCH);\n\n final MenuItem sp = new MenuItem(Messages.SPANISH);\n\n final MenuItem debug = new MenuItem(Messages.DEBUG);\n\n final MenuItem about = new MenuItem(Messages.ABOUT);\n\n final MenuItem exit = new MenuItem(Messages.EXIT);\n exit.addActionListener(e -> Application.getInstance().disable());\n about.addActionListener(e -> JOptionPane.showMessageDialog(null,\n Messages.ABOUT_MESSAGE));\n add.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n if (Application.getInstance().getChrome().getToolbar()\n .getButtonCount() < 10) {\n Application.getInstance().getChrome().getToolbar().parent\n .actionPerformed(new ActionEvent(this, e.getID(),\n \"add\"));\n } else {\n JOptionPane.showMessageDialog(null,\n \"You have reached the maximum amount of channels!\");\n }\n }\n });\n part.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n Application.getInstance().getChrome().getToolbar().parent\n .actionPerformed(new ActionEvent(this,\n ActionEvent.ACTION_PERFORMED, \"remove\"\n + \".\"\n + Application.getInstance().getChrome()\n .getToolbar().getCurrentTab()));\n }\n });\n debug.addActionListener(e -> {\n if (!LoadScreen.getDebugger().isVisible()) {\n LoadScreen.getDebugger().setVisible(true);\n } else {\n LoadScreen.getDebugger().setVisible(true);\n }\n });\n\n eng.addActionListener(arg0 -> {\n Messages.setLanguage(Language.ENGLISH);\n Application.getInstance().getTray().update();\n });\n\n fr.addActionListener(arg0 -> {\n Messages.setLanguage(Language.FRENCH);\n Application.getInstance().getTray().update();\n });\n\n sp.addActionListener(arg0 -> {\n Messages.setLanguage(Language.SPANISH);\n Application.getInstance().getTray().update();\n });\n\n if (eng.getLabel().equalsIgnoreCase(Messages.CURR)) {\n eng.setEnabled(false);\n }\n\n if (fr.getLabel().equalsIgnoreCase(Messages.CURR)) {\n fr.setEnabled(false);\n }\n\n if (sp.getLabel().equalsIgnoreCase(Messages.CURR)) {\n sp.setEnabled(false);\n }\n\n if (Application.getInstance().getChrome().getToolbar().getCurrentTab() == -1) {\n part.setEnabled(false);\n }\n if (!Application.getInstance().getChrome().getToolbar().isAddVisible()) {\n add.setEnabled(false);\n }\n\n language.add(eng);\n language.add(fr);\n language.add(sp);\n\n menu.add(add);\n menu.add(part);\n menu.add(reload);\n menu.addSeparator();\n menu.add(language);\n menu.addSeparator();\n menu.add(debug);\n menu.add(about);\n menu.addSeparator();\n menu.add(exit);\n Tray.sysTray.setPopupMenu(menu);\n }", "public void menuTipoActividad() {\n\t\tSystem.out.println(\"MENU TIPOS ACTIVIDAD\");\n\t\tSystem.out.println(\"1. LOW\");\n\t\tSystem.out.println(\"2. MEDIUM\");\n\t\tSystem.out.println(\"3. HIGH\");\n\t}", "public void menuActiviated() {\n\t\t\t((LinearLayout) PieMenu.getParent()).removeView(PieMenu);\n\t\t\tadd_shangpin.setVisibility(View.VISIBLE);\n\t\t\tif(text_details != null){\n\t\t\t\ttext_details.setText(\"\");\n\t\t\t}\n\t\t\t\n\t\t}", "private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n super.onCreateOptionsMenu(menu);\n MenuItem helpButton = menu.findItem(R.id.menu1);\n helpButton.setVisible(true);\n return true;\n }", "@Override\n\tpublic void showmenu() {\n\t\t\n\t\tint choice;\n \n System.out.println(\"请选择1.查询 2.退出\");\n choice=console.nextInt();\n \n switch (choice){\n \n case 1:\n Menu.searchMenu();\n break;\n default:\n \tSystem.out.println(\"感谢您使用本系统 欢迎下次使用!\");\n System.exit(0);\n }\n \n \n\t}", "public abstract void displayMenu();", "public void showMenu() {\n menuController.showMenuPanel();\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu2, menu);\n this.menu=menu;\n if(idName!=null) {menu.getItem(1).setVisible(false);\n menu.getItem(2).setVisible(true);}\n if(create) menu.getItem(0).setVisible(false);\n else menu.getItem(0).setVisible(true);\n /* if(extrasBundle!=null) if(extrasBundle.getBoolean(\"From Option\")==true) {\n menu.getItem(1).setVisible(false);\n menu.getItem(0).setVisible(true);\n\n }*/\n return true;\n }", "public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}", "public void onMenuChanged(IDisplayMenu menu) {\r\n\tthis.canvas.onMenuChanged(menu);\r\n }", "protected void _updateMsbDisplay()\n\t{\n\t\tignoreActions = true ;\n\t\tSpObs obs = ( SpObs )_spItem ;\n\t\tif( obs.isMSB() )\n\t\t{\n\t\t\t_w.msbPanel.setVisible( true ) ;\n\t\t\t_w.optional.setVisible( false ) ;\n\t\t\t_w.unSuspendCB.setVisible( obs.isSuspended() ) ;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t_w.msbPanel.setVisible( false ) ;\n\n\t\t\tif( OtCfg.telescopeUtil.supports( TelescopeUtil.FEATURE_FLAG_AS_STANDARD ) )\n\t\t\t\t_w.optional.setVisible( true ) ;\n\t\t}\n\t\tignoreActions = false ;\n\t}", "public boolean isOnMenu ();", "public void displayMenu() {\r\n\t\tSystem.out.println(\"Enter a number between 0 and 8 as explained below: \\n\");\r\n\t\tSystem.out.println(\"[\" + ADD_CUSTOMER + \"] Add a customer.\");\r\n\t\tSystem.out.println(\"[\" + ADD_MODEL + \"] Add a model.\");\r\n\t\tSystem.out.println(\"[\" + ADD_TO_INVENTORY + \"] Add a washer to inventory.\");\r\n\t\tSystem.out.println(\"[\" + PURCHASE + \"] Purchase a washer.\");\r\n\t\tSystem.out.println(\"[\" + LIST_CUSTOMERS + \"] Display all customers.\");\r\n\t\tSystem.out.println(\"[\" + LIST_WASHERS + \"] Display all washers.\");\r\n\t\tSystem.out.println(\"[\" + DISPLAY_TOTAL + \"] Display total sales.\");\r\n\t\tSystem.out.println(\"[\" + SAVE + \"] Save data.\");\r\n\t\tSystem.out.println(\"[\" + EXIT + \"] to Exit\");\r\n\t}", "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}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n menu.add(0, 0, 0, \"Refresh\");\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_detail, menu);\r\n MenuItem mi=menu.findItem(R.id.action_settings);\r\n SharedPreferences commonpreference=getSharedPreferences(\"Common\",MODE_PRIVATE);\r\n if(commonpreference.contains(id_fav))\r\n mi.setTitle(\"Remove from Favorites\");\r\n else\r\n mi.setTitle(\"Add to Favorites\");\r\n return true;\r\n }", "private static void displayRepoMenu() {\n\t\tSystem.out.println(\"\\t Repo Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"su <username> : To subcribe users to repo \\n\"\n\t\t\t\t+ \"ci: To check in changes \\n\"\n\t\t\t\t+ \"co: To check out changes \\n\"\n\t\t\t\t+ \"rc: To review change \\n\"\n\t\t\t\t+ \"vh: To get revision history \\n\"\n\t\t\t\t+ \"re: To revert to previous version \\n\"\n\t\t\t\t+ \"ld : To list documents \\n\"\n\t\t\t\t+ \"ed <docname>: To edit doc \\n\"\n\t\t\t\t+ \"ad <docname>: To add doc \\n\"\n\t\t\t\t+ \"dd <docname>: To delete doc \\n\"\n\t\t\t\t+ \"vd <docname>: To view doc \\n\"\n\t\t\t\t+ \"qu : To quit \\n\" \n\t\t\t\t+ \"====================================\\n\");\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.order_list_actions,menu);\n if(isFinalized){\n MenuItem item = menu.findItem(R.id.action_finalized);\n item.setVisible(false);\n //this.invalidateOptionsMenu();\n }\n return super.onCreateOptionsMenu(menu);\n }", "public void updateMenuData(){\n if(datasetTable == null)\n return;\n boolean canEdit = dataset.getRight() == DataConstants.EXECUTIVE_RIGHT;\n if(menuItemSave != null)\n menuItemSave.setEnabled(canEdit);\n this.menuItemInsert.setEnabled(canEdit && datasetTable.canInsert());\n getMenuItemSuppr().setEnabled(canEdit &&datasetTable.canSuppr());\n getMenuItemTextLeft().setEnabled(canEdit &&datasetTable.canAlignText());\n getMenuItemTextCenter().setEnabled(canEdit &&datasetTable.canAlignText());\n getMenuItemTextRight().setEnabled(canEdit &&datasetTable.canAlignText());\n getMenuItemCopy().setEnabled(canEdit &&datasetTable.canCopy());\n getMenuItemPaste().setEnabled(canEdit &&datasetTable.canPaste());\n getMenuItemCut().setEnabled(canEdit &&datasetTable.canCut());\n getMenuItemSort().setEnabled(datasetTable.canSort());\n this.menuItemIgnore.setEnabled(canEdit &&datasetTable.canIgnore());\n if(isAllSelectionIgnore()){\n this.menuItemIgnore.setItemIcon(getCopexImage(\"Bouton-AdT-28_ignore_push.png\"));\n this.menuItemIgnore.setItemRolloverIcon(getCopexImage(\"Bouton-AdT-28_ignore_surcli.png\"));\n }else{\n this.menuItemIgnore.setItemIcon(getCopexImage(\"Bouton-AdT-28_ignore.png\"));\n this.menuItemIgnore.setItemRolloverIcon(getCopexImage(\"Bouton-AdT-28_ignore_sur.png\"));\n }\n getMenuItemUndo().setEnabled(canEdit &&datasetTable.canUndo());\n getMenuItemRedo().setEnabled(canEdit &&datasetTable.canRedo());\n boolean canOp = datasetTable.canOperations();\n this.menuItemSum.setEnabled(canEdit &&canOp);\n this.menuItemAvg.setEnabled(canEdit &&canOp);\n this.menuItemMin.setEnabled(canEdit &&canOp);\n this.menuItemMax.setEnabled(canEdit &&canOp);\n //boolean isData = isData() && dataset.getListDataHeaderDouble(true).length > 0;\n boolean isData = dataset.getListDataHeaderDouble(true).length > 0;\n this.menuItemAddGraph.setEnabled(canEdit &&isData);\n if(menuItemPrint != null)\n this.menuItemPrint.setEnabled(dataset != null);\n repaint();\n }" ]
[ "0.7429638", "0.7022741", "0.6955138", "0.6884314", "0.68003917", "0.67937315", "0.6774385", "0.6765202", "0.6732202", "0.66881305", "0.66459405", "0.6641951", "0.6619038", "0.661322", "0.66121095", "0.655979", "0.65447694", "0.6530142", "0.6489548", "0.64503473", "0.64439285", "0.64224535", "0.6416666", "0.6409682", "0.6393312", "0.63766325", "0.63714314", "0.6362675", "0.6342936", "0.6337422", "0.6326088", "0.63172305", "0.63169277", "0.6312301", "0.6310986", "0.63105947", "0.63092893", "0.629439", "0.62916774", "0.6290585", "0.6283987", "0.6276608", "0.6272082", "0.6256275", "0.6252959", "0.6251171", "0.62510735", "0.6248225", "0.6245369", "0.6242931", "0.62319624", "0.62302494", "0.62283254", "0.62230414", "0.62108684", "0.62084675", "0.6204483", "0.62043047", "0.6198319", "0.6190387", "0.6181329", "0.6180984", "0.61772317", "0.6169029", "0.6162677", "0.613413", "0.61324704", "0.6125423", "0.6124153", "0.6123276", "0.6123159", "0.6116732", "0.6112445", "0.6111486", "0.6104808", "0.610408", "0.60975564", "0.60960776", "0.60797393", "0.6078987", "0.60789", "0.60773534", "0.60772943", "0.6073432", "0.6072049", "0.60673654", "0.6066706", "0.6060604", "0.6056745", "0.6053685", "0.6049508", "0.60444295", "0.6042688", "0.6039931", "0.6033639", "0.6032945", "0.60320467", "0.60260826", "0.6022863", "0.60201585", "0.6019345" ]
0.0
-1
Use the Builder class for convenient dialog construction
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); LayoutInflater inflater = getActivity().getLayoutInflater(); //inflater and layout used for custom dialog View view = inflater.inflate(R.layout.dialog_test_layout,null); builder.setView(view) .setMessage("Select Score") .setPositiveButton("Ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { //if ok is clicked retrieve the value and pass it to the listener int value = numberPicker.getValue(); listener.onScoreSelected(Integer.toString(value)); } }) .setNegativeButton("Cancel", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { //do nothing, close the dialog } }); // Create the AlertDialog object and return it numberPicker = view.findViewById(R.id.effortLevelNumPickerTest); numberPicker.setMinValue(0); numberPicker.setMaxValue(100); return builder.create(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dialog() {\n\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}", "public StandardDialog() {\n super();\n init();\n }", "public FiltroGirosDialog() {\n \n }", "private Dialogs () {\r\n\t}", "public AlertDialog createSimpleDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Code with love by\")\n .setMessage(\"Alvaro Velasco & Jose Alberto del Val\");\n return builder.create();\n }", "protected abstract JDialog createDialog();", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "public Builder(){\n }", "public static Builder builder(){ return new Builder(); }", "static Builder builder() {\n return new Builder();\n }", "protected void alertBuilder(){\n SettingsDialogFragment settingsDialogFragment = new SettingsDialogFragment();\n settingsDialogFragment.show(getSupportFragmentManager(), \"Settings\");\n }", "private void initDialog() {\n }", "private AlertDialog cargando() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n LayoutInflater inflater = getLayoutInflater();\n\n @SuppressLint(\"InflateParams\") View v = inflater.inflate(R.layout.loading, null);\n\n\n builder.setView(v);\n builder.setCancelable(false);\n\n return builder.create();\n\n }", "private Builder() {}", "private Builder() {\n\t\t}", "private Builder() {\n }", "private Builder() {\n }", "public BaseDialog create()\n {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final BaseDialog dialog = new BaseDialog(context, R.style.Dialog);\n\n View layout = inflater.inflate(R.layout.view_shared_basedialog, null);\n\n //set the dialog's image\n this.icon = (ImageView) layout.findViewById(R.id.view_shared_basedialog_icon);\n\n if (this.imageResource > 0 || this.imageUrl != null)\n {\n this.icon.setVisibility(View.VISIBLE);\n if (this.imageResource > 0)\n {\n this.icon.setBackgroundResource(this.imageResource);\n }\n else\n {\n// TextureRender.getInstance().setBitmap(this.imageUrl, this.icon, R.drawable.no_data_error_image);\n }\n }\n else\n {\n this.icon.setVisibility(View.GONE);\n }\n\n // set check box's text and default value\n this.checkLayout = layout.findViewById(R.id.view_shared_basedialog_checkbox_layout);\n this.checkBox = (CheckBox) layout.findViewById(R.id.view_shared_basedialog_checkbox);\n this.checkBoxTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_checkbox_text);\n\n if (!TextUtils.isEmpty(this.checkBoxText))\n {\n this.checkLayout.setVisibility(View.VISIBLE);\n this.checkBoxTextView.setText(this.checkBoxText);\n this.checkBox.setChecked(checkBoxDefaultState);\n }\n else\n {\n this.checkLayout.setVisibility(View.GONE);\n }\n\n // set the dialog main title and sub title\n this.maintitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_maintitle_textview);\n this.subtitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_subtitle_textview);\n this.titleDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_titledivide_textview);\n if (!TextUtils.isEmpty(title1))\n {\n this.maintitleTextView.setText(title1);\n if (this.title1BoldAndBig)\n {\n this.maintitleTextView.setTypeface(null, Typeface.BOLD);\n this.maintitleTextView.setTextSize(17);\n }\n\n this.maintitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.maintitleTextView.setVisibility(View.GONE);\n }\n\n if (!TextUtils.isEmpty(title2))\n {\n this.subtitleTextView.setText(title2);\n this.subtitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.subtitleTextView.setVisibility(View.GONE);\n }\n this.titleDivideTextView.setVisibility(View.GONE);\n\n // set the confirm button\n this.positiveButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_positivebutton));\n if (!TextUtils.isEmpty(positiveButtonText))\n {\n this.positiveButton.setText(positiveButtonText);\n this.positiveButton.setVisibility(View.VISIBLE);\n if (positiveButtonClickListener != null)\n {\n this.positiveButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n positiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n if (checkBox.isChecked()&&onCheckBoxListener!=null)\n {\n onCheckBoxListener.checkedOperation();\n }\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.positiveButton.setVisibility(View.GONE);\n }\n\n // set the cancel button\n this.negativeButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_negativebutton));\n if (!TextUtils.isEmpty(negativeButtonText))\n {\n this.negativeButton.setText(negativeButtonText);\n this.negativeButton.setVisibility(View.VISIBLE);\n if (negativeButtonClickListener != null)\n {\n this.negativeButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n negativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.negativeButton.setVisibility(View.GONE);\n }\n\n // set button's background\n this.buttonDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_buttondivide_textview);\n if (!TextUtils.isEmpty(negativeButtonText) && !TextUtils.isEmpty(negativeButtonText))\n {\n this.buttonDivideTextView.setVisibility(View.VISIBLE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_rightbottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_leftbottom);\n }\n else\n {\n this.buttonDivideTextView.setVisibility(View.GONE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n }\n\n // set the content message\n this.contentLayout = layout.findViewById(R.id.view_shared_basedialog_content_layout);\n if (!TextUtils.isEmpty(message))\n {\n this.contentTextView = ((TextView) layout.findViewById(R.id.view_shared_basedialog_content_textview));\n this.contentTextView.setText(message);\n this.contentTextView.setMovementMethod(ScrollingMovementMethod.getInstance());\n }\n else if (contentView != null)\n {\n // if no message set\n // add the contentView to the dialog body\n ((ViewGroup) this.contentLayout).removeAllViews();\n ((ViewGroup) this.contentLayout).addView(contentView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n }\n else\n {\n this.contentLayout.setVisibility(View.GONE);\n }\n\n int[] params = Utils.getLayoutParamsForHeroImage();\n dialog.setContentView(layout, new ViewGroup.LayoutParams(params[0]*4/5, ViewGroup.LayoutParams.MATCH_PARENT));\n return dialog;\n }", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "private void doDialogMsgBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getResources().getString(R.string.OverAge))\n .setCancelable(false)\n .setPositiveButton(getResources().getString(R.string.ok),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n\n AlertDialog alert = builder.create();\n alert.show();\n }", "public ClassChoiceDialog(Context context) {\n // 通过LayoutInflater来加载一个xml的布局文件作为一个View对象\n this.context = context;\n initialView();\n dialog = builder.create();\n initListener();\n\n }", "private Builder()\n {\n }", "public static Builder builder ()\n {\n\n return new Builder ();\n\n }", "@Override\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "private AlertDialog alertBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Missing Arduino Unit, go to Settings?\").\n setCancelable(false).setPositiveButton(\n \"Yes\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int id) {\n //call qr scan intent\n Intent prefScreen = new Intent(TempMeasure.this, Preferences.class);\n startActivityForResult(prefScreen, 0);\n }\n }).setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n AlertDialog alert = builder.create();\n return alert;\n }", "public abstract void initDialog();", "public Builder() {}", "public Builder() {}", "public Builder() {}", "public Builder() {\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the Builder class for convenient dialog construction\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_add_to_shopping);\n\n // initialize itemcreation\n m_createItemDlg = new CreateItemDialog(this);\n\n // create item selection\n builder.setView(createItemSelection());\n\n // set buttonss\n builder.setPositiveButton(R.string.button_add, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if(m_callback != null) {\n m_callback.readAddToShoppingDlgAndUpdate();\n }\n }\n });\n builder.setNegativeButton(R.string.button_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) { }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public Builder() { }", "private AlertDialog createAboutDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this).setTitle(R.string.license_title)\n .setMessage(R.string.license).setIcon(R.drawable.about)\n .setNeutralButton(R.string.about_button, null);\n AlertDialog alert = builder.create();\n return alert;\n }", "private Form(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public interface DialogFactory {\n MessageDialog createMessageDialog();\n ListDialog createListDialog();\n SingleChoiceDialog createSingleChoiceDialog();\n MultiChoiceDialog createMultiChoiceDialog();\n}", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static JDialog createDialog(JFrame owner) {\n PlatformInfoPanel panel = new PlatformInfoPanel();\n JDialog dialog = new JDialog(owner, ResourceManager.getResource(PlatformInfoPanel.class, \"Dialog_title\"));\n dialog.getContentPane().add(panel);\n dialog.setSize(panel.getWidth() + 10, panel.getHeight() + 30);\n return dialog;\n}", "private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public SimulatorHelpDialog() {\n super((Frame)null, true);\n initComponents();\n initialize();\n }", "public Dialog(String text) {\n initComponents( text);\n }", "public PacManUiBuilder() {\n this.defaultButtons = false;\n this.buttons = new LinkedHashMap<>();\n this.keyMappings = new HashMap<>();\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "Dialog createDialog(int id) {\n // First we treat the color picker\n if (id >= DIALOG_MASK_COLORS) {\n int icp = id - DIALOG_MASK_COLORS;\n String title = getResources().getStringArray(R.array.items_colors)[icp];\n ColoredPart cp = ColoredPart.values()[icp];\n\n // We can embed our nice color picker view into a regular dialog.\n // For that we use the provided factory method.\n return ColorPickerView.createDialog(this, title, cp.color, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n cp.color = which;\n bmView.invalidate();\n }\n });\n }\n\n // Now we treat all the cases which can easily be built as an AlertDialog.\n // For readability throughout the many cases we don't use chaining.\n AlertDialog.Builder b = new AlertDialog.Builder(this);\n\n switch (id) {\n case DIALOG_LEVEL:\n b.setTitle(R.string.menu_level);\n b.setSingleChoiceItems(R.array.items_level, bmView.level - 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.newGame(which + 1);\n }\n });\n break;\n\n case DIALOG_SIZE:\n b.setTitle(R.string.menu_size);\n b.setSingleChoiceItems(R.array.items_size, bmView.size - 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.initField(which + 1);\n bmView.newGame(0);\n }\n });\n break;\n\n case DIALOG_LIVES:\n b.setTitle(R.string.menu_lives);\n // We use an array adapter in order to be able to relate the selected\n // value to its list position. NOTE: For unclear reasons, passing this\n // adapter even with an additional text view layout id to the builder\n // does not give the same layout as passing the resource id directly.\n // So, we do use the resource id again for that purpose in the call\n // to setSingleChoiceItems.\n final ArrayAdapter<CharSequence> a =\n ArrayAdapter.createFromResource(this, R.array.items_lives, android.R.layout.select_dialog_singlechoice);\n int liv = bmView.getLives();\n int pos = (liv == 0) ? a.getCount() - 1 : a.getPosition(Integer.toString(liv));\n b.setSingleChoiceItems(R.array.items_lives, pos, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n // First check for infinity choice, then for all other possible choices\n if (which == a.getCount() - 1)\n bmView.setLives(0);\n else\n try {\n bmView.setLives(Integer.parseInt(String.valueOf(a.getItem(which))));\n } catch (Exception e) {\n // Do nothing\n Log.e(LOG_TAG, e.getLocalizedMessage(), e);\n }\n }\n });\n break;\n\n case DIALOG_COLORS:\n b.setTitle(R.string.menu_colors);\n b.setItems(R.array.items_colors, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n if (which == ColoredPart.values().length) {\n // Reset colors\n ColoredPart.resetAll();\n bmView.invalidate();\n } else {\n // Call color picker dialog\n doDialog(which + DIALOG_MASK_COLORS);\n }\n }\n });\n break;\n\n case DIALOG_BACKGROUND:\n b.setTitle(R.string.menu_background);\n b.setSingleChoiceItems(R.array.items_background, bmView.background, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.background = which;\n bmView.invalidate();\n }\n });\n break;\n\n case DIALOG_SOUND:\n b.setTitle(R.string.menu_sound);\n // Special treatment for eventually using only a subset of the menu items\n String[] menuIts = new String[NUM_ITEMS_SOUND];\n boolean[] menuSts = new boolean[NUM_ITEMS_SOUND];\n System.arraycopy(\n getResources().getStringArray(R.array.items_settings),\n 0, menuIts, 0, NUM_ITEMS_SOUND);\n System.arraycopy(\n new boolean[]{bmView.isHapticFeedbackEnabled(), bmView.isSoundEffectsEnabled(), musicPlayer.isMusicEnabled},\n 0, menuSts, 0, NUM_ITEMS_SOUND);\n b.setMultiChoiceItems(menuIts, menuSts, (dialog, which, isChecked) -> {\n switch (which) {\n case 0:\n bmView.setHapticFeedbackEnabled(isChecked);\n break;\n\n case 1:\n bmView.setSoundEffectsEnabled(isChecked);\n setVolumeControlStream();\n break;\n\n case 2:\n musicPlayer.toggle(isChecked);\n setVolumeControlStream();\n break;\n\n default:\n dialog.dismiss();\n }\n });\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_CENTER:\n b.setTitle(R.string.menu_center);\n b.setSingleChoiceItems(R.array.items_center, centerDialogs ? 0 : 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n centerDialogs = (which == 0);\n }\n });\n break;\n\n case DIALOG_MIDI:\n b.setTitle(R.string.title_midi);\n b.setMessage(R.string.text_midi);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_ABOUT:\n b.setTitle(R.string.menu_about);\n b.setMessage(R.string.text_about);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_HELP:\n default:\n b.setTitle(R.string.menu_help);\n b.setMessage(R.string.text_help);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n }\n\n return b.create();\n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "private Construct(Builder builder) {\n super(builder);\n }", "public Builder() {\n\t\t}", "public void buildAndShow(String p_Message, String p_Title, String p_PositiveButton, String p_NegativeButton){\r\n AlertDialog.Builder builder = new AlertDialog.Builder(getParameter());\r\n builder.setMessage(p_Message)\r\n .setTitle(p_Title);\r\n builder.setPositiveButton(p_PositiveButton, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n onClickPositive();\r\n }\r\n });\r\n builder.setNegativeButton(p_NegativeButton, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n onClickNegative();\r\n }\r\n });\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }", "private CreateOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder() {\n }", "public Builder() {\n }", "public DialogManager() {\n }", "public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "private Builder(Context context){ this.context=context;}", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.app_help_title);\n builder.setMessage(R.string.app_help_message)\n .setPositiveButton(R.string.app_help_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n return builder.create();\n }", "public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}", "public void alertDialogBasico() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\r\n // 2. Encadenar varios métodos setter para ajustar las características del diálogo\r\n builder.setMessage(R.string.dialog_message);\r\n\r\n\r\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n\r\n }\r\n });\r\n\r\n\r\n builder.show();\r\n\r\n }", "private AlertDialog buildDialog(String deviceName) {\n Builder builder = new Builder(this);\n CharSequence[] items = {\n getString(R.string.bluetooth_pbap_server_authorize_alwaysallowed)\n };\n boolean[] checked = {\n false\n };\n\n String msg = getString(R.string.bluetooth_pbap_server_authorize_message, deviceName);\n\n Log.d(TAG, \"buildDialog : items=\" + items[0]);\n\n builder.setIcon(android.R.drawable.ic_dialog_info).setTitle(R.string.bluetooth_pbap_server_authorize_title).setView(\n createView(msg))\n // .setMessage(msg)\n /*\n * .setMultiChoiceItems (items, checked, new DialogInterface.OnMultiChoiceClickListener(){ public void\n * onClick (DialogInterface dialog, int which, boolean isChecked){ if(which == 0) { mAlwaysAllowedValue =\n * isChecked; }else{ Log.w(TAG, \"index of always allowed is not correct : \"+which); } } } )\n */\n .setPositiveButton(R.string.bluetooth_pbap_server_authorize_allow, this).setNegativeButton(\n R.string.bluetooth_pbap_server_authorize_decline, this);\n\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"Règle du jeu\");\n builder.setMessage(\"Je sais que tu as toujours voulu être un pêcheur ! Voici ta chance. Ton objectif est de pêcher 5 poissons.\\n\\n Comment pêcher :\\n\\n1- Place ton téléphone à l'horizontal, ton écran vers la gauche.\\n\\n2- Attend le poisson.\\n\\n3- Quand ton téléphone vibre, un poisson a mordu à l'hammeçon ! Passe rapidement ton téléphone à la verticale avec ton écran toujours sur la gauche.\\n\\n4-Recommence jusqu'à devenir le roi de la pêche !\\n\\nTips : On ne devient pas pêcheur en jouant à un jeu de pêche.\" );\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // rien à faire\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_fire_missiles)\n .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n return builder.create();\n }", "private void openDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.allmark));\n\t\tfinal List<ReaderTags> listData = ReaderDataBase\n\t\t\t\t.getReaderDataBase(this);\n\t\tif (listData.size() > 0) {\n\t\t\tListView list = new ListView(this);\n\t\t\tfinal MTagAdapter myAdapter = new MTagAdapter(this, listData);\n\t\t\tlist.setAdapter(myAdapter);\n\t\t\tlist.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tJump(arg2, listData, myAdapter);\n\t\t\t\t}\n\t\t\t});\n\t\t\tlist.setOnItemLongClickListener(new OnItemLongClickListener() {\n\n\t\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tdeleteOneDialog(arg2, listData, myAdapter);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tbuilder.setView(list);\n\t\t} else {\n\t\t\tTextView txt = new TextView(this);\n\t\t\ttxt.setText(getString(R.string.nomark));\n\t\t\ttxt.setPadding(10, 5, 0, 5);\n\t\t\ttxt.setTextSize(16f);\n\t\t\tbuilder.setView(txt);\n\t\t}\n\t\tbuilder.setNegativeButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }", "private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState)\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n //attempt to extract number\n number = ((TelephonyManager)((getActivity()).getSystemService(\n Context.TELEPHONY_SERVICE))).getLine1Number();\n\n //create edit text view\n input = new EditText(getActivity());\n input.setHint(R.string.phone_number_hint);\n input.setInputType(InputType.TYPE_CLASS_PHONE);\n input.addTextChangedListener(\n new PhoneNumberFormattingTextWatcher());\n //show edit text if phone number is unavailable\n input.setVisibility(((number == null) || \"\".equals(number))\n ? View.VISIBLE : View.GONE);\n\n builder.setView(input);\n builder.setTitle(R.string.generate_title);\n builder.setPositiveButton(R.string.generate_button, this);\n\n return builder.create();\n }", "public ReorganizeDialog() { }", "private Win(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\treturn buildDialog(MainActivity.this);\n\t\t\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }", "@Override\n\n public Dialog onCreateDialog (Bundle savedInstanceState){\n Bundle messages = getArguments();\n Context context = getActivity();\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n\n builder.setPositiveButton(\"OKAY\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n if(messages != null) {\n //Add the arguments. Supply a default in case the wrong key was used, or only one was set.\n builder.setTitle(messages.getString(TITLE_ID, \"Error\"));\n builder.setMessage(messages.getString(MESSAGE_ID, \"There was an error.\"));\n }\n else {\n //Supply default text if no arguments were set.\n builder.setTitle(\"Error\");\n builder.setMessage(\"There was an error.\");\n }\n\n AlertDialog dialog = builder.create();\n return dialog;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n \tswitch (id) {\n\t\tcase DLG_PROGRESSBAR:\n\t\t\treturn dialogoProgressBar();\n\t\tcase DLG_BUTTONS:\n\t\t\treturn dialogButtons();\n\t\tcase DLG_LIST:\n\t\t\treturn dialogLista();\n\t\tcase DLG_LIST_SELECT:\n\t\t\treturn dialogListaSelect();\n\t\tdefault:\n\t\t\treturn dialogButtons();\n\t\t}\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(msg)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n\n Dialog dialog = builder.create();\n\n // Create the AlertDialog object and return it\n return dialog;\n }", "private Contacts(final Builder builder){\n this.mUsername = builder.mUsername;\n this.checked = builder.checked;\n\n }", "private Dialog buildLoadingDialog() {\n ProgressDialog dialog = new ProgressDialog(this);\n dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n dialog.setMessage(getText(R.string.dialog_loading));\n dialog.setIndeterminate(true);\n dialog.setCancelable(false);\n return dialog;\n }", "@Override\n public Dialog onCreateDialog (Bundle SaveInstanceState) {\n\n /* Get context from current activity.*/\n Context context = getActivity();\n\n /* Create new dialog, and set message. */\n AlertDialog.Builder ackAlert = new AlertDialog.Builder(context);\n String message = getString(R.string.msg_about_us);\n ackAlert.setMessage(message);\n\n /* Create button in dialog. */\n ackAlert.setNeutralButton(R.string.btn_got_it, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n /* Set title and show dialog. */\n ackAlert.setTitle(\"About us\");\n ackAlert.create();\n\n return ackAlert.create();\n }", "private static AlertDialog createDialog(\n Context context, MenuDialogListenerHandler listenerHandler) {\n Resources resources = context.getResources();\n String[] menuDialogItems = resources.getStringArray(R.array.menu_dialog_items);\n String appName = resources.getString(R.string.app_name);\n for (int i = 0; i < menuDialogItems.length; ++i) {\n menuDialogItems[i] = String.format(menuDialogItems[i], appName);\n }\n\n AlertDialog dialog = new AlertDialog.Builder(context)\n .setTitle(R.string.menu_dialog_title)\n .setAdapter(new MenuDialogAdapter(context, menuDialogItems), listenerHandler)\n .create();\n dialog.setOnDismissListener(listenerHandler);\n return dialog;\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "private ListSelectionDialogFactory() {\n }" ]
[ "0.70603955", "0.69790804", "0.6929949", "0.692271", "0.6866671", "0.67297786", "0.66794777", "0.6679368", "0.6638751", "0.6617405", "0.6549817", "0.6539394", "0.652435", "0.65164286", "0.6469162", "0.64641607", "0.6451098", "0.6425593", "0.6419002", "0.6419002", "0.63697636", "0.6362946", "0.6348533", "0.63397425", "0.63205034", "0.6315255", "0.62899107", "0.6279066", "0.6255064", "0.62463814", "0.6233295", "0.6221355", "0.6221355", "0.6221355", "0.621799", "0.6214696", "0.6212629", "0.62022954", "0.61911577", "0.61677307", "0.61590385", "0.61547756", "0.61547756", "0.61547756", "0.61547756", "0.6152405", "0.6150748", "0.6126093", "0.6126093", "0.6126093", "0.6108865", "0.6107269", "0.61021024", "0.6101541", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.60972", "0.6083444", "0.60832953", "0.608137", "0.6077906", "0.60771704", "0.6075108", "0.6075108", "0.606598", "0.6060883", "0.6042717", "0.603757", "0.6034628", "0.6034444", "0.60330576", "0.60299385", "0.60270756", "0.60245895", "0.6022762", "0.6019728", "0.60144365", "0.6000957", "0.6000562", "0.59880924", "0.5983779", "0.59832495", "0.5982931", "0.59794927", "0.59721416", "0.59631276", "0.59615767", "0.5956427", "0.5951335", "0.5944818", "0.59437215", "0.5942802" ]
0.0
-1
if ok is clicked retrieve the value and pass it to the listener
public void onClick(DialogInterface dialog, int id) { int value = numberPicker.getValue(); listener.onScoreSelected(Integer.toString(value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttext.setText(ok.getText());\n\t\t\t}", "void okButtonClicked();", "protected abstract boolean onOkClicked();", "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (which >= 0) {\n data.putString(DialogConts.KEY_VALUE, values[which]);\n } else {\n data.putBoolean(DialogConts.KEY_BUTTON_POSITIVE, which == DialogInterface.BUTTON_POSITIVE);\n listener.onDialogResult(data);\n }\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n callbackContext.success(edittext.getText().toString());\n }", "public void clickedOk(View view) {\n \t\n \t// validate the data set\n \tif (!getData()) return;\n \t\n \t// confirm values that are in range, but possibly wrong\n \tif (!confirmData(0)) return;\n \t\n \t// success\n \t\treturnResult(Activity.RESULT_OK);\n }", "@Override\r\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tstatus = txt_status.getText();\r\n\t\t\t}", "void onOkButtonPressed();", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(isSuccesfull()){\r\n\t\t\t\t\tIntent intent=new Intent();\r\n\t\t\t\t\tintent.putExtra(\"region\", regionText);\r\n\t\t\t\t\tintent.putExtra(\"tree\", treeText);\r\n\t\t\t\t\tintent.putExtra(\"ar\", iar);\r\n\t\t\t\t\tintent.putExtra(\"db\", idb);\r\n\t\t\t\t\tintent.putExtra(\"dm\", idm);\r\n\t\t\t\t\tintent.putExtra(\"dw\", idw);\r\n\t\t\t\t\tintent.putExtra(\"de\", ide);\r\n\t\t\t\t\tintent.putExtra(\"calV\", Calculate.CalV(transformStringToInt(regionText), transformStringToInt(treeText), idb, idm, idw, ide, iar));\r\n\t\t\t\t\tsetResult(RESULT_OK, intent);\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(InputDialog.this);\r\n\t\t\t\t\tbuilder.setTitle(R.string.app_name).setNegativeButton(\"知道了\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).setMessage(\"请按规定输入\");\r\n\t\t\t\t\tDialog dialog=builder.create();\r\n\t\t\t\t\tdialog.show();\r\n\t\t\t\t}\r\n\t\t\t}", "private Listener btn_Ok_Clicked() {\n\t\treturn new Listener() {\r\n\t\t\tpublic void handleEvent(Event event) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon = DriverManager.getConnection(conn1.url,\r\n\t\t\t\t\t\t\tconn1.getUsername(), conn1.getPassword());\r\n\t\t\t\t} catch (SQLException 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\ttry {\r\n\t\t\t\t\tstmt = con.createStatement();\r\n\t\t\t\t\tString query = \"INSERT INTO SINHVIEN (IDSINHVIEN,TENSINHVIEN,NGAYSINH,DIACHI,STATUS,IDLOP,DATEJOIN,DATEEND) \"\r\n\t\t\t\t\t\t\t+ \"VALUES ('\"\r\n\t\t\t\t\t\t\t+ idsv\r\n\t\t\t\t\t\t\t+ \"','\"\r\n\t\t\t\t\t\t\t+ tensv\r\n\t\t\t\t\t\t\t+ \"',to_date('\"\r\n\t\t\t\t\t\t\t+ ngaysinh\r\n\t\t\t\t\t\t\t+ \"','YYYY/MM/DD'),'\"\r\n\t\t\t\t\t\t\t+ diachi\r\n\t\t\t\t\t\t\t+ \"','\"\r\n\t\t\t\t\t\t\t+ status\r\n\t\t\t\t\t\t\t+ \"','\"\r\n\t\t\t\t\t\t\t+ idLop\r\n\t\t\t\t\t\t\t+ \"','\"\r\n\t\t\t\t\t\t\t+ datejoin + \"','\" + dateend + \"')\";\r\n\t\t\t\t\tstmt.executeUpdate(query);\r\n\t\t\t\t\tMessageBox m = new MessageBox(shell);\r\n\t\t\t\t\tm.open();\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} finally {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tstmt.close();\r\n\t\t\t\t\t\tcon.close();\r\n\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\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}", "private void onValider() {\n recuperation​(Reponse.getText());\r\n\r\n }", "@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n actualizarEntidad(this.entidad);\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }", "void okButton_actionPerformed(ActionEvent e) {\n setItskey(keyTextField.getText());\n setItsvalue(valueTextField.getText());\n setUserAction(OK);\n setVisible(false);\n }", "public void actionPerformed(ActionEvent arg0)\n {\n userAlert = chkAlert.getState();\n }", "private void onOK() {\n show.setText(null);\n String s = (new ArithmeticExpressions(text.getText()).checkExpression());\n System.out.println(s);\n show.setText(s);\n }", "private void onOK() {\n isOkClicked = true;\n dispose();\n }", "@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_1;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n Object source = e.getSource();\n if (source == confirmButton) {\n var newResult = new Result(result, name.getText());\n try {\n newResult.saveResult();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n }\n }", "public void OnOkClick()\r\n {\r\n\r\n }", "@FXML\n private void handleOk() {\n if (isInputValid()) {\n gem.setGemName(gemNameField.getText());\n gem.setGemValue(Integer.parseInt(gemValueField.getText()));\n gem.setDescription(gemDescripField.getText());\n\n okClicked = true;\n dialogStage.close();\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which){\n guardarUsr();\n }", "@FXML\n private void handleOk() {\n System.out.println(\"handleOk AdresEditController\");\n if (isInputValid()) {\n //aby udalo sie select\n adres.setPrev_adres_id(adres.getAdres_id());\n\n adres.setAdres_id(Integer.parseInt(adres_id_textField.getText()));\n adres.setWojewodztwo(wojewodztwo_textField.getText());\n adres.setMiejscowosc(miejscowosc_textField.getText());\n adres.setUlica(ulica_textField.getText());\n adres.setKraj(kraj_textField.getText());\n adres.setKod_pocztowy(kod_pocztowy_textField.getText());\n\n adres.update();\n\n okClicked = true;\n dialogStage.close();\n }\n }", "@FXML\n\tprivate void handleOk() {\n\t\tif (isInputValid()) {\n\t\t\titem.setDate(DateUtil.parse(dateField.getText()));\n\t\t\titem.setCategory(categoryField.getSelectionModel().getSelectedItem());\n\t\t\titem.setUse(useField.getText());\n\t\t\t\n\t\t\tString textBefore = amountField.getText();\n\t\t\tString textAfter = null;\n\t\t\tif(textBefore.contains(\",\")) {\n\t\t\t\ttextAfter = textBefore.replace(\",\", \".\");\n\t\t\t} else {\n\t\t\t\ttextAfter = textBefore;\n\t\t\t}\n\t\t\titem.setAmount(Double.parseDouble(textAfter));\n\t\t\titem.setDistributionKind(distributionKindField.getText());\n\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\n\t\t}\n\t}", "@Override\n\tprotected void processClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.bt_title_left:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tcase R.id.bt_ok:\n\t\t\tint max = moneyData.getKetixian();\n\t\t\tif(max>0)\n\t\t\t\tstartActivity(new Intent(context, UpdateNameActivity.class).putExtra(\"max\", max));\n\t\t\telse\n\t\t\t\tshowToast(\"没有可提现的金额\");\n\t\t\t\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptd=btnoptd.getText().toString();\n\t\t\t\tCheckAns(optd,currentPosition);\n\t\t\t\t//Log.e(\"ans\", optd);\n\t\t\t}", "private void updateAndAlertListener() {\n\n\t\teditText.setText(getRoundedValue(value));\n\n\t\tif (changeListener != null) {\n\t\t\tchangeListener.onValueChange(this, value);\n\t\t}\n\t}", "public void setConfirmButtonListener() {\r\n Confirm.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n if(!NumberCheckUtil.checkIfStringIsNum(Age.getText().toString())) {\r\n displayInvalidNumberAlert(1);\r\n return;\r\n }\r\n\r\n age = Integer.parseInt(Age.getText().toString());\r\n\r\n if(age < 2) {\r\n displayInvalidNumberAlert(1);\r\n return;\r\n }\r\n\r\n if(!NumberCheckUtil.checkIfStringIsNum(Height.getText().toString())) {\r\n displayInvalidNumberAlert(2);\r\n return;\r\n }\r\n\r\n if(!NumberCheckUtil.checkIfStringIsNum(Weight.getText().toString())) {\r\n displayInvalidNumberAlert(3);\r\n return;\r\n }\r\n\r\n name = Name.getText().toString();\r\n height = Integer.parseInt(Height.getText().toString());\r\n weight = Integer.parseInt(Weight.getText().toString());\r\n gender = Gender.getSelectedItem().toString();\r\n selected = findViewById(ActivityLevel.getCheckedRadioButtonId());\r\n activityLevel = selected.getText().toString();\r\n\r\n Intent confirm = new Intent(MainActivity.this, StatsDisplayActivity.class);\r\n confirm.putExtra(\"name\", name);\r\n confirm.putExtra(\"age\", age);\r\n confirm.putExtra(\"gender\", gender);\r\n confirm.putExtra(\"activityLevel\", activityLevel);\r\n confirm.putExtra(\"height\", height);\r\n confirm.putExtra(\"weight\", weight);\r\n startActivity(confirm);\r\n }\r\n });\r\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n setOnVacationOk(atc, guiD, sm);\n }", "public void onClick(View v) {\n Integer poids = 0;\n Integer taille = 0;\n Integer age = 0;\n\n try {\n poids = Integer.parseInt(txtPoids.getText().toString());\n taille = Integer.parseInt(txtTaille.getText().toString());\n age = Integer.parseInt(txtAge.getText().toString());\n } catch (Exception e) {\n }\n\n int sexe = 0;\n if (rdHomme.isChecked()) {\n sexe = 1;\n }\n if (poids == 0 || taille == 0 || age == 0) {\n Toast.makeText(CalculActivity.this, \"Veuillez saisir tous les champs\", Toast.LENGTH_SHORT).show();\n } else {\n afficheResult(poids, taille, age, sexe, dateMesure);\n }\n }", "@Override\n public void onClick(View v){\n setResult(RESULT_OK);\n if (textboxInitialValue.getText().length() > 0) {\n textboxInitialValue.setEnabled(false);\n buttonAddInitialValue.setEnabled(false);\n if (fieldsAreFilled()) {\n buttonSubmit.setEnabled(true);\n }\n }\n }", "@FXML\r\n\tprivate void handleOk() {\r\n\tif (isDateInputValid()) {\r\n\t\t\tLocalDate date = startdate.getValue();\r\n\t\t\tLocalDate findate = enddate.getValue();\r\n\t\t\tleavedata.setStartdate(date);\r\n\t\t\tleavedata.setEnddate(findate);\r\n\r\n\t\t\tEmployee employee = namefield.getSelectionModel().getSelectedItem();\r\n\t\t\tleavedata.setEmployee(employee);\r\n\t\t\t\r\n\t\t\tokClicked = true;\r\n\t\t\trosterService.addLeaveData(leavedata);\r\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\r\n\t\t\talert.setTitle(\"Information Dialog\");\r\n\t\t\talert.setHeaderText(null);\r\n\t\t\talert.setContentText(\"Update Succesfull\");\r\n\t\t\talert.showAndWait();\r\n\t\t\tdialogStage.close();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tboolean value = this.getValue();\n\t\t\n\t\tint bValue = Constants.isTrue;\n\t\tif(value) {\n\t\t\tbValue = Constants.isTrue;\n\t\t} else {\n\t\t\tbValue = Constants.isFalse;\n\t\t}\n\t\t//System.out.println(\"Huhu\");\n\t\tStaticHolder.area.setVariable(this.varNumber, bValue);\n\t\tStaticHolder.area.repaint();\n\t\tif(StaticHolder.area.isTrue()) {\n\t\t\tJOptionPane.showMessageDialog(StaticHolder.mainWindow, \"Herzlichen Glückwunsch! Sie haben gewonnen.\");\n\t\t}\n\t\t\n\t}", "@Override\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\tcon.setResult(btnName);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\toptb=btnoptb.getText().toString();\n\t\t\t\tCheckAns(optb,currentPosition);\n\t\t\t\t//Log.e(\"ans\", optb);\n\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n ip = ((JComboBox) e.getSource()).getSelectedItem().toString();\n ok.setEnabled(true);\n System.out.println(ip);\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJOptionPane.showConfirmDialog(null, \"BOTAO CLICADO\", \"VALOR\", JOptionPane.PLAIN_MESSAGE);\n\n\t\t}", "abstract public boolean onPositiveClicked(String userInput);", "void ShowOkDialog(String title, String message, OnClickListener listener);", "@Override\n public void onClick(View v) {\n if (Model.isEmpty(rectanglePerimeterLET)) {\n rectanglePerimeterLET.setError(Html.fromHtml (\"<font color='red'>Enter value</font>\"));\n } else if (Model.isEmpty(rectanglePerimeterWET)) {\n rectanglePerimeterWET.setError(Html.fromHtml (\"<font color='red'>Enter value</font>\"));\n } else {\n double length, width, rectanglePerimeter;\n length = Double.parseDouble(rectanglePerimeterLET.getText().toString());\n width = Double.parseDouble(rectanglePerimeterWET.getText().toString());\n if (length <= 0) {\n rectanglePerimeterAnswerTV.setText(\"The variable l should be positive\");\n } else if (width <= 0) {\n rectanglePerimeterAnswerTV.setText(\"The variable w should be positive\");\n } else {\n rectanglePerimeter = 2 *(length+width);\n rectanglePerimeterAnswerTV.setText(String.format(\"%.02f\", rectanglePerimeter));\n }\n }\n }", "@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n \temployee.setId(Integer.parseInt(idLabel.getText()));\r\n \temployee.setFirstName(firstNameField.getText());\r\n \temployee.setLastName(lastNameField.getText());\r\n \temployee.setIndustry(industryField.getText());\r\n \temployee.setWorkType(workTypeField.getText());\r\n \temployee.setAddress(addressField.getText());\r\n \t\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }", "@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n video.setName(nameField.getText());\r\n video.setUrl(urlField.getText());\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }", "@Override\r\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tisubject=bl.get(arg2)[0];\r\n\t\t\t\t\t\t\t\t\tiamount=bl.get(arg2)[1];\r\n\t\t\t\t\t\t\t\t\timode=bl.get(arg2)[2];\r\n\t\t\t\t\t\t\t\t\tidate=bl.get(arg2)[3];\r\n\t\t\t\t\t\t\t\t\tshowDialog(DETAIL_DIALOG);\r\n\t\t\t\t\t\t\t\t}", "@SuppressWarnings(\"serial\")\n\tprivate void cancelOkHandler(Button cancel,Button ok)\n\t{\n\t\tok.addClickListener(new ClickListener() \n {\n\t\t\t@Override\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) \n\t\t\t{\n\t\t\t\terrorMessages.setVisible(false);\n\t\t\t\tif (editable)\n\t\t\t\t{\n\t\t\t\t\tif (((!(tf0.getValue().toString().trim().length() > 0))||(tf0.getValue().toString().equals(\"\"))||(tf0.getValue()==null)||(sf6.getValue()==null)||(sf1.getValue()==null)||(df3.getValue()==null)))\n\t\t\t\t\t{\n\t\t\t\t\t\tif ((!(tf0.getValue().toString().trim().length() > 0))||(tf0.getValue().toString().equals(\"\"))||(tf0.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"Wrong input on Name field(Name can not be empty!).\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif((sf1.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"I need you to tell me the Customer!\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif((sf6.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"Active field can't be empty!\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ((df3.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"I need the Start Date from you.\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!isfloat(tf7.getValue().toString())&&(!tf7.getValue().toString().equals(\"\"))||tf7.getValue().toString().length()>5)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"Budget should be a number with a max of 5 digits\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (!(checkdates(df3.getValue(),df4.getValue())&&checkdates(df3.getValue(),df5.getValue())&&checkdates(df5.getValue(),df4.getValue())))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(!checkdates(df3.getValue(),df4.getValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"End date can't be before Start date.\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(!checkdates(df3.getValue(),df5.getValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"Deadline should be between start/end(check Deadline).\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(!checkdates(df5.getValue(),df4.getValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"Deadline should be between start/end(check Deadline).\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(( Mode.equals(\"New Project\"))||( Mode.equals(\"Edit\")))\n\t\t\t\t\t \t{\n\t\t\t\t\t\t\t\t\tsetProject();\n\t\t\t\t\t \t}\n\t\t\t\t\t\t\t\t//Chekare an oles oi hmeromhnies twn tasks sou einai swstes\n\t\t\t\t\t\t\t\tif (checkProjectTaskDates(project))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdb.projectModifier(Mode, project, taskManager);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcatch (SQLException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tErrorWindow wind = new ErrorWindow(e); \n\t\t\t\t\t\t\t\t UI.getCurrent().addWindow(wind);\t\n\t\t\t\t\t\t\t\t e.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tproject_container.removeAllItems();\n\t\t\t\t\t\t\t\t\tgntTraineeProjectUI.containerFiller(project_table,project_container);\n\t\t\t\t\t\t\t\t\tproject_table.setContainerDataSource(project_container);\n\t\t\t\t\t\t\t\t\tclose();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"Tasks/project dates mismatch(check task/project dates).\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tclose();\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t}\n });\n\t\t\n\t\tcancel.addClickListener(new ClickListener() \n {\n\t\t\t@Override\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) \n\t\t\t{\n\t\t\t\terrorMessages.setVisible(false);\n\t\t\t\t close();\n\t\t\t\t\n\t\t\t}\n });\n\t}", "@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusActivo());\n\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t}", "public void actionPerformed(ActionEvent e)\n { /* actionPerformed */\n String\n cmd= e.getActionCommand();\n \n /* [1] see which button was pushed and do the right thing,\n * hide window and return default/altered data */\n if (cmd.equals(\" Cancel\") || cmd.equals(\"Continue\"))\n { /* send default data back - data is already stored into this.data */\n this.setVisible(false); /* hide frame which can be shown later */\n } /* send default data back */\n else\n if(cmd.equals(\"Ok\"))\n { /* hide window and return data back entered by user */\n data= textField.getText(); /* altered data returned */\n this.setVisible(false); /* hide frame which can be shown later*/\n }\n alertDone= true;\n }", "@FXML\n\tprivate void handleOk() {\n\t\ttry {\n\t\t\ttypeDAO.supprimerType(new Type(listIdType.get(comboboxtype.getSelectionModel().getSelectedIndex()),\"\",\"\"));\n\t\t\tnew Popup(\"Type \"+comboboxtype.getValue()+\" supprimer !\");\n\t\t} catch (ConnexionBDException e) {\n\t\t\tnew Popup(e.getMessage());\n\t\t}\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\t}", "public void onClicked();", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptc=btnoptc.getText().toString();\n\t\t\t\tCheckAns(optc,currentPosition);\n\t\t\t\t//Log.e(\"ans\", optc);\n\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n nextdata();\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\ttry {\r\n\t\t\tString txt_nom = paramActeur.getAct_nom();\r\n\t\t\tString txt_prenom = paramActeur.getAct_pre();\r\n\t\t\tString txt_mail = paramActeur.getAct_mai();\r\n\t\t\tString txt_tel = paramActeur.getAct_tel();\r\n\t\t\tString txt_grp = paramActeur.getAct_grp();\r\n\t\t\tString txt_login = paramActeur.getAct_log();\r\n\t\t\tString txt_pass = paramMdp1.getmdp_pw();\r\n\t\t\tString txt_pass2 = paramMdp2.getmdp_pw();\r\n\t\t\tString txt_ville = paramLoc.getLoc_lib();\r\n\t\t\tString txt_type = paramType.getTyp_lib();\r\n\t\t\t\r\n\t\t\tSystem.out.println(txt_type);\r\n\t\t\t\r\n\t\t\tDB_Connection conn = new DB_Connection();\r\n\t\t\tConnection laCo = conn.get_connection();\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch(Exception ex) {\r\n\t\t\tex.getMessage();\r\n\t\t}\r\n\t\t//if(e.getSource() == application) {\r\n\t\t\tInscrire(); \r\n\t\t//}\r\n\t\t\r\n\t\t\r\n\t}", "public void onClick(DialogInterface dialog, int which) {\n manualSuit = which;\n }", "@Override\n\tpublic void okPressed() {\n\t\t_text = _noteTextField.getText();\n\t\tsetReturnCode(OK);\n\t\tclose();\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\topta=btnopta.getText().toString();\n\t\t\t\tCheckAns(opta,currentPosition);\n\t\t\t\t \n\n\t\t\t}", "@FXML\n\tprivate void handleOk() {\n\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n String input = Text.getText().toString();\n\n Intent intent = new Intent();\n intent.putExtra(\"?\", input);\n\n setResult(RESULT_OK, intent);\n finish();\n\t\t\t}", "protected void buttonPressed(int buttonId) {\r\n if (buttonId == IDialogConstants.OK_ID) {\r\n value = text.getText();\r\n } else {\r\n value = null;\r\n }\r\n super.buttonPressed(buttonId);\r\n }", "@FXML public void handleOk() {\n\t\tSystem.out.println(\"OK clicked!\");\n\t\t\n\t\tif (checkParameters().equals(ErrorCode.BatchSize)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Batch Size]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.ConfidenceFactor)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Confidence Factor]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.MinNumObj)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Min Num Obj]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumDecimalPlaces)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Decimal Places]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumFolds)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Folds]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Seed)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Seed]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Fine)) {\n\t\t\tsaveParameters();\n\t\t\tClassifiersWindowsManager.stage.close();\n\t\t}\n\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\ttargetCalorie=(np.getValue()+1)*10;\r\n\t\t\t\t\t\ttvTargetCalorie.setText(targetCalorie+\"k cal\");\r\n\t\t\t\t\t\tgetSharedPreferences(\"sport_data\", Context.MODE_PRIVATE).edit().putInt(\"targetDistance\", targetDistance).commit();\r\n\t\t\t\t\t}", "private void clickOk(){\n bnOk.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n if(nameTask.getText().toString().matches(\"\")){\n Toast.makeText(activity.getApplicationContext(), activity.getResources().getString(R.string.noNameEntered), Toast.LENGTH_SHORT ).show();\n return;\n }\n\n schedulerDB.updateData(id, nameTask.getText().toString(), day);\n dismiss();\n\n }\n });\n }", "protected abstract void pressedOKButton( );", "private void ValorActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Override\r\n\tprotected void onOkSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Ok button implementation\");\r\n\t}", "@Override\n public void onClick(View v) {\n if (AddNewCarActivity.isedit) {\n if (!AddNewCarActivity.addCarModelObject.getStrStatus().contains(edt_Status.getText().toString()) && !AddNewCarActivity.addCarModelObject.editFilied.contains(ParamsKey.KEY_vehicleStatus)) {\n AddNewCarActivity.addCarModelObject.editFilied.add(ParamsKey.KEY_vehicleStatus);\n }\n }\n AddNewCarActivity.addCarModelObject.setStrStatus(edt_Status.getText().toString().trim());\n callbackAdd.onNextSecected(false, null);\n }", "public void itemOkay() \r\n\t{\n\t\t\r\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tnew UserData(Username,true,\"Verification\");\n\t\t\t}", "@Override\n public void handle(ActionEvent event) {\n if (event.getSource() == Kajatipus) {\n System.out.println(Kajatipus.getValue());\n \n }\n\n }", "@Override\n public void onSureClick(String value) {\n tenPayPopWindow.dismiss();\n checkPresenterImpl.addTenPayPayment(cashierResult.bill.unpaid, value);\n }", "public void onClick(DialogInterface dialogBox, int id) {\n map.put(\"status\", \"Đang sửa chữa\");\n map.put(\"message\", userInputDialogEditText.getText().toString());\n map.put(\"time\", DateFormat.getDateTimeInstance().format(new Date()));\n reference1.push().setValue(map);\n }", "@FXML\n\tprivate void handleOk(){\n\t\tif(isInputValid()){\n\t\t\tproduct.setName(nameField.getText());\n\t\t\tproduct.setAmountAvailable(Integer.parseInt(amountAvailableField.getText()));\n\t\t\tproduct.setAmountSold(Integer.parseInt(amountSoldField.getText()));\n\t\t\tproduct.setPriceEach(Integer.parseInt(priceEachField.getText()));\n\t\t\tproduct.setPriceMake(Integer.parseInt(priceMakeField.getText()));\n\t\t\t// Converts the values to ints and then subtracts\n\t\t\tproduct.setProfit(Integer.parseInt(priceEachField.getText())-Integer.parseInt(priceMakeField.getText()));\n\t\t\t// Converts the values to ints, subtracts, and then multiplies\n\t\t\tproduct.setMoney((Integer.parseInt(priceEachField.getText())-Integer.parseInt(priceMakeField.getText()))*Integer.parseInt(amountSoldField.getText()));\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\t\n\t\t}\n\t}", "public interface GetDialogResultListener {\n void getDialogResult(int mode, String result);\n}", "public void actionPerformed(ActionEvent e) {\r\n String command = e.getActionCommand();\r\n if (command.equals(\"OK\")) {\r\n if (validateData()) {\r\n validData = true;\r\n setVisible(false);\r\n int index = aggList.getSelectedIndex();\r\n if (index != 0) {\r\n TASKAggInfo agg = (TASKAggInfo)aggregators.elementAt(aggList.getSelectedIndex()-1);\r\n }\r\n }\r\n }\r\n else if (command.equals(\"Cancel\")) {\r\n setVisible(false);\r\n }\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickOK();\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tis_draft = \"1\";\n\t\t\t\tValidateValue();\n\n\t\t\t}", "public void onClick(DialogInterface dialogBox, int id) {\n map.put(\"status\", \"Đang di chuyển\");\n map.put(\"message\", userInputDialogEditText.getText().toString());\n map.put(\"time\", DateFormat.getDateTimeInstance().format(new Date()));\n reference1.push().setValue(map);\n }", "@Override\n public void onClick(View v) {\n if (Model.isEmpty(rectangleAreaLET)) {\n rectangleAreaLET.setError(Html.fromHtml (\"<font color='red'>Enter value</font>\"));\n } else if (Model.isEmpty(rectangleAreaWET)) {\n rectangleAreaWET.setError(Html.fromHtml (\"<font color='red'>Enter value</font>\"));\n } else {\n double length, width, rectangleArea;\n length = Double.parseDouble(rectangleAreaLET.getText().toString());\n width = Double.parseDouble(rectangleAreaWET.getText().toString());\n if (length <= 0) {\n rectangleAreaAnswerTV.setText(\"The variable l should be positive\");\n } else if (width <= 0) {\n rectangleAreaAnswerTV.setText(\"The variable w should be positive\");\n } else {\n rectangleArea = width*length;\n rectangleAreaAnswerTV.setText(String.format(\"%.02f\", rectangleArea));\n }\n }\n }", "public void actionPerformed(ActionEvent e) {\n\t\toptionPane.setValue(okString);\n\t}", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n String playerName=nameTextField.getText();\n String playerNumber=numberTextField.getText();\n String message=\"\";\n\n if(playerName.equals(\"\"))\n {\n message=\"the name field is empty! \\n\";\n }\n if(playerNumber.equals(\"\")||(Integer.parseInt(playerNumber)!=2&&(Integer.parseInt(playerNumber))!=3))\n {\n message+=\"Remember a game is composed by 2 or 3 players\";\n }\n if (actionEvent.getActionCommand().equals(\"submit\"))\n {\n Choice c=new PlayerNumberChoice(playerName,Integer.parseInt(playerNumber));\n view.setPlayerName(playerName);\n view.notify(c);\n submitButton.setEnabled(false);\n }\n else\n {\n JOptionPane.showMessageDialog(lobbyWindowFrame,message);\n }\n }", "public void status_clicked(View view) {\n Intent intent = new Intent(this, StatusActivity.class);\n // EditText editText = (EditText) findViewById(R.id.editText);\n // String message = \"final data\";\n // intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }", "@Override\r\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tngaysinh = txt_ngaysinhSinhVien.getText();\r\n\t\t\t}", "public void onClick(DialogInterface dialogBox, int id) {\n map.put(\"status\", \"Đợi thiết bị\");\n map.put(\"message\", userInputDialogEditText.getText().toString());\n map.put(\"time\", DateFormat.getDateTimeInstance().format(new Date()));\n reference1.push().setValue(map);\n }", "public void onClick(View view) {\n\n InputNameDialogListener activity = (InputNameDialogListener) getActivity() ;\n if(IsOnEditMode)\n {\n activity.onFinishBudgetDialog(new BudgetItemModel(BudgetItemModel.BudgetType.valueOf(type.getText().toString()) ,txtname.getText().toString(),Integer.parseInt(amount.getText().toString())),listPosition);\n\n }\n else\n {\n activity.onFinishBudgetDialog(new BudgetItemModel(BudgetItemModel.BudgetType.valueOf(type.getText().toString()) ,txtname.getText().toString(),Integer.parseInt(amount.getText().toString())));\n\n }\n\n //---dismiss the alert\n dismiss();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString ans1 = editbangundatar.getText().toString();\n\t\t\t\tint answer = Integer.parseInt(editbangundatar.getText().toString());\n\t\t\t\tif(answer == 16){\n\t\t\t\t\t\n\t\t\t\t\tToast.makeText(getActivity(), \"True\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tToast.makeText(getActivity(), \"Maaf, jawaban anda salah\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tupdateOkState();\r\n\t\t\t}", "private void completedButtonListener() {\n JButton completedButton = gui.getButton_Completed();\n\n ActionListener actionListener = (ActionEvent actionEvent) -> {\n gui.getCompleted_Text().setText(\"\");\n gui.getFrame_Completed().setVisible(true);\n gui.getFrame_Completed().setSize(415, 250);\n gui.getCompleted_TextArea().setEditable(false);\n for (int key : requestsAnswered.keySet()) {\n gui.getCompleted_TextArea().append(requestsAnswered.get(key).getFormattedRequest());\n }\n };\n\n completedButton.addActionListener(actionListener);\n\n }", "@Override\n public Object getCellEditorValue() {\n\n if(clicked)\n {\n //SHOW US SOME MESSAGE\n //JOptionPane.showMessageDialog(btn, lbl+\" Clicked\");\n //EtapaProvaPage etapaProvaPage = new EtapaProvaPage(this.provas.get(row));\n //etapaProvaPage.setVisible(true);\n switch(lbl){\n case \"Selecionar Atletas\":\n var selecionarAtletasPage = new SelecionarAtletasPage(this.etapa.getGrupos().get(row), this.etapa.getAtletas());\n selecionarAtletasPage.setVisible(true);\n break;\n case \"Selecionar Vencedores\":\n selecionarVencedoresPageInRowClicked();\n break;\n case \"Registar Valores\":\n registarValoresInRowClicked();\n break;\n }\n }\n //SET IT TO FALSE NOW THAT ITS CLICKED\n clicked=false;\n return new String(lbl);\n }", "private void setonclickListener() {\n\n\t\ttry {\n\n\t\t\t// rf_booking_loyalty_pts_value_\n\t\t\t// .addTextChangedListener(new TextWatcher() {\n\t\t\t//\n\t\t\t// @Override\n\t\t\t// public void onTextChanged(CharSequence s, int start,\n\t\t\t// int before, int count) {\n\t\t\t// // TODO Auto-generated method stub\n\t\t\t//\n\t\t\t// System.out.println(\"!!!!!!!!!!!!!!!!!!!Shikha\");\n\t\t\t//\n\t\t\t// try {\n\t\t\t// if (SharedPreference\n\t\t\t// .get_user_loyalty_pts(getApplicationContext()) != \"\") {\n\t\t\t// System.out\n\t\t\t// .println(\"!!!!!!!!!!!!!!!!!!!Shikha2\");\n\t\t\t// int points = Integer\n\t\t\t// .parseInt(rf_booking_loyalty_pts_value_\n\t\t\t// .getText().toString());\n\t\t\t//\n\t\t\t// if (Integer.parseInt(SharedPreference\n\t\t\t// .get_user_loyalty_pts(getApplicationContext())) >=\n\t\t\t// Global_variable.min_lp_to_redeem) {\n\t\t\t// if (Integer.parseInt(SharedPreference\n\t\t\t// .get_user_loyalty_pts(getApplicationContext())) <=\n\t\t\t// Global_variable.max_lp_to_redeem) {\n\t\t\t// if (points <= Integer.parseInt(SharedPreference\n\t\t\t// .get_user_loyalty_pts(getApplicationContext()))) {\n\t\t\t// loyalty_flag = true;\n\t\t\t// } else {\n\t\t\t// loyalty_flag = false;\n\t\t\t// Toast.makeText(\n\t\t\t// getApplicationContext(),\n\t\t\t// getString(R.string.str_You_dont),\n\t\t\t// Toast.LENGTH_SHORT)\n\t\t\t// .show();\n\t\t\t// }\n\t\t\t// } else {\n\t\t\t// loyalty_flag = false;\n\t\t\t// Toast.makeText(\n\t\t\t// getApplicationContext(),\n\t\t\t// getString(R.string.str_Your_Loyalty)\n\t\t\t// + Global_variable.max_lp_to_redeem,\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t// }\n\t\t\t// } else {\n\t\t\t// loyalty_flag = false;\n\t\t\t// Toast.makeText(\n\t\t\t// getApplicationContext(),\n\t\t\t// getString(R.string.str_less_than)\n\t\t\t// + Global_variable.min_lp_to_redeem,\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t// }\n\t\t\t// } else {\n\t\t\t// loyalty_flag = false;\n\t\t\t// Toast.makeText(getApplicationContext(),\n\t\t\t// getString(R.string.str_You_dont),\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t// }\n\t\t\t//\n\t\t\t//\n\t\t\t//\n\t\t\t// } catch (NumberFormatException e) {\n\t\t\t// e.printStackTrace();\n\t\t\t// }\n\t\t\t//\n\t\t\t// }\n\t\t\t//\n\t\t\t// @Override\n\t\t\t// public void beforeTextChanged(CharSequence s,\n\t\t\t// int start, int count, int after) {\n\t\t\t// // TODO Auto-generated method stub\n\t\t\t//\n\t\t\t// }\n\t\t\t//\n\t\t\t// @Override\n\t\t\t// public void afterTextChanged(Editable s) {\n\t\t\t// // TODO Auto-generated method stub\n\t\t\t//\n\t\t\t// }\n\t\t\t// });\n\n\t\t\trf_booking_submit_button\n\t\t\t\t\t.setOnClickListener(new View.OnClickListener() {\n\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// TODO Auto-generated method stub\n\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\t\t\t\t/** check Internet Connectivity */\n\t\t\t\t\t\t\t\t\tif (cd.isConnectingToInternet()) {\n\t\t\t\t\t\t\t\t\t\tif (SharedPreference\n\t\t\t\t\t\t\t\t\t\t\t\t.getuser_id(getApplicationContext()) != \"\") {\n\t\t\t\t\t\t\t\t\t\t\tif (SharedPreference.getuser_id(\n\t\t\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext())\n\t\t\t\t\t\t\t\t\t\t\t\t\t.length() != 0) {\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (rf_booking_loyalty_pts_value_\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getText().toString()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"0\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t|| rf_booking_loyalty_pts_value_\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getText()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\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\tnew GetValidOrderDateTime()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.execute();\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (SharedPreference\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get_user_loyalty_pts(getApplicationContext()) != \"\") {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!!!!!!!!!!!!!!Shikha2\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ SharedPreference\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get_user_loyalty_pts(getApplicationContext()));\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!Pattern\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.matches(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"^[0-9 ]*$\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trf_booking_loyalty_pts_value_\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getText()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()))\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), getString(R.string.numeric_validation_error), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trf_booking_loyalty_pts_value_.setError(Html.fromHtml(\"<font color='#ff0000'>\"+getString(R.string.numeric_validation_error)+</font> \"));\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trf_booking_loyalty_pts_value_.requestFocus();\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trf_booking_loyalty_pts_value_\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setError(getString(R.string.numeric_validation_error));\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint points = Integer\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.parseInt(rf_booking_loyalty_pts_value_\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getText()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!Global_variable.min_lp_to_redeem\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ Global_variable.min_lp_to_redeem);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!Global_variable.max_lp_to_redeem\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ Global_variable.max_lp_to_redeem);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (Integer\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.parseInt(SharedPreference\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get_user_loyalty_pts(getApplicationContext())) >= Global_variable.min_lp_to_redeem\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& points <= Integer\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.parseInt(SharedPreference\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get_user_loyalty_pts(getApplicationContext()))) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!one\");\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (points <= Global_variable.max_lp_to_redeem) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!two\");\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (points <= Integer\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.parseInt(SharedPreference\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get_user_loyalty_pts(getApplicationContext()))) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!three\");\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tloyalty_flag = true;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GetValidOrderDateTime()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.execute();\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tloyalty_flag = false;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!four\");\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_You_dont),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.show();\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} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tloyalty_flag = false;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!five\");\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_Your_Loyalty)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ Global_variable.max_lp_to_redeem,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tloyalty_flag = false;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!six\");\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_less_than)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ Global_variable.min_lp_to_redeem,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tloyalty_flag = false;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!seven\");\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_You_dont),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t// }\n\t\t\t\t\t\t\t\t\t\t\t\t//\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\t\t\tR.string.please_login,\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method\n\t\t\t\t\t\t\t\t\t\t\t\t// stub\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tR.string.No_Internet_Connection,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.show();\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\trf_booking_date_icon.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tgetCalenderView();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\trf_booking_time_icon.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tgetTimeView();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\trf_booking_plus_box.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tint val = Integer.parseInt(rf_booking_people_box.getText()\n\t\t\t\t\t\t\t.toString());\n\n\t\t\t\t\trf_booking_people_box.setText(String.valueOf(val + 1));\n\n\t\t\t\t\tGlobal_variable.str_booking_number_of_people = String\n\t\t\t\t\t\t\t.valueOf(val + 1);\n\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_number_of_people_header.setText(Global_variable.str_booking_number_of_people);\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t\trf_booking_minus_box.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tint val = Integer.parseInt(rf_booking_people_box.getText()\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tif (val <= 1) {\n\t\t\t\t\t\trf_booking_people_box.setText(\"1\");\n\t\t\t\t\t\tGlobal_variable.str_booking_number_of_people = \"1\";\n\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_number_of_people_header.setText(Global_variable.str_booking_number_of_people);\n\t\t\t\t\t} else {\n\t\t\t\t\t\trf_booking_people_box.setText(String.valueOf(val - 1));\n\t\t\t\t\t\tGlobal_variable.str_booking_number_of_people = String\n\t\t\t\t\t\t\t\t.valueOf(val - 1);\n\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_number_of_people_header.setText(Global_variable.str_booking_number_of_people);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). ConsultOuvrage() ;}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tBoolean isBlank=false;\n\t\t\t\t\n\t \tint ldi=0;\n\t \tint rdi=0;\n\t \tDouble bqi=0.0;\n\t \tDouble eqi=0.0;\n\t \tString note=\"\";\n\t \tTimestamp timeStamp=null;\n\t \t\n\t\t\t\t\t\t\n\t\t\t\t\tif(mPickedTimeText!=null)\n\t \t{\n\t\t\t\t\t\tif(timeChanged)\n\t\t\t\t\t\t{\tif(newDate!=null)\n\t\t\t\t\t\t\t\ttimeStamp=new Timestamp(newDate.getTime());\n\t\t\t\t\t\t}\n\t \t\telse\n\t \t\t{\t//Long now = Long.valueOf(System.currentTimeMillis());\n\t \tif(mState==STATE_INSERT)\n\t \t\ttimeStamp=new Timestamp(preSetTime.getTime());\n\t \tif(mState==STATE_EDIT)\n\t \t\ttimeStamp=savedTS;\n\t \t\t}\n\t \t\t\n\t \t}\n\t\t\t\t\n\t\t\t\t\tif(ldEdit!=null)\n\t \t{\tString lds=ldEdit.getText().toString();\n\t \t\tldi= InputsValidation.intValidation(lds);\n\t \t\t//Log.i(\"onClicked-rb:\",\"rb1\");\n\t \t}\n\t \n\t \t\n\t \tif(rdEdit!=null)\n\t \t{\tString rds=rdEdit.getText().toString();\n\t \t\trdi= InputsValidation.intValidation(rds);\n\t \t\t//Log.i(\"onClicked-rb:\",\"rb2\");\n\t \t}\n\t \n\t \n\t \tif(bqEdit!=null)\n\t \t{\n\t \t\tif(bqChanged)\n\t \t\t{\n\t\t \t\tString bqs=bqEdit.getText().toString();\n\t\t \t\t\n\t\t \t\tbqi= (double) InputsValidation.doubleValidation(bqs);\n\t\t \t\tif(vup.equalsIgnoreCase(\"2\"))\n\t\t \t\t\t{\n\t\t \t\t\tbqi=bqi*30.00;\n\t\t \t\t\t}\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\tbqi=bqSaved;\n\t \t\t}\n\t \t\t\n\t \t}\n\t \tif(eqEdit!=null)\n\t \t{\n\t \t\tif(eqChanged)\n\t \t\t{\n\t\t \t\tString eqs=eqEdit.getText().toString();\n\t\t \t\teqi= (double) InputsValidation.doubleValidation(eqs);\n\t\t \t\tif(vup.equalsIgnoreCase(\"2\"))\n\t\t \t\t\t{\n\t\t \t\t\teqi=eqi*30.00;\n\t\t \t\t\t}\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\teqi=eqSaved;\n\t \t\t}\n\t \t}\n\t \t\n\t \t\n\t \tFeed feed=new Feed(timeStamp, ldi, rdi, bqi, eqi, note);\n\t \t\n\t \tupdateEvent(feed);\n\t \tsetResult(RESULT_OK);\t\n\t \tfinish();\n\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tis_draft = \"0\";\n\t\t\t\tValidateValue();\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tanswer_cough = coughLevel.getSelectedItemPosition();\n\t\t\t\tanswer_wake = wakeFromSleep.getSelectedItemPosition();\n\t\t\t\tanswer_wheeze = wheezing.getSelectedItemPosition();\n\t\t\t\tanswer_activity = activityLevel.getSelectedItemPosition();\n\t\t\t\tanswer_rescue = rescueAmount.getSelectedItemPosition();\n\t\t\t\tanswer_comment = comments.getText().toString();\n\t\t\t\t// This is the method call to open the dialog box to see if the\n\t\t\t\t// user\n\t\t\t\t// wants to save the answers\n\t\t\t\tshowAlertDialogBox();\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tidLop = txt_idLop.getText();\r\n\t\t\t}", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\tif( txt_showresult.getText().equals( \"0\" )){ \n\t\t\t\t\t\t\t\ttxt_showresult.setText(\"1\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// if textfield show other value , add number after the value\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\ttxt_showresult.setText( txt_showresult.getText() + \"1\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "protected boolean okData() {\n \t\tString name2 = name.getText().trim();\n \t\tString phone2 = phone.getText().trim();\n \t\tString adress2 = adress.getText().trim();\n \t\tboolean enterpriseButton = enterpriseCustomer.isSelected();\n \t\tboolean privateButton = privateCustomer.isSelected();\n \t if (name2.equals(\"\") || phone2.equals(\"\") || adress2.equals(\"\") || (!enterpriseButton && !privateButton)) {\n \t \tif (name2.equals(\"\")) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to input a customer name!\");\n \t \t\tname.requestFocusInWindow();\n \t \t} else if(phone2.equals(\"\")) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to input a phone number!\");\n \t \t\tphone.requestFocusInWindow();\n \t \t} else if(adress2.equals(\"\")) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to input an adress!\");\n \t \t\tadress.requestFocusInWindow();\n \t \t} else if(!enterpriseButton && !privateButton) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to choose a customer type!\");\n \t \t\tprivateCustomer.requestFocusInWindow();\n \t \t}\n \t \treturn false;\n \t } else {\n \t \treturn true;\n \t }\n \t}", "@Override\n public void handle(ActionEvent actionEvent) {\n\n if (actionEvent.getSource() == btnExit) {\n logger.trace(\"button clicked\");\n System.exit(0);\n } else if (actionEvent.getSource() == male) {\n logger.trace(\"male clicked!\");\n if (player.getgender().equals(\"female\")) {\n player.setgender(\"male\");\n lbl_gender.setText(\"GENDER: \" + player.getgender());\n } else if (player.getgender().equals(\"male\")) {\n player.setgender(\"female\");\n lbl_gender.setText(\"GENDER: \" + player.getgender());\n }\n } else if (actionEvent.getSource() == btnSubmit) {\n logger.trace(\"Name submitted!\");\n if (tfName.getText().isEmpty()) {\n tfName.setPromptText(\"The name Can't be left empty!\");\n }\n player.setName(tfName.getText());\n\n logger.info(\"player name: \" + player.getName());\n isset = true;\n } else if (actionEvent.getSource() == btnDone) {\n logger.trace(\"done button clicked!!!\");\n\n if (isset) {\n logger.trace(\"ISSET IS TRUE!\");\n try {\n savetoxml();\n } catch (FileNotFoundException | JAXBException e) {\n logger.error(\"error occured: \", e);\n }\n isset = false;\n try {\n start_game();\n } catch (JAXBException | IOException e) {\n logger.error(\"error occured: \", e);\n }\n } else {\n logger.trace(\"isset false!\");\n }\n } else if (actionEvent.getSource() == btn_loaddata) {\n try {\n readxml();\n start_game();\n } catch (JAXBException | IOException e) {\n logger.error(\"error occured: \", e);\n\n }\n }\n }", "@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusInactivo());\n\t\t//\t\t\t\tEL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t\tif (sTransaccion.validarAnalistaEnRequerimientos(analista)){\n//\t\t\t\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusInactivo());\n//\t\t\t\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n//\t\t\t\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n//\t\t\t\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n//\t\t\t\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n//\t\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t\t\t\tmostrarMensaje(\"Informacion\", \"No se Puede eliminar el analista, esta asignado a un requerimiento que esta activo\", Messagebox.EXCLAMATION, null, null, null);\n//\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\tpublic void onClick(View arg0) {\n\t\tString mensaje = etMensaje.getText().toString();\n\t\tif (mensaje.trim().equals(Const.cad_vacia)){\n\t\t\tAppUtil.MostrarMensaje(getActivity(), getString(R.string.msj_error_enviar_sms));\n\t\t}else{\n\t\t\tmlistener.setMensajeSMSListener(mensaje.replace(Const.ESPACIO_BLANCO, Const.ESPACIO_BLANCO_URL));\n\t\t\tdismiss();\n\t\t}\n\t}", "void onOKPressed(Non_Negative_Integer_Counts_Trial nnicTrial);", "private void addListeners(final Car car){\n onDo1.addActionListener(new ActionListener(){\n // Listener definition \n @Override\n public void actionPerformed(ActionEvent e) {\n // Action performed action\n l1.setText(car.reqData()); // Call the car event and append the result to the debug\n }\n });\n // Add listener to the second event\n onDo2.addActionListener(new ActionListener(){\n // Listener definition\n @Override\n public void actionPerformed(ActionEvent e) {\n // TODO Auto-generated method stub\n l1.setText(car.dataRecieved()); // Call the car event and append the result to the debug\n }\n });\n //\n // Add listener to the second event\n onDo4.addActionListener(new ActionListener(){\n // Listener definition\n @Override\n public void actionPerformed(ActionEvent e) {\n // TODO Auto-generated method stub\n car.setCheckSum();\n }\n });\n }", "@Override\n public void onOkButtonClicked() {\n\n\n String reasonMsg1 = backToOrderView.editText.getText().toString();\n reasonMsg = reasonMsg1.trim();\n\n if (reasonMsg.length() == 0) {\n Toast.makeText(getApplicationContext(), \"Please give reason...\", Toast.LENGTH_LONG).show();\n\n } else {\n\n\n // sendNotificationToUser(\"driver_cancel\");\n updateTripStatusApi(\"driver_cancel_at_pickup\", controller.pref.getTRIP_ID(), reasonMsg);\n\n\n }\n }" ]
[ "0.6523069", "0.64171684", "0.64131844", "0.6368483", "0.63042843", "0.62636745", "0.6157155", "0.6144307", "0.60837096", "0.6068618", "0.60608363", "0.6037035", "0.6017046", "0.5998752", "0.5971783", "0.59314877", "0.59195215", "0.59176844", "0.59063905", "0.58871686", "0.58816177", "0.5880625", "0.5871812", "0.5832257", "0.58306915", "0.5830661", "0.5800721", "0.5800344", "0.5791408", "0.5778221", "0.57591426", "0.5748781", "0.5743299", "0.57411325", "0.5736454", "0.57212746", "0.572096", "0.5716257", "0.5715095", "0.5712819", "0.5712715", "0.5712482", "0.5711823", "0.57011193", "0.5697572", "0.5687959", "0.5684871", "0.5680732", "0.5675734", "0.56753224", "0.56746984", "0.5667143", "0.56664824", "0.5664417", "0.565997", "0.56549394", "0.5652569", "0.5651815", "0.56516224", "0.5651255", "0.5645657", "0.5636235", "0.5633322", "0.56313986", "0.5623374", "0.56205636", "0.56146383", "0.5609375", "0.5605382", "0.56040514", "0.560271", "0.55946493", "0.5592835", "0.5591478", "0.5591375", "0.5588805", "0.5571217", "0.5568124", "0.55675477", "0.55673", "0.55652785", "0.556353", "0.55616987", "0.5558598", "0.5557916", "0.5557802", "0.555767", "0.5554891", "0.5553445", "0.554768", "0.55430865", "0.5539083", "0.55371696", "0.5533435", "0.5530696", "0.5527388", "0.55251366", "0.55242705", "0.5520576", "0.5518889" ]
0.56330884
63
do nothing, close the dialog
public void onClick(DialogInterface dialog, int id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void closeDialog() { setVisible(false); dispose(); }", "private void quitDialog() {\r\n\t\tdispose();\r\n\t}", "public void cancelDialog() {dispose();}", "protected void closeDialogCancel() {\n dispose();\n }", "public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}", "@Override\n\t\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\t\tcommonDialog.dismiss();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}", "private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}", "void CloseOkDialog();", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\r\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}", "@Override\r\n \t\t\tpublic void closeDialog() {\n \t\t\t\tunbind();\r\n \t\t\t\tsuper.closeDialog();\r\n \t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}", "private void close() {\n\t\t\t\t// name.getScene().getWindow().hide();\n\t\t\t\tdialogStage.fireEvent(new WindowEvent(dialogStage,WindowEvent.WINDOW_CLOSE_REQUEST));\n\t\t\t}", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onBtnClick() {\n dialog.dismiss();\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\t\tdialog.dismiss();\n \t\t\t\t\t\tdialog = null;\n \t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,int id) {\n dialog.dismiss();\n }", "protected void closeDialogOk() {\n dispose();\n }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\r\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tmydialog.dismiss();\n\t\t}", "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t{\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "@Override\r\n public void onClick(View arg0) {\n dialog.dismiss();\r\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false); \n actionCommand = false;\n dispose();\n }", "void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }", "@Override\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t dialog.dismiss();\n\t\t }", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t}", "public void close()\n {\n setVisible (false);\n dispose();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n finish();\n }", "public static void closeNew() {\n\t\tDIALOG.dispose();\n\t\tDIALOG = null;\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.dismiss();\n\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\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\r\n\t public void onClick(DialogInterface dialog, int id) {\n\t \tdialog.dismiss();\r\n\t }", "@Override\r\n\t public void onClick(DialogInterface dialog, int id) {\n\t \tdialog.dismiss();\r\n\t }", "@Override\n public void onClick(View view) {\n dialog.dismiss();\n\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.dismiss();\r\n\r\n\t\t\t}", "@Override\n public void onClick(View v) {\n\n dialog.dismiss();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n }", "@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n\n }", "@Override\n public void onClick(View v) {\n\n dialog.dismiss();\n\n }", "@Override\n public void onClick(View v) {\n\n dialog.dismiss();\n\n }", "@Override\n public void onClick(View v) {\n\n dialog.dismiss();\n\n }", "@Override\n public void onClick(View v) {\n\n dialog.dismiss();\n\n }", "@Override\n public void onClick(View v) {\n\n dialog.dismiss();\n\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n\n }", "@Override\n public void onClick(View v) {\n mDialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\n }" ]
[ "0.8079821", "0.79912114", "0.7843251", "0.78422356", "0.76605844", "0.76042855", "0.7603853", "0.7601684", "0.7598571", "0.75913155", "0.75913155", "0.7585752", "0.75850195", "0.7571958", "0.7570842", "0.75699216", "0.7566676", "0.75666267", "0.75556827", "0.7538633", "0.7538633", "0.75346935", "0.75330895", "0.75278926", "0.75254357", "0.75254357", "0.75254357", "0.75254357", "0.7522157", "0.7522157", "0.7522157", "0.7510758", "0.75096303", "0.75096303", "0.75059235", "0.7496466", "0.7496466", "0.74908507", "0.74908507", "0.74908507", "0.74908507", "0.74908507", "0.74908507", "0.7489378", "0.7484297", "0.74825805", "0.7481355", "0.7481355", "0.74772525", "0.7474726", "0.74713", "0.7466042", "0.7463917", "0.7456133", "0.7456133", "0.7456133", "0.7456133", "0.74558395", "0.74558395", "0.74539405", "0.7451409", "0.7448525", "0.74437195", "0.74437195", "0.74437195", "0.74437195", "0.74437195", "0.74437195", "0.74437195", "0.74437195", "0.74396384", "0.7437572", "0.74373674", "0.7433606", "0.7432219", "0.7431295", "0.74291915", "0.7420308", "0.74029344", "0.74029344", "0.7395775", "0.7382668", "0.7382668", "0.73804283", "0.7378135", "0.73637116", "0.7362121", "0.7362121", "0.73594403", "0.73547864", "0.73547864", "0.73547864", "0.73537296", "0.73537296", "0.73537296", "0.73537296", "0.73537296", "0.73490775", "0.7348644", "0.73479426", "0.7344594" ]
0.0
-1
context will be the activity that the dialog is opened in
@Override public void onAttach(Context context) { super.onAttach(context); try { listener = (ScoreDialogPickerListener) context; } catch (ClassCastException e) { throw new ClassCastException(context.toString() + "must implement example dialog listener"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showDialog(Context context) {\n \n }", "public CommonDialog(@NonNull Context context) {\n super(context,R.style.EditDialong);\n// this.listener = listener;\n// View contentView = LayoutInflater.from(context).inflate(R.layout.dialog_edit, null);\n// setContentView(contentView);\n// Window dialongWindow = getWindow();\n// WindowManager.LayoutParams lp = dialongWindow.getAttributes();\n// DisplayMetrics d = context.getResources().getDisplayMetrics();\n// lp.width = (int) (d.widthPixels*0.8);\n// dialongWindow.setAttributes(lp);\n// initView();\n// initListener();\n }", "public void getDialog(final Activity context, String message, int title) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n switch (title) {\n case 0:\n builder.setTitle(context.getString(R.string.alert_success));\n break;\n case 1:\n builder.setTitle(context.getString(R.string.alert_stop));\n break;\n default:\n builder.setTitle(context.getString(R.string.alert));\n break;\n }\n\n builder.setMessage(message);\n\n builder.setPositiveButton(context.getString(R.string.alert_ok), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Toast.makeText(context, context.getString(R.string.alert_toast), Toast.LENGTH_SHORT).show();\n }\n });\n\n builder.show();\n }", "public static void showLoadingDialog(Context context) {\n// mDialog = new MaterialDialog.Builder(context)\n// .title(R.string.login_dialog_title)\n// .content(R.string.login_dialog_content)\n// .progress(true, 0)\n// .widgetColor(context.getResources().getColor(R.color.colorPrimary))\n// .show();\n }", "public static void showTodoDialog(Context context) {\n\t\tshowGenericDialog(context, R.string.aboutactivity_todo, RAW_TODO);\n\t}", "public ClassChoiceDialog(Context context) {\n // 通过LayoutInflater来加载一个xml的布局文件作为一个View对象\n this.context = context;\n initialView();\n dialog = builder.create();\n initListener();\n\n }", "public void ShowDialog(Context context) {\n progressDialog = new ProgressDialog(context);\n progressDialog.show();\n progressDialog.setContentView(R.layout.progress_dialog);\n progressDialog.setCanceledOnTouchOutside(false);\n progressDialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Done entering class?\")\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent tmp = new Intent(getContext(), course_info.class);\n startActivity(tmp);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(R.string.dialog_internet_eng_text).setPositiveButton\n (R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n System.exit(1);\n /*\n Intent homeIntent= new Intent(getContext(), MainCardActivity.class);\n homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n */\n }\n });\n return builder.create();\n }", "public EditDialog(Context context, MSDialog dialog)\n {\n super(context);\n \n this.ecu = ApplicationSettings.INSTANCE.getEcuDefinition();\n this.dialog = dialog;\n }", "@Override\n public void onClick(DialogInterface dialog,\n\n int which) {\n\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n i.putExtra(\"from_value\", \"enquiry\");\n startActivity(i);\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(context, MeetingDetailActivity.class);\n intent.putExtra(MeetingDetailActivity.ARG_MEETING_ID, message.meetingId);\n context.startActivity(intent);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(context, MeetingDetailActivity.class);\n intent.putExtra(MeetingDetailActivity.ARG_MEETING_ID, message.meetingId);\n context.startActivity(intent);\n }", "@Override\n public void onAttach(@NonNull Context context) {\n super.onAttach(context);\n\n try {\n dListener = (dialogListener) context; // dialog interface is equal to activity instance\n } catch (ClassCastException e) {\n // in case dialogListener didnt implemented\n throw new ClassCastException(context.toString() + \"must Implement dialogListener interface to MainActivity First\");\n }\n }", "@JsonProperty(\"context\")\n @ApiModelProperty(value = \"The context for the dialog node.\")\n public Object getContext() {\n return context;\n }", "private void showUpdateDialog(final Context context) {\n\n final android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(context);\n final android.app.AlertDialog alert = builder.create();\n View view = alert.getLayoutInflater().inflate(R.layout.custom_update_alert, null);\n TextView title = (TextView) view.findViewById(R.id.textMessage);\n TextView title2 = (TextView) view.findViewById(R.id.textMessage2);\n Button ok = (Button) view.findViewById(R.id.buttonUpdate);\n Button buttonCancel = (Button) view.findViewById(R.id.buttonCancel);\n alert.setCustomTitle(view);\n\n ok.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(\"https://play.google.com/store/apps/details?id=\" + \"fusionsoftware.loop.emergency_help\" + \"&hl=en\"));\n context.startActivity(intent);\n alert.dismiss();\n }\n });\n buttonCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alert.dismiss();\n //MoveNextScreen();\n }\n });\n alert.show();\n alert.setCanceledOnTouchOutside(false);\n }", "protected Dialog onCreateDialog(int id) {\n\t \r\n\t screenDialog = null;\r\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t screenDialog = new Dialog(this);\r\n\t screenDialog.setContentView(R.layout.activity_data_list);\r\n\t list=(ListView)screenDialog.findViewById(R.id.list);\r\n\t ApplicationAdapter adapter = new ApplicationAdapter(this, apps);\r\n\t list.setAdapter(adapter);\r\n\t list.setOnItemClickListener(new OnItemClickListener(){\r\n\t \tpublic void onItemClick(AdapterView<?> parent, View view,int position, long id) {\r\n\t \t screenDialog.dismiss();\r\n\t \t screenDialog.cancel();\r\n\t \t\tIntent in=new Intent(getApplicationContext(),Jobdetail.class);\r\n\t \t Bundle extras = new Bundle();\r\n\t \t\textras.putString(\"name\", apps.get(position).getTitle());\r\n\t \t\textras.putString(\"descript\", apps.get(position).getDescript());\r\n\t \t extras.putLong(\"price\", apps.get(position).getPrice());\r\n\t \t extras.putInt(\"view\", apps.get(position).getView());\r\n\t \t extras.putDouble(\"latitude\", apps.get(position).getLatitude());\r\n\t \t extras.putDouble(\"longitude\",apps.get(position).getLongitude());\r\n\t \t in.putExtras(extras);\r\n\t \t startActivity(in); //เปิดหน้าใหม่*/\r\n\t \t }\r\n\t \t});\r\n\t }\r\n\t return screenDialog;\r\n\t }", "public void run() {\n final androidx.appcompat.app.AlertDialog.Builder continueBookingDialog = new AlertDialog.Builder(view.getContext());\n continueBookingDialog.setTitle(\"Book locker for \" + marker.getTitle() + \" \" + marker.getSnippet() +\"?\");\n // resendVerificationMailDialog.setView(resendVerificationEditText);\n continueBookingDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n }\n });\n continueBookingDialog.setNegativeButton(\"Back\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Automatically close the dialog\n\n }\n });\n continueBookingDialog.show();\n\n }", "@Override\n\tpublic void starctActivity(Context context) {\n\n\t}", "@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\treturn buildDialog(MainActivity.this);\n\t\t\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n startActivity(new Intent(context, Preferences.class));\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tIntent intent=new Intent(getContext(),MainActivity.class);\n\t\t\t\t\t\tgetContext().startActivity(intent);\n\t\t\t\t\t\t((Activity)getContext()).finish();\n\t\t\t\t\t}", "public static void createAddFoodDialog(final Context context) {\n final Dialog dlgAddFood = new Dialog(context);\n dlgAddFood.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dlgAddFood.setContentView(R.layout.dialog_add_food);\n\n TextView tv_dialog_add_food_msg = (TextView) dlgAddFood.findViewById(R.id.tv_dialog_add_food_msg);\n FontUtility.condLight(tv_dialog_add_food_msg,context);\n\n //Set TextView Font Style\n TextView tvDialogAddFoodBreakfast = (TextView) dlgAddFood.findViewById(R.id.tvDialogAddFoodBreakfast);\n FontUtility.condLight(tvDialogAddFoodBreakfast,context);\n TextView tvDialogAddFoodLunch = (TextView) dlgAddFood.findViewById(R.id.tvDialogAddFoodLunch);\n FontUtility.condLight(tvDialogAddFoodLunch,context);\n TextView tvDialogAddFoodSnacks = (TextView) dlgAddFood.findViewById(R.id.tvDialogAddFoodSnacks);\n FontUtility.condLight(tvDialogAddFoodSnacks,context);\n TextView tvDialogAddFoodDinner = (TextView) dlgAddFood.findViewById(R.id.tvDialogAddFoodDinner);\n FontUtility.condLight(tvDialogAddFoodDinner,context);\n\n RelativeLayout rlBreakfast = (RelativeLayout) dlgAddFood.findViewById(R.id.rlDialogAddFoodBreakfast);\n RelativeLayout rlDinner = (RelativeLayout) dlgAddFood.findViewById(R.id.rlDialogAddFoodDinner);\n RelativeLayout rlLunch = (RelativeLayout) dlgAddFood.findViewById(R.id.rlDialogAddFoodLunch);\n RelativeLayout rlSnacks = (RelativeLayout) dlgAddFood.findViewById(R.id.rlDialogAddFoodSnacks);\n\n rlBreakfast.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n context.startActivity(new Intent(context, AddFoodActivity_.class).putExtra(\"food_type\", Constant.BREAKFAST));\n dlgAddFood.dismiss();\n }\n });\n\n rlDinner.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n context.startActivity(new Intent(context, AddFoodActivity_.class).putExtra(\"food_type\", Constant.DINNER));\n dlgAddFood.dismiss();\n }\n });\n\n rlLunch.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n context.startActivity(new Intent(context, AddFoodActivity_.class).putExtra(\"food_type\", Constant.LUNCH));\n dlgAddFood.dismiss();\n }\n });\n\n rlSnacks.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n context.startActivity(new Intent(context, AddFoodActivity_.class).putExtra(\"food_type\", Constant.SNACKS));\n dlgAddFood.dismiss();\n }\n });\n dlgAddFood.show();\n }", "@Override\r\n\tpublic Context getContext()\r\n\t{\n\t\treturn this.getActivity().getApplicationContext();\r\n\t}", "@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Do you want to remove this item from cart?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n new Cart().removeFromCart(gindex);\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public BottomSheetMenu(@NonNull Context context) {\n super(context);\n\n this.context = context;\n\n LayoutInflater inflater = LayoutInflater.from(context);\n\n rootView = (LinearLayout) inflater.inflate(R.layout.bottom_sheet_dialog, null);\n\n setContentView(rootView);\n }", "public void onShow(Context context);", "@Override\n\tprotected Context getContext() {\n\t\treturn getActivity();\n\t}", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n context.finish();\n\n Intent in = new Intent(context, context.getClass());\n context.startActivity(in);\n }", "@Override\n protected void onPrepareDialog(int id, Dialog dialog) {\n \tToast.makeText(this, dialog.toString(), Toast.LENGTH_SHORT).show();\n }", "private void createTypeDialog(Context context) {\r\n\t\ttypeDialog = new DialogBase(context);\r\n\t\ttypeDialog.setContentView(R.layout.type);\r\n\t\ttypeDialog.setHeader(\"Channels\");\r\n\t\tfinal TextView txtVideos = (TextView) typeDialog\r\n\t\t\t\t.findViewById(R.id.tvVideos);\r\n\t\tfinal TextView txtChannels = (TextView) typeDialog\r\n\t\t\t\t.findViewById(R.id.tvChannels);\r\n\t\ttxtChannels.setVisibility(View.GONE);\r\n\t\ttxtVideos.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\ttypeDialog.dismiss();\r\n\t\t\t\tIntent i = new Intent(getApplicationContext(), MyVideosTabletActivity.class);\r\n\t\t\t\ti.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public CustomDialog(Activity context, String mensaje, String parteVerde){\n dialog = new Dialog(context);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setContentView(R.layout.dialog_sucees);\n TextView tvMensError = dialog.findViewById(R.id.tvMensSucces);\n tvMensError.setText(Html.fromHtml(mensaje + \"<font color='#072146'>\" + parteVerde + \"</font>\"));\n Button tvAceptar = dialog.findViewById(R.id.tvAceptar);\n tvAceptar.setOnClickListener(v -> {\n dialog.dismiss();\n });\n }", "private PendingIntent openActivityPendingIntent(Context context) {\n Intent intent = new Intent(context, MainActivity.class);\n return PendingIntent.getActivity(context, 0, intent, 0);\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\tpublic BaseActivity getContext() {\n\t\treturn this;\n\t}", "@Override\n\tpublic BaseActivity getContext() {\n\t\treturn this;\n\t}", "public static Dialog postWaitDialog(Context context){\r\n\t\tfinal Dialog lDialog = new Dialog(context,android.R.style.Theme_Translucent_NoTitleBar);\r\n\t\tlDialog.setContentView(R.layout.wait_dialog);\r\n\t\treturn lDialog;\r\n\t}", "@Override\r public void onCreate(Bundle savedInstanceState) {\r super.onCreate(savedInstanceState);\r setContentView(R.layout.mypage_left);\r mContext = this;\r showIndeterDialog();\r }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent myIntent = new Intent();\n myIntent = new Intent(picking.this, pickingquery.class);\n startActivity(myIntent);\n picking.this.finish();\n\n }", "@SuppressLint(\"InflateParams\")\r\n\tprivate void showDialog() {\n\t\tLayoutInflater layoutInflater = LayoutInflater.from(getActivity());\r\n\t\tviewAddEmployee = layoutInflater\r\n\t\t\t\t.inflate(R.layout.activity_dialog, null);\r\n\t\teditText = (EditText) viewAddEmployee.findViewById(R.id.editText1);\r\n\t\ttv_phone = (TextView) viewAddEmployee.findViewById(R.id.tv_phone);\r\n\t\tbt_setting = (Button) viewAddEmployee.findViewById(R.id.bt_setting);\r\n\t\tbt_cancel = (Button) viewAddEmployee.findViewById(R.id.bt_cancel);\r\n\t\tString tel = SharePreferenceUtil.getInstance(\r\n\t\t\t\tgetActivity().getApplicationContext()).getUserTel();\r\n\t\ttv_phone.setText(StringUtils.getTelNum(tel));\r\n\r\n\t\tshowPop();\r\n\r\n\t\tbt_setting.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tString psd = SharePreferenceUtil.getInstance(\r\n\t\t\t\t\t\tgetActivity().getApplicationContext()).getUserPsd();\r\n\t\t\t\tString password = editText.getText().toString().trim();\r\n\t\t\t\tif (TextUtils.isEmpty(password)) {\r\n\t\t\t\t\tShowToast(\"密码不能为空!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (password.equals(psd)) {\r\n\t\t\t\t\tavatorPop.dismiss();\r\n\t\t\t\t\tintentAction(getActivity(), GesturePsdActivity.class);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tShowToast(\"输入密码错误!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbt_cancel.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tavatorPop.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n public void run() {\n\n intent = new Intent(getApplicationContext(), UserMenuActivity.class);\n intent.putExtra(\"EMAIL_ID\", txtloginEmail.getText().toString());\n intent.putExtra(\"CLIENT_ID\", clientId.toString());\n startActivity(intent);\n dialogObject.dismiss();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(device.getName())\n \t\t.setTitle(R.string.bt_exchange_dialog_title)\n .setPositiveButton(R.string.bt_exchange_dialog_positive_btn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n \t //Add BT Device Activity\n \t performBTKeyExchange(device);\n }\n })\n .setNegativeButton(R.string.bt_exchange_dialog_negative_btn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n \t dismiss();\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public void onContext() {\n }", "public void run() {\n final androidx.appcompat.app.AlertDialog.Builder continueBookingDialog = new AlertDialog.Builder(view.getContext());\n continueBookingDialog.setTitle(\"Book locker for \" + marker.getTitle() + \" \" + marker.getSnippet() +\"?\");\n // resendVerificationMailDialog.setView(resendVerificationEditText);\n continueBookingDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n //Pass marker.getTitle();\n// AccountsFragment af = new AccountsFragment();\n// Bundle args = new Bundle();\n// args.putString(\"title\", marker.getTitle());\n// af.setArguments(args);\n// Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n// .show();\n//\n// getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, af).commit();\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n }\n });\n continueBookingDialog.setNegativeButton(\"Back\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Automatically close the dialog\n\n }\n });\n continueBookingDialog.show();\n\n }", "public Context getActivityContext(){\n return mActivityContext;\n }", "public void onShowMushroomSelectionDialogSelected(Context context);", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Limite mensal excedido! Na versão gratuita, o limite máximo de publicação de caronas mensais é 4 (quatro), atualize para a versão Pro e tenha publicações ilimitadas...\")\n .setPositiveButton(\"Ir\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n String url = \"https://play.google.com/store/apps/details?id=com.xetelas.nova\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n getContext().startActivity(i);\n }\n })\n .setNegativeButton(\"Voltar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public void onClick(View v) {\n AlertDialog.Builder alertdialogbuilder = new AlertDialog.Builder(implicitintent.this);\n alertdialogbuilder.setCancelable(false);\n alertdialogbuilder.setMessage(\"Are you sure want to navigate ?\");\n alertdialogbuilder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Clicked No\", Toast.LENGTH_LONG).show();\n }\n });\n\n alertdialogbuilder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent ii = new Intent(getApplicationContext(), candidateslist.class);\n startActivity(ii);\n }\n });\n alertdialogbuilder.setIcon(R.mipmap.midfing);\n AlertDialog ad = alertdialogbuilder.create();\n ad.setTitle(\"Tussi Jaare ho ?\");\n ad.show();\n\n\n }", "public static void selectedContactDialog(final String vCard, final Context context){\n NotifyDialog dialog = NotifyDialog.startConfirm(context, \"Add to contact\", \"Do You want to add this contact to Your address book?\");\n dialog.setButtonsText(context.getString(R.string.NO_CAPITAL), context.getString(R.string.YES_CAPITAL));\n dialog.setTwoButtonListener(new NotifyDialog.TwoButtonDialogListener() {\n @Override\n public void onOkClicked(NotifyDialog dialog) {\n String vCardTempPath = Tools.getTempFolderPath() + \"/\" + System.currentTimeMillis() + \"_vCard.vcf\";\n File vCardTempFile = new File(vCardTempPath);\n Tools.saveStringToFile(vCard, vCardTempPath);\n Uri uri = Uri.fromFile(vCardTempFile);\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setDataAndType(uri, \"text/x-vcard\");\n context.startActivity(intent);\n dialog.dismiss();\n }\n\n @Override\n public void onCancelClicked(NotifyDialog dialog) {\n dialog.dismiss();\n }\n });\n }", "public static void showAlert(String message, Activity context) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(message).setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n\n }\n });\n try {\n builder.show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\t\t\tpublic void OnDialogClick() {\n\t\t\t\tIntent intent = new Intent(getContext(),\n\t\t\t\t\t\tCommonSelectDataActivity.class);\n\t\t\t\tintent.putExtra(CommonSelectDataActivity.TYPE, R.array.fylx);\n\n\t\t\t\t((Activity) getContext()).startActivityForResult(intent,\n\t\t\t\t\t\tKingTellerStaticConfig.SELECT_FYLX);\n\t\t\t\t((LinearLayout) getParent()).setTag(fylx);\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_new_p2p_topic:\n Log.d(TAG, \"Start new p2p topic\");\n ((ContactsActivity)getActivity()).selectTab(ContactsFragment.TAB_CONTACTS);\n return true;\n\n case R.id.action_new_grp_topic:\n Log.d(TAG, \"Launch new group topic\");\n Intent intent = new Intent(getActivity(), CreateGroupActivity.class);\n // intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\n startActivity(intent);\n return true;\n\n case R.id.action_add_by_id:\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder\n .setTitle(R.string.action_start_by_id)\n .setView(R.layout.dialog_add_by_id)\n .setCancelable(true)\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n TextView editor = ((AlertDialog) dialog).findViewById(R.id.editId);\n if (editor != null) {\n final Activity activity = getActivity();\n String id = editor.getText().toString();\n if (!TextUtils.isEmpty(id)) {\n Intent it = new Intent(activity, MessageActivity.class);\n it.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n it.putExtra(\"topic\", id);\n startActivity(it);\n } else {\n Toast.makeText(activity, R.string.failed_empty_id,\n Toast.LENGTH_SHORT).show();\n }\n }\n\n }\n })\n .setNegativeButton(android.R.string.cancel, null)\n .show();\n return true;\n\n case R.id.action_settings:\n ((ContactsActivity)getActivity()).showAccountInfoFragment();\n return true;\n\n case R.id.action_about:\n DialogFragment about = new AboutDialogFragment();\n about.show(getFragmentManager(), \"about\");\n return true;\n\n case R.id.action_offline:\n try {\n Cache.getTinode().reconnectNow();\n } catch (IOException ex) {\n Log.d(TAG, \"Reconnect failure\", ex);\n String cause = ex.getCause().getMessage();\n Activity activity = getActivity();\n Toast.makeText(activity, activity.getString(R.string.error_connection_failed) + cause,\n Toast.LENGTH_SHORT).show();\n }\n break;\n }\n return false;\n }", "void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }", "private static AlertDialog createDialog(\n Context context, MenuDialogListenerHandler listenerHandler) {\n Resources resources = context.getResources();\n String[] menuDialogItems = resources.getStringArray(R.array.menu_dialog_items);\n String appName = resources.getString(R.string.app_name);\n for (int i = 0; i < menuDialogItems.length; ++i) {\n menuDialogItems[i] = String.format(menuDialogItems[i], appName);\n }\n\n AlertDialog dialog = new AlertDialog.Builder(context)\n .setTitle(R.string.menu_dialog_title)\n .setAdapter(new MenuDialogAdapter(context, menuDialogItems), listenerHandler)\n .create();\n dialog.setOnDismissListener(listenerHandler);\n return dialog;\n }", "public static ProgressDialog showProgressDialog(Context context) {\n final ProgressDialog progressDialog = new ProgressDialog(context, R.style.AppTheme_ProgressDialog_Theme);\n progressDialog.setCancelable(false);\n progressDialog.setCanceledOnTouchOutside(false);\n progressDialog.show();\n return progressDialog;\n }", "@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }", "public void onClick(DialogInterface dialog,int id) {\n startActivity(new Intent(getActivity(), SettingsActivity.class));\n }", "public void run() {\n final androidx.appcompat.app.AlertDialog.Builder continueBookingDialog = new AlertDialog.Builder(view.getContext());\n continueBookingDialog.setTitle(\"Book locker for \" + marker.getTitle() + \" \" + marker.getSnippet() +\"?\");\n // resendVerificationMailDialog.setView(resendVerificationEditText);\n continueBookingDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n //Pass marker.getTitle();\n// AccountsFragment af = new AccountsFragment();\n// Bundle args = new Bundle();\n// args.putString(\"title\", marker.getTitle());\n// af.setArguments(args);\n// Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n// .show();\n//\n// getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, af).commit();\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n //getChildFragmentManager().beginTransaction().add(R.id.fragment_container, af).commit();\n // getActivity().startActivity(intent);\n // getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n //getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n }\n });\n continueBookingDialog.setNegativeButton(\"Back\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Automatically close the dialog\n\n }\n });\n continueBookingDialog.show();\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n context=getContext();\n\n }", "private void ShowRetrievedErrorPopupDialog(){\n ShowWhaitSpinner();\n //there is an error, show popup message\n Context context;\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setMessage(R.string.error_message_download_resources)\n .setCancelable(false)\n .setPositiveButton(R.string.ok_button, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n startActivity(new Intent(getContext(), MainActivity.class));\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View rootView = inflater.inflate(R.layout.fragment_message_dialog, null);\n msg = rootView.findViewById(R.id.msg);\n submit = rootView.findViewById(R.id.msg_submit);\n final int code = getTargetRequestCode();\n builder.setView(rootView);\n builder.setTitle(\"Enter a message:\");\n\n submit.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n\n sendResult(code);\n dismiss();\n\n\n }\n\n });\n\n return builder.create();\n }", "@Override\n public Context getActivityContext() {\n return mView.get().getActivityContext();\n }", "@Override\n public void onClick(View v) {\n showDialog();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\tintentToClass(getApplicationContext(), GlassRoomActivity.class);\n\t\t\t\t\t\t\t\t}", "public static Activity getContext() {\n return instance;\n\n }", "public Context getPopupContext() {\n return this.acv;\n }", "public CustomDialog(Activity context, String mensaje, String parteVerde, Runnable aceptar){\n dialog = new Dialog(context);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setContentView(R.layout.dialog_sucees);\n TextView tvMensError = dialog.findViewById(R.id.tvMensSucces);\n tvMensError.setText(Html.fromHtml(mensaje + \"<font color='#072146'>\" + parteVerde + \"</font>\"));\n Button tvAceptar = dialog.findViewById(R.id.tvAceptar);\n tvAceptar.setOnClickListener(v -> {\n context.runOnUiThread(aceptar);\n dialog.dismiss();\n } );\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n setRetainInstance(true);\n\n Dialog dialog = new Dialog(getContext(), R.style.DialogTheme);\n dialog.setContentView(R.layout.add_student_feedback_dialog);\n\n return dialog;\n }", "@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n context.finish();\n }", "@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }", "public static void showFaqDialog(Context context) {\n\t\tshowGenericDialog(context, R.string.aboutactivity_faq, RAW_FAQ);\n\t}", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n this.context = activity;\n }", "public static Intent getIntent(Context context) {\n Intent intent = new Intent(context, WifiSchedulerDialog.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);\n return intent;\n }", "public static void downloadedFileDialog(final File file, final Context context){\n NotifyDialog dialog = NotifyDialog.startConfirm(context, context.getString(R.string.file_downloaded), context.getString(R.string.open_file));\n dialog.setButtonsText(context.getString(R.string.NO_CAPITAL), context.getString(R.string.YES_CAPITAL));\n dialog.setTwoButtonListener(new NotifyDialog.TwoButtonDialogListener() {\n @Override\n public void onOkClicked(NotifyDialog dialog) {\n Uri uri = Uri.fromFile(file);\n Intent intent = new Intent(Intent.ACTION_VIEW);\n\n if (uri.toString().contains(\".doc\") || uri.toString().contains(\".docx\")) {\n // Word document\n intent.setDataAndType(uri, \"application/msword\");\n } else if (uri.toString().contains(\".pdf\")) {\n // PDF file\n intent.setDataAndType(uri, \"application/pdf\");\n } else if (uri.toString().contains(\".ppt\") || uri.toString().contains(\".pptx\")) {\n // Powerpoint file\n intent.setDataAndType(uri, \"application/vnd.ms-powerpoint\");\n } else if (uri.toString().contains(\".xls\") || uri.toString().contains(\".xlsx\")) {\n // Excel file\n intent.setDataAndType(uri, \"application/vnd.ms-excel\");\n } else if (uri.toString().contains(\".zip\")) {\n // ZIP audio file\n intent.setDataAndType(uri, \"application/zip\");\n } else if (uri.toString().contains(\".rar\")) {\n // ZIP audio file\n intent.setDataAndType(uri, \"application/x-rar-compressed\");\n } else if (uri.toString().contains(\".gz\")) {\n // ZIP audio file\n intent.setDataAndType(uri, \"application/gzip\");\n } else if (uri.toString().contains(\".rtf\")) {\n // RTF file\n intent.setDataAndType(uri, \"application/rtf\");\n } else if (uri.toString().contains(\".wav\") || uri.toString().contains(\".mp3\")) {\n // WAV audio file\n intent.setDataAndType(uri, \"audio/x-wav\");\n } else if (uri.toString().contains(\".gif\")) {\n // GIF file\n intent.setDataAndType(uri, \"image/gif\");\n } else if (uri.toString().contains(\".jpg\") || uri.toString().contains(\".jpeg\") || uri.toString().contains(\".png\")) {\n // JPG file\n intent.setDataAndType(uri, \"image/jpeg\");\n } else if (uri.toString().contains(\".txt\")) {\n // Text file\n intent.setDataAndType(uri, \"text/plain\");\n } else if (uri.toString().contains(\".3gp\") || uri.toString().contains(\".mpg\") || uri.toString().contains(\".mpeg\") || uri.toString().contains(\".mpe\")\n || uri.toString().contains(\".mp4\") || uri.toString().contains(\".avi\")) {\n // Video files\n intent.setDataAndType(uri, \"video/*\");\n } else {\n // if you want you can also define the intent type for\n // any\n // other file\n\n // additionally use else clause below, to manage other\n // unknown extensions\n // in this case, Android will show all applications\n // installed on the device\n // so you can choose which application to use\n intent.setDataAndType(uri, \"*/*\");\n }\n\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n context.startActivity(intent);\n\n dialog.dismiss();\n }\n\n @Override\n public void onCancelClicked(NotifyDialog dialog) {\n dialog.dismiss();\n }\n });\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\t\tshowdialog();\n\n\t\t\t}", "public void openCurrentMessage() {\n if (this.currentMessageObject != null) {\n Intent intent = new Intent(ApplicationLoader.applicationContext, LaunchActivity.class);\n long dialogId = this.currentMessageObject.getDialogId();\n if (DialogObject.isEncryptedDialog(dialogId)) {\n intent.putExtra(\"encId\", DialogObject.getEncryptedChatId(dialogId));\n } else if (DialogObject.isUserDialog(dialogId)) {\n intent.putExtra(\"userId\", dialogId);\n } else if (DialogObject.isChatDialog(dialogId)) {\n intent.putExtra(\"chatId\", -dialogId);\n }\n intent.putExtra(\"currentAccount\", this.currentMessageObject.currentAccount);\n intent.setAction(\"com.tmessages.openchat\" + Math.random() + Integer.MAX_VALUE);\n intent.setFlags(32768);\n startActivity(intent);\n onFinish();\n finish();\n }\n }", "public static void allPeopleAcceptedMeetingMessage(final Context context, final ParcelableMessage message) {\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(message.messageTitle)\n .setMessage(message.messageBody)\n .setNegativeButton(R.string.later, null)\n .setPositiveButton(R.string.show_detail, new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // pass meeting information to meeting detail\n Intent intent = new Intent(context, MeetingDetailActivity.class);\n intent.putExtra(MeetingDetailActivity.ARG_MEETING_ID, message.meetingId);\n context.startActivity(intent);\n }\n });\n\n // perform some actions before showing the dialog\n\n builder.show();\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface arg0,\n\t\t\t\t\t\tint arg1) {\n\t\t\t\t\tIntent i = new Intent(getActivity().getApplicationContext(),MainActivity.class);\n\t\t\t\t\tgetActivity().startActivity(i);\n\t\t\t\t}", "@Override\n public void onClick(View v) { Intent intent = new Intent(v.getContext(), ItemDescriptionActivity.class);\n// intent.putExtra(\"title\", data.get(position).getItems().get(position).getTitle());\n// intent.putExtra(\"description\", data.get(position).getItems().get(position).getDescription());\n// v.getContext().startActivity(intent);\n//\n Intent intent = new Intent(v.getContext(), ItemListActivity.class);\n intent.putExtra(\"id\", data.get(position).getId());\n activityContext.startActivity(intent);\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.login_request)\n .setMessage(R.string.profile_setting_change_credentials)\n .setPositiveButton(R.string.login, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.d(TAG, \"positiveButtonClick\");\n EditPasswordActivity editPasswordActivity = (EditPasswordActivity) getActivity();\n if (editPasswordActivity != null) {\n editPasswordActivity.onDialogPositiveClick();\n }\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.d(TAG, \"negativeButtonClick\");\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public interface OnDialogDismissed {\r\n public void action(View view, Context context);\r\n}", "public InvoicesPopupDialog createDialog(Context context, List<Invoice> invoices){\n\t\tgInvoicesPopupDialog.setContentView(R.layout.dialog_popup_invoices);\n\t\tgInvoicesPopupDialog.getWindow().setLayout(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\tgInvoicesPopupDialog.setCancelable(true);\n\n\t\tImageView ivBack = (ImageView) gInvoicesPopupDialog.findViewById(R.id.iv_go_back);\n\t\tivBack.setOnClickListener(new View.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tgInvoicesPopupDialog.dismiss();\n\t\t\t}\n\t\t});\n\t\trecentInvoices = invoices;\n\t\tthis.mContext = context;\n\n\t\tlvMenu = (ListView) gInvoicesPopupDialog.findViewById(R.id.lv_menu);\n\t\tloadRecentInvoicesMenu();\n\n\t\tlvMenu.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tif(position < recentInvoices.size())\n\t\t\t\t{\n\t\t\t\t\tInvoice invoice = recentInvoices.get(position);\n\t\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\t\tbundle.putString(Resource.KEY_URL, invoice.getInvoiceUrl());\n\t\t\t\t\tbundle.putString(Resource.KEY_TITLE, mContext.getString(R.string.invoices));\n\t\t\t\t\tbundle.putString(Resource.KEY_INVOICE_ID, invoice.getInvoiceId());\n\n\t\t\t\t\tIntent intent = new Intent(mContext, InvoiceActivity.class);\n\t\t\t\t\tintent.putExtras(bundle);\n\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn gInvoicesPopupDialog;\n\t}", "@Override\n public void onClick(View v) {\n CustomAddItemDialog customAddItemDialog = new CustomAddItemDialog(MainActivity.this);\n customAddItemDialog.show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n //return super.onCreateDialog(savedInstanceState); // TODO: should we call it?\n final String title = getArguments().getString(\"TITLE\");\n final String msg = getArguments().getString(\"MESSAGE\");\n final String pos = getArguments().getString(\"POS\");\n final String neg = getArguments().getString(\"NEG\");\n final String neu = getArguments().getString(\"NEU\");\n // TODO - this is just an int... what about other ... Parcelable\n final int idx = getArguments().getInt(\"IDX\");\n final int iconid = getArguments().getInt(\"ICON_ID\");\n final float textsize = getArguments().getFloat(\"MSGSIZE\");\n\n if (savedInstanceState != null) {\n tag = savedInstanceState.getString(\"TAG\");\n }\n\n final DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialogInterface, int clickedButton) {\n ConfirmListener act = (ConfirmListener) getActivity();\n act.processConfirmation(clickedButton, tag, idx);\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(title)\n .setMessage(msg);\n if (iconid != 0 && getResources().getResourceTypeName(iconid).equals(\"drawable\")) {\n // this must be a R.drawable.id, otherwise crash!\n // android.content.res.Resources$NotFoundException:\n builder.setIcon(iconid);\n }\n if (pos != null) {\n builder.setPositiveButton(pos, listener);\n }\n if (neg != null) {\n builder.setNegativeButton(neg, listener);\n }\n if (neu != null) {\n builder.setNeutralButton(neu, listener);\n }\n\n dialog = builder.create();\n if (textsize != 0) {\n dialog.show(); // need to call this to be able to get the TextView as non-null pointer\n TextView tv = (TextView) dialog.findViewById(android.R.id.message);\n if (tv != null) {\n tv.setTextSize(textsize);\n }\n }\n return dialog;\n }", "public void onClick(DialogInterface dialog, int id) {\n Intent intent = new Intent(activity, FichesConfirmeActivity.class);\n activity.startActivity(intent);\n\n }", "public ForgotIdDialogBuilder(Context context)\r\n\t\t{\r\n\t\t\tsuper(context);\r\n\t\t\t\r\n\t\t\t// Configure dialog\t\t\r\n\t\t\tthis.setTitle(getResources().getString(R.string.forgot_login_id));\r\n\t\t\tthis.setMessage(getResources().getString(R.string.forgot_login_id_text));\r\n\t\t\t\r\n\t\t\t// Setup buttons and add listener\r\n\t\t\tthis.setPositiveButton(R.string.mail_button, new OnSendLoginIdRequestClickListener());\r\n\t\t\tthis.setNegativeButton(R.string.cancel, new OnCancelClickListener());\r\n\t\t}", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n if (item.getTitle() == \"Edit Activity\") {\n\n String editDialogDistance = null;\n String editDialogAlt = null;\n String editDialogAvgHR = null;\n String editDialogMaxHR = null;\n\n long editDialogId = Long.parseLong(editId.getText().toString());\n String editDialogTime = editTime.getText().toString();\n String editDialogTotalTime = editTotalTime.getText().toString();\n String editDialogInfo = editInfo.getText().toString();\n String editDialogSport = editSport.getText().toString();\n try {\n editDialogDistance = editDistance.getText().toString();\n editDialogAlt = editAltitude.getText().toString();\n editDialogAvgHR = editAvgHR.getText().toString();\n editDialogMaxHR = editMaxHR.getText().toString();\n } catch (NullPointerException e) {\n\n }\n\n showEditDialog(editDialogId, editDialogTime, editDialogTotalTime, editDialogDistance,\n editDialogInfo, editDialogSport, editDialogAlt, editDialogAvgHR, editDialogMaxHR, _day, _month, _year);\n } else if (item.getTitle() == \"Delete Activity\") {\n showDialog(DIALOG_DELETE);\n } else {\n return false;\n }\n return super.onContextItemSelected(item);\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 @NonNull\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_video_dialog);\n\n Bundle bundle = getArguments();\n videos_name = bundle.getStringArrayList(\"name\");\n videos_key = bundle.getStringArrayList(\"key\");\n\n\n CharSequence[] cs = videos_name.toArray(new CharSequence[videos_name.size()]);\n\n builder.setItems(cs, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Uri video_uri = UtilityMovieData.buildUriForTheVideo(videos_key.get(which));\n Intent intent = new Intent(Intent.ACTION_VIEW, video_uri);\n startActivity(intent);\n\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\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}", "private void startPopup(Context context, Long id) {\n\n //Intent emaIntent = new Intent(context, VoiceRecognitionActivity.class); //The activity you want to start.\n //Intent emaIntent = new Intent(context, PopupActivity.class); //The activity you want to start.\n //Log.d(\"Alarm receiver\", \"received intent\");\n Random random = new Random();\n int value = random.nextInt(1);\n Intent emaIntent = new Intent(context, PopupActivity.class);\n emaIntent.putExtra(\"pos\", id);\n\n\n\n// if (value == 1) {\n// emaIntent = new Intent(context, PopupActivity.class); //The activity you want to start.\n// } else {\n// emaIntent = new Intent(context, VoiceRecognitionActivity.class);\n// }\n\n\n\n emaIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(emaIntent);\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getArguments().getString(\"title\"))\n .setMessage(getArguments().getString(\"message\"))\n .setCancelable(false)\n .setPositiveButton(R.string.OK, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n // call callback method\n // mListener.onInfoDialogOKClick(InfoDialog.this);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(final Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(this.title);\n if (this.type == 2) {\n final boolean back = this.backToPreviousActivity;\n builder.setMessage(this.msg)\n .setPositiveButton(this.positive, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //Toast.makeText(mContext, \"Press positive\", Toast.LENGTH_SHORT).show();\n if (back) {\n getActivity().finish(); // finish actual activity\n }\n }\n })\n .setNegativeButton(this.negative, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //Toast.makeText(mContext, \"Press negative\", Toast.LENGTH_SHORT).show();\n }\n });\n } else {\n builder.setMessage(this.msg)\n .setPositiveButton(this.positive, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //Toast.makeText(mContext, \"Press positive\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void showOptions() {\n this.popupWindow.showAtLocation(this.layout, 17, 0, 0);\n this.customview.findViewById(R.id.dialog).setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.pdf.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = \"pdf\";\n discussionActivity.showPdfChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.img.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = ContentTypes.EXTENSION_JPG_1;\n discussionActivity.showImageChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.cancel.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n }", "private PendingIntent notificationContentIntent() {\n Intent intent = new Intent(packageContext, AlertDialog.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n return PendingIntent.getActivity(packageContext, 0, intent, 0);\n }" ]
[ "0.80652237", "0.6609087", "0.6462925", "0.64597625", "0.6441677", "0.641441", "0.6392781", "0.63903904", "0.6363833", "0.6317999", "0.6312142", "0.6301685", "0.6301685", "0.6285873", "0.62602615", "0.62591743", "0.6214334", "0.6188803", "0.6164532", "0.6157101", "0.6120876", "0.612066", "0.6113305", "0.6103489", "0.60941577", "0.6077141", "0.60450226", "0.60384494", "0.60296124", "0.6022256", "0.5997895", "0.59920573", "0.5986431", "0.59816223", "0.59687537", "0.5960479", "0.59601235", "0.59570175", "0.59570175", "0.59528446", "0.5948793", "0.5941107", "0.59400856", "0.59398746", "0.593541", "0.5889828", "0.58737063", "0.5864448", "0.58579683", "0.585679", "0.5851237", "0.5830549", "0.58205837", "0.5816215", "0.581195", "0.580977", "0.58021086", "0.58004993", "0.5799179", "0.5792957", "0.5791128", "0.5789782", "0.57662505", "0.57659924", "0.5762544", "0.5753559", "0.5749042", "0.57482916", "0.57461953", "0.573602", "0.5719925", "0.5716722", "0.571234", "0.57061404", "0.570024", "0.56927824", "0.56895983", "0.56884784", "0.5686276", "0.5682251", "0.5679279", "0.56782216", "0.56719863", "0.56715494", "0.5671513", "0.5670278", "0.56677413", "0.566487", "0.5664052", "0.5663216", "0.5657736", "0.56577337", "0.5654503", "0.5649648", "0.5647145", "0.5641315", "0.56377566", "0.56374264", "0.56338066", "0.563366", "0.5633218" ]
0.0
-1
interface to be implemented by activities that want to use the dialog in order to be able to retrieve the selected value
public interface ScoreDialogPickerListener { //method to be implemented by activities that implement the interface void onScoreSelected(String value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Dialog onCreateDialog(int id) {\n switch (id) {\n\n case QUALIFICATION_ALERTDIALOG:\n\n AlertDialog.Builder builder1 = new AlertDialog.Builder(UpdateProfileActivity.this)\n .setTitle(\"Job Type\")\n .setSingleChoiceItems(qualificationList, -1, new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n // Toast.makeText(getApplicationContext(),\"The selected\" + experienceList[which], Toast.LENGTH_LONG).show();\n etQualification.setText(qualificationList[which]);\n //dismissing the dialog when the user makes a selection.\n dialog.dismiss();\n }\n });\n AlertDialog alertdialog1 = builder1.create();\n return alertdialog1;\n\n\n }\n return null;\n\n }", "@Override\n public boolean onSelection(MaterialDialog dialog, View view, int which, CharSequence text) {\n\n return true;\n }", "public void onCreateDialogSingleChoice(List<String> list, final String title, int pos) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n//Source of the data in the DIalog\n String[] array = list.toArray(new String[list.size()]);\n for (int i = 0; i < list.size(); i++) {\n array[i] = list.get(i);\n }\n// Set the dialog title\n builder.setTitle(title)\n\n// Specify the list array, the items to be selected by default (null for none),\n// and the listener through which to receive callbacks when items are selected\n .setSingleChoiceItems(array, pos, (dialog, which) -> {\n// TODO Auto-generated method stub\n\n\n })\n\n// Set the action buttons\n .setPositiveButton(\"Ok\", (dialog, id) -> {\n// User clicked OK, so save the result somewhere\n// or return them to the component that opened the dialog\n\n ListView lw = ((AlertDialog) dialog).getListView();\n Object checkedItem = lw.getAdapter().getItem(lw.getCheckedItemPosition());\n\n if (title.equalsIgnoreCase(\"Title\")) {\n vEdtTxtTitle.setText(checkedItem.toString());\n mSelectPosi = lw.getCheckedItemPosition();\n } else if (title.equalsIgnoreCase(\"Security Question\")) {\n vEdtTxtSecurityQsn.setText(checkedItem.toString());\n mSelectPosiSecurity = lw.getCheckedItemPosition();\n }\n\n Log.d(getLocalClassName(), \" Selected Item \" + checkedItem.toString());\n// ad.dismiss();\n dialog.dismiss();\n\n })\n .setNegativeButton(\"Cancel\", (dialog, id) -> {\n// ad.dismiss();\n dialog.dismiss();\n });\n builder.show();\n }", "public interface DialogUtilResponse {\n void selectedValueSingleChoice(int position);\n void selectedValueSingleChoice(int position, String arrayType);\n}", "public void onShowMushroomSelectionDialogSelected(Context context);", "@Override\n public void onClick(DialogInterface dialog, int which) {\n etQualification.setText(qualificationList[which]);\n //dismissing the dialog when the user makes a selection.\n dialog.dismiss();\n }", "public ChooseValue getChooseValueDialog() {\n\t\treturn chooseValueDialog;\n\t}", "public interface DialogCallback {\n void onSelect(int p);\n}", "@Override\n public void onClick(View view) {\n\n new MaterialDialog.Builder(UserRegister.this)\n .title(R.string.choosegender)\n .items(R.array.gender)\n .itemsCallback(new MaterialDialog.ListCallback() {\n @Override\n public void onSelection(MaterialDialog dialog, View view, int which, CharSequence text) {\n et_gender.setText(text);\n }\n })\n .show();\n\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (which >= 0) {\n data.putString(DialogConts.KEY_VALUE, values[which]);\n } else {\n data.putBoolean(DialogConts.KEY_BUTTON_POSITIVE, which == DialogInterface.BUTTON_POSITIVE);\n listener.onDialogResult(data);\n }\n }", "public int getValue(){\n return selectedValue;\n }", "public Dialog onCreateDialogSingleChoice() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\t// Source of the data in the DIalog\n\t\tfinal String[] arr = new String[] { \"Completed\", \"Pending\",\n\t\t\t\t\"In progress\", \"Cancelled\" };\n\n\t\tfinal List<String> str1 = new ArrayList<String>();\n\n\t\t// Set the dialog title\n\t\tbuilder.setTitle(\"UpdateStatus\")\n\t\t\t\t// Specify the list array, the items to be selected by default\n\t\t\t\t// (null for none),\n\t\t\t\t// and the listener through which to receive callbacks when\n\t\t\t\t// items are selected\n\t\t\t\t.setSingleChoiceItems(arr, 0,\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tLog.d(Config.TAG,\n\t\t\t\t\t\t\t\t\t\t\"insdie onclick dialog interface which pos\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ which);\n\t\t\t\t\t\t\t\tfor (String str : arr) {\n\t\t\t\t\t\t\t\t\tif(which>=0){\n\t\t\t\t\t\t\t\t\tstr = arr[which];\n\t\t\t\t\t\t\t\t\tstr1.add(str);\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tstr = arr[2];\n\t\t\t\t\t\t\t\t\t\tstr1.add(str);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\n\t\t\t\t// Set the action buttons\n\t\t\t\t.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\tLog.d(Config.TAG,\n\t\t\t\t\t\t\t\t\"insdie onclick dialog interface which pos okay button\"\n\t\t\t\t\t\t\t\t\t\t+ id+\"STR! = \"+str1);\n\t\t\t\t\t\tif(id==-1){\n\t\t\t\t\t\t\tif(str1.size()>0){\n\t\t\t\t\t\tString str = str1.get(0);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tLog.d(Config.TAG, \"@@@@@@@@@@@@@@\"+str);\n\t\t\t\t\t\tnew UpdateStatus(str).execute();\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tString str = \"Completed\";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLog.d(Config.TAG, \"@@@@@@@@@@@@@@\"+str);\n\t\t\t\t\t\t\t\tnew UpdateStatus(str).execute();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.setNegativeButton(\"Cancel\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\tLog.d(Config.TAG,\n\t\t\t\t\t\t\t\t\t\t\"insdie onclick dialog interface which pos cancel button\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ id);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\treturn builder.create();\n\t}", "@Override\n\t\t\tpublic void OnDialogClick() {\n\t\t\t\tIntent intent = new Intent(getContext(),\n\t\t\t\t\t\tCommonSelectDataActivity.class);\n\t\t\t\tintent.putExtra(CommonSelectDataActivity.TYPE, R.array.fylx);\n\n\t\t\t\t((Activity) getContext()).startActivityForResult(intent,\n\t\t\t\t\t\tKingTellerStaticConfig.SELECT_FYLX);\n\t\t\t\t((LinearLayout) getParent()).setTag(fylx);\n\t\t\t}", "public interface GetDialogResultListener {\n void getDialogResult(int mode, String result);\n}", "IProductInfo getM_piSelectedItem();", "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n int selectedPosition = ((AlertDialog) dialog).getListView().getCheckedItemPosition();\n mGender.setText( gender[selectedPosition] );\n\n }", "private void ActionChooseCountry() {\n final AlertDialog.Builder dialog = new AlertDialog.Builder(getContext());\n dialog.setTitle(getString(R.string.dialog_title_choose_country));\n\n final List<String> countryNames = Arrays.asList(getResources().getStringArray(R.array.countries_names));\n final List<String> countryArgs = Arrays.asList(getResources().getStringArray(R.array.countries_arg));\n\n final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(getContext(), android.R.layout.simple_list_item_1);\n arrayAdapter.addAll(countryNames);\n\n dialog.setNegativeButton(getString(R.string.dialog_btn_cancel), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n\n dialog.setAdapter(arrayAdapter, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n CoutryArg = countryArgs.get(i);\n\n tvChooseCountry.setText(countryNames.get(i));\n if (SourceId != null) {\n SourceId = null;\n tvChooseSource.setText(R.string.tv_pick_sourse);\n currentPage = 1;\n }\n }\n });\n dialog.show();\n }", "public void onClick(DialogInterface dialog, int item) {\n ed_select_bloddgroup.setText(select_dropdownvalue[item]);\n String selectedvalue = select_dropdownvalue[item];\n Log.e(\"Religion\", selectedvalue);\n blood_group_id = getID(selectedvalue);\n AppController.blood_groupId = blood_group_id;\n Log.e(\"blood_group_id\", blood_group_id);\n\n\n dialog.dismiss();\n\n }", "private String getChoice() {\n return searchChoiceBox.getValue();\n }", "public void onComidaSelected(int comidaId);", "void dailod_dab() {\n AlertDialog.Builder alertdialogbuilder = new AlertDialog.Builder(MainActivity.this);\n\n\n alertdialogbuilder.setTitle(\"Select A slot \");\n\n\n alertdialogbuilder.setItems(value1, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String slt = Arrays.asList(value1).get(which);\n //slot=lis.get(which);\n\n db.opendb();\n String mnoo = db.get_Mobileno();\n String passs = db.get_PASS();\n if (mnoo != null && mnoo.length() > 0 && passs != null && passs.length() > 0) {\n sendSMS(mnoo, \"DB\" + slt + \" \" + passs);\n Toast.makeText(getApplicationContext(), slt, Toast.LENGTH_LONG).show();\n }\n // textview.setText(selectedText);\n\n }\n });\n\n AlertDialog dialog = alertdialogbuilder.create();\n\n dialog.show();\n }", "public Dialog onCreateDialogSingleChoice() {\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n \t//Source of the data in the DIalog\n \t\n\n \t// Set the dialog title\n \tbuilder.setTitle(R.string.dtitle)\n \t// Specify the list array, the items to be selected by default (null for none),\n \t// and the listener through which to receive callbacks when items are selected\n \t.setSingleChoiceItems(items, choice, new DialogInterface.OnClickListener() {\n\n \t@Override\n \tpublic void onClick(DialogInterface dialog, int which) {\n \t// TODO Auto-generated method stub\n myPref.setSummary(items[which]);\n switch(which)\n {\n case 0:\n editor.putInt(\"Theme\",R.style.AppThemeRed);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 1:\n editor.putInt(\"Theme\",R.style.AppThemeBlue);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 2:\n editor.putInt(\"Theme\",R.style.AppThemePurple);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 3:\n editor.putInt(\"Theme\",R.style.AppThemeGreen);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 4:\n editor.putInt(\"Theme\",R.style.AppThemeOrange);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 5:\n editor.putInt(\"Theme\",R.style.AppThemeGrey);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n }\n\n \t}\n \t})\n\n \t// Set the action buttons\n \t.setPositiveButton(R.string.dok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK, so save the result somewhere\n // or return them to the component that opened the dialog\n //Preferences.restart();\n //theme = sharedPreferences.getInt(\"Theme\", R.style.AppThemeRed);\n startActivity(new Intent(context, Preferences.class));\n }\n })\n \t.setNegativeButton(R.string.dcancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n\n \treturn builder.create();\n \t}", "@Override\n public void onClick(final View v) {\n AlertDialog.Builder dl = new AlertDialog.Builder(v.getContext());\n dl.setTitle(\"카테고리 선택\");\n dl.setSingleChoiceItems(items, 0, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n //Toast.makeText(v.getContext(), items[which], Toast.LENGTH_SHORT).show();\n ActivityStCategory = items[which];\n }\n });\n dl.setPositiveButton(\"선택완료\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id)\n {\n // 프로그램을 종료한다\n ActivitySelectBool = true;\n ActivityBtCategoty.setText(ActivityStCategory);\n dialog.dismiss(); // 누르면 바로 닫히는 형태\n }\n });\n\n dl.setNegativeButton(\"취소\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id)\n {\n // 프로그램을 종료한다\n dialog.dismiss(); // 누르면 바로 닫히는 형태\n }\n });\n\n\n dl.show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }", "public interface CustomDialogListener {\n\n void onFirstOptionClicked();\n\n void onSecondOptionClicked();\n}", "private void showDialog() {\n// String select[] = new String[]{\"MEMO\", \"BAIDU\", \"TAOBAO\"};\n String select[] = getResources().getStringArray(R.array.dialog_items);\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Select a Website\")\n .setSingleChoiceItems(select, mSelectionRes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mSelectionRes = which; // redefine chosen item, and loging\n Intent intent = new Intent();\n if (which == 3) {\n /**\n * for general android devices using\n */\n// intent.setAction(\"android.settings.SETTINGS\");\n// startActivity(intent);\n\n //for leanback only\n Utils.startAPP(getApplicationContext(), \"com.android.tv.settings\");\n//\n Toast.makeText(MainActivity.this, \"haha\", Toast.LENGTH_SHORT).show();\n }\n dialog.dismiss();\n }\n });\n builder.create().show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n //inflater and layout used for custom dialog\n View view = inflater.inflate(R.layout.dialog_test_layout,null);\n\n builder.setView(view)\n .setMessage(\"Select Score\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //if ok is clicked retrieve the value and pass it to the listener\n int value = numberPicker.getValue();\n listener.onScoreSelected(Integer.toString(value));\n\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //do nothing, close the dialog\n }\n });\n // Create the AlertDialog object and return it\n numberPicker = view.findViewById(R.id.effortLevelNumPickerTest);\n numberPicker.setMinValue(0);\n numberPicker.setMaxValue(100);\n return builder.create();\n }", "public IEntry getSelectedEntry()\n {\n return selectedEntry;\n }", "public void onClick(DialogInterface dialog, int choice) {\n }", "@Override\r\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tisubject=bl.get(arg2)[0];\r\n\t\t\t\t\t\t\t\t\tiamount=bl.get(arg2)[1];\r\n\t\t\t\t\t\t\t\t\timode=bl.get(arg2)[2];\r\n\t\t\t\t\t\t\t\t\tidate=bl.get(arg2)[3];\r\n\t\t\t\t\t\t\t\t\tshowDialog(DETAIL_DIALOG);\r\n\t\t\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n input_prac_type.setText(renewal[which]);\n Currentitem = mParam1.get(which);\n input_prac_price.setText(\"RM\"+String.valueOf(mParam1.get(which).price));\n Log.e(\"equipment select\",Currentitem.name);\n }", "@Override\n public void onSelection(MaterialDialog dialog, View view, int which, String text) {\n selectedFragmentFromFAB.passSelectedFragmentFromFAB(which);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n /* I'm using SharedPreferences as a simple way to store key value sets\n */\n SharedPreferences sharedPref = getActivity().getSharedPreferences(\"mesprefs\", Context.MODE_PRIVATE);\n final SharedPreferences.Editor editor = sharedPref.edit();\n\n\n // Set the dialog title\n builder.setTitle(\"My Preferences\")\n // Specify the list array, the items to be selected by default (null for none),\n // and the listener through which to receive callbacks when items are selected\n .setMultiChoiceItems(R.array.prefs_array, null,\n new DialogInterface.OnMultiChoiceClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which,\n boolean isChecked) {\n if (isChecked) {\n // If the user checked the item, add it to the selected items\n mSelectedItems.add(which);\n } else if (mSelectedItems.contains(which)) {\n // Else, if the item is already in the array, remove it\n mSelectedItems.remove(Integer.valueOf(which));\n }\n }\n })\n // Set the action buttons\n .setPositiveButton(\"Save\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK, so save the mSelectedItems results somewhere\n // or return them to the component that opened the dialo\n Iterator ite = mSelectedItems.listIterator();\n while(ite.hasNext()) {\n\n int pref_int = ((Integer )(ite.next())).intValue();\n switch (pref_int){\n case 0 :\n editor.putString(getString(R.string.pref_1), getString(R.string.pref_1));\n Log.i(\"info\", \"Preference 1\");\n break;\n case 1 :\n editor.putString(getString(R.string.pref_2), getString(R.string.pref_2));\n Log.i(\"info\", \"Preference 2\");\n break;\n case 2 :\n editor.putString(getString(R.string.pref_3), getString(R.string.pref_3));\n Log.i(\"info\", \"Preference 3\");\n break;\n\n }\n }\n editor.commit();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n\n\n\n\n return builder.create();\n\n }", "public void tipoendereco(View view){\n final ArrayAdapter adapter = new ArrayAdapter(this, R.layout.novo_cliente_endereco_tipoendereco, itens);\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Selecione o Tipo do Endereço:\");\n //define o diálogo como uma lista, passa o adapter.\n builder.setSingleChoiceItems(adapter, 0, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface arg0, int arg1) {\n //Toast.makeText(Novo_Cliente_Endereco.this, \"posição selecionada=\" + arg1, Toast.LENGTH_SHORT).show();\n tipo.setText(adapter.getItem(arg1).toString());\n try {\n endereco.setTipoendereco(daoTipoEndereco.queryBuilder().where().eq(\"nome\",tipo.getText().toString()).queryForFirst());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n //tipo.setEnabled(false);\n alertaEndereco.dismiss();\n }\n });\n\n alertaEndereco = builder.create();\n alertaEndereco.show();\n }", "public Gnome getSelectedItem() {\n return selectedItem;\n }", "public void onClick(View v) {\n showSchedule(v);\n league_selected = leagues_sp.getSelectedItemPosition();\n Log.d(\"MainActivity\", \"Selected league is \" +league_selected);\n team_selected = teams_sp.getSelectedItem().toString();\n Log.d(\"MainActivity\", \"Selected team is \" +team_selected);\n }", "@Override\n public void onClick(DialogInterface dialog,\n\n int which) {\n\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n i.putExtra(\"from_value\", \"enquiry\");\n startActivity(i);\n\n }", "public Axiom getSelected() {\r\n\treturn view.getSelected();\r\n }", "@Override\r\n public void onClick(View arg0) {\n StatService.onEvent(IllegalQueryActivity.this,\r\n \"clickChoiceVehicleType\", \"点击选择车类型\");\r\n final Dialog dialog = new Dialog(IllegalQueryActivity.this,\r\n R.style.myDialogTheme);\r\n LayoutInflater inflater = LayoutInflater\r\n .from(IllegalQueryActivity.this);\r\n final LinearLayout layout = (LinearLayout) inflater.inflate(\r\n R.layout.choose_vehicle_type_ac, null);\r\n dialog.setContentView(layout);\r\n dialog.show();\r\n RadioGroup mGroup = (RadioGroup) layout\r\n .findViewById(R.id.vehicle_type_group);\r\n mGroup.setOnCheckedChangeListener(new OnCheckedChangeListener() {\r\n\r\n @Override\r\n public void onCheckedChanged(RadioGroup group, int checkedId) {\r\n // TODO Auto-generated method stub\r\n dialog.dismiss();\r\n MyLog.i(\"YUY\",\r\n String.valueOf(checkedId) + \" \"\r\n + group.getCheckedRadioButtonId());\r\n mVehicleTypeTV.setText(((RadioButton) layout\r\n .findViewById(checkedId)).getText().toString());\r\n }\r\n });\r\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\tfinal EditText et = (EditText) v;\n\t\t\t\n\t\t\t\n\t\t\tfinal AlertDialog.Builder Build = new AlertDialog.Builder(ADD2Activity.this);\n\t\t\t\n\t\t\tBuild.setTitle(\"Select A Fee Type\");\n\t\t\t\n\t\t\tBuild.setIcon(R.drawable.ic_launcher);\n\t\t\t\n\t\t\t\n\t\t\tfinal ArrayAdapter<String> aa = new ArrayAdapter<String>(ADD2Activity.this, android.R.layout.select_dialog_singlechoice); \n\t\t\taa.add(\"Monthly\");\n\t\t\taa.add(\"Quaterly\");\n\t\t\taa.add(\"Half-Yearly\");\n\t\t\taa.add(\"Annually\");\n\t\t\t\t\t\t\n\t\t\tBuild.setAdapter(aa, new DialogInterface.OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tString txt = aa.getItem(which);\n\t\t\t\t\t\n\t\t\t\t\tad.setTitle(txt);\n\t\t\t\t\t\n\t\t\t\t\tet.setText(txt);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t ad = Build.create();\n\t\t\t\n\t\t\t ad.show();\n\t\t}", "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tSelectedDayID = which;\r\n\t\t\t}", "public int getSelection() {\n \tcheckWidget();\n \treturn selection;\n }", "private String getSelectedString() {\n\t\treturn menuItem[selectedIndex];\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int checkedItem) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n int les=AppStart.GetInstance().pickstr.length;\n String[] cop=new String[les];\n\n cop=AppStart.GetInstance().pickstr;\n\n Intent myIntent = new Intent();\n myIntent = new Intent(picking.this, pickingquery.class);\n startActivity(myIntent);\n picking.this.finish();\n\n }", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "public interface AppUserSelectedCallback {\n /**\n * Called when user selects user(s) from a list in a dialog.\n *\n * @param appUsers the selected app users\n * @param extraText any text that user entered in dialog,\n * this will be null or empty if not shown or user didn't enter anything\n */\n void selected(Collection<AppUser> appUsers, String extraText);\n\n /**\n * Called when user taps a user in a list\n */\n void selected(AppUser appUser);\n}", "public void pantryAlert(){\n final ArrayList<Integer> mSelectedItems = new ArrayList<Integer>();\n final CharSequence[] items = new CharSequence[pantryStorage.getItems().size()];\n\n for(int i=0;i<items.length;i++){\n items[i] = pantryStorage.getItems().get(i);\n }\n\n AlertDialog.Builder builder = new AlertDialog.Builder(MyIngredientsActivity.this);\n\n // set the dialog title\n builder.setTitle(\"Choose One or More\")\n\n // specify the list array, the items to be selected by default (null for none),\n // and the listener through which to receive call backs when items are selected\n // R.array.choices were set in the resources res/values/strings.xml\n .setMultiChoiceItems(items, null, new DialogInterface.OnMultiChoiceClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\n if (isChecked) {\n // if the user checked the item, add it to the selected items\n mSelectedItems.add(which);\n }\n\n else if (mSelectedItems.contains(which)) {\n // else if the item is already in the array, remove it\n mSelectedItems.remove(Integer.valueOf(which));\n }\n\n // you can also add other codes here,\n // for example a tool tip that gives user an idea of what he is selecting\n // showToast(\"Just an example description.\");\n }\n\n })\n\n // Set the action buttons\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n\n // user clicked OK, so save the mSelectedItems results somewhere\n // here we are trying to retrieve the selected items indices\n String selectedItems = \"\";\n for(Integer i : mSelectedItems){\n selectedItems += items[i] + \",\";\n Log.d(\"selectedIndex = \",items[i].toString());\n }\n\n recipeText.setText(selectedItems);\n //showToast(\"Selected index: \" + selectedIndex);\n\n }\n })\n\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n // removes the AlertDialog in the screen\n }\n })\n\n .show();\n\n }", "@Override\n public void onClick(View v) {\n picker.openChooser(MainActivity.this);\n\n }", "private void getAndSetIncomingIntent(){\n if (getIntent().hasExtra(\"asso\")) {\n Log.d(TAG, getIntent().getStringExtra(\"asso\"));\n edt_asso_name.setText(getIntent().getStringExtra(\"asso\"));\n }\n if (getIntent().hasExtra(\"school\")) {\n edt_school.setText(getIntent().getStringExtra(\"school\"));\n }\n if (getIntent().hasExtra(\"purpose\")) {\n edt_purpose.setText(getIntent().getStringExtra(\"purpose\"));\n }\n if (getIntent().hasExtra(\"link\")) {\n edt_link.setText(getIntent().getStringExtra(\"link\"));\n }\n if (getIntent().hasExtra(\"type\")) {\n selectedSpinnerType = getIntent().getStringExtra(\"type\");\n }\n\n }", "public Object getSelectedObject() {\n return (String) itsCombo.getSelectedItem();\n }", "public interface OnValueSelectedListener {\n public void start();\n\n public void data(long open, long close, long high, long low);\n\n public void end();\n}", "public interface DialogAct {\n\t/**\n\t * Get the utterance of the dialog act.\n\t * */\n public String getUtterance();\n\t\n\t/**\n\t * Get the tag of the utterance.\n\t * */\n\tpublic String getTag();\n\t\n\t/**\n\t * Set the utterance of the dialog act.\n\t * @param utterance the utterance String\n\t * */\n public void setUtterance(String utterance);\n public void setContent(String content);\n\t\n\t/**\n\t * Set the tag of the utterance.\n\t * @param tag the tag of the utterance as a String\n\t * */\n\tpublic void setTag(String tag);\n\t\n \n\t/**\n\t * Get the standard tag of the utterance\n\t * according to some standard tag set.\n\t * */\n\tpublic String getStandardTag();\n\t\n\tpublic String getStandardTag(String _tag);\n \n\tpublic boolean isStandardTag(String tag);\n\t\n}", "public interface DatepickerListener {\n void dialogValueReturn(String year, String week, String month, String day);\n}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n //NOTE: Position 0 is reserved for the manually added Prompt\n if (position > 0) {\n //Retrieving the Category Name of the selection\n mCategoryLastSelected = parent.getItemAtPosition(position).toString();\n //Calling the Presenter method to take appropriate action\n //(For showing/hiding the EditText field of Category OTHER)\n mPresenter.onCategorySelected(mCategoryLastSelected);\n } else {\n //On other cases, reset the Category Name saved\n mCategoryLastSelected = \"\";\n }\n }", "public int getChoice()\n {\n super.setVisible(true);\n return this.choice;\n }", "public ItemType showSelectionDialog(String title)\n\t{\n\t\treturn super.showSelectionDialog(title, items);\n\t}", "public ItemType showSelectionDialog(String title)\n\t{\n\t\treturn super.showSelectionDialog(title, items);\n\t}", "public void onSelectionChanged();", "public void displayCitylist(){\n final CharSequence[] items = {\" Banglore \", \" Hyderabad \", \" Chennai \", \" Delhi \", \" Mumbai \", \" Kolkata \", \"Ahmedabad\"};\n\n // Creating and Building the Dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(\"Select Your City\");\n //final AlertDialog finalLevelDialog = levelDialog;\n //final AlertDialog finalLevelDialog = levelDialog;\n builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int item) {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n SharedPreferences.Editor editor1 = preferences.edit();\n\n switch (item) {\n case 0: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"BLR\", 25));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"Banglore\", \"\" + preferences.getInt(\"BLR\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Bangalore\");\n break;\n }\n case 1: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"HYD\", 20));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 1600);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"HYD\", \"\" + preferences.getInt(\"HYD\", 20));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 20));\n citySelected.setText(\"City: Hyderabad\");\n break;\n }\n case 2: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"CHE\", 25));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 1800);\n editor1.putInt(\"perkm\", 12);\n editor1.apply();\n Log.d(\"CHE\", \"\" + preferences.getInt(\"CHE\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Chennai\");\n break;\n }\n case 3: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"DEL\", 25));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 8);\n editor1.apply();\n citySelected.setText(\"City: Delhi\");\n break;\n }\n case 4: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"MUM\", 18));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 1500);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"MUM\", \"\" + preferences.getInt(\"MUM\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Mumbai\");\n break;\n }\n case 5: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"KOL\", 25));\n editor1.putFloat(\"nightfare\", 0.0f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 12);\n editor1.apply();\n Log.d(\"KOL\", \"\" + preferences.getInt(\"KOL\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Kolkata\");\n break;\n }\n case 6: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"AMD\", 11));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 1400);\n editor1.putInt(\"perkm\", 8);\n editor1.apply();\n Log.d(\"AMD\", \"\" + preferences.getInt(\"AMD\", 11));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 11));\n citySelected.setText(\"City: Ahmedabad\");\n break;\n }\n default:\n editor1.putInt(\"Current_city\", preferences.getInt(\"BLR\", 25));\n editor1.putInt(\"min_distance\", 2000);\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n citySelected.setText(\"City: Bangalore\");\n }\n levelDialog.dismiss();\n }\n });\n levelDialog = builder.create();\n levelDialog.show();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n getCariSemua();\n//\n }", "@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carCompanies[which];\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}", "public void selectSubject(View view) {\n mSelectedItems = new ArrayList<Integer>();\n final String[] choiceArray = getResources().getStringArray( R.array.choices );\n\n final AlertDialog.Builder builder = new AlertDialog.Builder( TutorEnquiry.this );\n\n // set the dialog title\n builder.setTitle( \"Choose One or More\" )\n .setMultiChoiceItems( R.array.choices, null, new DialogInterface.OnMultiChoiceClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\n if (isChecked) {\n // if the user checked the item, add it to the selected items\n mSelectedItems.add( which );\n } else if (mSelectedItems.contains( which )) {\n // else if the item is already in the array, remove it\n mSelectedItems.remove( Integer.valueOf( which ) );\n }\n\n }\n\n } )\n\n // Set the action buttons\n .setPositiveButton( \"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n StringBuilder selectedIndex = new StringBuilder();\n for (int a = 0; a < mSelectedItems.size(); a++) {\n if (mSelectedItems.size() == 1) {\n selectedIndex.append( choiceArray[(Integer) mSelectedItems.get( a )] );\n } else {\n selectedIndex.append( choiceArray[(Integer) mSelectedItems.get( a )] + \",\" );\n }\n }\n mSubject.setText( selectedIndex.toString() );\n\n }\n } )\n\n .setNegativeButton( \"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n // removes the AlertDialog in the screen\n }\n } )\n\n .show();\n\n }", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t\r\n\t\t// get the plant that was selected.\r\n\t\tBundle bundle = data.getExtras();\r\n\t\t\r\n\t\tPlant selectedPlant = (Plant) bundle.getSerializable(PlantResultsActivity.PLANT_RESULT);\r\n\t\t\r\n\t\tToast.makeText(this, \"Plant: \" + selectedPlant, Toast.LENGTH_LONG).show();\r\n\t\t\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carModelCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carModelCompanies[which];\n // Notify the current action\n }", "private void DateSelection(final TextView tv_inv_date) {\n try {\r\n AlertDialog.Builder dlgReportDate = new AlertDialog.Builder(myContext);\r\n final DatePicker dateReportDate = new DatePicker(myContext);\r\n String date_str = tvDate.getText().toString();\r\n String dd = date_str.substring(6,10)+\"-\"+date_str.substring(3,5)+\"-\"+date_str.substring(0,2);\r\n DateTime objDate = new DateTime(dd);\r\n dateReportDate.updateDate(objDate.getYear(), objDate.getMonth(), objDate.getDay());\r\n String strMessage = \"\";\r\n\r\n\r\n\r\n dlgReportDate\r\n .setIcon(R.drawable.ic_launcher)\r\n .setTitle(\"Date Selection\")\r\n .setMessage(strMessage)\r\n .setView(dateReportDate)\r\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n String strDd = \"\";\r\n public void onClick(DialogInterface dialog, int which) {\r\n if (dateReportDate.getDayOfMonth() < 10) {\r\n strDd = \"0\" + String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\r\n } else {\r\n strDd = String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\r\n }\r\n if (dateReportDate.getMonth() < 9) {\r\n strDd += \"0\" + String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\r\n } else {\r\n strDd += String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\r\n }\r\n\r\n strDd += String.valueOf(dateReportDate.getYear());\r\n tv_inv_date.setText(strDd);\r\n Log.d(\"ReprintDate\", \"Selected Date:\" + strDd);\r\n }\r\n })\r\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\r\n\r\n public void onClick(DialogInterface dialog, int which) {\r\n // TODO Auto-generated method stub\r\n\r\n }\r\n })\r\n .show();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n public void onClick(\n DialogInterface dialog,\n int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityStCategory = items[which];\n }", "void optionsDialog(){\r\n\t\tString title = getString(R.string.select_option);\r\n\t\tString[] options = getResources().getStringArray(R.array.options);\r\n\t\t\r\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\t \r\n\t\t// set the dialog title\r\n\t builder.setTitle(title);\r\n\t \r\n\t // specify the list array\r\n\t builder.setItems(options, new DialogInterface.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tswitch(which){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\t// open update dialog\r\n\t\t\t\t\tupdateDialog();\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\t// open delete dialog\r\n\t\t\t\t\tdeleteDialog();\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t \r\n\r\n\t // show dialog\r\n\t\tAlertDialog alert = builder.create();\r\n\t\talert.show();\r\n\t}", "public void getChoice()\n {\n }", "public void whatTypeOfPastaClicked(View view) {\n\n Intent child = new Intent(this, SelectPastaType.class);\n child.putExtra(\"selectedType\", selectedType);\n\n startActivityForResult(child, REQ_CODE_PASTA_TYPE);\n\n }", "@Override\n public void onClick(View view) {\n\n if (material_type.getSelectedItem().equals(\"--Select Material Type--\")) {\n Toast.makeText(Activity_Sell.this, \"Select Material Type to continue\", Toast.LENGTH_SHORT).show();\n } else {\n\n// LoadMaterialTypeSpinner();\n alertDialog.dismiss();\n getMaterial();\n /* getMaterialClasses();\n getMaterialDetails();\n getMaterialUnits();*/\n\n }\n }", "Object getSelection();", "@Override\n public void onClick(DialogInterface dialog, int which) {\n input_prac_type.setText(renewal[which]);\n Currentitem = mParam1.get(which);\n Log.e(\"equipment select\",Currentitem.name);\n input_prac_price.setText(\"RM\"+String.valueOf(mParam1.get(which).price));\n\n\n }", "@Override\n public void onClick(View v) {\n\n new SimpleSearchDialogCompat(RegisterActivity.this, \"Select your new postcode\",\n \"What are you looking for?\", null, createSampleData(),\n new SearchResultListener<SearchModelForPostcode>() {\n @Override\n public void onSelected(BaseSearchDialogCompat dialog,\n SearchModelForPostcode item, int position) {\n\n //SharedPreferences.Editor editor = getSharedPreferences(MY_PREFS_NAME, MODE_PRIVATE).edit();\n //editor.putString(\"postcode\", item.getTitle());\n\n\n Toast.makeText(RegisterActivity.this, \"postcode selected:\"+item.getTitle(),\n Toast.LENGTH_SHORT).show();\n pc.setText(item.getTitle());\n dialog.dismiss();\n }\n }).show();\n\n }", "public void onSelectedItem(int position) {\n\t\t\t\t\n\t\t\t\tviewInfo.intentUri = customDialog.mAppList.get(position).intentUri;\n\t\t\t\t\n\t\t\t\tviewInfo.icon = customDialog.mAppList.get(position).icon;\n\t\t\t\tviewInfo.label = customDialog.mAppList.get(position).label;\n\t\t\t\t\n\t\t\t\tmUiManager.addItemToPanel(null\n\t\t\t\t,viewInfo\n\t\t\t\t,mDatabaseUtil);\n\t\t\t}", "DialogResult show();", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tmodelNum = which;\n\t\t\t\t}", "public void onClick(DialogInterface dialog,int id) {\n showRoboboDeviceSelectionDialog();\n\n }", "private void DateSelection(final TextView tv_inv_date ) {\n try {\n AlertDialog.Builder dlgReportDate = new AlertDialog.Builder(this);\n final DatePicker dateReportDate = new DatePicker(this);\n String date_str = tvDate.getText().toString();\n String dd = date_str.substring(6,10)+\"-\"+date_str.substring(3,5)+\"-\"+date_str.substring(0,2);\n DateTime objDate = new DateTime(dd);\n dateReportDate.updateDate(objDate.getYear(), objDate.getMonth(), objDate.getDay());\n String strMessage = \"\";\n\n\n dlgReportDate\n .setIcon(R.drawable.ic_launcher)\n .setTitle(\"Date Selection\")\n .setMessage(strMessage)\n .setView(dateReportDate)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n String strDd = \"\";\n public void onClick(DialogInterface dialog, int which) {\n if (dateReportDate.getDayOfMonth() < 10) {\n strDd = \"0\" + String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\n } else {\n strDd = String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\n }\n if (dateReportDate.getMonth() < 9) {\n strDd += \"0\" + String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\n } else {\n strDd += String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\n }\n\n strDd += String.valueOf(dateReportDate.getYear());\n tv_inv_date.setText(strDd);\n Log.d(\"ReprintDate\", \"Selected Date:\" + strDd);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n\n }\n })\n .show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void onGitheriSelect() {\n Food githeri = FoodRatios.getGitheriRatios(mTotalAttendance);\n Intent intent = new Intent(this, GitheriProgramActivity.class);\n intent.putExtra(\"GitheriMeal\", Parcels.wrap(githeri));\n intent.putExtra(\"attendancenum\", mTotalAttendance);\n startActivity(intent);\n }", "public void showConfirmDialog() {\n mDialogClickInterface = (DialogueInterface) mContext;\n final Dialog dialog = new Dialog(mContext);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialogue_modify);\n Button buttonCancel = dialog.findViewById(R.id.btn_cancel);\n Button buttonOK = dialog.findViewById(R.id.btn_ok);\n final RadioGroup radioGroupLanguage = dialog.findViewById(R.id.radio_group);\n\n\n\n\n dialog.setCancelable(true);\n dialog.show(); // if decline button is clicked, close the custom dialog\n buttonCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Close dialog\n mDialogClickInterface.onLanguageSelected(dialog);\n }\n });\n buttonOK.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Close dialog\n int selectedId = radioGroupLanguage.getCheckedRadioButtonId();\n\n switch (selectedId) {\n\n case R.id.rb_arabic:\n view.editItem(listModel,index);\n break;\n case R.id.rb_english:\n view.deleteItem(listModel);\n break;\n }\n mDialogClickInterface.onLanguageSelected(dialog);\n }\n });\n\n }", "@Override\n public void onClick(View v) {\n\t \tIntent myIntent = new Intent(MainActivity.this, Select.class);\n\t \t//myIntent.putExtra(\"key\", value); //Optional parameters\n\t \tMainActivity.this.startActivity(myIntent);\n }", "public String getSelectedItem() {\n if (selectedPosition != -1) {\n Toast.makeText(activity, \"Selected Item : \" + list.get(selectedPosition), Toast.LENGTH_SHORT).show();\n return list.get(selectedPosition);\n }\n return \"\";\n }", "public void onClick(DialogInterface dialog, int id) {\n int value = numberPicker.getValue();\n listener.onScoreSelected(Integer.toString(value));\n\n }", "public void showDialog(Context context) {\n \n }", "private void openSendDialogue() {\n AlertDialog.Builder builder = new AlertDialog.Builder(getLayoutInflater().getContext());\n builder.setTitle(\"Transfer selected coins\");\n\n // Provide options for user\n CharSequence[] options = {\"To bank account\", \"To a friend\"};\n\n // Clear previously selected transfer\n mSelectedTransfer = \"\";\n\n // Set selected transfer\n builder.setSingleChoiceItems(options, -1, (dialog, which) -> {\n switch(which) {\n case 0:\n mSelectedTransfer = \"bank\";\n break;\n case 1:\n mSelectedTransfer = \"friend\";\n break;\n default:\n Log.d(TAG, \"[openSendDialogue] option not recognised: \" + which);\n }});\n\n // Execute transfer if one is not already in progress\n builder.setPositiveButton(\"OK\", (dialog, which) -> {\n switch(mSelectedTransfer) {\n case \"bank\":\n if(!mBankTransferInProgress) {\n transferToBankAccount();\n } else {\n displayToast(getString(R.string.msg_wait_on_transfer_completion));\n }\n break;\n case \"friend\":\n if (!mFriendTransferInProgress) {\n friendTransfer();\n } else {\n displayToast(getString(R.string.msg_wait_on_transfer_completion));\n }\n break;\n case \"\":\n displayToast(getString(R.string.msg_select_transfer_option));\n default:\n Log.d(TAG, \"[openSendDialogue] transfer not recognised: \" + mSelectedTransfer);\n }});\n\n builder.setNegativeButton(\"Cancel\", (dialog, which) -> dialog.cancel());\n builder.show();\n }", "@Override\n public boolean onSelection(MaterialDialog dialog, View view, int which, CharSequence text) {\n if(which == 1){\n Crop.pickImage(ProductDetailActivity.this);\n }\n return true;\n }", "public String getSelectedValue() {\r\n\t\treturn selectedValue;\r\n\t}", "private void ComboUserActionPerformed(java.awt.event.ActionEvent evt) {\n if(ComboUser.getSelectedItem().equals(\"title\")){\n \n selected=1;\n }\n else if(ComboUser.getSelectedItem().equals(\"author\"))\n {\n selected=2;\n }\n else if(ComboUser.getSelectedItem().equals(\"subject\"))\n {\n selected=3;\n }\n }", "public void handleResultShow(){\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Make a selection\");\n\n //create the String[] to display the search result to user\n final CharSequence[] sArray = new CharSequence[searchResult.size()];\n for (int i = 0; i < searchResult.size(); i++){\n sArray[i] = searchResult.get(i).getSymbolwithName();\n }\n builder.setItems(sArray, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //add the selection stock to main page\n validateAdd(searchResult.get(which));\n updatePrice();\n }\n });\n\n builder.setNegativeButton(\"Nevermind\", null);\n AlertDialog dialog = builder.create();\n dialog.show();\n\n }", "public void dialogAddItem(final HashMap<String, String> selectItem) {\n\n\t\tfinal Dialog dialog = new Dialog(getActivity()/* ,R.style.Theme_Dialog */);\n\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tdialog.setContentView(R.layout.dialog_add_item);\n\n\t\tdialog.findViewById(R.id.savebtn).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\t\t//changes bya avinash... if already getting excercise id then why we have to access it in excercise table\n/*\t\t\t\t\t\tlong rowid = ActivityModule.execiseinsertion(\n\t\t\t\t\t\t\t\tdatabaseObject, selectItem);\n\t\t\t\t\t\tActivityModule.execiseloginsertion(databaseObject,\n\t\t\t\t\t\t\t\tselectItem, rowid, selectItem.get(\"calories_burned\"));\n*/\n\t\t\t\t\t\tlong rowid = Long.parseLong(selectItem.get(BaseActivity.exercise_id));\n\t\t\t\t\t\tActivityModule.execiseloginsertion(databaseObject,\n\t\t\t\t\t\t\t\tselectItem, rowid, selectItem.get(BaseActivity.total_time_minutes));\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tdialog.findViewById(R.id.cancelbtn).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\tdialog.show();\n\t\tDisplayMetrics metrics = getResources().getDisplayMetrics();\n\t\tint width = metrics.widthPixels;\n\t\tint height = metrics.heightPixels;\n\t\tdialog.getWindow()\n\t\t\t\t.setLayout((6 * width) / 7, LayoutParams.WRAP_CONTENT);\n\n\t}", "@OnClick(R.id.converter_organization_cv)\n public void chooseOrganization() {\n mDialog = new DialogList(mContext,\n mOrganizationDialogTitle, null, mListForOrganizationsDialog,\n new RecyclerViewAdapterDialogList.OnItemClickListener() {\n @Override\n public void onClick(int position) {\n mOrganizationId = mListForOrganizationsDialog.get(position).getOrganization().getId();\n mPreferenceManager.setConverterOrganizationId(mOrganizationId);\n mDialog.getDialog().dismiss();\n checkDefaultData();\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 String getSelected ()\n {\n return ((GroupItem)gbox.getSelectedItem()).getSelected();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n }", "public int getSelectedIndex() {\n return dialPosition;\n }" ]
[ "0.6855268", "0.6743587", "0.66961366", "0.6634059", "0.6595834", "0.6485341", "0.6458419", "0.64026684", "0.63557565", "0.632964", "0.6279618", "0.62426317", "0.62321", "0.6228327", "0.62278885", "0.622506", "0.620415", "0.6202513", "0.61901885", "0.61727744", "0.6159182", "0.6156441", "0.61408055", "0.6118664", "0.6106235", "0.6100434", "0.6084915", "0.608378", "0.6066372", "0.6050223", "0.6043529", "0.6029992", "0.601293", "0.5997302", "0.59919226", "0.59784746", "0.5970372", "0.5955954", "0.5953333", "0.5936962", "0.592668", "0.59258276", "0.5918915", "0.59147197", "0.5909032", "0.590271", "0.5902212", "0.58985937", "0.5898334", "0.5887395", "0.58865017", "0.5886104", "0.5884728", "0.58838445", "0.58802587", "0.5878051", "0.5872873", "0.5872873", "0.587176", "0.58694667", "0.5859592", "0.58590233", "0.5858327", "0.5858267", "0.5850845", "0.584979", "0.5849152", "0.5841856", "0.58387893", "0.5837551", "0.58361953", "0.58277303", "0.5827534", "0.58248544", "0.5823028", "0.58180654", "0.5810653", "0.58085257", "0.58063704", "0.57991624", "0.57987", "0.5796896", "0.5792277", "0.57904905", "0.57786024", "0.5777992", "0.5777403", "0.57767934", "0.57767224", "0.57740176", "0.5767885", "0.57674253", "0.57626235", "0.5758172", "0.57580173", "0.57542026", "0.57483083", "0.57464844", "0.57464844", "0.5743969" ]
0.617534
19
method to be implemented by activities that implement the interface
void onScoreSelected(String value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ISEActivityAttatcher {\n void onCreate(Bundle savedInstanceState);\n void onStart();\n void onRestart();\n void onResume();\n void onPause();\n void onStop();\n void onDestroy();\n void onActivityResult(int requestCode, int resultCode, Intent data);\n boolean isRecyled();\n}", "public interface ActivityInterface {\n public void initView();\n public void setUICallbacks();\n public int getLayout();\n public void updateUI();\n}", "public interface MeetingAddActivityView {\n\n void startMeetingsActivity();\n void successInfo(String msg);\n void errorInfo(String msg);\n void startGetCustomers();\n}", "public interface MeetingsActivityView {\n void startMainActivity();\n\n void startMeetingDetailsActivity();\n\n void startMeetingAddActivity();\n\n void errorInfo(String msg);\n\n void errorMeetingCompletedInfo(String msg);\n void successMeetingCompletedInfo(String msg);\n\n\n void startGetMeetings();\n}", "@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}", "@Override\n\tpublic void starctActivity(Context context) {\n\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}", "public interface IViewListActivity {\n\n Context getBaseContext();\n\n View findViewById(final int id);\n\n void onResultList(final List<Filme> filmes);\n\n void setSupportActionBar(Toolbar toolbar);\n\n void startSearch();\n\n void onErrorSearch(final String errorMsg);\n\n void onSuccess(final Filme filme);\n\n}", "@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}", "public interface IBaseView {\n\n void showToastMessage(String message);\n\n void setProgressBar(boolean show);\n\n void showNetworkFailureMessage(boolean show);\n\n Context getPermission();\n\n void startNewActivity();\n\n}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }", "public interface ActivityLauncher {\r\n\r\n\tpublic void launchActivity();\r\n\r\n\tpublic void finishCurrentActivity();\r\n\r\n}", "@Override\n protected void onHandleIntent(Intent intent) {\n\n }", "public interface ActivityInterface {\n\n int getLayout();\n\n void initView();\n}", "public interface ListPersonaActivity {\n String TAG = \"listPersonaAct\";\n void showPersonas();\n}", "public interface IRegisterActivityView extends IActivityView{\n void onRegisteredSuccessfully();\n void onError(String message);\n}", "@Override\n protected void onHandleIntent(Intent workIntent) {\n }", "public interface OnNewIntent {\n void onNewIntent(ZHIntent zHIntent);\n}", "public interface MainView extends MvpView{\n void startAnekdotActivity(int type);\n}", "public interface IActivityCategoryView {\n void getMusicList(FileModel fileModel);\n void onStartLoadMusicList();\n void onCompletLoadMusicList();\n void onLoadMusicError(String er);\n}", "public interface IActivity {\n void bindData();\n\n void bindListener();\n}", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public interface IFirstActivityView {\n void setData(HotData hotData);\n void setFailMessage(String error);\n}", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "public interface IActivityBase {\n\n void showToast(String msg);\n void showAlert(String msg);\n\n}", "public interface MainActivityView {\n\n}", "public interface LoadActivityView {\n public void LoadSuccess(String registerBean);\n public void LoadFailed(int code);\n}", "interface LoginChamaPresenter {\n\n /**when activity is resumed*/\n void onResume();\n\n /** performs actions on user click, passes the position to implementer*/\n void onChamaItemClicked(int position);\n\n void onDestroy();\n}", "public interface MyBaseActivityImp {\n\n /**\n * 跳转Activity;\n *\n * @param paramClass Activity参数\n */\n void gotoActivity(Class<?> paramClass);\n\n /**\n * 跳转Activity,带有Bundle参数;\n *\n * @param paramClass Activity参数\n * @param bundle Bundle参数\n */\n void gotoActivity(Class<?> paramClass, Bundle bundle);\n\n /**\n * 跳转Activity,带有Bundle参数,并且该Activity不会压入栈中,返回后自动关闭;\n *\n * @param paramClass Activity参数\n * @param bundle Bundle参数\n */\n void gotoActivityNoHistory(Class<?> paramClass, Bundle bundle);\n\n /**\n * @param paramClass\n * @param bundle\n * @param paramInt\n */\n void gotoActivityForResult(Class<?> paramClass, Bundle bundle, int paramInt);\n\n /**\n * init View\n */\n void initView();\n\n /**\n *\n */\n void onEvent(Object o);\n}", "@Override\n public void needReloain(Activity activity) {\n }", "public interface OmnomActivity {\n\tpublic static final int REQUEST_CODE_ENABLE_BLUETOOTH = 100;\n\tpublic static final int REQUEST_CODE_SCAN_QR = 101;\n\n\tvoid start(Intent intent, int animIn, int animOut, boolean finish);\n\n\tvoid startForResult(Intent intent, int animIn, int animOut, int code);\n\n\tvoid start(Class<?> cls);\n\n\tvoid start(Class<?> cls, boolean finish);\n\n\tvoid start(Intent intent, boolean finish);\n\n\tActivity getActivity();\n\n\tint getLayoutResource();\n\n\tvoid initUi();\n\n\tPreferenceProvider getPreferences();\n\n\tSubscription subscribe(final Observable observable, final Action1<? extends Object> onNext, final Action1<Throwable> onError);\n\n\tvoid unsubscribe(final Subscription subscription);\n\n}", "public interface NotificationSenderActivity {\n\n public void update();\n\n}", "public interface GameActivityInterface extends Serializable {\n\n /**\n * Called in ingamefragment when throwthread is done\n * @param dices send all the dices generate on a roll\n * */\n void onThrowPostPossibleScores(SparseArray<Dice> dices);\n /**\n * Set the player view\n *\n * @param v view of the application\n * */\n void setPlayerView(View v);\n /**\n * Set the score view\n *\n * @param v view of the application\n * */\n void setScoreView(View v);\n\n /**\n * Set the throws\n *\n * @param v view of the application\n * */\n void getThrows(View v);\n\n /**\n * Set rounds end\n *\n * @param player the current player\n * @param activity the game activity\n * */\n void roundsEnd(Player player,Activity activity);\n\n /**\n * Update view\n *\n * @param v view of the application\n * */\n void updateView(View v);\n\n /**\n * Update highscore\n *\n * @param v view of the application\n * */\n void updateHighScore(View v);\n\n}", "public interface IController {\n public void onActivityPause();\n\n public void onActivityResume(Activity activity);\n}", "@Override\r\n public void onAttach(Activity activity) {\n super.onAttach(activity);\r\n\r\n }", "public interface MainActivityUI\n{\n\t//Respond to MainActivityLogicInterface.init().\n\tvoid initCompleted();\n\t//Will be called, if bluetooth or beacons are not supported. \\p errorcode contains a human-readable description of the problem.\n\tvoid notSupported(String errorcode);\n\t//Will be called, if bluetooth is deactivated, but should be activated to detect beacons.\n\tvoid bluetoothDeactivated();\n\t//Will be called, if permissions for COARSE_LOCATION is not given, but should be to detect beacons.\n\tvoid askForPermissions();\n\n\t//Will be called, when no beacon and no local map was found.\n\tvoid switchToMapSelectActivity();\n\n\t//Respond to MainActivityLogicInterface.getMap(). \\p map is the data contained in the active map.\n\tvoid updateMap(MapData map);\n\n\t//Will be called, if a new 'nearest' beacon was found. \\p beaconID is the id of the new beacon in MapData.\n\tvoid updateBeaconPosition(int beaconID);\n\n\t//Respond to NavigationDrawerLogic.findSpecialBeacon() or NavigationDrawerLogik.findAllSpecialBeacons() to mark the results. \\p beaconIDs is a list of the beacons which should be marked.\n\tvoid markBeacons(List<Integer> beaconIDs);\n}", "public interface ActivityView extends AceView {\n void finish();\n}", "@Override\n protected void onNewIntent(Intent intent) {\n }", "public interface IStartView {\n\n void showStartInfo(String url);\n void goMainActivity();\n}", "public interface IshowPersonalCommentActivityView extends IBaseActivityView{\n void showPersonalCommentSuccess(List<CommentEntity> commentList, boolean isHaveMore);\n void showPersonalCommentFail();\n}", "private void openActivity() {\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}", "public interface MeiziView extends IView {\n void finish();\n boolean isFavorite();\n void favoriteOrNot();\n Activity getActivity();\n void onPageSelected(int position);\n void onPageScrollStateChanged(int state);\n}", "public interface VatomMetaPresenter {\n\n /**\n * Load vatom details on activity create and update VatomMetaScreen\n * @param intent\n */\n void onCreate(Intent intent);\n\n void onDestroy();\n\n void onOptionsItemSelected(MenuItem menuItem);\n\n}", "public interface MainActivityView {\n\n void showLoading();\n void hideLoading();\n void toMainActivity(String data);\n}", "protected interface Activity {\r\n boolean isActive(File dir);\r\n }", "public interface IMainView extends MvpView {\n void setMyLocation();\n void setRefresh();\n void scanLock();\n void getNearSeller();\n void feedback();\n void sellerDetail(Long uid);\n void buyBoxFun();\n}", "public interface IActivityDelegate {\n\n void onCreateBefore(Bundle savedInstanceState);\n\n void onCreate(Bundle savedInstanceState);\n\n void onSaveInstanceState(Bundle outState);\n\n void onResume();\n\n void onPause();\n\n void onDestroy();\n\n void onBackPressed();\n\n void finish();\n\n void overridePendingTransition(int enterAnim, int exitAnim);\n\n void onActivityResult(int requestCode, int resultCode, Intent data);\n}", "@Override\n public void onNewIntent(Activity activity, Intent data) {\n }", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n }", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n }", "@Override\n\tprotected void getIntentData(Bundle savedInstanceState) {\n\n\t}", "public interface Presenter {\n void onCreate();\n\n void onStart();\n\n void onStop();\n\n void pause();\n\n void attachView(View view);\n\n\n void attatchIncomingIntent(Intent intent);\n}", "public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}", "public interface ActivityAware<E> {\r\n E getContextActivity();\r\n}", "public interface IInviteDetailActivityView {\n /**\n * 会员加入邀约活动后的信号设置\n */\n public void setAddToInviteSign(String flag);\n}", "public interface PluginInterface {\n\n public void attach(Activity proxyActivity);\n\n public void onCreate(Bundle saveInstanceState);\n\n public void onStart();\n\n public void onResume();\n\n public void onPause();\n\n public void onStop();\n\n public void onDestroy();\n\n public void onSaveInstanceState(Bundle outSate);\n\n public boolean onTouchEvent(MotionEvent event);\n\n public void onBackPressed();\n\n\n}", "protected abstract Intent getIntent();", "public interface ProductDetailsActivityMode {\n void getGoodsShow(String user_id, String article_id, UserLoseMultiLoadedListener listenter);\n\n void getAddGoodscart(String user_id, String goods_id, int sum, UserLoseMultiLoadedListener listenter);\n}", "public interface C0869a {\n Intent getSupportParentActivityIntent();\n }", "@Override\n public void onContext() {\n }", "public interface IOrderMagnageActivityView {\n\n /**\n * 初始化商品管理分类\n */\n void initOrderManage(List<Fragment> fragmentList);\n}", "public interface VuActivityMain extends Vu.ActivityVu {\n void showBtn(String st);\n\n void showBtn2(String st);\n}", "public interface ActivityDetails {\n\n /**\n * Get the profile associated with the user.\n *\n * @return profile containing attributes for the user\n */\n HumanProfile getUserProfile();\n\n /**\n * Get the profile associated with the application.\n *\n * @return profile containing attributes for the application\n */\n ApplicationProfile getApplicationProfile();\n\n /**\n * Deprecated. Please use getRememberMeId() instead.\n *\n * @return user ID.\n */\n @Deprecated\n String getUserId();\n\n /**\n * Return the remember-me ID, which is a unique, stable identifier for a user in the context of an application/user\n * interaction. You can be use it to identify returning users. Note that it is different for the same user in\n * different applications.\n *\n * @return user ID.\n */\n String getRememberMeId();\n\n\n /**\n * Time and date of the activity.\n *\n * @return time and date of the activity\n */\n Date getTimestamp();\n\n /**\n * Receipt id identifying a completed activity.\n *\n * @return receipt id\n */\n String getReceiptId();\n \n /**\n * @deprecated From v2.1 onwards you should use getUserProfile().getSelfie()\n * JPEG selfie in Base64 string.\n *\n * @return JPEG selfie image in Base64 string format\n */\n @Deprecated\n String getBase64Selfie();\n\n}", "public interface MainActivityContract {\n interface View extends BaseView{\n\n\n void getLocationNow(android.view.View view);\n void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults);\n void locationObtained(boolean isObtained);\n void locationEnabled(boolean isEnabled);\n void showerror(String s);\n\n\n }\n interface Presenter extends BasePresenter<View>{\n\n void attachView(MainActivityContract.View view);\n void checkLocationActive(Activity activity);\n void init(Activity activity);\n void getContext(Context context);\n void getLocation(String lattitude, String longitude);\n void getLocationByAddress(String a, String b, String c, String d, String e);\n void getLocationByGeo(String a, String b, String c, String d, String e);\n void DettachedView();\n }\n\n}", "public interface IModuleContextTabletActivity extends IModuleContext {\n}", "void onActivityReady();", "public interface ProcessDocUploadDialogNavigator extends BaseView {\n public void dismissSuccessResult();\n public Context getAttachedcontext();\n public void galleryIntent();\n public void cameraIntent();\n public void openDatePicker();\n}", "public interface AddTagActivityView {\n\n void viewUploadProgress(boolean state);\n\n void viewMessage(String msg);\n\n void updateTagsList(List<Tag> tagList);\n\n}", "@Override\n public void onNewIntent(Intent intent) {\n }", "public interface ViewSearchActivity {\n void clearQuery();\n void enableDeleteButton(boolean enable);\n\n void updateAdapter(List<SongMatch> results);\n\n void showEmptyView();\n void hideEmptyView();\n\n void showLimitBanner();\n\n void hideLimitBanner();\n}", "public interface RegisterActivityPresenter {\n /**\n * Request send sms code.\n *\n * @param context the context\n * @param phone the phone\n */\n void requestSendSMSCode(Context context,String phone);\n\n /**\n * Check sms code.\n *\n * @param context the context\n * @param phone the phone\n * @param check the check\n */\n void checkSMSCode(Context context,String phone,String check);\n\n /**\n * Register.\n *\n * @param context the context\n * @param phone the phone\n * @param username the username\n * @param pass the pass\n */\n void register(Context context,String phone,String username,String pass);\n\n /**\n * Register.\n *\n * @param context the context\n * @param phone the phone\n * @param username the username\n * @param pass the pass\n * @param age the age\n * @param sex the sex\n * @param xiaoqu the xiaoqu\n */\n void register(Context context,String phone,String username,String pass,Integer age,String sex,String xiaoqu,String alipay);\n}", "@Override\n\tprotected void onAttachedToActivity() {\n\t\tsuper.onAttachedToActivity();\n\t}", "public interface IBaseActivityListEvent {\n\n /**\n * Creates a new fragment with the listentries of the given ShoppingList item.\n *\n * @param _ShoppingList of the list that the content should be shown.\n */\n void selectList(ShoppingList _ShoppingList);\n}", "public interface MainRegisterInterface {\n\n void openExternalActivity(int action, Class<?> externalActivity);\n\n void showQuestion(String titulo, String mensage);\n\n void setDecodeItem(DecodeItemHelper decodeItem);\n\n void registrarPromotor(PromotoresHelper promotoresHelper);\n\n void editarPromotor(PromotoresHelper promotoresHelper);\n\n void registrarCliente(ClientesHelper clientesHelper);\n\n void editarCliente(ClientesHelper clientesHelper);\n\n void registrarGrupo(GruposHelper gruposHelper);\n\n void editarGrupo(GruposHelper gruposHelper);\n\n void registrarPrestamoGrupal(PrestamosGrupalesHelper prestamosGrupalesHelper);\n\n void autorizarPrestamoGrupal(PrestamosGrupalesHelper prestamosGrupalesHelper);\n\n void entregarPrestamoGrupal(PrestamosGrupalesHelper prestamosGrupalesHelper);\n\n void registrarPagoGrupal(PagosHelper helper);\n\n void registrarPagoIndividual(PagosHelper helper);\n\n void registrarPrestamoIndividual(PrestamosIndividualesHelper helper);\n\n void autorizarPrestamoIndividual(PrestamosIndividualesHelper helper);\n\n void entregarPrestamoIndividual(PrestamosIndividualesHelper helper);\n\n void registrarActividad(ActividadesHelper helper);\n\n void editarActividad(ActividadesHelper helper);\n\n void registrarComision(ComisionesHelper helper);\n\n void pagarComision(ComisionesHelper helper);\n\n void showProgressDialog();\n\n void stopProgressDialog();\n}", "public abstract void onOpen();", "public interface TrackingView extends BaseView{\n\n\n}", "public interface DentistViewProfileView {\n\n /**\n * This method is called when the dentist presses the button 'UPDATE' , so it redirects him to the activity of update!\n */\n void updateAccount();\n}", "public interface IMainView extends BaseView {\n\n void inflateBottomViewParent();\n\n void moveToHomeWorkActivity();\n\n void moveToAttendanceActivity();\n\n void moveToMoreFragment();\n\n void logout();\n\n\n}", "@Override\r\n\tpublic void onOpen() {\n\r\n\t}", "public interface MyClassInterface {\n public void doSomething() ;\n public void adButton(LinearLayout linear, Activity activity) ;\n}", "public interface BroadCastManagerCallerInterface {\n /**\n * **\n * This method is called when an intent Has Been ReceivedT hrough The BroadCast\n * @param intent This is the intent that was received\n */\n void intentHasBeenReceivedThroughTheBroadCast(Intent intent);\n}", "public interface Iplatform {\r\n\r\n\t/**\r\n\t * @param mActivity \r\n\t * @param gameInitListener\r\n\t */\r\n\tpublic void init(Activity mActivity, InitService.GameInitListener gameInitListener);\r\n\r\n\t/**\r\n\t * @param activity\r\n\t * @param gameLoginListener\r\n\t */\r\n\tpublic void login(Activity activity,String uid,\r\n\t\t\tLoginService.GameLoginListener gameLoginListener);\r\n\t\r\n\t\r\n\r\n\r\n\t/**\r\n\t * @param activity\r\n\t * @param gameLogoutListener\r\n\t */\r\n\tpublic void logOut(Activity activity,\r\n\t\t\tLogOutService.GameLogoutListener gameLogoutListener);\r\n\t\r\n\r\n\t/**\r\n\t * @param activity\r\n\t * @param money\r\n\t * @param order\r\n\t * @param listener\r\n\t */\r\n\tpublic void pay(Activity activity, int money,String propName, String order,\r\n\t\t\t String extInfo, ICallback listener);\r\n\r\n\r\n\tpublic void setLocation(LocationInfo info) ;\r\n\r\n\tpublic void onPause();\r\n\r\n\tpublic void onDestory();\r\n\r\n\tpublic void onResume() ;\r\n\t\r\n\r\n\r\n}", "public interface ICartActivityView extends IBaseView {\n\n\n void callfetchCartApi();\n\n void setFetchRes(FetchCartResponse fetchRes);\n\n void setModifyCart(FetchCartResponse fetchRes);\n\n void setRemoveFromCart(FetchCartResponse fetchRes);\n\n void setExploreViewResp(ResponseModel responseModel);\n\n void showViewState(int state);\n}", "@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t}", "public interface LocationHandler {\n public void onAddLocationButtonClicked(Activity activity);\n\n public void onLocationMessageViewClicked(Activity activity, AVIMLocationMessage locationMessage);\n}", "public interface IGaActivity {\n\n /**\n * Get the screen name of the activity\n * @return the name of the screen to be reported to GA for a screen view event\n * @throws UnsetScreenException if screen view is not set by overriding this method\n */\n String getScreenName() throws UnsetScreenException;\n\n /**\n * Get the TrackerManager. This should only be used if you need to send\n * explicitly defined custom GA events within your activity/fragment\n * @return TrackerManager - GA Manager object\n */\n TrackerManager getGaTracker();\n\n /**\n * Set a custom dimension for user events\n * @param customDimension1 first custom dimension\n */\n void setCustomDimension1(String customDimension1);\n\n /**\n * Set a custom dimension for user events\n * @param customDimension2 second custom dimension\n */\n void setCustomDimension2(String customDimension2);\n}", "abstract void onOpen();", "public interface IEditTripActivityPresenter {\n public void setData(Intent intent);\n public void editTrip();\n public void startSerivice();\n public void stopService();\n}", "public interface InstrumentationInternal {\n\n\tInstrumentation.ActivityResult execStartActivity(Context who, IBinder contextThread, IBinder token,\n\t\t\tActivity target, Intent intent, int requestCode, android.os.Bundle options);\n\n\tInstrumentation.ActivityResult execStartActivity(Context who, IBinder contextThread, IBinder token,\n\t\t\tActivity target, Intent intent, int requestCode);\n}", "interface Presenter {\n\n /*get data through intent*/\n void getBundleData(Intent intent);\n\n void callHistoryDetail(Bundle extra);\n int getStoreType();\n }", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}", "public interface IPresenter {\n\n void onCreate();\n void onResume();\n void onPause();\n void onDestroy();\n}", "public interface IMoiveListView extends IWanBaseView{\n\n void onLoading();\n\n void onLoadSucess(MoiveListResponse moiveListResponse);\n\n void onLoadFail(String msg);\n}", "public interface Interfaz_Icon {\n //interfaz de comunicacion entre fragment y activity\n public void select_details(int icon, String text);\n}", "public interface CreateMyGoodsView extends MvpView,BaseHintView,BaseActivityHelpView{\n}", "public interface PaymentActControl {\n void paymentCallback(int code, String message);\n Activity getActivity();\n}", "public interface IMainScreenPresenter {\n\n\n /**\n * Intercepts the onCreate callback in the Fragment/Activity lifecycle.\n */\n public void onCreate();\n\n /**\n * Intercepts the onResume callback in the Fragment/Activity lifecycle.\n */\n public void onResume();\n\n /**\n * Intercepts the onPause callback in the Fragment/Activity lifecycle.\n */\n public void onPause();\n\n /**\n * Intercepts the onStop callback in the Fragment/Activity lifecycle.\n */\n public void onStop();\n\n /**\n * Called when the button A is pressed.\n */\n public void onButtonAPressed();\n\n /**\n * Called when the button B is pressed.\n */\n public void onButtonBPressed();\n\n}" ]
[ "0.72249806", "0.70069194", "0.6908455", "0.6906848", "0.6888842", "0.6817722", "0.6799492", "0.67968667", "0.67847073", "0.6773934", "0.67487824", "0.67369866", "0.6722485", "0.668568", "0.6684721", "0.6672617", "0.66465354", "0.66324484", "0.6621005", "0.66163176", "0.6587721", "0.6582114", "0.658083", "0.65743345", "0.65649545", "0.65559614", "0.65470433", "0.6544646", "0.6525619", "0.65143996", "0.6513413", "0.6504505", "0.6500197", "0.6496305", "0.6488413", "0.6486698", "0.64829946", "0.6482948", "0.6473622", "0.6447136", "0.64448965", "0.6409498", "0.6401419", "0.63989365", "0.6392321", "0.63914526", "0.6387375", "0.6385384", "0.63740516", "0.6355004", "0.63546944", "0.63546944", "0.6338953", "0.6334713", "0.63237345", "0.6310784", "0.6308465", "0.630429", "0.6302172", "0.6301692", "0.62872237", "0.62863517", "0.6259561", "0.6253588", "0.62411636", "0.62277573", "0.62199193", "0.6212141", "0.6208758", "0.62012017", "0.6199829", "0.6198532", "0.6197719", "0.6192399", "0.6192181", "0.6185325", "0.6184219", "0.61791867", "0.617622", "0.6175068", "0.6168317", "0.61653", "0.61644936", "0.616046", "0.6158179", "0.61542827", "0.61455864", "0.6138409", "0.6133306", "0.6131599", "0.6131538", "0.6128999", "0.6125795", "0.6125795", "0.6125795", "0.612191", "0.61191666", "0.6112364", "0.61105186", "0.6103528", "0.60914373" ]
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.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, 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 getMenuInflater().inflate(R.menu.menu, 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_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}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\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\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_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.layout.menu, menu);\n\t\treturn true;\n\t}", "@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.724863", "0.7203384", "0.7197011", "0.71784776", "0.71090055", "0.7040796", "0.7039464", "0.7013998", "0.70109546", "0.6982435", "0.6946134", "0.6939684", "0.6935636", "0.69193685", "0.69193685", "0.6892893", "0.6884914", "0.68768066", "0.68763", "0.68635243", "0.68635243", "0.68635243", "0.68635243", "0.6854071", "0.68483156", "0.6820635", "0.6818679", "0.68139905", "0.68138844", "0.68138844", "0.68068254", "0.68019366", "0.67988884", "0.6792257", "0.6791312", "0.67894673", "0.6785093", "0.67605865", "0.67587006", "0.67494637", "0.6745356", "0.6745356", "0.67428446", "0.6741961", "0.6726888", "0.67248803", "0.67236483", "0.67236483", "0.6722583", "0.6712873", "0.6707795", "0.67058164", "0.67011815", "0.669981", "0.66978544", "0.6695866", "0.66877913", "0.66849333", "0.66849333", "0.6684108", "0.66811496", "0.6680523", "0.6678561", "0.6669383", "0.66685265", "0.6664329", "0.6658405", "0.6658405", "0.6658405", "0.66576266", "0.6655998", "0.6655998", "0.6655998", "0.6653282", "0.66530126", "0.6651592", "0.6650151", "0.6648575", "0.6647844", "0.6647643", "0.6647611", "0.66465765", "0.6646401", "0.6644694", "0.6643749", "0.6643608", "0.6640089", "0.66356236", "0.6634635", "0.6633641", "0.6633641", "0.6633641", "0.66333216", "0.6630465", "0.66291285", "0.662822", "0.66277045", "0.6625648", "0.6621995", "0.6620415", "0.6620415" ]
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (NetworkUtil.isNetworkConnected(Meeting.this)) { if (id == R.id.action_home) { //메인 화면 Intent intent = new Intent(Meeting.this, MainActivity.class); startActivity(intent); overridePendingTransition(R.anim.anim_slide_in_left, R.anim.anim_slide_out_right); finish(); } else if (id == R.id.action_notice) { //공지사항 Intent intent = new Intent(Meeting.this, Notice.class); intent.putExtra("idx", psMidx); //조회 키 값을 넘겨준다 intent.putExtra("id", psMid); intent.putExtra("name", psMname); intent.putExtra("path", psMpath); intent.putExtra("dept", psMdept); startActivityForResult(intent, 1); // Sub_Activity 호출 overridePendingTransition(R.anim.anim_slide_in_left, R.anim.anim_slide_out_right); finish(); } else if (id == R.id.action_member) { //직원 조회 Intent intent = new Intent(Meeting.this, Staff.class); intent.putExtra("idx", psMidx); intent.putExtra("id", psMid); intent.putExtra("name", psMname); intent.putExtra("path", psMpath); intent.putExtra("dept", psMdept); intent.putExtra("sTelephone", sTelephone); startActivityForResult(intent, 1); overridePendingTransition(R.anim.anim_slide_in_left, R.anim.anim_slide_out_right); finish(); } else if (id == R.id.action_meeting) { //회의실 예약 Intent intent = new Intent(Meeting.this, Meeting.class); intent.putExtra("idx", psMidx); intent.putExtra("id", psMid); intent.putExtra("name", psMname); intent.putExtra("path", psMpath); intent.putExtra("dept", psMdept); intent.putExtra("sTelephone", sTelephone); startActivityForResult(intent, 1); // Sub_Activity 호출 overridePendingTransition(R.anim.anim_slide_in_left, R.anim.anim_slide_out_right); finish(); } else if (id == R.id.action_leave) { //휴가 조회 Intent intent = new Intent(Meeting.this, Leave.class); intent.putExtra("idx", psMidx); intent.putExtra("id", psMid); intent.putExtra("name", psMname); intent.putExtra("path", psMpath); intent.putExtra("dept", psMdept); intent.putExtra("sTelephone", sTelephone); startActivityForResult(intent, 1); overridePendingTransition(R.anim.anim_slide_in_left, R.anim.anim_slide_out_right); finish(); } else if (id == R.id.action_map) { //회사 위치 Intent intent = new Intent(Meeting.this, Map.class); intent.putExtra("idx", psMidx); intent.putExtra("id", psMid); intent.putExtra("name", psMname); intent.putExtra("path", psMpath); intent.putExtra("dept", psMdept); intent.putExtra("sTelephone", sTelephone); startActivityForResult(intent, 1); overridePendingTransition(R.anim.anim_slide_in_left, R.anim.anim_slide_out_right); finish(); } else { Log.e("Error", "예외 발생"); } }else{ Toast.makeText(Meeting.this, R.string.network_error_chk,Toast.LENGTH_SHORT).show(); } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClick(View view) {\n listener.menuButtonClicked(view.getId());\n }", "@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\n\t\tLog.d(\"SomeTag\", \"Get click event at position: \" + itemPosition);\r\n\t\tswitch (itemPosition) {\r\n\t\tcase 1:\r\n\t\t\tIntent i = new Intent();\r\n\t\t\ti.setClass(getApplicationContext(), MainActivity.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\tcase 2 :\r\n\t\t\tIntent intent = new Intent(this,WhiteListActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String name = navDrawerItems.get(position).getListItemName();\n // call a helper method to perform a corresponding action\n performActionOnNavDrawerItem(name);\n }", "@Override\n\tpublic void rightNavClick() {\n\t\t\n\t}", "@Override\n public void OnItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (itemClicked != null)\n\t\t\t\t\titemClicked.OnItemClicked((BusinessType)item.getTag(), item);\n\t\t\t}", "@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\thandleClick(position);\n\t\t\t}", "@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }", "@Override\n public void onItemClick(int pos) {\n }", "@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }", "private void handleNavClick(View view) {\n final String label = ((TextView) view).getText().toString();\n if (\"Logout\".equals(label)) {\n logout();\n }\n if (\"Profile\".equals(label)) {\n final Intent intent = new Intent(this, ViewProfileActivity.class);\n startActivity(intent);\n }\n if (\"Search\".equals(label)){\n final Intent intent = new Intent(this, SearchActivity.class);\n startActivity(intent);\n }\n if (\"Home\".equals(label)) {\n final Intent intent = new Intent(this, HomeActivity.class);\n startActivity(intent);\n }\n }", "void onMenuItemClicked();", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.tvSomeText:\n listener.sendDataToActivity(\"MainActivity: TextView clicked\");\n break;\n\n case -1:\n listener.sendDataToActivity(\"MainActivity: ItemView clicked\");\n break;\n }\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}", "@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "@Override\n public void onItemClick(View view, String data) {\n }", "abstract public void onSingleItemClick(View view);", "@Override\n public void onClick(View v) {\n this.itemClickListener.onItemClick(v, getLayoutPosition());\n }", "@Override\n public void itemClick(int pos) {\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n TextView textView = (TextView)view;\n switch(textView.getText().toString()){\n case \"NavBar\":\n Intent nav = new Intent(this, NavDrawerActivity.class);\n startActivity(nav);\n break;\n }\n\n //Toast.makeText(MainActivity.this,\"Go to \" + textView.getText().toString() + \" page.\",Toast.LENGTH_LONG).show();\n }", "@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemClick(Nson parent, View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n\n // Check if listener!=null bcz it is not guarantee that we'll call setOnItemClickListener\n // RecyclerView.NO_POSITION - Constant for -1, so that we don't click item at Invalid position (safety measure)\n if (listener != null && position != RecyclerView.NO_POSITION) {\n //listener.onItemClick(notes.get(position)); - used in RecyclerView.Adapter\n listener.onItemClick(getItem(position)); // getting data from superclass\n }\n }", "@Override\n public void onClick(View v) {\n itemClickListener.itemClicked(movieId, v);\n }", "@Override\n\t\tpublic void onClick(View view) {\n\t\t\tif (iOnItemClickListener != null) {\n\t\t\t\tiOnItemClickListener.onItemClick(view, null, getAdapterPosition());\n\t\t\t}\n\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "public void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n public void onItemOfListClicked(Object o) {\n UserProfileFragmentDirections.ActionUserProfileFragmentToEventProfileFragment action = UserProfileFragmentDirections.actionUserProfileFragmentToEventProfileFragment((MyEvent) o);\n navController.navigate(action);\n }", "@Override\n public void onClick(View view) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_DEFAULT,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_ds_note) {\n // Handle the camera action\n } else if (id == R.id.nav_ds_todo) {\n\n } else if (id == R.id.nav_ql_the) {\n\n } else if (id == R.id.nav_tuychinh) {\n Intent intent = new Intent(this, CustomActivity.class);\n startActivity(intent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "@Override\n\tpublic void onItemClick(Object o, int position) {\n\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "void onLinkClicked(@Nullable ContentId itemId);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:\n Intent homeIntent = new Intent(this, MainActivity.class);\n startActivity(homeIntent);\n break;\n case R.id.send_email:\n Intent mailIntent = new Intent(this, ContactActivity.class);\n startActivity(mailIntent);\n break;\n case R.id.send_failure_ticket:\n Intent ticketIntent = new Intent(this, TicketActivity.class);\n startActivity(ticketIntent);\n break;\n case R.id.position:\n Intent positionIntent = new Intent(this, LocationActivity.class);\n startActivity(positionIntent);\n break;\n case R.id.author:\n UrlRedirect urlRed = new UrlRedirect(this.getApplicationContext(),getString(R.string.linkedinDeveloper));\n urlRed.redirect();\n break;\n default:\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout_main_activity);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"ConstantConditions\")\n public void onItemClicked(@NonNull Item item) {\n getView().openDetail(item);\n }", "void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n startNavigation();\n }", "void onItemClick(int position);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_logs) {\n startActivity(new Intent(this, LogView.class));\n } else if (id == R.id.nav_signOut) {\n signOut();\n }\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tpresenter.onItemClicked(position);\n\t}", "@Override\n public void onClick(View view) {\n listener.onMenuButtonSelected(view.getId());\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tHashMap<String, Object> item = (HashMap<String, Object>) arg0\n\t\t\t\t\t\t.getAdapter().getItem(arg2);\n\n\t\t\t\tIntent intent = new Intent(ViewActivity.this,\n\t\t\t\t\t\tContentActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"_id\", item.get(\"_id\").toString());\n\t\t\t\tbundle.putString(\"_CityEventID\", item.get(\"_CityEventID\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tbundle.putString(\"_type\", String.valueOf(_type));\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onClick(View view) {\n Navigation.findNavController(view).navigate(R.id.addEventFragment);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }", "void clickItem(int uid);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_categories) {\n Intent intent = new Intent(getApplicationContext(), CategoryActivity.class);\n startActivity(intent, compat.toBundle());\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"category\");\n\n } else if (id == R.id.nav_top_headlines) {\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"home\");\n Intent intent = new Intent(getApplicationContext(), HomeActivity.class);\n startActivity(intent, compat.toBundle());\n } else if (id == R.id.nav_search) {\n // Do nothing\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(View view, int position) {\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_orders) {\n\n Intent orderStatusIntent = new Intent(Home.this , OrderStatus.class);\n startActivity(orderStatusIntent);\n\n } else if (id == R.id.nav_banner) {\n\n Intent bannerIntent = new Intent(Home.this , BannerActivity.class);\n startActivity(bannerIntent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "public void onItemClick(View view, int position) {\n\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}", "void onClick(View item, View widget, int position, int which);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n Intent intent;\n switch(item.getItemId()){\n case R.id.nav_home:\n finish();\n intent = new Intent(this, NavigationActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_calendar:\n finish();\n intent = new Intent(this, EventHome.class);\n startActivity(intent);\n return true;\n case R.id.nav_discussion:\n return true;\n case R.id.nav_settings:\n intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_app_blocker:\n intent = new Intent(this, AppBlockingActivity.class);\n startActivity(intent);\n return true;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case R.id.nav_home:\n break;\n\n case R.id.nav_favourites:\n\n if (User.getInstance().getUser() == null) {\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n }\n\n Intent intent = new Intent(getApplicationContext(), PlaceItemListActivity.class);\n startActivity(intent);\n\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonRgtRgtMenuClick(v);\n\t\t\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n // Handle the camera action\n } else if (id == R.id.nav_gallery) {\n Toast.makeText(this, \"gallery is clicked!\", Toast.LENGTH_LONG).show();\n\n } else if (id == R.id.nav_slideshow) {\n\n } else if (id == R.id.nav_manage) {\n\n } else if (id == R.id.nav_share) {\n\n } else if (id == R.id.nav_send) {\n\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "public void menuClicked(MenuItem menuItemSelected);", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_my_account) {\n startActivity(new Intent(this, MyAccountActivity.class));\n } else if (id == R.id.nav_message_inbox) {\n startActivity(new Intent(this, MessageInboxActivity.class));\n } else if (id == R.id.nav_view_offers) {\n //Do Nothing\n } else if (id == R.id.nav_create_listing) {\n startActivity(new Intent(this, CreateListingActivity.class));\n } else if (id == R.id.nav_view_listings) {\n startActivity(new Intent(this, ViewListingsActivity.class));\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}" ]
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224", "0.66243863", "0.6624042", "0.66207093", "0.6602551", "0.6602231", "0.6599443", "0.65987265", "0.65935796", "0.6585869", "0.658491", "0.65811735", "0.65765643", "0.65751576", "0.65694076", "0.6561757", "0.65582377", "0.65581614", "0.6552827", "0.6552827", "0.6549224", "0.65389794", "0.65345114", "0.65337104", "0.652419", "0.652419", "0.6522521", "0.652146", "0.6521068", "0.6519354", "0.65165275", "0.65159816", "0.65028816", "0.6498054", "0.6498054", "0.64969087", "0.64937705", "0.6488544", "0.64867324", "0.64866185", "0.64865905", "0.6484047", "0.6481108", "0.6474686", "0.64628965", "0.64551884", "0.6446893", "0.64436555", "0.64436555", "0.64436555", "0.64436555", "0.64436555", "0.64386237", "0.643595", "0.64356565", "0.64329195", "0.6432562", "0.6429554", "0.64255124", "0.64255124", "0.64121485", "0.64102405", "0.64095175", "0.64095175", "0.64094734", "0.640727", "0.64060104", "0.640229", "0.6397359", "0.6392996", "0.63921124", "0.63899696", "0.63885015", "0.63885015", "0.63873845", "0.6368818", "0.6368818", "0.63643163", "0.63643163", "0.63643163", "0.6358884" ]
0.0
-1
Event is called whenever an alert is called by the application.
@Subscribe public void onAlert(AlertEvent event) { // Update the alert element pnlAlert.setVisible(true); lblAlertMessage.setText(event.getMessage()); // Create and play the transitions EffectsUtils.fadeIn(Duration.seconds(1), pnlAlert).play(); EffectsUtils.fadeOut(Duration.seconds(1), pnlAlert, Duration.seconds(5)).play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onApplicationEvent(ApplicationEvent e);", "public static void alert(Alert alert) {\n alerter.alert(alert);\n }", "public void alert(String message);", "public void invokeEvents() {\n\t\tIntent i = alertMe.createIntentFromSession();\n\t\ti.setClass(this, AlertMeEventHistory.class);\n\t\ti.putExtra(AlertMeConstants.INTENT_REQUEST_KEY, AlertMeConstants.INVOKE_HISTORY);\n startActivityForResult(i, AlertMeConstants.INVOKE_HISTORY);\n }", "public void alert(String msg) {\n new Alert(msg, \"alertDone\");\n }", "@Subscribe\n public void onAlertAddedEvent(final AlertAddedEvent event) {\n\n Preconditions.checkNotNull(event, \"'event' must be present\");\n\n final AlertModel alertModel = event.getAlertModel();\n\n Preconditions.checkNotNull(alertModel, \"'alertModel' must be present\");\n\n log.debug(\"Received 'alert added event': {}\", event.getAlertModel());\n\n // Update the text according to the model\n alertMessageLabel.setText(alertModel.getLocalisedMessage());\n alertRemainingLabel.setText(alertModel.getRemainingText());\n\n if (alertModel.getButton().isPresent()) {\n\n JButton button = alertModel.getButton().get();\n alertButton.setAction(button.getAction());\n alertButton.setText(button.getText());\n alertButton.setIcon(button.getIcon());\n alertButton.setName(button.getName());\n alertButton.setToolTipText(button.getToolTipText());\n\n alertButton.setVisible(true);\n } else {\n alertButton.setVisible(false);\n }\n\n // Don't play sounds here since this will be called each time an alert is dismissed\n switch (alertModel.getSeverity()) {\n case RED:\n PanelDecorator.applyDangerTheme(alertPanel);\n NimbusDecorator.applyThemeColor(Themes.currentTheme.dangerAlertBackground(), alertButton);\n NimbusDecorator.applyThemeColor(Themes.currentTheme.dangerAlertBackground(), closeButton);\n break;\n case AMBER:\n PanelDecorator.applyWarningTheme(alertPanel);\n NimbusDecorator.applyThemeColor(Themes.currentTheme.warningAlertBackground(), alertButton);\n NimbusDecorator.applyThemeColor(Themes.currentTheme.warningAlertBackground(), closeButton);\n break;\n case GREEN:\n PanelDecorator.applySuccessTheme(alertPanel);\n NimbusDecorator.applyThemeColor(Themes.currentTheme.successAlertBackground(), alertButton);\n NimbusDecorator.applyThemeColor(Themes.currentTheme.successAlertBackground(), closeButton);\n break;\n case PINK:\n PanelDecorator.applyPendingTheme(alertPanel);\n NimbusDecorator.applyThemeColor(Themes.currentTheme.pendingAlertBackground(), alertButton);\n NimbusDecorator.applyThemeColor(Themes.currentTheme.pendingAlertBackground(), closeButton);\n break;\n default:\n throw new IllegalStateException(\"Unknown severity: \" + alertModel.getSeverity().name());\n }\n\n alertPanel.setVisible(true);\n }", "@Override\n\tpublic void alert() {\n\t\ttry {\n\t\t\tSystem.out.println(\"ala\");\n\t\t\tfM.sendMail(text, topic, toWho);\n\t\t} finally {\n\t\t\tif (al != null)\n\t\t\t\tal.alert();\n\t\t}\n\t}", "public void alert(){\n\t\tfor (ChangeListener l : listeners) {\n\t\t\tl.stateChanged(new ChangeEvent(this));\n\t\t}\n\t}", "void showAlert(String message);", "public void alert(View view){\n\n show(AppDialog.TAG_ALERT);\n }", "protected void handleAlert(Alert alert) {\n if (LOGGEER.isDebugEnabled()) {\n LOGGEER.debug(\"Accepting alert box with message: {}\", alert.getText());\n }\n alert.accept();\n }", "public interface AlertResetListener {\r\n\t\tpublic void alertReset();\r\n\t}", "@Override\n public void Alert(String toWho, String topic, String text) {\n sA.alert(); \n }", "public void alert(String msg)\n {\n this.ui.alert(msg);\n theLogger.info(\"Alert sent to UI\");\n }", "public void handleAlert(EventObject alert)\n {\n boolean enable = (frame.getBackgroundImage() == null)\n ? MenuUtil.DISABLED\n : MenuUtil.ENABLED;\n\n // Enable or disabled the remove background menu item\n setEnabled(CogToolLID.RemoveBackgroundImage,\n ListenerIdentifierMap.ALL,\n enable);\n\n // Enable or disabled the capture background button\n view.setIsBackgroundAvailable(enable);\n }", "private void alert(String string) {\n\r\n\t}", "@Override\r\npublic void afterAlertAccept(WebDriver arg0) {\n\t\r\n\tSystem.out.println(\"as\");\r\n}", "public void onAcceptAlertNotification(AlertNotification alertNotification) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tlog.info(\"Get AlertNotification \"+\" from \"+ alertNotification.getSourceAddr() + \" to \" + alertNotification.getEsmeAddr());\n\n\t}", "private synchronized void notifyAlert(Event ObjEvent,String StrMessage) {\n \t\n \t// Variabili locali\n \tList<WireRecord> ObjWireRecords;\n \tMap<String, TypedValue<?>> ObjWireValues;\n\t\t\n\t\t// Manda il messaggio in log con il giusto livello di severity\n\t\tswitch (ObjEvent) {\t\t\n\t\t case DATA_EVENT: return;\n\t\t case CONNECT_EVENT: logger.info(StrMessage); break;\n\t\t case DISCONNECT_EVENT: logger.warn(StrMessage); break;\n\t\t case WARNING_EVENT: logger.warn(StrMessage); break;\n\t\t case ERROR_EVENT: logger.error(StrMessage); break;\n\t\t}\n\n\t\t// Se la notifica dell'alert non Ŕ disabilitata emette wire record\n\t\tif (this.actualConfiguration.Alerting) {\n\t\t\t\n\t \t// Prepara le proprietÓ dell'evento\n\t \tObjWireValues = new HashMap<>();\t\t\t\n\t \tObjWireValues.put(\"id\", TypedValues.newStringValue(this.actualConfiguration.DeviceId));\n\t \tObjWireValues.put(\"host\", TypedValues.newStringValue(this.actualConfiguration.Host));\n\t \tObjWireValues.put(\"port\", TypedValues.newIntegerValue(this.actualConfiguration.Port));\n\t \tObjWireValues.put(\"eventId\", TypedValues.newIntegerValue(ObjEvent.id));\n\t \tObjWireValues.put(\"event\", TypedValues.newStringValue(ObjEvent.description));\n\t\t\t\n\t\t\t// Se si tratta di alert di warning o di errore\n\t\t\tif ((ObjEvent==Event.WARNING_EVENT)||(ObjEvent==Event.ERROR_EVENT)) {\n\t\t\t\tObjWireValues.put(\"message\", TypedValues.newStringValue(StrMessage));\n\t\t\t}\n\t\t\t\n\t\t\t// Se c'Ŕ un enrichment per gli alert lo aggiunge\n\t\t\tif (this.actualConfiguration.AlertEnrichment.size()>0) {\n\t\t\t\tObjWireValues.putAll(this.actualConfiguration.AlertEnrichment);\n\t\t\t}\n\t\t\t\n\t\t\tObjWireRecords = new ArrayList<>();\n\t ObjWireRecords.add(new WireRecord(ObjWireValues)); \n\t\t\t\n\t // Notifica evento\n\t\t\tthis.wireSupport.emit(ObjWireRecords);\n\t\t}\n }", "void onInstallerEvent(String eventName, Object... args);", "public void AcceptAlertIfPresent() {\n if (isAlertPresent()) {\n AcceptAlert();\n log.info(\"alert accepted\");\n } else\n log.info(\"NoAlertPresent\");\n \n }", "@Override\n\tpublic void ActOnNotification(String message) {\n\t \tSystem.out.println(\"Sending Event\");\n\t}", "public static void editAlert() {\n\n }", "public void checkForAlerts() {\n }", "protected void alert(String message) {\n\t\talertWindow.setContentText(message);\n\t\talertWindow.show();\n\t}", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "public interface AlertListener {\n public void onSubmit();\n public void onCancel();\n // public void onDataSubmit(OrderItem item);\n}", "@Override\r\npublic void afterAlertDismiss(WebDriver arg0) {\n\tSystem.out.println(\"as\");\r\n}", "@When(\"^User will click on show alert box$\")\r\n\tpublic void user_will_click_on_show_alert_box() throws Throwable {\n\t\tSystem.out.println(\"User will click on alert button\");\r\n\t}", "public void alertUser(int status){\r\n\r\n }", "public void onActive() {\n Methods.showMessage(\"Warning\", \"Welcome Back!\", \"Please Continue Filling Out Your Questionanire!\");\n }", "@Override\n public void onEnterAmbient(Bundle ambientDetails) {\n Toast.makeText(getApplicationContext(), \"Enter\", Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void ApplicationNotificationAction(int arg0, String arg1) {\n\t\t\n\t}", "@Override\r\npublic void beforeAlertDismiss(WebDriver arg0) {\n\tSystem.out.println(\"as\");\r\n}", "@Override\r\n public void windowActivated(WindowEvent arg0) {}", "void onHisNotify();", "public interface AlertAction {\n\n void alert(URI host, Boolean isDown, Map<String, Object> failedServices);\n}", "public void alert( String code, String message )\n {\n _getAlertLogger().info( code, message );\n }", "@Override\r\n public void windowActivated(WindowEvent e) {\r\n\r\n }", "@Override\n\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\n\t\t}", "public void consulterEvent() {\n\t\t\n\t}", "public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}", "public void windowActivated(WindowEvent event) {}", "@Then(\"^User should see a predefined alert box$\")\r\n\tpublic void user_should_see_a_predefined_alert_box() throws Throwable {\n\t\tSystem.out.println(\"Alert message pop-ups on the screen\");\r\n\t}", "@Override\r\npublic void beforeAlertAccept(WebDriver arg0) {\n\tSystem.out.println(\"as\");\r\n}", "@Override\n public void handle(ActionEvent event) {\n if (appUser != null) {\n \tAnalyticsOutput analyticsOutput = new AnalyticsOutput();\n \tanalyticsOutput.generateOutput(conn, appUser.getUserID());\n }else {\n \tSystem.out.println(\"You have to be signed in to get analytics\");\n }\n }", "@Override\r\n\tpublic void afterAlertAccept(WebDriver arg0) {\n\t\t\r\n\t}", "@Override\r\n public void windowActivated(WindowEvent e) {\n }", "@DISPID(43)\r\n\t// = 0x2b. The runtime will prefer the VTID if present\r\n\t@VTID(41)\r\n\tboolean alerted();", "@Override\n\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n public void windowActivated(WindowEvent arg0) {\n\n }", "public void notify(IGameEvent event)\n {\n switch (event.getType())\n {\n case GameEvent.GAME_LOST_EVENT:\n GameLostEvent gameLostEvent = (GameLostEvent)event;\n\n destroy();\n //TODO:Show \"You lose\" message here\n\n //redirect to main menu on loser\n Intent youLoseIntent = new Intent(this,YouLoseActivity.class);\n Bundle bundle = new Bundle();\n bundle.putInt(\"gameScore\",gameLostEvent.getScore() );\n youLoseIntent.putExtras(bundle);\n startActivityForResult(youLoseIntent, 0);\n break;\n }\n }", "public void invokeBehaviour() {\n\t\tIntent i = alertMe.createIntentFromSession();\n\t\ti.setClass(this, AlertMeBehaviour.class);\n startActivityForResult(i, AlertMeConstants.INVOKE_STATUS); \n }", "public abstract void postMessage(Event event, AlertDetail alertDetails, Map DataMap)\r\n\t\t\tthrows AlertHandlerException;", "@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\taddAlert(\"Fake Test Alert\");\n\t\t\t}", "public void connectionInitiated(ShellLaunchEvent ev);", "public void windowActivated(WindowEvent event)\n {\n\n\n }", "@Override\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void simpleEvent() {\n AdGyde.onSimpleEvent(\"SimpleEventID\");\n Toast.makeText(this, \"Simple event clicked\", Toast.LENGTH_SHORT).show();\n }", "public String execute() {\n\t\ttry {\n\t\t\treturnMsg = MESSAGE_EVENT_ADDED;\n\t\t\tcheckEventClash();\n\t\t\tstoreEvent();\n\t\t\treturn returnMsg;\n\t\t} catch (IOException e) {\n\t\t\treturn MESSAGE_EVENT_ERROR;\n\t\t} finally {\n\t\t\tupdateView();\n\t\t\tMagical.setCurrentTab(\"events\");\n\t\t}\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "protected void recurringAlert() {\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(DeviceTrackerApplication.getContext());\n alertDialogBuilder.setTitle(getString(R.string.app_name));\n alertDialogBuilder\n .setMessage(R.string.user_not_logged_in)\n .setCancelable(false)\n .setPositiveButton(R.string.ok_msg, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if (!Utils.isAppInForeground(LoggedInCheckService.this)) {\n Intent intent = new Intent(LoggedInCheckService.this, SplashActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n }\n });\n alertDialog = alertDialogBuilder.create();\n alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);\n\n if (timer2 != null) {\n timer2.cancel();\n }\n\n timer2 = new Timer();\n long alertInterval = getSharedPreferences(Utility.SETTINGS_SHARED_PREFERENCE, Context.MODE_PRIVATE).getInt(Utility.ALERT_INTERVAL, 2) * 60 * 1000;\n timer2.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n Handler handler = new Handler(Looper.getMainLooper()) {\n @Override\n public void handleMessage(Message msg) {\n alertDialog.show();\n }\n };\n Message message = handler.obtainMessage();\n message.sendToTarget();\n }\n }, alertInterval , alertInterval);\n\n }", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t}", "public static native void alert(String msg) /*-{\r\n $wnd.alert(msg);\r\n }-*/;", "void onApplicationEvent(ContextRefreshedEvent event);", "@Override\n public void windowActivated(WindowEvent e)\n {\n\n }", "@Override\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\n\t\t\t}", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "public void appRaisedToForeground(final AppForegroundEvent e);", "@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}" ]
[ "0.70670867", "0.67534107", "0.6506676", "0.64602035", "0.6448598", "0.63833916", "0.63505304", "0.63135344", "0.6266511", "0.62355185", "0.61812115", "0.6122963", "0.61151356", "0.6113641", "0.606194", "0.6055407", "0.6049219", "0.5973696", "0.597087", "0.5963286", "0.5956858", "0.5925909", "0.5901568", "0.58945346", "0.58854836", "0.58825725", "0.58565944", "0.58561844", "0.5844138", "0.5839923", "0.5838103", "0.583446", "0.58270425", "0.5822207", "0.5818256", "0.5815828", "0.58151925", "0.5813313", "0.57813364", "0.5775691", "0.5774744", "0.57680345", "0.57666874", "0.5757677", "0.5757614", "0.5746684", "0.5738433", "0.5734896", "0.57316196", "0.57081926", "0.57081926", "0.57063794", "0.57058156", "0.5705687", "0.57039845", "0.57023996", "0.5694747", "0.5688982", "0.5684114", "0.5684114", "0.5681329", "0.5675973", "0.5672472", "0.5672472", "0.5672472", "0.5672472", "0.5672472", "0.5672472", "0.5672472", "0.56718194", "0.56670696", "0.566655", "0.5666502", "0.5661519", "0.5659358", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.56591946", "0.5658037", "0.5646044", "0.5646044", "0.5646044" ]
0.7129702
0
Constructor with data parameter
public Node(E data) { this.data = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Data() {}", "public Data() {\n }", "public Data() {\n }", "public Data() {\n \n }", "public Model(DataHandler data){\n //assign the data parameter to the instance\n //level variable data. The scope of the parameter\n //is within the method and that is where the JVM \n //looks first for a variable or parameter so we \n //need to specify that the instance level variable \n //is to be used by using the keyword 'this' followed \n //by the '.' operator.\n this.data = data;\n }", "public InitialData(){}", "private Noder(E data) {\n this.data = data;\n }", "public DataMessage(final Object data){\n\t\tthis.data=data;\n\t}", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "public mainData() {\n }", "public Node(T data) {\r\n this.data = data;\r\n }", "public Node(T data) {\n\n this.data = data;\n\n\n }", "public Node(T data) {\n this(data, null, null, null);\n }", "public Node(T data){\n this.data = data;\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Node(Object data) {\n\t\t\tthis.data = data;\n\t\t}", "public StringData1() {\n }", "public StringData() {\n\n }", "public DesastreData() { //\r\n\t}", "public Node(T data) {this.data = data;}", "public SensorData() {\n\n\t}", "public DataInt() {\n }", "private Node( T data_ )\n {\n data = data_;\n parent = this;\n }", "public CompositeData()\r\n {\r\n }", "public CompanyData() {\r\n }", "public TradeData() {\r\n\r\n\t}", "@Test\n\tpublic void testConstructorForEvtDataParam()\n\t{\n\t\tfinal Object rawData = new Object();\n\t\tfinal String id = \"TestId\";\n\t\tfinal Object evtData = new Object();\n\t\tfinal RawDataEvent testObj = new RawDataEvent(rawData, id, evtData);\n\n\t\tassertEquals(evtData, testObj.getEventObject());\n\t\tassertEquals(id, testObj.getIdentifier());\n\t\tassertEquals(rawData, testObj.getRawDataSource());\n\t}", "public ChangeData()\r\n\t\t{\r\n\t\t}", "public CreateStatus(DataMap data)\n {\n super(data, null);\n }", "public Node(E data) {\n this.data = data;\n }", "public SNode(T data) {\n this(data, null);\n }", "public DataBean() {\r\n \r\n }", "public FilterData() {\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "@Override\n\tpublic void initData() {\n\t\t\n\t}", "public UserData() {\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}", "private void initData() {\n\n }", "public Data(short dataAmount, short routerId, Integer theDataId) {\n amount = dataAmount;\n targetRouterId = routerId;\n dataId = theDataId;\n }", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\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}", "public DummyModel(String data) {\n textData = data;\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "public DataType(String dataName) {\n /*try {\n basicType = this.getClass().getName();\n idForDataType = this.getClass().getName();\n } catch (Exception ex) {\n Logger.getLogger(DataType.class).fatal(\"Failed to generate a unique id: \" +\n ex.getMessage(),ex);\n }*/\n this.dataName = dataName;\n }", "public RegisterNewData() {\n }", "private void initData() {\n }", "@Override\r\n\tpublic void initData() {\n\t}", "private void initData(){\n\n }", "DataHRecordData() {}", "private Cell(E data) {\n Cell.this.data = data;\n }", "public DataView(Object data) {\n\t\tthis.data = data;\n\t}", "public LineData()\n\t{\n\t}", "public TagData(String epc)\n {\n this(epc, null);\n }", "protected @Override\r\n abstract void initData();", "public NetworkData() {\n }", "protected abstract D createData();", "void initData(){\n }", "public void initData() {\n }", "public void initData() {\n }", "public DataRecord() {\n super(DataTable.DATA);\n }", "private SimpleBuildingJob(BuildingJobData data) {\n\t\tsuper(data.getDx(), data.getDy());\n\t\ttype = data.getType();\n\t\ttime = data.getTime();\n\t\tmaterial = data.getMaterial();\n\t\tdirection = data.getDirection();\n\t\tsearch = data.getSearchType();\n\t\tname = data.getName();\n\t\ttakeMaterialFromMap = data.isTakeMaterialFromMap();\n\t\tfoodOrder = data.getFoodOrder();\n\t}", "public Node(int data) {\n this.data = data;\n }", "public Data(String data){\n String[] dataAux = data.split(\"/\");\n dia = Integer.parseInt(dataAux[0]);\n mes = Integer.parseInt(dataAux[1]);\n ano = Integer.parseInt(dataAux[2]);\n }", "public Node(T theData) \n\t{\n\t\tthis.data = theData;\n\t\tthis.next = null;\n\t}", "public Coordinate(int x, int y, int data){\r\n this.x = x;\r\n this.y = y;\r\n this.data = data;\r\n }", "protected Node(T dataPortion) {\n data = dataPortion;\n next = null;\n }", "private void initData() {\n\t}", "public DataAdapter() {\n }", "public PollData() {\n\n\n super(TYPE_NAME);\n }", "public ActuatorData()\n\t{\n\t\tsuper(); \n\t}", "public Data(SearchTree<Software> dataStructure){\n administratorMyArray = new ArrayList<>();\n IDList = new ArrayList<>();\n products = dataStructure;\n money=0.0;\n }", "public Matchdata()\n {\n }", "public PassPinDataItem() {\n }", "public Node(int data) {\n\t\tthis.data = data;\n\t}", "public Leaf(T data) {\n this.data = data;\n this.progeny = 1;\n }", "public ProductImpl(ActivationID id, MarshalledObject data) \n throws RemoteException, IOException, ClassNotFoundException\n { \n super(id, 0);\n name = (String) data.get();\n System.out.println(\"Constructed \" + name);\n }", "Node(T data) {\n\t\t\tthis(data, null);\n\t\t}", "public StringDataList() {\n }", "Node(String d) {\n data = d;\n }", "public Datos(){\n }", "public Data(int n) {\n this(n, 0.5);\n }", "public Runnable init(byte[] data, Object ctx) {\n\t\t\t\t\t\t\t\tthis.data = data;\n\t\t\t\t\t\t\t\tthis.ctx = ctx;\n\n\t\t\t\t\t\t\t\treturn this;\n\t\t\t\t\t\t\t}", "public Data (String name, int type) {\n\t\tthis.name = name;\n\t\tthis.type = type;\n\t\tstream = new MyReader();\n\t}", "public Node(T data) {\n\t\t\tthis.data = data;\n\t\t\tthis.nextNode = null;\n\t\t}", "public TagData(byte[] epc)\n {\n this(epc, null);\n }", "public LocationData()\n {\n }", "public Token(I2PAppContext ctx, byte[] data) {\n super(data);\n // lets not get carried away\n if (data.length > MAX_TOK_LEN)\n throw new IllegalArgumentException();\n lastSeen = ctx.clock().now();\n }", "protected Command(String input, String[] data) {\n this.setInput(input);\n this.setData(data);\n }", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}" ]
[ "0.8008857", "0.7887902", "0.7887902", "0.77659726", "0.74718434", "0.7361073", "0.7225911", "0.7206516", "0.7148288", "0.71386397", "0.7013378", "0.7007123", "0.69876367", "0.69800955", "0.697165", "0.6964817", "0.6942365", "0.69311947", "0.6911117", "0.687548", "0.68522125", "0.6843034", "0.67883235", "0.6731801", "0.67130494", "0.6710618", "0.6706186", "0.6700971", "0.66988117", "0.6675464", "0.6671952", "0.6668719", "0.6664057", "0.6659425", "0.66296005", "0.6626585", "0.66240346", "0.66240346", "0.66240346", "0.6615941", "0.66094446", "0.66040313", "0.66040313", "0.65808314", "0.6575468", "0.6575468", "0.6575468", "0.6575468", "0.6575468", "0.6575468", "0.6574767", "0.656717", "0.656717", "0.65615475", "0.6561028", "0.6532261", "0.653127", "0.6531179", "0.65222096", "0.6520445", "0.65195", "0.64992756", "0.6492537", "0.6470718", "0.6470623", "0.646489", "0.6461095", "0.64609265", "0.64609265", "0.6459124", "0.64382523", "0.6436449", "0.64282054", "0.6428033", "0.6423486", "0.64186406", "0.64151454", "0.6392475", "0.6387304", "0.6363075", "0.6357352", "0.63548356", "0.6353199", "0.63407576", "0.6340369", "0.6339047", "0.63322", "0.63316864", "0.63307476", "0.6327229", "0.6322317", "0.6316322", "0.6315819", "0.6306274", "0.6302874", "0.62935036", "0.6291866", "0.6287804", "0.6284781", "0.6282145" ]
0.66992974
28
Get data stored Node
public E getData() { return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNode() {\r\n\t\t\treturn data;\r\n\t\t}", "public E getData() {\r\n\t\t//System.out.println(headNode.link.data);\r\n\t\tif(headNode.link.data != null) {\r\n\t\t\treturn headNode.link.data;\r\n\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "Object get(Node node);", "Map<String,String> getNodeData(T node);", "public NodeRef getDataNode(String ip) {\r\n\t\treturn nodeMap.get(ip);\r\n\t}", "public static DataNode getDataNode() {\n return datanodeObject;\n }", "public @Override E get(int index) {\n \treturn getNode(index).data;\n }", "public String getNodeValue ();", "public Node getNode();", "public K data()\n {\n\treturn this.data;\n }", "Node getNode();", "public String getNode() {\n return node;\n }", "@Override\n\tpublic Object getNodeInfo(String path) {\n\t\treentrantReadWriteLock.readLock().lock();\n\t\tObject obj = null;\n\t\ttry {\n\t\t\tbyte[] tmpByteData = zookeeper.getData(path, false,\n\t\t\t\t\tnew Stat());\n\t\t\t\n\t\t\tobj = SomeUtil.byteToJson(tmpByteData);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"获取跟节点数据异常!\", e);\n\t\t} finally {\n\t\t\treentrantReadWriteLock.readLock().unlock();\n\t\t}\n\t\treturn obj;\n\t}", "public String getNode()\n {\n return node;\n }", "public DataNode getNode(String path) {\n return dataTree.getNode(path);\n }", "public Node getNode() {\r\n return channel.attr(NetworkConstants.ATTRIBUTE_NODE).get();\r\n }", "public T getElement() {\n\t return myData;\n }", "public String getNode() {\n return node;\n }", "Object getData();", "Object getData();", "@Override\n\tpublic node_data getNode(int key) {\n\n\t\treturn this.Nodes.get(key);\n\n\t}", "Object getCurrentData();", "static Node getNode(int data) {\n // allocate space\n Node new_node = new Node();\n new_node.data = data;\n new_node.next = new_node.prev = null;\n return new_node;\n }", "@Override\n public Cluster.Node getNode() {\n return node;\n }", "public void getData(int idData) throws Exception {\n Node dataNode = this.master.getOneDataNode();\n if(dataNode != null){\n System.out.println(\"Get from DataNode on port \" + dataNode.getPort());\n this.openSocket(dataNode.getPort(), \"getData/\"+idData);\n }\n else {\n System.out.println(\"No registered DataNode\");\n }\n }", "public K get()\n {\n\treturn current.data(); \n }", "public Node getPlayerData(){\n if(blender_Player == null){\n /** Get player data **/\n blender_Player = (Node) assetManager.loadModel(\"Models/Blender/PlayerModel.j3o\");\n String name = blender_Player.getName();\n\n /** Get player scene data **/\n Node blenderNode = (Node) blender_Player.getChildren().get(0);\n playerData_Children = blenderNode.getChildren();\n\n for(int p = 0; p < playerData_Children.size(); p++){\n String namePD = playerData_Children.get(p).getName();\n if(namePD.equals(\"AnimCharacter\")){\n playerIndex = p;\n }\n //System.out.println(\"Name : \" + namePD);\n }\n }\n if(playerIndex == -1){\n return null;\n }\n return (Node) playerData_Children.get(playerIndex);\n }", "public Object getElement()\n {return data;}", "public String toString(){\n return \"Node: \" + data;\n }", "T getData() {\n\t\treturn data;\n\t}", "Object getData() { /* package access */\n\t\treturn data;\n\t}", "@Override\n\tpublic java.lang.String getNode_3() {\n\t\treturn _dictData.getNode_3();\n\t}", "public Node getNode() {\n return node;\n }", "public Node getNode() {\n return node;\n }", "public T getData()\n\t{\n\t\treturn this.data;\n\t}", "public Object getData(){\n\t\treturn this.data;\n\t}", "OperationNode getNode();", "@Override\n\tpublic java.lang.String getNode_2() {\n\t\treturn _dictData.getNode_2();\n\t}", "public Node<E> get(int index){\r\n if (index < 0 || index >=theData.size() ) return null;\r\n return theData.get(index);\r\n }", "@AutoEscape\n\tpublic String getNode_3();", "public Object get(int index) {\n isValidIndex(index);\n return getNode(index).data;\n }", "public E getElement()\n {\n return this.data;\n }", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "@Override\n public node_data getNode(int key) {\n return nodes.get(key);\n }", "public E getData(){\n\t\t\treturn data;\n\t\t}", "public T get(T data) {\n return get(root, data);\n }", "public String getNodeValue(Node node) throws Exception;", "public Object getData();", "public T getData()\n\t{ \treturn this.data; }", "static\nNode getNode(\nint\ndata) \n\n{ \n\n// allocate node \n\nNode newNode = \nnew\nNode(); \n\n\n// put in the data \n\nnewNode.data = data; \n\nnewNode.prev = newNode.next = \nnull\n; \n\nreturn\nnewNode; \n\n\n}", "public E getData() { return data; }", "protected HMetisNetlistNodeData getHMetisNetlistNodeData(NetlistNode node){\n\t\tHMetisNetlistNodeData rtn = null;\n\t\trtn = (HMetisNetlistNodeData) node.getNetlistNodeData();\n\t\treturn rtn;\n\t}", "public Object getData() {\n\t\t\treturn null;// this.element;\n\t\t}", "public abstract Node getNode();", "@Override\n public Node getNode() throws ItemNotFoundException, ValueFormatException,\n RepositoryException {\n return null;\n }", "public E getElement()\n\t{\n\t\treturn this.data;\n\t}", "public short getNode() {\n return node;\n }", "public T getData() {\n return this.data;\n }", "public T getData() {\r\n return data;\r\n }", "public Object data() {\n return this.data;\n }", "public Node getSaveNode() {\n return getSaveNode(true);\n }", "public Node getNode() {\n\t\treturn null;\n\t}", "public TMNode getNode() {\n return node;\n }", "public Object getData()\r\n\t\t{\r\n\t\t\treturn data;\r\n\t\t}", "public final IRNode getNode() {\r\n return f_node;\r\n }", "public D getData(){\n\t\treturn data;\n\t}", "public E getData()\n {\n return data;\n }", "public E getData()\n {\n return data;\n }", "public Node<?> getNode() {\n return observedNode;\n }", "@java.lang.Override\n public entities.Torrent.NodeIdOrBuilder getNodeOrBuilder() {\n return getNode();\n }", "@java.lang.Override\n public entities.Torrent.NodeIdOrBuilder getNodeOrBuilder() {\n return getNode();\n }", "public node_info getNode(int key)\n{\n\treturn getNodes().get(key);\n\t\n}", "T getData();", "public T get(int index) {\r\n return getNodeAtIndex(index).getData();\r\n }", "@Override\n\tpublic java.lang.String getNode_1() {\n\t\treturn _dictData.getNode_1();\n\t}", "@Override\r\n\t/**\r\n\t * getCurrentData() returns the data of the current node in the tree\r\n\t * @return String data of the current node or null if the current node is null\r\n\t */\r\n\tpublic String getCurrentData() {\n\t\treturn current.getData();\r\n\t}", "int getData(int node_index) {\n\t\treturn m_list_nodes.getField(node_index, 0);\n\t}", "public E getData() {\n return data;\n }", "public LinkedListNode<T> getNode(T data){\n\t\t//if the data is the head\n\t\tif (data.equals(head.getData()))\n\t\t\treturn head;\n\t\t//set the current node to next of head\n\t\tLinkedListNode<T> currentNode = head.getNext();\n\t\t//go through the list\n\t\t//if the current node is not null and it's not the data\n while( currentNode != null && !currentNode.getData().equals( data ) )\n \tcurrentNode = currentNode.getNext();\n return currentNode;\n\t}", "public Node getNode (){\n if (_node == null){\n Label label = new Label(_value);\n label.setFont(DEFAULT_FONT);\n _node = label;\n }\n return _node;\n }", "public Object getData() {\n\t\treturn data;\n\t}", "public void get (final NodeID nodeID, GetCallBack listener);", "public T getData(){\n return this.data;\n }", "public Object getData() {\r\n\t\t\treturn data;\r\n\t\t}", "public T getData() {\n return null;\n }", "NodeId getNodeId();", "public Data getData() {\n return data;\n }", "public Data getData() {\n return data;\n }", "T getObject() {\n\t\t\treturn data;\n\t\t}", "N getNode(int id);", "String getData();", "public T getData() {\r\n\t\t\treturn t;\r\n\t\t}", "@Override\r\n protected Node getStoringNode(Integer key) {\r\n return getNetworkNode();\r\n }", "public Node getNode()\n\t{\n\t\treturn root;\n\t}", "public SecurityNode getNode() {\n\t return fo;\n\t}", "@JsOverlay\n\tpublic final ChartNode getNode() {\n\t\t// gets native chart\n\t\tChart nativeChart = getNativeChart();\n\t\t// gets chart\n\t\tIsChart chart = nativeChart.getChart();\n\t\t// creates and returns a char node\n\t\treturn new ChartNode(chart.getId(), nativeChart);\n\t}", "public synchronized Object getData() {\n return data;\n }", "public Node read_node2(String MAC, String port_number) throws HibernateException\r\n\t\t\t\t{ \r\n\t\t\t\t\tNode node = null; \r\n\t\t\t\t\tString i=null;\r\n\t\t\t\t\tlong id_node=0;\r\n\t\t\t\t try \r\n\t\t\t\t { \r\n\t\t\t\t iniciaOperacion(); //unique result me devuelve el objeto encontrado con dicho correo electronico\r\n\t\t\t\t \r\n\t\t\t\t i= sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.MAC_address ='\"+MAC+\"' and u.port_number ='\"+port_number+\"'\").uniqueResult().toString();\r\n\t\t\t\t //una vez encontrado el id del user puedo buscarlo\r\n\t\t\t\t id_node= Integer.parseInt(i);\r\n\t\t\t\t node = (Node) sesion.get(Node.class, id_node); \r\n\t\t\t\t \r\n\t\t\t\t } finally \r\n\t\t\t\t { \r\n\t\t\t\t sesion.close(); \r\n\t\t\t\t } \r\n\t\t\t\t return node; \r\n\t\t\t\t}", "public int getDataNodeID() throws Exception {\n\t\tSocket socket = new Socket(nameNodeHost, nameNodePort);\n\t\tFSMessage message = new FSMessage(FSMessage.MESSAGE_DATANODE_REQ)\n\t\t\t\t.withPort(port)\n\t\t\t\t.withNodeHost(InetAddress.getLocalHost().getHostAddress().toString());\n\t\tFSMessage recv = FSMessage.exchangeMessage(socket, message);\n\t\t\n\t\tint ret;\n\t\tif (recv.getType() == FSMessage.MESSAGE_DATANODE_REQ_ACK)\n\t\t\tret = recv.getNodeID();\n\t\telse\n\t\t\tret = -1;\n\t\tsocket.close();\n\t\treturn ret;\n\t}" ]
[ "0.7308389", "0.69711256", "0.69627506", "0.686714", "0.6812908", "0.6737401", "0.64940596", "0.6488362", "0.6466547", "0.64579964", "0.640513", "0.6378902", "0.63785833", "0.6336774", "0.6304331", "0.6288054", "0.6284973", "0.627022", "0.62652785", "0.62652785", "0.6254501", "0.62477714", "0.62313503", "0.6225065", "0.6219661", "0.62008667", "0.61848915", "0.6179067", "0.6174817", "0.61665463", "0.615549", "0.6151384", "0.6144996", "0.6144996", "0.6138333", "0.61335635", "0.61323005", "0.61255497", "0.6115347", "0.61121327", "0.6111585", "0.6097185", "0.6081465", "0.6081465", "0.60792536", "0.6079022", "0.60722786", "0.6068691", "0.6057348", "0.6055709", "0.6051699", "0.6051524", "0.60473156", "0.60447943", "0.6043085", "0.6036968", "0.6030893", "0.60300684", "0.60222805", "0.6021863", "0.60074747", "0.6004811", "0.60007274", "0.5977797", "0.59731483", "0.5969811", "0.59582126", "0.5957905", "0.5957905", "0.59564114", "0.59552395", "0.59552395", "0.5950541", "0.59457743", "0.59455454", "0.5944723", "0.59415054", "0.5919156", "0.5910426", "0.5909772", "0.5906137", "0.5901096", "0.58959997", "0.5892512", "0.58899117", "0.5883374", "0.5877212", "0.58749574", "0.58749574", "0.58716035", "0.5868402", "0.58672565", "0.58646166", "0.58472866", "0.58468074", "0.5844422", "0.5834803", "0.5828021", "0.5826621", "0.5804818" ]
0.5951121
72
Set data stored in Node
public void setData(E data) { this.data = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNode(int _data ) {\r\n\t\t\tdata = _data;\r\n\t\t}", "public void setData(E data){\n\t\t\tthis.data = data;\n\t\t}", "void setData(T data) {\n\t\tthis.data = data;\n\t}", "public void setData(T data){\n this.data = data;\n }", "public void setData( E data ) {\n\t\tthis.data = data;\n\t}", "public void setData(E data)\n {\n this.data = data;\n }", "public void setData(Object data) {\r\n this.data = data;\r\n }", "public void setData(Object data) {\n this.data = data;\n }", "public void setData(V data){\n\t\tthis.data = data;\n\t}", "public void setData(Data data) {\n this.data = data;\n }", "public void setData(Object data) {\n\t\tthis.data = data;\n\t}", "@Override\r\n\tpublic void setData(E data) {\n\t\tthis.data=data;\r\n\t}", "@Override\n\tpublic void setNodeInfo(String path, Object obj) {\n\t\treentrantReadWriteLock.readLock().lock();\n\t\ttry {\n\t\t\tzookeeper.setData(path, SomeUtil.getByte(obj),\n\t\t\t\t\t-1);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"更新跟节点数据异常!\", e);\n\t\t} finally {\n\t\t\treentrantReadWriteLock.readLock().unlock();\n\t\t}\n\t}", "void setData(Object data);", "void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}", "void setData (Object data);", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}", "abstract public void setUserData(Object data);", "public void setData(D data) {\n this.data = data;\n }", "public void setData(String data) {\r\n this.data = data;\r\n }", "public void setUserData(Object data);", "public abstract void setCustomData(Object data);", "JsonNode updateData(String data);", "public void setData(String data) {\n _data = data;\n }", "public void setData(String data) {\n this.data = data;\n }", "public void setData(String data) {\n\tthis.data = data;\n }", "public void setData(E d)\n {\n data = d;\n }", "public void setData(Object oData) { m_oData = oData; }", "public void setData(String data) {\n\t\tthis.data = data;\n\t}", "public void setData(String data) {\n\t\tthis.data = data;\n\t}", "private void setData() {\n\n }", "public void setData(D s){\n\t\tdata = s;\n\t}", "@Override\r\n\t/**\r\n\t * setCurrentData() sets the data field of the current node to the string \r\n\t * inputed into the method with the precondition the current node is not null\r\n\t * @param newData the new data for the current node\r\n\t */\r\n\tpublic void setCurrentData(String newData) {\n\t\tcurrent.setData(newData);\r\n\t}", "public Node(Object data) {\n\t\t\tthis.data = data;\n\t\t}", "public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }", "private Node( T data_ )\n {\n data = data_;\n parent = this;\n }", "public void setData(IData data) {\n this.data = data;\n }", "public abstract void set(String key, T data);", "void setData(int node_index, int element) {\n\t\tm_list_nodes.setField(node_index, 0, element);\n\t}", "public void setData(java.lang.String data) {\r\n this.data = data;\r\n }", "public abstract void setNodes();", "public void setData(T val) {\r\n\t\tthis.val = val;\r\n\t}", "public E set(int index, E data) \n throws IndexOutOfBoundsException,NullPointerException\n {\n if(index > size() || index < 0)\n {\n throw new IndexOutOfBoundsException();\n }\n Node currNode = getNth(index);\n if(data == null)\n {\n throw new NullPointerException();\n }\n currNode.data = data;\n return currNode.data; \n }", "public void makeSet( long data ){\n Node node = new Node();\n node.data = data;\n node.parent = node;\n node.rank = 0;\n map.put( data, node );\n }", "public void setData(GenericItemType data) {\n this.data = data;\n }", "void setUserData(Object userData);", "void setNode(int nodeId, double lat, double lon, double ele);", "public void setData(Object o){}", "@Override\n\tpublic void setData() {\n\n\t}", "@Override\n public void setValue(Node value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public void setNode_1(String node_1);", "public void setData(int data) {\n this.data = data;\n }", "public void setData(int data) {\n this.data = data;\n }", "void set(int index, T data);", "public void setValue(int node, Type value) {\n\t\tvalues[node] = value;\n\t}", "void setData(byte[] data) {\n this.data = data;\n }", "public void setData (G pData){\n this._data=pData;\n }", "public void put(T data){\r\n\t\tthis.data = data;\r\n\t}", "public Node(T data) {\r\n this.data = data;\r\n }", "void setNode(int nodeId, double lat, double lon);", "public Node(T data) {this.data = data;}", "public void setData(byte data) {\n this.data = data;\n }", "public void setCurrent (T aData){\r\n if(curr != null)\r\n curr.data = aData;\r\n }", "public void setData(int data) {\n\t\tthis.data = data;\n\t}", "public void setNode(String node)\n {\n this.node = node;\n }", "public Node(T data){\n this.data = data;\n }", "Node(T data, Node<T> node) {\n\t\t\tthis.data = data;\n\t\t\tnextNode = node;\n\t\t}", "void setObject(String id, Object data);", "void setData(byte[] data);", "void setNode(String path, Node node)\n throws ProcessingException;", "public Node(E data) {\n this.data = data;\n }", "public void setDataXml(DataXml dataXml) {\r\n this.dataXml = dataXml;\r\n }", "public T setUserData(Object data)\n\t{\n\t\tuserData = data;\n\t\treturn (T) this;\n\t}", "public void setData(Map<E, String> data) {\n\t\tthis.data = data;\n\t}", "public void setData(WrapperNBT data){\r\n\t\tsavedDataAccessor.internalData = data.tag;\r\n\t\tsavedDataAccessor.markDirty();\r\n\t\tworld.getPerWorldStorage().setData(savedDataAccessor.mapName, savedDataAccessor);\r\n\t}", "void setCurData(int node_id) {\r\n\t\tif (node_id == 1) {\r\n\t\t\t// clone the arrayList\r\n\t\t\tData = new ArrayList<>();\r\n\t\t\tfor (ArrayList<Double> a : Org_Data) {\r\n\t\t\t\tData.add(cloneArrayList(a));\r\n\t\t\t}\r\n\t\t\tLabel = cloneArrayList(Org_Label);\r\n\r\n\t\t\t// clone the frequnecy array.\r\n\t\t\tClass_Freq = new int[Org_Class_Freq.length];\r\n\t\t\tSystem.arraycopy(Org_Class_Freq, 0, Class_Freq, 0, Org_Class_Freq.length);\r\n\r\n\t\t} else {\r\n\t\t\tArrayList<Integer> it = Node_Obj_List.get(node_id);\r\n\t\t\tnum_obj = it.size();\r\n\r\n\t\t\tData.clear();\r\n\t\t\tLabel.clear();\r\n\r\n\t\t\tfor (int i = 0; i < num_class; i++) {\r\n\t\t\t\tClass_Freq[i] = 0;\r\n\t\t\t}\r\n\r\n\t\t\tint cur_class;\r\n\r\n\t\t\t// build our data structures based on the node and the labels and\r\n\t\t\t// histogram.\r\n\t\t\tfor (Integer in : it) {\r\n\t\t\t\tcur_class = Org_Label.get(in);\r\n\t\t\t\tData.add(Org_Data.get(in));\r\n\t\t\t\tLabel.add(cur_class);\r\n\t\t\t\tClass_Freq[cur_class]++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tclass_entropy = entropyArray(Class_Freq, num_obj);\r\n\t}", "public Node(E data) {\r\n\t\tthis.data = data;\r\n\t}", "public void setData(LinkedHashMap<Integer, Data> data){\r\n\t\tthis.data = data;\r\n\t}", "public void setNode(String node) {\n this.node = node;\n }", "public void setData(int data)\n\t {\n\t this.data = data;\n\t }", "public Node(T data) {\n\n this.data = data;\n\n\n }", "public void setElement(E element)\n\t{\n\t\tthis.data = element;\n\t}", "public void setData(byte[] data) {\n this.data = data;\n }", "public void setUserData (Object userData) {\n\t\tthis.userData = userData;\n\t}", "public void setDataUnsafe(Serializable data) { this.data = data; }", "public void setUser(UserData data) {\n user = data;\n }", "public void setNode_3(String node_3);", "public void putData(int idData, String data) throws Exception {\n ArrayList<Node> nodes = this.master.getAllDataNode();\n if(!nodes.isEmpty()){\n System.out.println(\"List of registered nodes:\");\n for(int i=0; i<nodes.size(); i++) {\n System.out.println(i + \". \" + nodes.get(i).getHost() + \": \" + nodes.get(i).getPort());\n }\n System.out.println(\"Enter a node id from the list above to put data\");\n int input = scanner.nextInt();\n \n Node selectedNode = nodes.get(input);\n\n // Open up a socket on the selected DataNode\n this.openSocket(selectedNode.getPort(), \"putData/\"+idData+ \"/\"+ data);\n }\n else{\n System.out.println(\"No registered DataNode\");\n }\n }", "private void setNode(DefaultMutableTreeNode node){\n\t\t\n\t\tthis.node = node;\n\t\t\n\t}", "Node(String d) {\n data = d;\n }", "public void setUserData(Object userData) {\n this.userData = userData;\n }", "void setDatty(Datty newDatty);", "public void dataWasSet();", "private void setUserData(){\n }", "public void setData(java.util.List data) {\r\n this.data = data;\r\n }", "void setValueOfNode(String path, String value)\n throws ProcessingException;", "public void setData(long value) {\n this.data = value;\n }", "public void setData(Object d) {\n\t\t funcData = d; \n\t}", "public void setNode_2(String node_2);", "public void updateData() {}" ]
[ "0.73674417", "0.73446983", "0.7315095", "0.72953147", "0.72898513", "0.72717375", "0.72706854", "0.72071666", "0.71143717", "0.71133256", "0.71117187", "0.7093015", "0.70086527", "0.693357", "0.6881276", "0.6874857", "0.6874204", "0.6824252", "0.6806127", "0.68058974", "0.6803952", "0.67703676", "0.6766836", "0.6733631", "0.67211396", "0.6699972", "0.668051", "0.66765124", "0.66194993", "0.66194993", "0.65754855", "0.6539135", "0.65290034", "0.65078086", "0.6503913", "0.64944804", "0.6483225", "0.6480771", "0.6477625", "0.6473598", "0.6441126", "0.643706", "0.642851", "0.64122957", "0.64118814", "0.64080906", "0.6370095", "0.63598526", "0.63567924", "0.633502", "0.63062096", "0.6292045", "0.6292045", "0.6291282", "0.6284918", "0.6279075", "0.6267388", "0.6259107", "0.6258086", "0.6232964", "0.62309265", "0.62175566", "0.61895114", "0.61879724", "0.61840945", "0.61804855", "0.6173414", "0.6172878", "0.6169209", "0.6161393", "0.61378145", "0.6125785", "0.6104771", "0.6104291", "0.61041445", "0.6093223", "0.6092531", "0.6080418", "0.6079821", "0.605703", "0.6055335", "0.6054014", "0.6052023", "0.604759", "0.6043639", "0.60419965", "0.6030614", "0.60295546", "0.6026948", "0.6019652", "0.60176325", "0.6008017", "0.6005487", "0.60010016", "0.60001844", "0.59755814", "0.59724224", "0.5967474", "0.59656405", "0.5963204" ]
0.7277194
5
Get what Node stores as next in list
public Node<E> getNext() { return next; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListNode<T> getNext();", "public Node getNext() { return next; }", "public Node<E> getNext() { return next; }", "public DNode getNext() { return next; }", "public Node getNext(){\n\t\treturn next;\n\t}", "public Node getNext(){\n\t\t\treturn next;\n\t\t}", "public LLNode<T> getNext() {\n return next;\n }", "public Node<S> getNext() { return next; }", "public Node<D> getNext(){\n\t\treturn next;\n\t}", "public MyNode<? super E> getNext()\n\t{\n\t\treturn this.next;\n\t}", "public ListNode getNext()\r\n {\r\n return next;\r\n }", "public node getNext() {\n\t\t\treturn next;\n\t\t}", "public ListNode<E> getNext()\n {\n return nextNode;\n }", "int getNext(int node_index) {\n\t\treturn m_list_nodes.getField(node_index, 2);\n\t}", "public ListElement<T> getNext()\n\t{\n\t\treturn next;\n\t}", "public Nodo getnext ()\n\t\t{\n\t\t\treturn next;\n\t\t\t\n\t\t}", "public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}", "public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}", "public ListNode<Item> getNext() {\n return this.next;\n }", "public HL7DataTree next() {\n final int size = Util.size(this.list), i = this.next == null ? size : this.list.indexOf(this.next) + 1;\n final HL7DataTree curr = this.next;\n \n this.next = i == size ? more() : this.list.get(i);\n \n return curr;\n }", "public Node getNext() {\t\t//O(1)\n\t\treturn next;\n\t}", "public Node getNext() {\r\n\t\treturn next;\r\n\t}", "public Node getNext()\n\t{\n\t\treturn next;\n\t}", "public Node getNext()\n\t{\n\t\treturn next;\n\t}", "public Node getNext() {\n\t\treturn next;\n\t}", "public Node<T> getNext() {\n\t\treturn next;\n\t}", "public LinearNode<T> getNext() {\r\n\t\t\r\n\t\treturn next;\r\n\t\r\n\t}", "public ListElement getNext()\n\t {\n\t return this.next;\n\t }", "public Node<T> getNext()\n\t{\treturn this.next; }", "public Node getNext() {\n return next;\n }", "public Node getNext()\n {\n return this.next;\n }", "ListNode getNext() { /* package access */ \n\t\treturn next;\n\t}", "public Node getNext() {\n return next;\n }", "public Node getNext() {\n\t\treturn this.next;\n\t}", "public SimpleNode getNext() {\n return next;\n }", "Node<T> getNext() {\n\t\t\treturn nextNode;\n\t\t}", "public Node<T> getNext() {\n return this.next;\n }", "public Node getNextNode() {\n return nextNode;\n }", "public SortedLinkedListNode getNext() {\n return next;\n }", "protected final Node<N> getNext() {\n return this.next;\n }", "public LinkedNode<T> getNext() {\n\t return myNextNode;\n }", "public Node<T> getNextNode() {\n\t\treturn nextNode;\n\t}", "public Object getNext() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.next; // Get the reference to the next item\n\t\t}\n\t\treturn current == null ? null : current.item;\n\t}", "public com.Node<T> getNextRef() {\n\t\treturn null;\n\t}", "public GameNode getNext() {\n return this.next;\n }", "public E next() {\r\n\r\n\t\tE result = null;\r\n\t\tif (hasNext()) {\r\n\t\t\tresult = links.get(counter);\r\n\t\t\tcounter++;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n\t\tpublic Node next() {\n\t\t\tif (this.next == null) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tNode element = this.next;\n\t\t\t\tthis.next = (Node) this.next.getNextNode();\n\t\t\t\treturn (Node) element;\n\t\t\t}\n\t\t}", "public NodeT getNext() {\n String nextItemKey = queue.poll();\n if (nextItemKey == null) {\n return null;\n }\n return nodeTable.get(nextItemKey);\n }", "public ObjectListNode getNext() {\n return next;\n }", "public SlideNode getNext() {\n\t\treturn next;\n\t}", "public Node<T> next() {\r\n return next;\r\n }", "public E next() \n {\n \tfor(int i = 0; i < size; i++)\n \t\tif(tree[i].order == next) {\n \t\t\tnext++;\n \t\t\ttree[i].position = i;\n \t\t\treturn tree[i].element;\n \t\t}\n \treturn null;\n }", "public List getNextList() {\n\t\treturn nextList;\n\t}", "public ShapeNode getNext()\n {\n return next;\n }", "public ListNode<V> next()\n\t\t{\n\t\t\treturn _next;\n\t\t}", "public Variable getNext(){\n\t\treturn this.next;\n\t}", "public Node elementAt() {\n\t\treturn mHead.next;\n\t}", "public IDLink<T> getNext(){\n \treturn npointer;\n }", "public ElectionNode getNextNode() {\r\n return nextNode;\r\n }", "public static Node NextNode(Node curr) {\r\n\t\treturn curr.next;\r\n\t}", "public Node<E> nextNode() {\n\t\treturn next_node;\n\t}", "public DoublyLinkedNode<E> getNext() {\n return nextNode;\n }", "Node firstNode() {\r\n\t\treturn first.next.n;\r\n\t}", "IList<T> getNext();", "public E next(){\r\n E data = node.getData();\r\n node = node.getNext();\r\n return data;\r\n }", "public MainNode getMainNodeNextPointer(MainNode node) {\n return node.mainNext;\n }", "public CommitNode getNext(){\r\n\t\treturn next;\r\n\t}", "public DListNode2 next(){\r\n return this.next;\r\n }", "@Override\r\n\t\tpublic Key next() {\n\t\t\tKey i=current.item;\r\n\t\t\tcurrent=current.next;\r\n\t\t\treturn i;\r\n\t\t}", "HNode getNextSibling();", "public DoubleNode<T> getNext()\n {\n\n return next;\n }", "private Object getNextElement()\n {\n return __m_NextElement;\n }", "@Override\n public Node next() {\n if (next == null) {\n throw new NoSuchElementException();\n }\n Node current = next;\n next = next.getNextSibling();\n return current;\n }", "public Vertex getNext() {\n\t\treturn next;\n\t}", "@Override \r\n\tpublic LLNode<T> next() throws NoSuchElementException{\r\n\t\tLLNode<T> node = nodeptr;\r\n\t\tif (nodeptr == null)\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\tnodeptr = nodeptr.getNext();\r\n\t\treturn node;\r\n\t}", "public T next()\n {\n T data = current.item;\n current = current.next;\n return data;\n }", "public T next() {\n T temp = this.curr.next.getData();\n this.curr = this.curr.next;\n return temp;\n }", "public E getNext() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index >= this.size() - 1)\n\t\t\t\tindex = -1;\n\t\t\treturn this.get(++index);\n\t\t}\n\t\treturn null;\n\t}", "public T next()\n\t\t{\n\t\t\tif(hasNext())\n\t\t\t{\n\t\t\t\tT currentData = current.getData(); //the data that will be returned\n\t\t\t\t\n\t\t\t\t// must continue to keep track of the Node that is in front of\n\t\t\t\t// the current Node whose data is must being returned , in case\n\t\t\t\t// its nextNode must be reset to skip the Node whose data is\n\t\t\t\t// just being returned\n\t\t\t\tbeforePrevious = previous;\n\t\t\t\t\n\t\t\t\t// must continue keep track of the Node that is referencing the\n\t\t\t\t// data that was just returned in case the user wishes to remove()\n\t\t\t\t// the data that was just returned\n\t\t\t\t\n\t\t\t\tprevious = current; // get ready to point to the Node with the next data value\n\t\t\t\t\n\t\t\t\tcurrent = current.getNext(); // move to next Node in the chain, get ready to point to the next data item in the list\n\t\t\t\t\n\t\t\t\tthis.removeCalled = false;\n\t\t\t\t// it's now pointing to next value in the list which is not the one that may have been removed\n\t\t\t\t\n\t\t\t\treturn currentData;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\t}\n\t\t}", "public int next() {\r\n\t\tif (currentPosition <= list.length &&list[currentPosition]==-1) {\r\n\t\t\tcurrentPosition = 0;\r\n\t\t\treturn list[currentPosition];\r\n\t\t}\r\n\t\treturn list[currentPosition++];\r\n\t}", "public K next()\n {\n\tif (hasNext()) {\n\t K element = current.data();\n\t current = current.next(0);\n\t return element; \n\t} else {\n\t return null; \n\t}\n }", "public NextNode getNextNodeNextPointer(MainNode node) {\n return node.next;\n }", "@Override\n\t\tpublic Item next() {\n\t\t\tItem item=current.item;\n\t\t\tcurrent=current.next;\n\t\t\treturn item;\n\t\t}", "@Override\r\n public int nextIndex() {\r\n if (next == null) {\r\n return size; \r\n }\r\n return nextIndex - 1;\r\n }", "public E next() {\r\n current++;\r\n return elem[current];\r\n }", "Node currentNode();", "Entry getNext()\n {\n return (Entry) m_eNext;\n }", "protected T nextUnvisited() {\r\n\t\tfor (T node: getNodes()) {\r\n\t\t\tif (!visited.contains(node)) {\r\n\t\t\t\treturn node;\r\n\t\t\t}\r\n\t\t} \r\n\t\t\treturn null;\r\n\t}", "public E getFirst(){\n return head.getNext().getElement();\n }", "public DependencyElement next() {\n\t\treturn next;\n\t}", "@Override\r\n\t\tpublic Node getNextSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public Linkable next();", "public C getNext();", "public MapElement getNext() {\n return next;\n }", "public V getDestination() {\r\n\r\n\t\tV result = null;\r\n\t\tif ((counter <= links.size()) && (counter > 0)) {\r\n\t\t\tresult = succNodes.get(counter - 1);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public Cell getNext()\n { return next; }", "public Processo next() {\n Node temp = first;\n if (first == null) {\n last = null;\n }\n return temp.processo;\n }", "private Node getRefTo(T item){\n Node n = first;\n while(n != null && !n.value.equals(item))\n n = n.next;\n return n;\n }", "public T next()\r\n { \r\n if (next == null)\r\n throw new NoSuchElementException(\"Attempt to\" +\r\n \" call next when there's no next element.\");\r\n\r\n prev = next;\r\n next = next.next;\r\n return prev.data;\r\n }", "public int Node() { return this.Node; }" ]
[ "0.73786056", "0.73248893", "0.73073", "0.7264104", "0.7247241", "0.7235169", "0.72136086", "0.7205709", "0.7188534", "0.7180862", "0.71294373", "0.71138847", "0.71044147", "0.7088593", "0.70860475", "0.70830417", "0.7044645", "0.7044645", "0.70373946", "0.70253307", "0.702361", "0.70173436", "0.69997686", "0.69997686", "0.6997436", "0.699692", "0.6974728", "0.6971351", "0.6947828", "0.69447327", "0.694008", "0.6939066", "0.6934623", "0.6927558", "0.68895125", "0.68696123", "0.6868623", "0.68657535", "0.68357563", "0.68147916", "0.6814372", "0.67928225", "0.678034", "0.6738698", "0.67301434", "0.6722228", "0.6717626", "0.6706544", "0.66981596", "0.66785157", "0.6664759", "0.66511565", "0.66496646", "0.6642225", "0.66273874", "0.6622397", "0.66166407", "0.66065353", "0.65912056", "0.6588478", "0.65663123", "0.6518296", "0.6496955", "0.64962685", "0.649502", "0.6491709", "0.64531296", "0.6437967", "0.6427079", "0.64129955", "0.6409377", "0.6404139", "0.63849026", "0.6383735", "0.63828456", "0.6332565", "0.6325471", "0.63154685", "0.62638175", "0.62605643", "0.6259086", "0.6245131", "0.62226635", "0.6221431", "0.6218775", "0.62184036", "0.6217218", "0.6205891", "0.61973435", "0.6195116", "0.61948013", "0.61689097", "0.61608285", "0.61510843", "0.61473393", "0.6147321", "0.6147131", "0.6140459", "0.61289835", "0.6126966" ]
0.706693
16
Test case number: 0 /Coverage entropy=0.6108643020548935
@Test(timeout = 4000) public void test00() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-940)); classWriter0.index = (-940); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 8, "?Hqr+TrL Gs", "?Hqr+TrL Gs", "?Hqr+TrL Gs", (Object) null); int int0 = fieldWriter0.getSize(); assertEquals(16, int0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falseNegativeRate((-2));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test00() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass('u', 4.9E-324);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.meanAbsoluteError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedTruePositiveRate();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test030() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives(2458);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test005() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderROC();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.relativeAbsoluteError();\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setInvertSelection(true);\n discretize0.useEqualFrequencyTipText();\n int int0 = (-501);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-501));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize(\"9/&=Kq&\");\n discretize0.getBinRangesString((-1679));\n int int0 = (-98);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-98));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test028() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numTrueNegatives(2308);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test\n public void test23() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n SerializedClassifier serializedClassifier0 = new SerializedClassifier();\n Object[] objectArray0 = new Object[25];\n double[] doubleArray0 = evaluation0.evaluateModel((Classifier) serializedClassifier0, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n public void test09() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedFalseNegativeRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setIgnoreClass(true);\n discretize0.getOptions();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n CostMatrix costMatrix0 = Evaluation.handleCostOption(\"\", 1281);\n assertNull(costMatrix0);\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedMatthewsCorrelation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test067() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-398.0145), 360.0);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n }", "public double entropyPotential() {\n \n return (-1.0);\n}", "@Test(timeout = 4000)\n public void test072() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateMargins(doubleArray0, 3, (-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test10() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"xx\\\"qa7Q>h6u=;6s.h+.<\");\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.weightedFalsePositiveRate();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }" ]
[ "0.74878323", "0.7452572", "0.72024953", "0.7182115", "0.7090549", "0.7073917", "0.7070423", "0.7065548", "0.7059956", "0.7050619", "0.7030476", "0.701754", "0.70140404", "0.7007413", "0.69980717", "0.69247824", "0.69182783", "0.6916791", "0.691665", "0.687967", "0.68751705", "0.68539566", "0.6808072", "0.6798488", "0.6768188", "0.6760554", "0.6751389", "0.6717728", "0.67151123", "0.6713823", "0.67111886", "0.6694654", "0.6693931", "0.66887206", "0.6685354", "0.66716075", "0.66681206", "0.6657569", "0.66428196", "0.6621506", "0.6608208", "0.66063726", "0.6565972", "0.65616417", "0.6554051", "0.6552105", "0.65221626", "0.6507699", "0.6501055", "0.64991343", "0.6492695", "0.648692", "0.6484354", "0.6480926", "0.64775336", "0.64727116", "0.64534765", "0.6439935", "0.642103", "0.63808984", "0.6353977", "0.63352853", "0.6297146", "0.62965417", "0.629031", "0.6275048", "0.62728137", "0.6270783", "0.6258234", "0.625651", "0.62547183", "0.62509996", "0.62456024", "0.6242993", "0.62075233", "0.6205109", "0.619139", "0.618415", "0.61830884", "0.6166388", "0.6135079", "0.61345196", "0.6132687", "0.6116464", "0.61090714", "0.6107289", "0.6106727", "0.6105095", "0.6097205", "0.6095752", "0.60888916", "0.60779303", "0.6063307", "0.60596836", "0.60595727", "0.6052855", "0.6052278", "0.6049799", "0.6044288", "0.6024413", "0.60225856" ]
0.0
-1
Test case number: 1 /Coverage entropy=0.5623351446188083
@Test(timeout = 4000) public void test01() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-2940)); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 6, "ConstantValue", "?&>?R$", "cr$>d6@eC5z!", "?&>?R$"); // Undeclared exception! try { fieldWriter0.put((ByteVector) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("wheel.asm.FieldWriter", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Override\n public int getGridCoverageCount() {\n return 1;\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "public int countTestCases() {\n return 1;\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedTruePositiveRate();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.relativeAbsoluteError();\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCSD1() {\n CuteNetlibCase.doTest(\"SCSD1.SIF\", \"8.666666674333367\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test\n public void testCalculateProbability() throws IOException, ParseException, MathException {\n System.out.println(\"calculateProbability\");\n OrganizationsRegister ro = info(\"e\", \"f\");\n String id = \"12\";\n String expResult = \"25,25 %\";\n String result = ro.calculateProbability();\n assertEquals(expResult, result);\n }", "@Test\n public void costTest() {\n // TODO: test cost\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }" ]
[ "0.7214485", "0.71509904", "0.68279004", "0.6807488", "0.6800521", "0.67367613", "0.6731151", "0.6715083", "0.6697092", "0.6692324", "0.6678509", "0.6648476", "0.6644489", "0.6643646", "0.6643445", "0.6632896", "0.6631875", "0.6623036", "0.66079205", "0.6599417", "0.6587759", "0.6577529", "0.6526692", "0.652099", "0.6497152", "0.6492845", "0.64718413", "0.646867", "0.6460584", "0.6447738", "0.64306945", "0.64024895", "0.6396051", "0.6381028", "0.6375036", "0.6364548", "0.6363246", "0.6361685", "0.63613224", "0.63447005", "0.63332653", "0.6325927", "0.63178706", "0.63113", "0.62997717", "0.6295243", "0.62950104", "0.62783694", "0.6276174", "0.6271789", "0.62690055", "0.62559897", "0.62536013", "0.62509763", "0.6237112", "0.6232016", "0.62167865", "0.6176934", "0.6173043", "0.6162007", "0.61553544", "0.6149986", "0.6141716", "0.6125543", "0.6108676", "0.61047375", "0.61041814", "0.61007214", "0.6096161", "0.6074704", "0.6058357", "0.6058298", "0.60561055", "0.60548115", "0.6052535", "0.6052279", "0.6043241", "0.6025295", "0.60240465", "0.6018571", "0.601385", "0.6013162", "0.60104054", "0.60081625", "0.60069126", "0.6004727", "0.59890014", "0.5985083", "0.59850764", "0.598134", "0.59709406", "0.5969733", "0.5969677", "0.59597015", "0.5958315", "0.59555924", "0.5954271", "0.5936734", "0.5923906", "0.59182847", "0.59129953" ]
0.0
-1
Test case number: 2 /Coverage entropy=0.5623351446188083
@Test(timeout = 4000) public void test02() throws Throwable { ClassWriter classWriter0 = new ClassWriter(9); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 1596, "ConstantVlue", "xWJwacYp%f=Qk", "eprF6eZaPtd", (Object) null); // Undeclared exception! try { fieldWriter0.visitAttribute((Attribute) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("wheel.asm.FieldWriter", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "public double entropyPotential() {\n \n return (-1.0);\n}", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testAGG2() {\n CuteNetlibCase.doTest(\"AGG2.SIF\", \"-2.0239252355977114E7\", \"5.71551859632249E9\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n\tpublic void testGetCounts() {\n\t\tString cellBC = \"ATCAGGGACAGA\";\n\n\t\tint snpPos = 76227022;\n\t\tInterval snpInterval = new Interval(\"HUMAN_1\", snpPos, snpPos, true, \"test\");\n\t\tSampleGenotypeProbabilities result = new SampleGenotypeProbabilities(snpInterval, cellBC);\n\t\tSNPUMIBasePileup p = getPileUpFromFile(cellBC, \"CGGGGCTC\");\n\t\tp.addLocusFunction(LocusFunction.CODING);\n\t\tresult.add(p);\n\t\tresult.add(getPileUpFromFile(cellBC, \"CGCGGGAC\")); // this read doesn't overlap the SNP so it isn't added!\n\t\tresult.add(getPileUpFromFile(cellBC, \"CTGGGCTC\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GGAATGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GTGCCGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"TCGCAGAC\"));\n\n\t\t// the code coverage gods are pleased.\n\t\tAssert.assertEquals(result.getCell(), cellBC);\n\t\tAssert.assertEquals(result.getSNPInterval(), snpInterval);\n\n\t\tAssert.assertNotNull(result.toString());\n\n\t\t// get the unfiltered results.\n\t\tObjectCounter<Character> umiCounts = result.getUMIBaseCounts();\n\t\tObjectCounter<Character> umiCountsExpected = new ObjectCounter<>();\n\t\tumiCountsExpected.incrementByCount('A', 2);\n\t\tumiCountsExpected.incrementByCount('G', 3);\n\t\tAssert.assertEquals(umiCounts, umiCountsExpected);\n\n\t\tObjectCounter<Character> readCounts = result.getReadBaseCounts();\n\t\tObjectCounter<Character> readCountsExpected = new ObjectCounter<>();\n\t\treadCountsExpected.incrementByCount('A', 2);\n\t\treadCountsExpected.incrementByCount('G', 5);\n\t\tAssert.assertEquals(readCounts, readCountsExpected);\n\n\t\tSet<LocusFunction> expected = new HashSet<>(Arrays.asList(LocusFunction.CODING));\n\t\tAssert.assertEquals(result.getLocusFunctions(), expected);\n\n\t}", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Override\n public int getGridCoverageCount() {\n return 1;\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n @Tag(\"bm1000\")\n public void testDEGEN2() {\n CuteNetlibCase.doTest(\"DEGEN2.SIF\", \"-1435.1779999999999\", \"-1226.12\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void testCalculateNominationCuantity2() throws FileNotFoundException {\n System.out.println(\"testCalculateNominationCuantity 2\");\n double expResult = 125.0;\n double result = calc.getChange(124d, calc.calculateDenominationCuantity(124d));\n assertEquals(expResult, result);\n }" ]
[ "0.7093221", "0.69711274", "0.6788303", "0.67452544", "0.6627139", "0.66258967", "0.6616479", "0.657791", "0.6568234", "0.6563617", "0.6557444", "0.65563464", "0.65476805", "0.65472233", "0.65055484", "0.6498489", "0.64944696", "0.64820087", "0.6433983", "0.6399927", "0.63841724", "0.6380855", "0.63569224", "0.6353644", "0.63320416", "0.6329489", "0.6327317", "0.6320505", "0.63155895", "0.62842405", "0.6278115", "0.62741023", "0.62708604", "0.62421995", "0.62362576", "0.6232436", "0.62218386", "0.6218459", "0.62095755", "0.6194195", "0.6193545", "0.6184888", "0.61749804", "0.617182", "0.6164066", "0.6158373", "0.6147118", "0.6141724", "0.6139791", "0.6134415", "0.6118109", "0.611132", "0.6106059", "0.61019933", "0.6093667", "0.6087661", "0.60859454", "0.60828257", "0.6081734", "0.6077845", "0.6077202", "0.60682434", "0.6067647", "0.6062239", "0.6061761", "0.6048534", "0.6030734", "0.60292184", "0.60253525", "0.60180074", "0.5990411", "0.59815913", "0.5977119", "0.59721136", "0.597163", "0.5965726", "0.5958512", "0.5946164", "0.5944936", "0.59432554", "0.59408104", "0.5929684", "0.5929084", "0.59188807", "0.59160084", "0.5908395", "0.59076905", "0.59055436", "0.5897655", "0.58949775", "0.5890245", "0.5887021", "0.5884489", "0.58831835", "0.5878811", "0.5876164", "0.58617544", "0.5859316", "0.5856503", "0.5853739", "0.5849365" ]
0.0
-1
Test case number: 3 /Coverage entropy=0.5623351446188083
@Test(timeout = 4000) public void test03() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-3081)); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 2, "/<pZ'q@6=nfTa}5<G9U", "7(I\"*", "/<pZ'q@6=nfTa}5<G9U", "7(I\"*"); // Undeclared exception! try { fieldWriter0.visitAnnotation((String) null, true); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testAGG3() {\n CuteNetlibCase.doTest(\"AGG3.SIF\", \"1.031211593508922E7\", \"5.746768863949547E9\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testGetCounts() {\n\t\tString cellBC = \"ATCAGGGACAGA\";\n\n\t\tint snpPos = 76227022;\n\t\tInterval snpInterval = new Interval(\"HUMAN_1\", snpPos, snpPos, true, \"test\");\n\t\tSampleGenotypeProbabilities result = new SampleGenotypeProbabilities(snpInterval, cellBC);\n\t\tSNPUMIBasePileup p = getPileUpFromFile(cellBC, \"CGGGGCTC\");\n\t\tp.addLocusFunction(LocusFunction.CODING);\n\t\tresult.add(p);\n\t\tresult.add(getPileUpFromFile(cellBC, \"CGCGGGAC\")); // this read doesn't overlap the SNP so it isn't added!\n\t\tresult.add(getPileUpFromFile(cellBC, \"CTGGGCTC\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GGAATGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GTGCCGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"TCGCAGAC\"));\n\n\t\t// the code coverage gods are pleased.\n\t\tAssert.assertEquals(result.getCell(), cellBC);\n\t\tAssert.assertEquals(result.getSNPInterval(), snpInterval);\n\n\t\tAssert.assertNotNull(result.toString());\n\n\t\t// get the unfiltered results.\n\t\tObjectCounter<Character> umiCounts = result.getUMIBaseCounts();\n\t\tObjectCounter<Character> umiCountsExpected = new ObjectCounter<>();\n\t\tumiCountsExpected.incrementByCount('A', 2);\n\t\tumiCountsExpected.incrementByCount('G', 3);\n\t\tAssert.assertEquals(umiCounts, umiCountsExpected);\n\n\t\tObjectCounter<Character> readCounts = result.getReadBaseCounts();\n\t\tObjectCounter<Character> readCountsExpected = new ObjectCounter<>();\n\t\treadCountsExpected.incrementByCount('A', 2);\n\t\treadCountsExpected.incrementByCount('G', 5);\n\t\tAssert.assertEquals(readCounts, readCountsExpected);\n\n\t\tSet<LocusFunction> expected = new HashSet<>(Arrays.asList(LocusFunction.CODING));\n\t\tAssert.assertEquals(result.getLocusFunctions(), expected);\n\n\t}", "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@ParameterizedTest\n @ArgumentsSource(TestForestProvider.class)\n public void testMultipleAttributions(RandomCutForest forest) {\n int hardPass=0;\n int causal=0;\n double [] point ={6.0,0.0,0.0};\n DiVector result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.2);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.getHighLowSum(1) + result.getHighLowSum(2) < 1.0);\n assertTrue(result.high[0] > forest.getAnomalyScore(point)/3);\n if (result.high[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n // the last line states that first coordinate was high and was a majority contributor to the score\n // the previous test states that the contribution is twice the average of the 12 possible contributors.\n // these tests all subparts of the score at once\n\n point=new double [] {-6.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.getHighLowSum()>1.0);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] > forest.getAnomalyScore(point)/3);\n if (result.low[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > forest.getAnomalyScore(point)/3);\n if (result.high[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,-6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.low[1] > forest.getAnomalyScore(point)/3);\n if (result.low[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,0.0,6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.low[2] < 0.5);\n assertTrue(result.high[2] > forest.getAnomalyScore(point)/3);\n if (result.high[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n point=new double [] {0.0,0.0,-6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.high[2] < 0.5);\n assertTrue(result.low[2] > forest.getAnomalyScore(point)/3);\n if (result.low[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n assertTrue(causal>=5); // maximum is 6; there can be skew in one direction\n\n point=new double [] {-3.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] >\n forest.getAnomalyScore(point)/3);\n\n /* For multiple causes, the relationship of scores only hold for larger\n * distances.\n */\n\n point=new double [] {-3.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.low[0] > 0.5) ++hardPass;\n assertTrue(result.high[0] < 0.5);\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > 0.5);\n if (result.high[1]>0.9) ++hardPass;\n assertTrue(result.getHighLowSum(2)< 0.5);\n assertTrue(result.high[1]+result.low[0]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {6.0,-3.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.5);\n assertTrue(result.high[0] > 0.5);\n if (result.high[0]>0.9) ++hardPass;\n if (result.low[1] > 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.getHighLowSum(2) < 0.5);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {20.0,-10.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n if (result.high[0]>1.8*result.low[1]) ++hardPass;\n if (result.low[1]>result.high[0]/2.2) ++hardPass;\n\n assertTrue(hardPass>=15); //maximum is 20\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setIgnoreClass(true);\n discretize0.getOptions();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test\n public void costTest() {\n // TODO: test cost\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }" ]
[ "0.7239176", "0.71150005", "0.6912845", "0.6906129", "0.6787432", "0.67655027", "0.6759274", "0.6756228", "0.6747245", "0.67458457", "0.6715026", "0.6709794", "0.6703106", "0.66794807", "0.6636", "0.66303116", "0.66216344", "0.6610548", "0.65984327", "0.65934455", "0.6589962", "0.6554814", "0.6550109", "0.65282196", "0.65224046", "0.6495601", "0.6490144", "0.64720136", "0.6459848", "0.6427185", "0.64127076", "0.6392361", "0.63917845", "0.6372107", "0.6368211", "0.6350803", "0.63498604", "0.63227886", "0.6322148", "0.632201", "0.63188154", "0.6311121", "0.6305527", "0.6301242", "0.62978095", "0.6290921", "0.62882596", "0.6281588", "0.6273257", "0.62711143", "0.62654865", "0.6257389", "0.624934", "0.624606", "0.6233665", "0.62278837", "0.6224824", "0.62131196", "0.62114", "0.6195843", "0.61940956", "0.6168552", "0.61684144", "0.6163862", "0.6160277", "0.61546206", "0.6143175", "0.61374", "0.6135724", "0.6126284", "0.6118654", "0.60965186", "0.6093433", "0.60832715", "0.6078925", "0.60762835", "0.60755026", "0.60753053", "0.6062627", "0.6061165", "0.6060789", "0.6056144", "0.60556704", "0.6054102", "0.605272", "0.6046898", "0.60292864", "0.6022591", "0.60190594", "0.60167474", "0.59867156", "0.5970273", "0.5966882", "0.59660786", "0.59511447", "0.59497255", "0.59458566", "0.59440166", "0.59435296", "0.5942408", "0.5938512" ]
0.0
-1
Test case number: 4 /Coverage entropy=0.5623351446188083
@Test(timeout = 4000) public void test04() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-946)); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, (-946), "Consta5)ntValue", "Consta5)ntValue", "?H+TLs Gws", (Object) null); ByteVector byteVector0 = classWriter0.pool; byteVector0.length = 2845; // Undeclared exception! try { fieldWriter0.visitAnnotation("", false); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Override\n public int getGridCoverageCount() {\n return 1;\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testGetCounts() {\n\t\tString cellBC = \"ATCAGGGACAGA\";\n\n\t\tint snpPos = 76227022;\n\t\tInterval snpInterval = new Interval(\"HUMAN_1\", snpPos, snpPos, true, \"test\");\n\t\tSampleGenotypeProbabilities result = new SampleGenotypeProbabilities(snpInterval, cellBC);\n\t\tSNPUMIBasePileup p = getPileUpFromFile(cellBC, \"CGGGGCTC\");\n\t\tp.addLocusFunction(LocusFunction.CODING);\n\t\tresult.add(p);\n\t\tresult.add(getPileUpFromFile(cellBC, \"CGCGGGAC\")); // this read doesn't overlap the SNP so it isn't added!\n\t\tresult.add(getPileUpFromFile(cellBC, \"CTGGGCTC\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GGAATGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GTGCCGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"TCGCAGAC\"));\n\n\t\t// the code coverage gods are pleased.\n\t\tAssert.assertEquals(result.getCell(), cellBC);\n\t\tAssert.assertEquals(result.getSNPInterval(), snpInterval);\n\n\t\tAssert.assertNotNull(result.toString());\n\n\t\t// get the unfiltered results.\n\t\tObjectCounter<Character> umiCounts = result.getUMIBaseCounts();\n\t\tObjectCounter<Character> umiCountsExpected = new ObjectCounter<>();\n\t\tumiCountsExpected.incrementByCount('A', 2);\n\t\tumiCountsExpected.incrementByCount('G', 3);\n\t\tAssert.assertEquals(umiCounts, umiCountsExpected);\n\n\t\tObjectCounter<Character> readCounts = result.getReadBaseCounts();\n\t\tObjectCounter<Character> readCountsExpected = new ObjectCounter<>();\n\t\treadCountsExpected.incrementByCount('A', 2);\n\t\treadCountsExpected.incrementByCount('G', 5);\n\t\tAssert.assertEquals(readCounts, readCountsExpected);\n\n\t\tSet<LocusFunction> expected = new HashSet<>(Arrays.asList(LocusFunction.CODING));\n\t\tAssert.assertEquals(result.getLocusFunctions(), expected);\n\n\t}", "public int countTestCases() {\n return 1;\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void test() throws Exception {\n// diversifiedRankingxPM2()\n diversifiedRankingxQuAD();\n }" ]
[ "0.72259027", "0.712208", "0.6932238", "0.6845708", "0.68382174", "0.6782836", "0.6782238", "0.67537934", "0.67340183", "0.66955733", "0.66748613", "0.66551226", "0.6642163", "0.66220015", "0.66127634", "0.6607152", "0.6606719", "0.6605916", "0.65931123", "0.65845835", "0.65548533", "0.6540152", "0.65367293", "0.6527364", "0.6524607", "0.64729226", "0.64663035", "0.6462207", "0.64601016", "0.64271677", "0.6411737", "0.6385337", "0.63755786", "0.637028", "0.6368672", "0.63546425", "0.63339555", "0.63293964", "0.6321282", "0.6311038", "0.6308765", "0.6295223", "0.6289515", "0.6286783", "0.6276716", "0.62708664", "0.6267897", "0.62665236", "0.62624717", "0.6257933", "0.6253471", "0.6235031", "0.6230161", "0.62297356", "0.6226055", "0.6222924", "0.6215203", "0.62043977", "0.61959094", "0.61943316", "0.6191378", "0.6189638", "0.6179341", "0.6174371", "0.61688906", "0.6166853", "0.61586285", "0.61457986", "0.6128769", "0.6126443", "0.6125951", "0.6124", "0.6118254", "0.6116847", "0.61147183", "0.61112684", "0.6110342", "0.6097465", "0.60930854", "0.60929865", "0.6089618", "0.60868627", "0.60852075", "0.60680836", "0.6065535", "0.60618335", "0.60538757", "0.60448796", "0.6029828", "0.60280484", "0.6024497", "0.6014523", "0.6008267", "0.60081476", "0.6002816", "0.5966617", "0.5962973", "0.5960341", "0.5958587", "0.59576464", "0.59481406" ]
0.0
-1
Test case number: 5 /Coverage entropy=0.5623351446188083
@Test(timeout = 4000) public void test05() throws Throwable { ClassWriter classWriter0 = new ClassWriter(9); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 1596, "oaOyb", "xWJwacYp%f=Qk", "epreZaPtd", (Object) null); ByteVector byteVector0 = classWriter0.pool; byteVector0.length = 4096; // Undeclared exception! try { fieldWriter0.put(byteVector0); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n Discretize discretize0 = new Discretize(\"^yH*RVC#\\\"|tm,k2XpGN\");\n String[] stringArray0 = new String[2];\n discretize0.m_ClassIndex = 906;\n discretize0.m_IgnoreClass = true;\n stringArray0[0] = \"^yH*RVC#\\\"|tm,k2XpGN\";\n stringArray0[1] = \"^yH*RVC#\\\"|tm,k2XpGN\";\n discretize0.setOptions(stringArray0);\n discretize0.setAttributeIndices(\"^yH*RVC#\\\"|tm,k2XpGN\");\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Override\n public int getGridCoverageCount() {\n return 1;\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n public void testSCSD6() {\n CuteNetlibCase.doTest(\"SCSD6.SIF\", \"50.5\", null, NumberContext.of(7, 4));\n }", "@Test\n public void costTest() {\n // TODO: test cost\n }", "public int countTestCases() {\n return 1;\n }", "@Test\n public void sustainMassiveDamage() {\n }", "@Test\n\tpublic void testGetCounts() {\n\t\tString cellBC = \"ATCAGGGACAGA\";\n\n\t\tint snpPos = 76227022;\n\t\tInterval snpInterval = new Interval(\"HUMAN_1\", snpPos, snpPos, true, \"test\");\n\t\tSampleGenotypeProbabilities result = new SampleGenotypeProbabilities(snpInterval, cellBC);\n\t\tSNPUMIBasePileup p = getPileUpFromFile(cellBC, \"CGGGGCTC\");\n\t\tp.addLocusFunction(LocusFunction.CODING);\n\t\tresult.add(p);\n\t\tresult.add(getPileUpFromFile(cellBC, \"CGCGGGAC\")); // this read doesn't overlap the SNP so it isn't added!\n\t\tresult.add(getPileUpFromFile(cellBC, \"CTGGGCTC\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GGAATGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GTGCCGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"TCGCAGAC\"));\n\n\t\t// the code coverage gods are pleased.\n\t\tAssert.assertEquals(result.getCell(), cellBC);\n\t\tAssert.assertEquals(result.getSNPInterval(), snpInterval);\n\n\t\tAssert.assertNotNull(result.toString());\n\n\t\t// get the unfiltered results.\n\t\tObjectCounter<Character> umiCounts = result.getUMIBaseCounts();\n\t\tObjectCounter<Character> umiCountsExpected = new ObjectCounter<>();\n\t\tumiCountsExpected.incrementByCount('A', 2);\n\t\tumiCountsExpected.incrementByCount('G', 3);\n\t\tAssert.assertEquals(umiCounts, umiCountsExpected);\n\n\t\tObjectCounter<Character> readCounts = result.getReadBaseCounts();\n\t\tObjectCounter<Character> readCountsExpected = new ObjectCounter<>();\n\t\treadCountsExpected.incrementByCount('A', 2);\n\t\treadCountsExpected.incrementByCount('G', 5);\n\t\tAssert.assertEquals(readCounts, readCountsExpected);\n\n\t\tSet<LocusFunction> expected = new HashSet<>(Arrays.asList(LocusFunction.CODING));\n\t\tAssert.assertEquals(result.getLocusFunctions(), expected);\n\n\t}" ]
[ "0.7184611", "0.7026799", "0.7023295", "0.6827469", "0.67737275", "0.6762713", "0.6734517", "0.6656717", "0.66501623", "0.66255856", "0.6612871", "0.65906525", "0.65667313", "0.65466005", "0.65296996", "0.65296626", "0.6527445", "0.6513988", "0.65096676", "0.6486261", "0.64727944", "0.64675117", "0.64655566", "0.6423931", "0.64178383", "0.63902813", "0.6383771", "0.6382816", "0.63529384", "0.6347218", "0.63283825", "0.6308712", "0.6285725", "0.62823784", "0.6282312", "0.62802464", "0.6280054", "0.6279991", "0.62776214", "0.62677187", "0.6260655", "0.62525", "0.6252439", "0.62497485", "0.62484527", "0.6247724", "0.6241509", "0.62412274", "0.6232423", "0.6217434", "0.62122965", "0.62110823", "0.61900264", "0.61801606", "0.6175994", "0.61716306", "0.6168935", "0.61621636", "0.6159617", "0.615932", "0.61531425", "0.61516166", "0.61503166", "0.6147328", "0.6139965", "0.61370355", "0.6136465", "0.61320883", "0.61316913", "0.61316276", "0.6131182", "0.6123266", "0.6111176", "0.610938", "0.61076736", "0.61036974", "0.6102401", "0.60908794", "0.6088809", "0.607577", "0.60755974", "0.6070513", "0.60692215", "0.60626054", "0.605651", "0.6053368", "0.60455376", "0.60425216", "0.6030924", "0.60291946", "0.60291946", "0.6025055", "0.60169876", "0.6015673", "0.6015641", "0.6001149", "0.60010386", "0.5994313", "0.5993991", "0.59815836", "0.5980541" ]
0.0
-1
Test case number: 6 /Coverage entropy=0.0
@Test(timeout = 4000) public void test06() throws Throwable { Label label0 = new Label(); FieldWriter fieldWriter0 = null; try { fieldWriter0 = new FieldWriter((ClassWriter) null, 4360, (String) null, (String) null, "AnnotationDefault", label0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("wheel.asm.FieldWriter", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "public int countTestCases() {\n return 1;\n }", "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Override\n public int getGridCoverageCount() {\n return 1;\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD6CUBE() {\n CuteNetlibCase.doTest(\"D6CUBE.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n public void sustainMassiveDamage() {\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "public int getCoverage (){\r\n return coverage;\r\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSCSD6() {\n CuteNetlibCase.doTest(\"SCSD6.SIF\", \"50.5\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }" ]
[ "0.72303796", "0.70809597", "0.7037944", "0.6839881", "0.6813876", "0.6799084", "0.6774416", "0.67580384", "0.6678041", "0.66583663", "0.6632565", "0.6617902", "0.6614926", "0.6609257", "0.6606756", "0.6587388", "0.65732366", "0.6572532", "0.65559494", "0.6555049", "0.65520847", "0.6532289", "0.6524106", "0.6505095", "0.65010625", "0.6496374", "0.6456011", "0.6433085", "0.6427608", "0.64144766", "0.63751", "0.63650674", "0.635284", "0.6352547", "0.63489157", "0.63487566", "0.63275915", "0.6316217", "0.6313888", "0.63112295", "0.6309741", "0.63064504", "0.6301325", "0.6297917", "0.6280849", "0.6271957", "0.6262606", "0.6256968", "0.6245626", "0.62294334", "0.62267816", "0.62230057", "0.622086", "0.6219734", "0.6204592", "0.6193282", "0.61881423", "0.61848825", "0.6180443", "0.61791223", "0.61775476", "0.61773044", "0.61724436", "0.61667544", "0.61620504", "0.61520475", "0.6148171", "0.61451316", "0.6133104", "0.6132969", "0.6131891", "0.6131737", "0.6131588", "0.6127887", "0.6127722", "0.61241907", "0.6113083", "0.6109803", "0.61095387", "0.6107699", "0.61049503", "0.6099743", "0.60981035", "0.6087573", "0.60773575", "0.6075226", "0.60712904", "0.6062233", "0.60595995", "0.6054617", "0.6052284", "0.60494375", "0.60467577", "0.60454303", "0.6043868", "0.6042605", "0.60400903", "0.6028017", "0.6017817", "0.6010544", "0.60032475" ]
0.0
-1